I had to disable hardened and move to the non-hardened profile. I will try to reharden later. Python ebuilds: I had to hardcode SLOT=0 on 2.5 and 2.6. After upgrading portage they recompiled cleanly; no need to rehardcode SLOT=0; /usr/i686-pc-linux-uclibc/sys-include/asm/posix_types_32.h:43: error: conflicting types for ‘__kernel_fsid_t’ /usr/i686-pc-linux-uclibc/sys-include/bits/kernel_types.h:46: error: previous declaration of ‘__kernel_fsid_t’ was here -- Resolved by upgrading to uClibc 0.9.30.1 In busybox I had to USE=savedconfig to comment out DATE and LOGIN to have the package compile. In gettext: Compilation problem http://bugs.gentoo.org/show_bug.cgi?id=323377 In procps: error: wrong number of arguments specified for `constructor' attribute http://bugs.gentoo.org/show_bug.cgi?id=353630 http://bugs.gentoo.org/show_bug.cgi?id=303120 http://bugs.gentoo.org/attachment.cgi?id=261747&action=diff&context=patch&collapsed=&headers=1&format=raw gcc: Compiling gcc dies with stack smashing attack error. I'm stuck with gcc 3.4 (for the moment). I will try with a quickpkg-generated gcc from the non-hardened stage3. If that fails too I will try to build a crosscompiled gcc. If that fails too I will ask for help. stage1/cc1: stack smashing attack in function ix86_split_to_parts() xgcc: Internal error: Aborted (program cc1) Please submit a full bug report. See for instructions. http://bugs.gentoo.org/show_bug.cgi?id=149292 http://bugs.gentoo.org/attachment.cgi?id=200602 In coreutils: ../lib/libcoreutils.a(close-stream.o): In function `close_stream': /usr/src/portage/sys-apps/coreutils-8.7/work/coreutils-8.7/lib/close-stream.c:58: warning: This version of __fpending returns bytes remaining in buffer for both narrow and wide streams. glibc's version returns wide chars in buffer for the wide stream case. sort.o: In function `lock_node': /usr/src/portage/sys-apps/coreutils-8.7/work/coreutils-8.7/src/sort.c:3159: undefined reference to `pthread_spin_lock' sort.o: In function `unlock_node': /usr/src/portage/sys-apps/coreutils-8.7/work/coreutils-8.7/src/sort.c:3167: undefined reference to `pthread_spin_unlock' sort.o: In function `sortlines': /usr/src/portage/sys-apps/coreutils-8.7/work/coreutils-8.7/src/sort.c:3446: undefined reference to `pthread_spin_init' /usr/src/portage/sys-apps/coreutils-8.7/work/coreutils-8.7/src/sort.c:3484: undefined reference to `pthread_spin_destroy' sort.o: In function `sort': /usr/src/portage/sys-apps/coreutils-8.7/work/coreutils-8.7/src/sort.c:3762: undefined reference to `pthread_spin_init' /usr/src/portage/sys-apps/coreutils-8.7/work/coreutils-8.7/src/sort.c:3770: undefined reference to `pthread_spin_destroy' collect2: ld returned 1 exit status http://bugs.gentoo.org/show_bug.cgi?id=343247 In file included from ../include/writeall.h:6, from swaplabel.c:34: /usr/include/errno.h:55: error: conflicting types for '__progname' ../include/c.h:118: error: previous declaration of '__progname' was here /usr/include/errno.h:55: error: conflicting types for '__progname' ../include/c.h:118: error: previous declaration of '__progname' was here gcc still does not compile. I will try to fix it in the week... masked packages: >=sys-devel/gcc-4.2 >=dev-lang/python-2.7 =sys-apps/util-linux-2.19.1 I could not make them compile