Comments (7)
Yeah, this appears to be a flag that was added in a newer, not-yet-open-sourced ld. Just curious, does it work for you with Xcode 11.3? And can you add "-###" to the linker invocation, which prints the subprocesses it spawns, and paste the output.
from zld.
Apple clang version 11.0.3 (clang-1103.0.32.26)
Target: x86_64-apple-macos10.11
Thread model: posix
InstalledDir: /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
"/usr/local/bin/zld" "-demangle" "-lto_library" "/Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/libLTO.dylib" "-dynamic" "-arch" "x86_64" "-exported_symbols_list" "/dev/null" "-force_load" "/Users/klemix/Library/Developer/Xcode/DerivedData/Platform-ganbmvkpevluiwgmzgnsmuyhoaga/Build/Products/Debug/libPlatform-macOS.a" "-force_load" "/Users/klemix/Library/Developer/Xcode/DerivedData/Platform-ganbmvkpevluiwgmzgnsmuyhoaga/Build/Products/Debug/libExternal-macOS.a" "-platform_version" "macos" "10.11.0" "10.15.4" "-syslibroot" "/Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk" "-ObjC" "-o" ... other flags releated to an app
this is the output with -###
you can even see -platform_version
here.
And with -###
it does link, so I'm not sure it uses zld, once I remove it, it fails again.
I will try to find some time to try to recompile with Xcode 11.3 later.
from zld.
The -###
appears to fix it simply because that option prevents actual linking from occurring, it's more like a dry-run
from zld.
Tested in Xcode 11.3 and it does work. So the problem is only with the new Xcode 11.4.
from zld.
Fixed in #23
from zld.
Looks like its just a generic way of passing in the deployment target instead of using -ios_version_min
and friends.
https://reviews.llvm.org/D71579
Should be easy enough to convert on the way in to match the old behaviour (assuming the format of LC_BUILD_VERSION
remains the same).
from zld.
Yep, good call. Hopefully that llvm.org will have some insights on our other outstanding questions as well
from zld.
Related Issues (20)
- support CommandLineTools users HOT 4
- Failed to make tbb_staticlib on M1. HOT 1
- Can't run zld from releases HOT 3
- Not working with Xcode 13.3 HOT 3
- DOCS: Note that the full Xcode installation is required, xcode CLI is not enough HOT 3
- Library not loaded: @rpath/libLTO.dylib - Reason: image not found HOT 3
- falied to build on mac HOT 2
- Xcode required vs command line tools? HOT 2
- Killed: 9 (SIGKILL) on M1 Mac HOT 1
- The Future of zld [RFC] HOT 5
- Xcode 14 beta. Can not Not link _objc_msgSend HOT 12
- Xcode 14/MacOs 13 installation failure HOT 5
- not fast HOT 9
- Build commands failed M1 Mac HOT 2
- Unable to use Linker on Rust and M1 Pro Mac HOT 1
- Comparison with mold/sold HOT 1
- Xcode14.2 MacOS Ventura 13.1 have BUG HOT 2
- Installing from homebrew on M1 Mac Pro fails HOT 2
- Unable to install through Homebrew HOT 1
- Build failed through homebrew HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zld.