numpy 1.16.4 error: targeted OS version does not support use of thread local variables
See original GitHub issueWhen running a simple app using the latest (1.16.4) recipe for numpy, I get the following error when trying to runit.
targeted OS version does not support use of thread local variables in __PyArray_SigintHandler for architecture x86_64. This is using XCode 10.3 on 10.14.6. Full log follows:
Ld /Users/richard/Library/Developer/Xcode/DerivedData/numpyapp-akvtksfwfvtxtiaweywiflelebyr/Build/Products/Debug-iphonesimulator/numpyapp.app/numpyapp normal x86_64 (in target: numpyapp)
cd /Users/richard/Repos/kivy-ios/numpyapp-ios
export IPHONEOS_DEPLOYMENT_TARGET=8.1
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.4.sdk -L/Users/richard/Library/Developer/Xcode/DerivedData/numpyapp-akvtksfwfvtxtiaweywiflelebyr/Build/Products/Debug-iphonesimulator -L/Users/richard/Repos/kivy-ios/dist/lib -L/Users/richard/Repos/kivy-ios/numpyapp-ios/../dist/lib -F/Users/richard/Library/Developer/Xcode/DerivedData/numpyapp-akvtksfwfvtxtiaweywiflelebyr/Build/Products/Debug-iphonesimulator -F/Users/richard/Repos/kivy-ios/dist/frameworks -filelist /Users/richard/Library/Developer/Xcode/DerivedData/numpyapp-akvtksfwfvtxtiaweywiflelebyr/Build/Intermediates.noindex/numpyapp.build/Debug-iphonesimulator/numpyapp.build/Objects-normal/x86_64/numpyapp.LinkFileList -mios-simulator-version-min=8.1 -Xlinker -object_path_lto -Xlinker /Users/richard/Library/Developer/Xcode/DerivedData/numpyapp-akvtksfwfvtxtiaweywiflelebyr/Build/Intermediates.noindex/numpyapp.build/Debug-iphonesimulator/numpyapp.build/Objects-normal/x86_64/numpyapp_lto.o -Xlinker -no_deduplicate -Xlinker -objc_abi_version -Xlinker 2 -fobjc-link-runtime -all_load -Xlinker -sectcreate -Xlinker __TEXT -Xlinker __entitlements -Xlinker /Users/richard/Library/Developer/Xcode/DerivedData/numpyapp-akvtksfwfvtxtiaweywiflelebyr/Build/Intermediates.noindex/numpyapp.build/Debug-iphonesimulator/numpyapp.build/numpyapp.app-Simulated.xcent -framework CoreVideo -framework MobileCoreServices -framework MessageUI -framework AVFoundation -framework Accelerate -framework GameController -framework UIKit -framework AudioToolbox -framework CoreMedia -framework QuartzCore -framework CoreGraphics -framework Metal -framework CoreMotion -framework WebKit -framework OpenGLES -framework ImageIO -lc++ -lbz2 -lz -lsqlite3 -lnpysort -lsdl2_ttf -lssl -lfreetype -lpyobjus -lsdl2 -lnpymath -lcrypto -lpillow -lsdl2_image -lnumpy -lffi -lsdl2_mixer -ljpeg -lpython3 -lkivy -lios -Xlinker -dependency_info -Xlinker /Users/richard/Library/Developer/Xcode/DerivedData/numpyapp-akvtksfwfvtxtiaweywiflelebyr/Build/Intermediates.noindex/numpyapp.build/Debug-iphonesimulator/numpyapp.build/Objects-normal/x86_64/numpyapp_dependency_info.dat -o /Users/richard/Library/Developer/Xcode/DerivedData/numpyapp-akvtksfwfvtxtiaweywiflelebyr/Build/Products/Debug-iphonesimulator/numpyapp.app/numpyapp
ld: warning: could not create compact unwind for _ffi_call_unix64: does not use RBP or RSP based frame
ld: targeted OS version does not support use of thread local variables in __PyArray_SigintHandler for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Issue Analytics
- State:
- Created 4 years ago
- Comments:10 (6 by maintainers)
Top Results From Across the Web
targeted OS version does not support use of thread local ...
I think thread_local is allowed beginning with iOS 9. Try to set the deployment target to iOS 9 or later. The offending code...
Read more >Release Notes — NumPy v1.16 Manual
This NumPy release is the last one to support Python 2.7 and will be maintained as a long term release with bug fixes...
Read more >Release Notes — NumPy v1.16 Manual
This NumPy release is the last one to support Python 2.7 and will be maintained as a long term release with bug fixes...
Read more >iOS : Build error - targeted OS version does not support use of ...
iOS : Build error - targeted OS version does not support use of thread local variables [ Beautify Your Computer ...
Read more >Bug listing with status RESOLVED with resolution TEST ...
Bug :233 - "Emacs segfaults when merged through the sandbox." status:RESOLVED resolution:TEST-REQUEST severity:critical · Bug:3888 - "yenta_socket module not ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It is gone … @Zen-CODE … I used the deployment target = 9.0 under “targets”. Thanks for your help !
Okay, thanks, I see the screenshot. But now the error seems to have gone? Or is it still printing 8.1 in the error output?