emerge vsftpd with gcc-hardened ends up with error: sysdeputil.c: In function `capset': sysdeputil.c:161: error: can't find a register in class `BREG' while reloading `asm' make: *** [sysdeputil.o] Error 1 I checked vsftpd-1.2.2 and 2.0.1. After adding -fno-pie to CFLAGS it compiles faultless Reproducible: Always Steps to Reproduce: 1.emerge vsftpd 2. 3. Actual Results: (..Calculating dependencies ...done! >>> emerge (1 of 1) net-ftp/vsftpd-2.0.1 to / >>> md5 src_uri ;-) vsftpd-2.0.1.tar.gz >>> Unpacking source... >>> Unpacking vsftpd-2.0.1.tar.gz to /var/tmp/portage/vsftpd-2.0.1/work * Applying vsftpd-2.0.1-gentoo.diff ... [ ok ] >>> Source unpacked (...) gcc -c sysdeputil.c -O2 -march=pentium3 -fomit-frame-pointer -idirafter dummyinc sysdeputil.c: In function `capset': sysdeputil.c:161: error: can't find a register in class `BREG' while reloading `asm' make: *** [sysdeputil.o] Error 1 Expected Results: correct emerge emerge info: Gentoo Base System version 1.4.16 Portage 2.0.51-r15 (hardened/x86, gcc-3.3.5, glibc-2.3.4.20040808-r1, 2.6.10-grsec i686) ================================================================= System uname: 2.6.10-grsec i686 Pentium III (Coppermine) Python: dev-lang/python-2.3.4-r1 [2.3.4 (#1, Feb 11 2005, 12:07:53)] dev-lang/python: 2.3.4-r1 sys-devel/autoconf: 2.59-r6, 2.13 sys-devel/automake: 1.5, 1.8.5-r3, 1.6.3, 1.7.9-r1, 1.4_p6, 1.9.4 sys-devel/binutils: 2.15.92.0.2-r1 sys-devel/libtool: 1.5.10-r4 virtual/os-headers: 2.4.21-r1 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O2 -march=pentium3 -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -march=pentium3 -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks sandbox" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo" LANG="en_US" MAKEOPTS="-j2" PKGDIR="/usr/portage//packages/x86/" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage/" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X aalib acpi adns alsa apache2 apm avi berkdb bitmap-fonts crypt cups dhcp directfb divx4linux dlloader dvd dvdread esd fbcon ftp ggi gif gpm gtk gtk2 hardened ipv6 jpeg libwww mad mmx mpeg mysql ncurses nls oggvorbis opengl oss pam pdflib perl pic pie png python quicktime readline samba slang snmp spell sse ssl svga tcpd threads tiff truetype truetype-fonts type1-fonts x86 xinerama xml2 xmms xv xvid zlib" Unset: ASFLAGS, CBUILD, CTARGET, LC_ALL, LDFLAGS, PORTDIR_OVERLAY gcc -v: Reading specs from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5/specs Configured with: /var/tmp/portage/gcc-3.3.5-r1/work/gcc-3.3.5/configure --enable-version-specific-runtime-libs --prefix=/usr --bindir=/usr/i686-pc-linux-gnu/gcc-bin/3.3.5 --includedir=/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5/include --datadir=/usr/share/gcc-data/i686-pc-linux-gnu/3.3.5 --mandir=/usr/share/gcc-data/i686-pc-linux-gnu/3.3.5/man --infodir=/usr/share/gcc-data/i686-pc-linux-gnu/3.3.5/info --with-gxx-include-dir=/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5/include/g++-v3 --host=i686-pc-linux-gnu --disable-altivec --enable-nls --without-included-gettext --enable-__cxa_atexit --enable-clocale=gnu --with-system-zlib --disable-checking --disable-werror --disable-libunwind-exceptions --enable-shared --enable-threads=posix --disable-multilib --disable-libgcj --enable-languages=c,c++ Thread model: posix gcc version 3.3.5 (Gentoo Hardened Linux 3.3.5-r1, ssp-3.3.2-3, pie-8.7.7.1)
Hi Shuu, Please update to sys-kernel/linux-headers-2.4.22-r1 then remerge >=net-ftp/vsftpd-2.0.1 and this error should go away.
ok, updating to sys-kernel/linux-headers-2.4.22-r1 helped, and the problem is resolved thanks!