o-lim/generate-ninja

trying to use on osx

Opened this issue · 0 comments

Hello,

I tried to use this on osx. It failed. This is the workflow I used:

  1. setup python using venv
    a. python3 -m venv venv
    b. source venv/bin/activate
    c. pip install --upgrade pip
  2. make

It builds with warnings 247/248 steps and then fails in link step with the following output:

2 warnings generated.
[248/248] LINK gn_unittests
ERROR at //build/config/mac/mac_sdk.gni:34:5: Script returned non-zero exit code.
    exec_script("//build/mac/find_sdk.py", find_sdk_args, "list lines")
    ^----------
Current dir: /Users/davis/progs/generate-ninja/out/Release/
Command: python /Users/davis/generate-ninja/build/mac/find_sdk.py --print_sdk_path 10.12
Returned 1.
stderr:

Traceback (most recent call last):
  File "/Users/davis/progs/generate-ninja/build/mac/find_sdk.py", line 104, in <module>
    print(main())
  File "/Users/davis/progs/generate-ninja/build/mac/find_sdk.py", line 78, in main
    raise Exception('No %s+ SDK found' % min_sdk_version)
Exception: No 10.12+ SDK found

I have xcode 15.4 and the clang command line tools installed.

I tried to hack up the code to accept the higher xcode version but in the end, the compiler flags failede on the link. 8-(

clang++ -MMD -MF obj/base/base/json_parser.o.d -DOFFICIAL_BUILD -DCR_XCODE_VERSION=0154 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORE=0 -DNDEBUG -I../.. -Igen -fno-strict-aliasing -fstack-protector -fcolor-diagnostics -no-canonical-prefixes -mfpu=neon -Wall -Werror -Wextra -Wno-missing-field-initializers -Wno-unused-parameter -Wno-c++11-narrowing -Wno-covered-switch-default -Wno-pessimizing-move -fno-omit-frame-pointer -gdwarf-2 -fno-standalone-debug -isysroot ../../../../../../../Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk -mmacosx-version-min=14.5 -fvisibility=hidden -Wheader-hygiene -Wstring-conversion -Wtautological-overlap-compare -Wno-unused-function -Wno-unknown-pragmas -Wno-unused-private-field -Wexit-time-destructors -O2 -std=c++14 -stdlib=libc++ -fno-rtti -fno-exceptions -fvisibility-inlines-hidden -c ../../base/json/json_parser.cc -o obj/base/base/json_parser.o
clang++: error: argument unused during compilation: '-mfpu=neon' [-Werror,-Wunused-command-line-argument]
ninja: build stopped: subcommand failed.
make: *** [out/Release/gn] Error 1