Open GoogleCodeExporter opened 9 years ago
forgot to mention I am on OS X 10.7 which uses new llvm-gcc by default.
Original comment by d...@dbsgeo.com
on 9 Nov 2011 at 8:16
I get the same build problem on ubuntu karmic:
dane@haiti:~/projects/hello-gyp$ ninja -v -C out/Default/ -f build.ninja
[1/4] g++ -MMD -MF obj/src/mylib.implementation.o.d -I../../include -c
../../src/implementation.cc -o obj/src/mylib.implementation.o
[2/4] rm -f obj/mylib.a && ar rcsT obj/mylib.a obj/src/mylib.implementation.o
[3/4] g++ -MMD -MF obj/bin/myapp.myapp.o.d -I../../include -c
../../bin/myapp.cc -o obj/bin/myapp.myapp.o
[4/4] g++ -Wl,--threads -Wl,--thread-count=4 -o myapp -Wl,-rpath=\$ORIGIN/lib
-Wl,--start-group obj/bin/myapp.myapp.o obj/mylib.a -Wl,--end-group -lz
FAILED: g++ -Wl,--threads -Wl,--thread-count=4 -o myapp
-Wl,-rpath=\$ORIGIN/lib -Wl,--start-group obj/bin/myapp.myapp.o obj/mylib.a
-Wl,--end-group -lz
/usr/bin/ld: unrecognized option '--threads'
/usr/bin/ld: use the --help option for usage information
collect2: ld returned 1 exit status
ninja: build stopped: subcommand failed.
Original comment by d...@dbsgeo.com
on 9 Nov 2011 at 8:21
gyp's ninja generator assumes gold. I'm working on changing that, for Mac at
least.
Original comment by jere...@chromium.org
on 29 Nov 2011 at 3:43
ahh, its a gold linker flag, gocha. Let me know if I can help with testing.
Original comment by d...@dbsgeo.com
on 29 Nov 2011 at 7:17
The issue may not be Mac-specific. I encountered this issue on a Ubuntu 12.04
LTS that was not used for Chromium development.
Original comment by rous...@chromium.org
on 12 May 2014 at 8:39
Original issue reported on code.google.com by
d...@dbsgeo.com
on 9 Nov 2011 at 8:15