renpy / renpy-build

Build system for the Ren'Py visual novel engine. (The engine itself, not games.)
76 stars 51 forks source link

undefined symbol: `__isPlatformVersionAtLeast` when using MacOSX12.3.sdk in building for mac #81

Closed brainos233 closed 1 year ago

brainos233 commented 1 year ago
ld64.lld: warning: Option `-stack_size' is not yet implemented. Stay tuned...
ld64.lld: warning: Option `-stack_size' is not yet implemented. Stay tuned...
ld64.lld: error: undefined symbol: __isPlatformVersionAtLeast
>>> referenced by pytime.c:705 (Python/pytime.c:705)
>>>               libpython3.9.a(pytime.o):(symbol pygettimeofday+0x2c)
>>> referenced by bootstrap_hash.c:521 (Python/bootstrap_hash.c:521)
>>>               libpython3.9.a(bootstrap_hash.o):(symbol pyurandom+0x3e)
>>> referenced by callproc.c:1482 (./Modules/_ctypes/callproc.c:1482)
>>>               libpython3.9.a(callproc.o):(symbol py_dyld_shared_cache_contains_path+0x1d)
>>> referenced 5 more times
ld64.lld: error: undefined symbol: __isPlatformVersionAtLeast
>>> referenced by pytime.c:705 (Python/pytime.c:705)
>>>               libpython3.9.a(pytime.o):(symbol pygettimeofday+0x2c)
>>> referenced by bootstrap_hash.c:521 (Python/bootstrap_hash.c:521)
>>>               libpython3.9.a(bootstrap_hash.o):(symbol pyurandom+0x3e)
>>> referenced by callproc.c:1482 (./Modules/_ctypes/callproc.c:1482)
>>>               libpython3.9.a(callproc.o):(symbol py_dyld_shared_cache_contains_path+0x1d)
>>> referenced 5 more times
clang: error: clanglinker command failed with exit code 1 (use -v to see invocation): 
error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [Makefile:739:Programs/_testembed] 错误 1
make: *** 正在等待未完成的任务....
make: *** [Makefile:604:python] 错误 1
build_posix-python3.mac-x86_64-py3: process failed with 2.
args: ['nice', 'make', '-j', '12']
  File "/home/brainos/Builds/renpy-build-test1/./build.py", line 231, in <module>
    main()
  File "/home/brainos/Builds/renpy-build-test1/./build.py", line 227, in main
    args.function(args)
  File "/home/brainos/Builds/renpy-build-test1/./build.py", line 122, in build
    task.run(context)
  File "/home/brainos/Builds/renpy-build-test1/renpybuild/task.py", line 97, in run
    self.function(context)
  File "/home/brainos/Builds/renpy-build-test1/tasks/python3.py", line 123, in build_posix
    c.run("""{{ make }}""")
  File "/home/brainos/Builds/renpy-build-test1/renpybuild/context.py", line 328, in run
    renpybuild.run.run(command, self, verbose, quiet)
  File "/home/brainos/Builds/renpy-build-test1/renpybuild/run.py", line 448, in run
    traceback.print_stack()

After checking crossosx, I think newer MacOSXsdk needed to build LLVM's compiler-rt libraries first when building.

### Tasks