lilidan / gyp

Automatically exported from code.google.com/p/gyp
0 stars 0 forks source link

ld.gold is passed "-plugin" option instead of "--plugin" #427

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. cd trunk/
2. GYP_GENERATORS=make gclient runhooks
3. make all

(This problem ooccurs if we use ninja to compile, the error then apepars after 
'ninja -C out/Debug' (or Release))

What is the expected output? What do you see instead?
Output is :

LINK(target) out/Debug/common_audio_unittests /home/nschoe/workspace/webrtc/test/trunk/third_party/binutils/Linux_x64/Release/ bin/ld.gold: -plugin: unknown option /home/nschoe/workspace/webrtc/test/trunk/third_party/binutils/Linux_x64/Release/ bin/ld.gold: use the --help option for usage information collect2: error: ld returned 1 exit status webrtc/common_audio/common_audio_unittests.target.mk:310: recipe for target 'out/Debug/common_audio_unittests' failed make: *\ [out/Debug/common_audio_unittests] Error 1


What version of the product are you using? On what operating system?
I am running Archlinux 64-bit.

Please provide any additional information below.
By searching the ld.gold man page, I found that "--plugin" should be used, not 
"-plugin".
I haven't been able to determine where in the build process the "-plugin" 
options was passed.

Original issue reported on code.google.com by nico...@smartmeup.org on 20 May 2014 at 10:17

GoogleCodeExporter commented 9 years ago
Upon inquisition, it appears that the problem does not come from the fact that 
"--plugin" should be used in place of "-plugin" but rather than 
"trunk/third_party/binutils/Linux_x64/Release/bin/ld.gold" has **not** been 
compiled with "--enable-plugin" option.

I don't know if this is an error in the build process or something else, but I 
recompiled binutils with "--enable-plugin" option and the compilation went 
forward.

Original comment by nico...@smartmeup.org on 21 May 2014 at 6:53