question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

numpy 1.16.4 error: targeted OS version does not support use of thread local variables

See original GitHub issue

When 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:closed
  • Created 4 years ago
  • Comments:10 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
dinesh-rajaveerancommented, May 4, 2020

It is gone … @Zen-CODE … I used the deployment target = 9.0 under “targets”. Thanks for your help !

0reactions
Zen-CODEcommented, Apr 30, 2020

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?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found