Status: Untriaged Owner: s...@chromium.org Labels: Type-Bug Pri-2 OS-Linux Area-DevTools Size-Medium Build
New issue 9639 by phajdan...@chromium.org: Can't build on Linux, something mangles linker flags http://code.google.com/p/chromium/issues/detail?id=9639 $ cd chromium-root/src/build $ ../../depot_tools/hammer --verbose ... snip ... flock /home/ph/chromium-git/src/sconsbuild/Debug/linker.lock g++ -o /home/ph/chromium-git/src/sconsbuild/Debug/obj/base/base_unittests -m32 -pthread "snipped .o files" -L/home/ph/chromium-git/src/sconsbuild/Debug/lib -Wl,--start-group -lrt -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lpangocairo-1.0 -lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 -l-Wl,-R/usr/lib/nss -l-Wl,-R/usr/lib/nspr -l-L/usr/lib/nss -l-L/usr/lib/nspr -lssl3 -lsmime3 -lnssutil3 -lnss3 -lplds4 -lplc4 -lnspr4 -lpthread -ldl -lbase -lbase_gfx -lskia -lgtest -licui18n -licuuc -licudata -levent -ljpeg -lpng -lz -Wl,--end-group /usr/lib/gcc/i686-pc-linux-gnu/4.2.4/../../../../i686-pc-linux-gnu/bin/ld: cannot find -l-Wl,-R/usr/lib/nss collect2: ld returned 1 exit status The problem is that something transforms -Wl,-R/usr/lib/nss to -l-Wl... which is obviously wrong. This is what pkg-config --libs nss returns on my system: -Wl,-R/usr/lib/nss -Wl,-R/usr/lib/nspr -L/usr/lib/nss -L/usr/lib/nspr -lssl3 -lsmime3 -lnssutil3 -lnss3 -lplds4 -lplc4 -lnspr4 -lpthread -ldl And pkg_config_wrapper.py --libs nss returns exactly same line. I use Gentoo Linux, and have nss-3.12.2 installed on my system, with headers etc. (Gentoo always installs headers and everything needed to compile packages based on a library from source; it does not have separate -dev packages). -- You received this message because you are listed in the owner or CC fields of this issue, or because you starred this issue. You may adjust your issue notification preferences at: http://code.google.com/hosting/settings --~--~---------~--~----~------------~-------~--~----~ Automated mail from issue updates at http://crbug.com/ Subscription options: http://groups.google.com/group/chromium-bugs -~----------~----~----~----~------~----~------~--~---