Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 83045 - vsftpd compile fails: "can't find a register in class `BREG' while reloading `asm'"
Summary: vsftpd compile fails: "can't find a register in class `BREG' while reloading ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: x86 Linux
: High blocker (vote)
Assignee: Roy Marples (RETIRED)
URL:
Whiteboard:
Keywords:
: 90437 101334 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-02-23 02:13 UTC by Ben XO
Modified: 2005-08-04 07:57 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ben XO 2005-02-23 02:13:21 UTC
>>> emerge (1 of 1) net-ftp/vsftpd-1.2.2 to /
>>> md5 src_uri ;-) vsftpd-1.2.2.tar.gz
>>> Unpacking source...
>>> Unpacking vsftpd-1.2.2.tar.gz to /var/tmp/portage/vsftpd-1.2.2/work
 * Applying vsftpd-1.2.1-gentoo.diff.bz2 ...                                                                                  [ ok ]
>>> Source unpacked.
gcc -c main.c -O3 -march=pentium4 -fomit-frame-pointer -ffast-math -pipe -DUSE_PAM -idirafter dummyinc
gcc -c utility.c -O3 -march=pentium4 -fomit-frame-pointer -ffast-math -pipe -DUSE_PAM -idirafter dummyinc
gcc -c prelogin.c -O3 -march=pentium4 -fomit-frame-pointer -ffast-math -pipe -DUSE_PAM -idirafter dummyinc
gcc -c ftpcmdio.c -O3 -march=pentium4 -fomit-frame-pointer -ffast-math -pipe -DUSE_PAM -idirafter dummyinc
gcc -c postlogin.c -O3 -march=pentium4 -fomit-frame-pointer -ffast-math -pipe -DUSE_PAM -idirafter dummyinc
gcc -c privsock.c -O3 -march=pentium4 -fomit-frame-pointer -ffast-math -pipe -DUSE_PAM -idirafter dummyinc
gcc -c tunables.c -O3 -march=pentium4 -fomit-frame-pointer -ffast-math -pipe -DUSE_PAM -idirafter dummyinc
gcc -c ftpdataio.c -O3 -march=pentium4 -fomit-frame-pointer -ffast-math -pipe -DUSE_PAM -idirafter dummyinc
gcc -c secbuf.c -O3 -march=pentium4 -fomit-frame-pointer -ffast-math -pipe -DUSE_PAM -idirafter dummyinc
gcc -c ls.c -O3 -march=pentium4 -fomit-frame-pointer -ffast-math -pipe -DUSE_PAM -idirafter dummyinc
gcc -c postprivparent.c -O3 -march=pentium4 -fomit-frame-pointer -ffast-math -pipe -DUSE_PAM -idirafter dummyinc
gcc -c logging.c -O3 -march=pentium4 -fomit-frame-pointer -ffast-math -pipe -DUSE_PAM -idirafter dummyinc
gcc -c str.c -O3 -march=pentium4 -fomit-frame-pointer -ffast-math -pipe -DUSE_PAM -idirafter dummyinc
gcc -c netstr.c -O3 -march=pentium4 -fomit-frame-pointer -ffast-math -pipe -DUSE_PAM -idirafter dummyinc
gcc -c sysstr.c -O3 -march=pentium4 -fomit-frame-pointer -ffast-math -pipe -DUSE_PAM -idirafter dummyinc
gcc -c strlist.c -O3 -march=pentium4 -fomit-frame-pointer -ffast-math -pipe -DUSE_PAM -idirafter dummyinc
gcc -c banner.c -O3 -march=pentium4 -fomit-frame-pointer -ffast-math -pipe -DUSE_PAM -idirafter dummyinc
gcc -c filestr.c -O3 -march=pentium4 -fomit-frame-pointer -ffast-math -pipe -DUSE_PAM -idirafter dummyinc
gcc -c parseconf.c -O3 -march=pentium4 -fomit-frame-pointer -ffast-math -pipe -DUSE_PAM -idirafter dummyinc
gcc -c secutil.c -O3 -march=pentium4 -fomit-frame-pointer -ffast-math -pipe -DUSE_PAM -idirafter dummyinc
gcc -c ascii.c -O3 -march=pentium4 -fomit-frame-pointer -ffast-math -pipe -DUSE_PAM -idirafter dummyinc
gcc -c oneprocess.c -O3 -march=pentium4 -fomit-frame-pointer -ffast-math -pipe -DUSE_PAM -idirafter dummyinc
gcc -c twoprocess.c -O3 -march=pentium4 -fomit-frame-pointer -ffast-math -pipe -DUSE_PAM -idirafter dummyinc
gcc -c privops.c -O3 -march=pentium4 -fomit-frame-pointer -ffast-math -pipe -DUSE_PAM -idirafter dummyinc
gcc -c standalone.c -O3 -march=pentium4 -fomit-frame-pointer -ffast-math -pipe -DUSE_PAM -idirafter dummyinc
gcc -c hash.c -O3 -march=pentium4 -fomit-frame-pointer -ffast-math -pipe -DUSE_PAM -idirafter dummyinc
gcc -c tcpwrap.c -O3 -march=pentium4 -fomit-frame-pointer -ffast-math -pipe -DUSE_PAM -idirafter dummyinc
gcc -c ipv6parse.c -O3 -march=pentium4 -fomit-frame-pointer -ffast-math -pipe -DUSE_PAM -idirafter dummyinc
gcc -c access.c -O3 -march=pentium4 -fomit-frame-pointer -ffast-math -pipe -DUSE_PAM -idirafter dummyinc
gcc -c sysutil.c -O3 -march=pentium4 -fomit-frame-pointer -ffast-math -pipe -DUSE_PAM -idirafter dummyinc
gcc -c sysdeputil.c -O3 -march=pentium4 -fomit-frame-pointer -ffast-math -pipe -DUSE_PAM -idirafter dummyinc
sysdeputil.c: In function `vsf_sysdep_adopt_capabilities':
sysdeputil.c:160: error: can't find a register in class `BREG' while reloading `asm'
make: *** [sysdeputil.o] Error 1

