Displaying 16 results from an estimated 16 matches for "lto_library".
2020 May 07
2
Ld64.lld cannot find Foundation framework
...ld comes up with the error "cannot find framework".
However similar arguments using /usr/bin/ld instead of ld64.lld works fine.
Here are the details:
Here is the call using /usr/bin/ld:
/usr/bin/ld HelloObjC.o -o HelloObjC -v -sdk_version 10.14.0 -macosx_version_min 10.14.0 -demangle -lto_library /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/libLTO.dylib -dynamic -arch x86_64 -framework Foundation -framework Cocoa -syslibroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk -lSystem /Applications/Xco...
2018 Jan 04
4
Fwd: LLD (macOS) usage?
...d.lld: error: unknown argument: -no_deduplicate
/opt/llvm/5.0.1/bin/ld.lld: error: unknown argument: -dynamic
/opt/llvm/5.0.1/bin/ld.lld: error: unknown argument: -arch
/opt/llvm/5.0.1/bin/ld.lld: error: unknown emulation: acosx_version_min
/opt/llvm/5.0.1/bin/ld.lld: error: unable to find library -lto_library
/opt/llvm/5.0.1/bin/ld.lld: error: /opt/llvm/5.0.1/lib/libLTO.dylib:
invalid data encoding
clang-5.0: error: linker command failed with exit code 1 (use -v to see
invocation)
Looks like the flags passed to the linker are just wrong, but can't find
any relevant documentation at llvm.org/docs....
2013 Nov 12
0
[LLVMdev] Best way to do a lto bootstrap on OS X
...ind ld') and making sure the library I want to load is placed at ../lib/libLTO.dylib relatively to this symlink.
Now, when I invoke the linker using this symlink, it properly load my custom libLTO.dylib library.
According to the ld64 sources, it should have an other way to do that (using the -lto_library option), but I never managed to make it work.
Le 12 nov. 2013 à 15:53, Rafael Espíndola <rafael.espindola at gmail.com> a écrit :
> For dogfooding the compiler I normally use is a LTO bootstrap of clang.
>
> On linux that is simple to do that since clang passes the correct
> pl...
2013 Nov 12
3
[LLVMdev] Best way to do a lto bootstrap on OS X
For dogfooding the compiler I normally use is a LTO bootstrap of clang.
On linux that is simple to do that since clang passes the correct
plugin to the linker.
On OS X ld64 uses libLTO.so it finds via DYLD_LIBRARY_PATH. Should
clang set that before running the linker? Is there a better way for
clang to tell the linker which libLTO.so to use?
Cheers,
Rafael
2018 Jan 08
0
Fwd: LLD (macOS) usage?
...d.lld: error: unknown argument: -no_deduplicate
/opt/llvm/5.0.1/bin/ld.lld: error: unknown argument: -dynamic
/opt/llvm/5.0.1/bin/ld.lld: error: unknown argument: -arch
/opt/llvm/5.0.1/bin/ld.lld: error: unknown emulation: acosx_version_min
/opt/llvm/5.0.1/bin/ld.lld: error: unable to find library -lto_library
/opt/llvm/5.0.1/bin/ld.lld: error: /opt/llvm/5.0.1/lib/libLTO.dylib: invalid data encoding
clang-5.0: error: linker command failed with exit code 1 (use -v to see invocation)
Looks like the flags passed to the linker are just wrong, but can't find any relevant documentation at llvm.org/docs<...
2017 Dec 14
2
[lld] Well lld support some advanced features like gnu linker in macOS?
.../local/bin/ld.lld: error: unknown argument: -dynamic
/usr/local/bin/ld.lld: error: unknown argument: -arch
/usr/local/bin/ld.lld: error: unknown argument: -search_paths_first
/usr/local/bin/ld.lld: error: unknown emulation: acosx_version_min
/usr/local/bin/ld.lld: error: unable to find library -lto_library
/usr/local/bin/ld.lld: error:
/usr/local/Cellar/llvm/5.0.0/lib/libLTO.dylib: invalid data encoding
Seems lld is working in progress. I hope lld will support some advanced
features like `--as-need` `--start-group` `--end-group` flags in macOS,
they are very useful !
-------------- next part ------...
2020 Jul 22
2
How to debug a missing symbol with ThinLTO?
...napshot. From the link command in the snapshot, the static library is not on the command line from snapshot:
/Applications/Xcode-11.3.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld -Z -demangle -object_path_lto /var/folders/5c/85r7gp0909j5jbytzds1j7b40000gn/T/thinlto-bf51d2 -lto_library data_files/libLTO.dylib -no_deduplicate -dynamic -arch x86_64 -macosx_version_min 10.15.0 -debug_snapshot -filelist objects/filelist dylibs/libSystem.tbd dylibs/libc++.tbd
Steven
> On Jul 22, 2020, at 11:42 AM, Tobias Hieta <tobias at plexapp.com> wrote:
>
> Hello,
>
> Th...
2020 Jul 23
2
How to debug a missing symbol with ThinLTO?
...running verbose clang I can see that clang invokes the linker with libogg.a on the line:
>
> "/Applications/Xcode-11.3.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld" -demangle -object_path_lto /var/folders/5c/85r7gp0909j5jbytzds1j7b40000gn/T/thinlto-74963a -lto_library /Applications/Xcode-11.3.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/libLTO.dylib -no_deduplicate -dynamic -arch x86_64 -macosx_version_min 10.15.0 -syslibroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -o test /var/folders/...
2013 Nov 12
1
[LLVMdev] Best way to do a lto bootstrap on OS X
...ing sure the library I want to load is placed at ../lib/libLTO.dylib relatively to this symlink.
>
> Now, when I invoke the linker using this symlink, it properly load my custom libLTO.dylib library.
>
> According to the ld64 sources, it should have an other way to do that (using the -lto_library option), but I never managed to make it work.
>
> Le 12 nov. 2013 à 15:53, Rafael Espíndola <rafael.espindola at gmail.com> a écrit :
>
>> For dogfooding the compiler I normally use is a LTO bootstrap of clang.
>>
>> On linux that is simple to do that since clang...
2018 Jan 07
0
Fwd: LLD (macOS) usage?
...n argument: -no_deduplicate
> /opt/llvm/5.0.1/bin/ld.lld: error: unknown argument: -dynamic
> /opt/llvm/5.0.1/bin/ld.lld: error: unknown argument: -arch
> /opt/llvm/5.0.1/bin/ld.lld: error: unknown emulation: acosx_version_min
> /opt/llvm/5.0.1/bin/ld.lld: error: unable to find library -lto_library
> /opt/llvm/5.0.1/bin/ld.lld: error: /opt/llvm/5.0.1/lib/libLTO.dylib:
> invalid data encoding
> clang-5.0: error: linker command failed with exit code 1 (use -v to see
> invocation)
>
> Looks like the flags passed to the linker are just wrong, but can't find
> any relevant...
2018 Jan 07
1
LLD (macOS) usage?
...n argument: -no_deduplicate
> /opt/llvm/5.0.1/bin/ld.lld: error: unknown argument: -dynamic
> /opt/llvm/5.0.1/bin/ld.lld: error: unknown argument: -arch
> /opt/llvm/5.0.1/bin/ld.lld: error: unknown emulation: acosx_version_min
> /opt/llvm/5.0.1/bin/ld.lld: error: unable to find library -lto_library
> /opt/llvm/5.0.1/bin/ld.lld: error: /opt/llvm/5.0.1/lib/libLTO.dylib: invalid data encoding
> clang-5.0: error: linker command failed with exit code 1 (use -v to see invocation)
>
> Looks like the flags passed to the linker are just wrong, but can't find any relevant documentation...
2020 May 07
2
Ld64.lld cannot find Foundation framework
...nnot find framework".
> However similar arguments using /usr/bin/ld instead of ld64.lld works fine.
>
> Here are the details:
>
> Here is the call using /usr/bin/ld:
>
> /usr/bin/ld HelloObjC.o -o HelloObjC -v -sdk_version 10.14.0 -macosx_version_min 10.14.0 -demangle -lto_library /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/libLTO.dylib -dynamic -arch x86_64 -framework Foundation -framework Cocoa -syslibroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk -lSystem /Applications/Xc...
2020 Jul 22
2
How to debug a missing symbol with ThinLTO?
This is usually a problem that is not using llvm-ar. I cannot reproduce this problem with either llvm 10.0 or TOT version. Which linker version are you using? You can also try pass "-Wl,-debug_snapshot" to the command where the error produces and then locate the "*.ld-snapshot" in /tmp directory and attach that as a reproducer.
Steven
> On Jul 22, 2020, at 8:41 AM, Teresa
2020 Nov 05
1
How to use mainline clang/llvm with CMake
...OSX10.15.sdk -Wl,-search_paths_first -Wl,-headerpad_max_install_names CMakeFiles/seq_vector.dir/seq_vector.cpp.o -o seq_vector /Users/user/workspace/github/clang_build/manual/llvm-project/_install/Toolchains/LLVM12.0.0git.xctoolchain/usr/lib
Verbose link command:
"/usr/bin/ld" -demangle -lto_library /Users/user/workspace/github/clang_build/manual/llvm-project/_install/Toolchains/LLVM12.0.0git.xctoolchain/usr/lib/libLTO.dylib -dynamic -arch x86_64 -platform_version macos 10.15.0 10.15.6 -syslibroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -o...
2019 Apr 08
2
LLVM 8 + Mavericks?
...ch_paths_first
ld: warning: ignoring unknown argument: -headerpad_max_install_names
ld: warning: -sdk_version is required when emitting min version load
command. Setting sdk version to match provided min version
Stack dump:
0. Program arguments: /usr/local/Cellar/llvm/8.0.0-bin/bin/ld -demangle
-lto_library /usr/local/Cellar/llvm/8.0.0-bin/lib/libLTO.dylib -dynamic
-arch x86_64 -macosx_version_min 10.9.0 -o Gearoids
-L/usr/local/Cellar/glfw3/3.2.1/lib -L/usr/local/lib/fmod
-search_paths_first -headerpad_max_install_names
CMakeFiles/Gearoids.dir/main.cpp.o
CMakeFiles/Gearoids.dir/GameState.cpp.o...