Status: Unconfirmed Owner: ---- Labels: OS-Linux Area-Misc Type-Bug New issue 24576 by lexpublic: Failed to compile with PIE: relocation R_X86_64_32S against `a local symbol' can not be used when making a shared object; recompile with -fPIC http://code.google.com/p/chromium/issues/detail?id=24576
Chrome Version : chromium-4.0.221.5_p27967 OS + version : linux 2.6.31-gentoo CPU architecture (32-bit / 64-bit): 64-bit What steps will reproduce the problem? 1. setup gcc-4.3.4 with pie-10.1.5 on hardened profile 2. emerge www-client/chromium 3. What happens instead? Compiling failed: /usr/lib/gcc/x86_64-pc-linux-gnu/4.3.4/../../../../x86_64-pc-linux-gnu/bin/ ld: out/Release/obj/sandbox/libsandbox.a(library.o): relocation R_X86_64_32S against `a local symbol' can not be used when making a shared object; recompile with - fPIC out/Release/obj/sandbox/libsandbox.a: could not read symbols: Bad value collect2: ld returned 1 exit status make: *** [out/Release/obj/chrome/chrome] Error 1 * * ERROR: www-client/chromium-4.0.221.5_p27967 failed. think ~ # gcc -v Reading specs from /usr/lib/gcc/x86_64-pc-linux-gnu/4.3.4/specs Target: x86_64-pc-linux-gnu Configured with: /var/tmp/portage/sys-devel/gcc-4.3.4/work/gcc-4.3.4/ configure --prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/4.3.4 -- includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.4/include --datadir=/usr/ share/gcc-data/x86_64-pc-linux-gnu/4.3.4 --mandir=/usr/share/gcc-data/ x86_64-pc-linux-gnu/4.3.4/man --infodir=/usr/share/gcc-data/x86_64-pc- linux-gnu/4.3.4/info --with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux- gnu/4.3.4/include/g++-v4 --host=x86_64-pc-linux-gnu --build=x86_64-pc- linux-gnu --disable-altivec --disable-fixed-point --disable-nls --with- system-zlib --disable-checking --disable-werror --enable-secureplt -- enable-multilib --enable-libmudflap --disable-libssp --disable-libgomp -- enable-cld --disable-libgcj --enable-languages=c,c++,treelang,fortran -- enable-shared --enable-threads=posix --enable-__cxa_atexit --enable- clocale=gnu --with-bugurl=http://bugs.gentoo.org/ --with- pkgversion='Gentoo 4.3.4 p1.0, pie-10.1.5' Thread model: posix gcc version 4.3.4 (Gentoo 4.3.4 p1.0, pie-10.1.5) If I am changing gcc to -hardenednopie compiling is successful -- 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 -~----------~----~----~----~------~----~------~--~---