!!! ERROR: net-ftp/vsftpd-1.2.2 failed.
!!! Function src_compile, Line 31, Exitcode 2
!!! (no error message)
!!! If you need support, post the topmost build error, NOT this status message.

Reproducible: Always
Steps to Reproduce:
1.
2.
3.



Expected Results:  
compiled cleanly.

thunder root # emerge info
Portage 2.0.51-r15 (default-linux/x86/2004.3, gcc-3.3.5,
glibc-2.3.4.20040808-r1, 2.6.10-hardened-r3 i686)
=================================================================
System uname: 2.6.10-hardened-r3 i686 Intel(R) Xeon(TM) CPU 3.00GHz
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.3.4-r1 [2.3.4 (#1, Feb 11 2005, 01:39:49)]
distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
dev-lang/python:     2.3.4-r1
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.4
sys-devel/binutils:  2.15.92.0.2-r1
sys-devel/libtool:   1.5.10-r4
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=pentium4 -fomit-frame-pointer -ffast-math -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/share/config /var/bind /var/qmail/alias /var/qmail/control
/var/vpopmail/domains /var/vpopmail/etc"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=pentium4 -fomit-frame-pointer -ffast-math -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="http://194.117.143.69 ftp://194.117.143.69/mirrors/gentoo
http://194.117.143.71 ftp://194.117.143.72/mirrors/gentoo"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X509 acl apache2 berkdb chroot crypt curl erandom fam flash gd gdbm
gnutls hardened hardenedphp imap innodb ithreads java jpeg lm_sensors maildir
mcal mysql ncurses nls nptl pam pcre pdflib perl pic pie png python qmail
readline rrdtool sasl sftplogging snmp spamassassin spell ssl threads tiff
truetype unicode vhosts xml2 zlib"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, PORTDIR_OVERLAY
Comment 1 Mark Loeser (RETIRED) gentoo-dev 2005-02-23 10:45:54 UTC
I see you are running with the hardened use flag, so I'm going to assume you are using a hardened gcc.  That seems to be the problem.  I can get it to compile with the normal gcc config, but not with hardened, even after stripping all CFLAGS.
Comment 2 Ben XO 2005-02-23 12:36:20 UTC
that's correct, i'm running hardened. Seems ironic that "very secure ftpd" doesn't compile on what would hopefully be a very secure system.

Googling and forum searching led me to similar scenarios from other packages, particularly "callgrind"

***

just tried it again, and this time it worked. I have emerge sync'd since, so it could be simply that it was fixed, or ... the phase of the moon, or ...  :( 

It *was* reproducible twice in a row earlier on, and now it's not, so i've changed this bug to "NEEDINFO", although someone who's more suited to these things could always switch it to whatever it should be in these circumstances
Comment 3 BigBug 2005-04-18 14:02:13 UTC
Same there, bug exists, it's PIC/non-pic code problems ;(
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2005-04-25 15:16:13 UTC
*** Bug 90437 has been marked as a duplicate of this bug. ***
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2005-04-25 15:19:41 UTC
Anything we can do about this? Reopening b/c of another identical bug reported. 
Comment 6 Laurento Frittella (mrfree) 2005-04-26 00:58:15 UTC
vsftpd-2.0.2 has the same problem :(

PS: sorry for the duplicate bug
Comment 7 SpanKY gentoo-dev 2005-04-26 16:28:57 UTC
it's a bug in the source code, not the toolchain

linux-headers-2.6.11 may solve this, but i havent looked at the source code so i cant say for sure
Comment 8 Micheal Marineau (RETIRED) gentoo-dev 2005-05-19 10:46:36 UTC
linux-headers-2.6.11 fixed the problem for me
Comment 9 Paul Smith 2005-05-27 14:55:04 UTC
I'm seeing this exact error, when trying to build
media-video/ffmpeg-0.4.9_p20050226-r5.  I don't have a hardened system.

i686-pc-linux-gnu-gcc -Wall -Wno-switch -g -pipe -fomit-frame-pointer 
-DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE
-c -o i386/vp3dsp_sse2.o i386/vp3dsp_sse2.c 
i386/dsputil_mmx.c: In function `dsputil_init_mmx':
i386/dsputil_mmx.c:3076: warning: assignment from incompatible pointer type
i386/dsputil_mmx.c:3077: warning: assignment from incompatible pointer type
i386/dsputil_mmx.c: In function `transpose4x4':
i386/dsputil_mmx.c:615: error: can't find a register in class `GENERAL_REGS'
while reloading `asm'
i386/dsputil_mmx.c: At top level:
i386/dsputil_mmx_rnd.h:59: warning: `put_no_rnd_pixels8_l2_mmx' defined but not used
i386/dsputil_mmx_rnd.h:155: warning: `put_no_rnd_pixels16_l2_mmx' defined but
not used
i386/dsputil_mmx_rnd.h:300: warning: `avg_no_rnd_pixels4_mmx' defined but not used
i386/dsputil_mmx_rnd.h:59: warning: `put_pixels8_l2_mmx' defined but not used
i386/dsputil_mmx_rnd.h:155: warning: `put_pixels16_l2_mmx' defined but not used
make[1]: *** [i386/dsputil_mmx.o] Error 1
make[1]: Leaving directory
`/var/tmp/portage/ffmpeg-0.4.9_p20050226-r5/work/ffmpeg-0.4.9-p20050226-static/libavcodec'
make: *** [lib] Error 2


Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.3.5, glibc-2.3.4.20040808-r1,
2.6.11-gentoo-r6 i686)
=================================================================
System uname: 2.6.11-gentoo-r6 i686 Intel(R) Pentium(R) 4 CPU 2.40GHz
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.3.4-r1 [2.3.4 (#1, Mar 11 2005, 13:17:01)]
ccache version 2.3 [enabled]
dev-lang/python:     2.3.4-r1
sys-apps/sandbox:    [Not Present]
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.4
sys-devel/binutils:  2.15.92.0.2-r1
sys-devel/libtool:   1.5.10-r4
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-g -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/init.d /etc/terminfo /etc/env.d"
CXXFLAGS="-g -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.mirrors.pair.com/
ftp://ftp.ussg.iu.edu/pub/linux/gentoo"
LANG="C"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X X509 Xaw3d acpi acpi4linux alsa apm berkdb bitmap-fonts cdr crypt
cups curl dga dv eds emacs emboss encode esd evo faad fam fftw foomaticdb
fortran gd gdbm gif gimpprint gnome gpm gstreamer gtk gtk2 gtkhtml hal howl idea
imagemagick imap imlib ipv6 jabber java jpeg ldap libg++ libwww mad mikmod mmx
mozilla mp3 mpeg ncurses nls nptl nvidia ogg oggvorbis opengl oss pam pcmcia pda
pdflib perl png ppds python quicktime readline sdl spell sse ssl stencil-buffer
svga tcpd tiff transcode truetype truetype-fonts type1 type1-fonts usb vorbis
xml2 xmms xv zlib video_cards_radeon userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CBUILD, CTARGET, LC_ALL, LDFLAGS, LINGUAS
Comment 10 Jakub Moc (RETIRED) gentoo-dev 2005-05-28 00:41:29 UTC
(In reply to comment #9)
> I'm seeing this exact error, when trying to build
> media-video/ffmpeg-0.4.9_p20050226-r5.  I don't have a hardened system.

This is completely unrelated problem (Bug 86843) - keep on topic, please! 
Comment 11 Dariusz Dwornikowski 2005-06-08 01:28:27 UTC
sam problem on my machine runnning hardened with all versions of vsftpd on
2.6.11-hardened
fixed by emerging headers 2.6.11

Comment 12 Roy Marples (RETIRED) gentoo-dev 2005-07-06 03:31:52 UTC
sys-kernel/linux-headers-2.6.11-r2 is now stable
Comment 13 Jakub Moc (RETIRED) gentoo-dev 2005-08-04 07:57:33 UTC
*** Bug 101334 has been marked as a duplicate of this bug. ***