Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Toolchain does not build with Xcode 15.4 #929

Closed
SubdudedCrane651 opened this issue May 28, 2024 · 6 comments
Closed

Toolchain does not build with Xcode 15.4 #929

SubdudedCrane651 opened this issue May 28, 2024 · 6 comments

Comments

@SubdudedCrane651
Copy link

Versions

  • Python : 3.9
  • MacOS version : Sonoma 14.5
  • XCode Version : 15.4 (May 19,2024)
  • Cython version : 0.29.36

Describe the bug
Never successfully builds a kivy-ios project. It runs for a while and then has a STDERR message at the end that I don't know why.

To Reproduce
toolchain build kivy python3 openssl

Expected behavior
Have no errors and continue to do a toolchain create command to create the Xcode project.

Logs

`[DEBUG   ] ld: warning: -undefined dynamic_lookup is deprecated on iOS
[DEBUG   ] ld: warning: -undefined dynamic_lookup is deprecated on iOS
[DEBUG   ] ld: warning: -undefined dynamic_lookup is deprecated on iOS
[DEBUG   ] ld: warning: ignoring duplicate libraries: '-lm', '-lssl', '-lz'
[DEBUG   ] ld: warning: -undefined dynamic_lookup is deprecated on iOS
[DEBUG   ] ld: warning: ignoring duplicate libraries: '-lm', '-lssl', '-lz'
[DEBUG   ] ld: warning: search path './../Support/BZip2' not found
[DEBUG   ] ld: warning: search path './../Support/BZip2' not found
[DEBUG   ] ld: building for 'iOS', but linking in dylib (/opt/homebrew/Cellar/libb2/0.98.1/lib/libb2.1.dylib) built for 'macOS'
[DEBUG   ] ld: building for 'iOS', but linking in dylib (/opt/homebrew/Cellar/libb2/0.98.1/lib/libb2.1.dylib) built for 'macOS'
**[DEBUG   ] clang: error: linker command failed with exit code 1 (use -v to see invocation)clang: error: 
[DEBUG   ] linker command failed with exit code 1 (use -v to see invocation)**
[DEBUG   ] make: *** [Programs/_testembed] Error 1
[DEBUG   ] make: *** Waiting for unfinished jobs....
[DEBUG   ] make: *** [python.exe] Error 1
Exception in thread background thread for pid 66238:
Traceback (most recent call last):
  File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/threading.py", line 973, in _bootstrap_inner
    self.run()
  File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/threading.py", line 910, in run
    self._target(*self._args, **self._kwargs)
  File "/Users/richard/Documents/Python/HelloWorld/.venv/lib/python3.9/site-packages/sh.py", line 1540, in wrap
    fn(*args, **kwargs)
  File "/Users/richard/Documents/Python/HelloWorld/.venv/lib/python3.9/site-packages/sh.py", line 2459, in background_thread
    handle_exit_code(exit_code)
  File "/Users/richard/Documents/Python/HelloWorld/.venv/lib/python3.9/site-packages/sh.py", line 2157, in fn
    return self.command.handle_command_exit_code(exit_code)
  File "/Users/richard/Documents/Python/HelloWorld/.venv/lib/python3.9/site-packages/sh.py", line 815, in handle_command_exit_code
    raise exc
sh.ErrorReturnCode_2: 

  RAN: /usr/bin/make -j8 CFLAGS=-O3 -miphoneos-version-min=9.0 -I/Users/richard/Documents/Python/HelloWorld/dist/include/iphoneos-arm64/ffi -I/Users/richard/Documents/Python/HelloWorld/dist/include/common/libpng -I/Users/richard/Documents/Python/HelloWorld/dist/include/iphoneos-arm64/openssl -I/Users/richard/Documents/Python/HelloWorld/dist/include/common/sdl2 -I/Users/richard/Documents/Python/HelloWorld/dist/include/common/sdl2_image -I/Users/richard/Documents/Python/HelloWorld/dist/include/common/sdl2_mixer -I/Users/richard/Documents/Python/HelloWorld/dist/include/common/sdl2_ttf -I/Users/richard/Documents/Python/HelloWorld/dist/include/iphoneos-arm64 --sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.5.sdk

  STDOUT:
Makefile:2823: warning: overriding commands for target `Modules/expat/xmlparse.o'
Makefile:1031: warning: ignoring old commands for target `Modules/expat/xmlparse.o'
Makefile:2824: warning: overriding commands for target `Modules/expat/xmlrole.o'
Makefile:1034: warning: ignoring old commands for target `Modules/expat/xmlrole.o'
Makefile:2825: warning: overriding commands for target `Modules/expat/xmltok.o'
Makefile:1037: warning: ignoring old commands for target `Modules/expat/xmltok.o'
/var/folders/qc/1ckrysms2xn902hzh_yt_zj00000gn/T/tmpxor94d3x -c -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -O3 -miphoneos-version-min=9.0 -I/Users/richard/Documents/Python/HelloWorld/dist/include/iphoneos-arm64/ffi -I/Users/richard/Docum... (591657 more, please see e.stdout)

  STDERR:

Traceback (most recent call last):
  File "/Users/richard/Documents/Python/HelloWorld/.venv/bin/toolchain", line 8, in <module>
    sys.exit(main())
  File "/Users/richard/Documents/Python/HelloWorld/.venv/lib/python3.9/site-packages/kivy_ios/toolchain.py", line 1670, in main
    ToolchainCL()
  File "/Users/richard/Documents/Python/HelloWorld/.venv/lib/python3.9/site-packages/kivy_ios/toolchain.py", line 1407, in __init__
    getattr(self, args.command)()
  File "/Users/richard/Documents/Python/HelloWorld/.venv/lib/python3.9/site-packages/kivy_ios/toolchain.py", line 1483, in build
    build_recipes(args.recipe, ctx)
  File "/Users/richard/Documents/Python/HelloWorld/.venv/lib/python3.9/site-packages/kivy_ios/toolchain.py", line 1231, in build_recipes
    recipe.execute()
  File "/Users/richard/Documents/Python/HelloWorld/.venv/lib/python3.9/site-packages/kivy_ios/toolchain.py", line 758, in execute
    self.build_all()
  File "/Users/richard/Documents/Python/HelloWorld/.venv/lib/python3.9/site-packages/kivy_ios/toolchain.py", line 78, in _cache_execution
    f(self, *args, **kwargs)
  File "/Users/richard/Documents/Python/HelloWorld/.venv/lib/python3.9/site-packages/kivy_ios/toolchain.py", line 858, in build_all
    self.build(plat)
  File "/Users/richard/Documents/Python/HelloWorld/.venv/lib/python3.9/site-packages/kivy_ios/toolchain.py", line 78, in _cache_execution
    f(self, *args, **kwargs)
  File "/Users/richard/Documents/Python/HelloWorld/.venv/lib/python3.9/site-packages/kivy_ios/toolchain.py", line 844, in build
    self.build_platform(plat)
  File "/Users/richard/Documents/Python/HelloWorld/.venv/lib/python3.9/site-packages/kivy_ios/recipes/python3/__init__.py", line 117, in build_platform
    shprint(sh.make, self.ctx.concurrent_make, "CFLAGS={}".format(build_env["CFLAGS"]))
  File "/Users/richard/Documents/Python/HelloWorld/.venv/lib/python3.9/site-packages/kivy_ios/toolchain.py", line 60, in shprint
    for line in cmd:
  File "/Users/richard/Documents/Python/HelloWorld/.venv/lib/python3.9/site-packages/sh.py", line 863, in next
    self.wait()
  File "/Users/richard/Documents/Python/HelloWorld/.venv/lib/python3.9/site-packages/sh.py", line 792, in wait
    self.handle_command_exit_code(exit_code)
  File "/Users/richard/Documents/Python/HelloWorld/.venv/lib/python3.9/site-packages/sh.py", line 815, in handle_command_exit_code
    raise exc
sh.ErrorReturnCode_2: 

  RAN: /usr/bin/make -j8 CFLAGS=-O3 -miphoneos-version-min=9.0 -I/Users/richard/Documents/Python/HelloWorld/dist/include/iphoneos-arm64/ffi -I/Users/richard/Documents/Python/HelloWorld/dist/include/common/libpng -I/Users/richard/Documents/Python/HelloWorld/dist/include/iphoneos-arm64/openssl -I/Users/richard/Documents/Python/HelloWorld/dist/include/common/sdl2 -I/Users/richard/Documents/Python/HelloWorld/dist/include/common/sdl2_image -I/Users/richard/Documents/Python/HelloWorld/dist/include/common/sdl2_mixer -I/Users/richard/Documents/Python/HelloWorld/dist/include/common/sdl2_ttf -I/Users/richard/Documents/Python/HelloWorld/dist/include/iphoneos-arm64 --sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.5.sdk

  STDOUT:
Makefile:2823: warning: overriding commands for target `Modules/expat/xmlparse.o'
Makefile:1031: warning: ignoring old commands for target `Modules/expat/xmlparse.o'
Makefile:2824: warning: overriding commands for target `Modules/expat/xmlrole.o'
Makefile:1034: warning: ignoring old commands for target `Modules/expat/xmlrole.o'
Makefile:2825: warning: overriding commands for target `Modules/expat/xmltok.o'
Makefile:1037: warning: ignoring old commands for target `Modules/expat/xmltok.o'
/var/folders/qc/1ckrysms2xn902hzh_yt_zj00000gn/T/tmpxor94d3x -c -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -O3 -miphoneos-version-min=9.0 -I/Users/richard/Documents/Python/HelloWorld/dist/include/iphoneos-arm64/ffi -I/Users/richard/Docum... (591657 more, please see e.stdout)

  STDERR:`

Additional context
Tried to downgrade Xcode unsuccessfully, always wanted to install upgrades.

@tcaduser
Copy link
Contributor

Have you tried the "fix" suggested in Issue #901 and:

brew uninstall —ignore-dependencies libb2

@SubdudedCrane651
Copy link
Author

Have you tried the "fix" suggested in Issue #901 and:

brew uninstall —ignore-dependencies libb2

Tried that and no change, just to add I am using a M1 Mac for this

@misl6
Copy link
Member

misl6 commented May 29, 2024

Can you repost your logs of toolchain build python3 kivy after brew uninstall —ignore-dependencies libb2 ?

Please ensure everything is cleaned up via toolchain distclean before performing a new build.

@DavyClk
Copy link

DavyClk commented Jun 5, 2024

it worked for me, thank you

Can you repost your logs of toolchain build python3 kivy after brew uninstall —ignore-dependencies libb2 ?

Please ensure everything is cleaned up via toolchain distclean before performing a new build.

@SubdudedCrane651
Copy link
Author

SubdudedCrane651 commented Jun 5, 2024 via email

@AndreMiras
Copy link
Member

Addressed in #940

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants