Created attachment 351128 [details] full build log Making all in libs CONF libz.a CONF libjpeg.a MAKE zlib.a CONF libfreetype.a MAKE libjpeg.a MAKE libfreetype.a CONF libpng.a MAKE libpng.a /usr/lib/klibc/lib/libc.so: In function `__x86.get_pc_thunk.cx': (.text+0x3230): multiple definition of `__x86.get_pc_thunk.cx' .libs/jdinput.o:jdinput.c:(.text.__x86.get_pc_thunk.cx[__x86.get_pc_thunk.cx]+0x0): first defined here /usr/lib/klibc/lib/libc.so: In function `__x86.get_pc_thunk.bx': (.text+0x85): multiple definition of `__x86.get_pc_thunk.bx' .libs/jcapimin.o:jcapimin.c:(.text.__x86.get_pc_thunk.bx[__x86.get_pc_thunk.bx]+0x0): first defined here /usr/bin/i686-pc-linux-gnu-ld: error in /usr/lib/klibc/lib/libc.so(.eh_frame); no .eh_frame_hdr table will be created. /usr/bin/i686-pc-linux-gnu-ld: warning: cannot find entry symbol main; defaulting to 0000000008048140 make[3]: *** [libjpeg.la] Error 1 make[2]: *** [libjpeg.a] Error 2 make[2]: *** Waiting for unfinished jobs.... make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2 [31;01m*[0m ERROR: media-gfx/splashutils-1.5.4.4-r2 failed (compile phase): [31;01m*[0m emake failed [31;01m*[0m [31;01m*[0m If you need support, post the output of `emerge --info '=media-gfx/splashutils-1.5.4.4-r2'`, [31;01m*[0m the complete build log and the output of `emerge -pqv '=media-gfx/splashutils-1.5.4.4-r2'`. [31;01m*[0m The complete build log is located at '/var/tmp/portage/media-gfx/splashutils-1.5.4.4-r2/temp/build.log'. [31;01m*[0m The ebuild environment file is located at '/var/tmp/portage/media-gfx/splashutils-1.5.4.4-r2/temp/environment'. [31;01m*[0m Working directory: '/var/tmp/portage/media-gfx/splashutils-1.5.4.4-r2/work/splashutils-1.5.4.4' [31;01m*[0m S: '/var/tmp/portage/media-gfx/splashutils-1.5.4.4-r2/work/splashutils-1.5.4.4'
Created attachment 351130 [details] emerge --info output
*** Bug 491512 has been marked as a duplicate of this bug. ***
While rebuilding klibc with -nopie toolchain suppress this problem, is it possible that tricks in #103437 do not work for some parts?
I try to disable PIE for klibc. CC'ing hardened team. Please check whether the patch is acceptable. Thank you.
Created attachment 365286 [details, diff] Patch to disable PIE for klibc
#486136 might be a duplicate of this.
*** Bug 486136 has been marked as a duplicate of this bug. ***
Sorry, patch doesn't work.
Please forgive me. I forget to use the patched one to test. I tested it again an it should work correctly. Wish anyone can check this problem.
*** Bug 495264 has been marked as a duplicate of this bug. ***
Please test klibc-2.0.3; I have improved the original nostdlib fix from bug #103437 to hopefully cover the newer klibc. The upstream build system does still explicitly use -fno-stack-protector on it's own, so YMMV.
(adding kernel-misc so we see updates re klibc)
Can't test right now because I can't update klibc because of this bug https://bugs.gentoo.org/show_bug.cgi?id=556142
Possible duplicate is https://bugs.gentoo.org/show_bug.cgi?id=581626 Sorry, looks like I forgot I had the similar problems 2 years ago.
Haha, now testing this depends on a new bug in klibc https://bugs.gentoo.org/show_bug.cgi?id=605180
*** Bug 581626 has been marked as a duplicate of this bug. ***