llvm-toolchain-3.3-8: unrecognized option '-fuse-ld=gold'
leo+debian at cavaille.net
Sat Aug 24 22:22:16 UTC 2013
On 08/24/2013 02:56 PM, David Smith wrote:
> I was trying to backport the llvm-toolchain-3.3-3.3-8 package to Debian
> Wheezy for my own personal reasons (Required to backport Mesa 9.2
> binaries to Wheezy which is all I care to have in the end), and it
> throws out:
> x86_64-linux-gnu-g++: error: unrecognized command line option
> '-fuse-ld=gold' and stops compiling there.
> I have all the build deps met for the llvm-toolchain-3.3-3.3-8 package
> in my build environment.
Thanks for pointing that out.
This is because llvm-toolchain-3.3_3.3-8 build dependencies are wrong :
adding -fuse-ld option in the debian/rules was necessary due to the
fusion of binutils-gold into binutils in the latest sid version.
To select the gold linker with this new version of ld you have to use
the -fuse-ld option.
I will commit the new dependency soon, removing this inconsistency :
binutils >= 220.127.116.1130727-1
> I removed the -fuse-ld=gold option from debian/rules and it compiles >
for Wheezy without any problem.
Your backport is working removing the -fuse-ld option because you must
have the binutils-gold (<18.104.22.16830727-1) package installed (now
merged into binutils).
More information about the Pkg-llvm-team