Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 43314 - app-emulation/dosemu 1.2.0 hdinfo.c: In function `libless_llseek hdinfo.c:48: error: can't find a register in class `BREG' while reloading `asm'
Summary: app-emulation/dosemu 1.2.0 hdinfo.c: In function `libless_llseek hdinfo.c:48:...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Hanno Böck
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-29 13:41 UTC by Hans-Christian Armingeon
Modified: 2005-02-16 11:54 UTC (History)
0 users

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 Hans-Christian Armingeon 2004-02-29 13:41:21 UTC
gcc -c -I/usr/X11R6/include -MP -MMD -I../../../src/include -I../../../src/plugin/include  -Wall -Wstrict-prototypes -Wmissing-declarations -Wnested-externs -O2 -fomit-frame-pointer -fno-strict-aliasing -mcpu=i686 -pipe  -o miscemu.o miscemu.c
hdinfo.c: In function `libless_llseek':
hdinfo.c:48: error: can't find a register in class `BREG' while reloading `asm'
gcc -Wall -pipe -O -g -I/usr/X11R6/include -MP -MMD -I../../../../../../src/include -I../../../../../../src/plugin/include   -c -o events.o events.c
make[2]: *** [hdinfo] Error 1
make[2]: Leaving directory `/var/tmp/portage/dosemu-1.2.0/work/dosemu-1.2.0/src/tools/periph'
make[1]: *** [tools/periph] Error 2
make[1]: *** Waiting for unfinished jobs....

[...]

rm -f ../../../src/lib/libenv_video.a
ar cr ../../../src/lib/libenv_video.a miscemu.o video.o vc.o vga.o et4000.o s3.o trident.o avance.o ati.o cirrus.o matrox.o wdvga.o sis.o console.o X.o vgaemu.o vesa.o screen.o dacemu.o attremu.o seqemu.o crtcemu.o gfxemu.o hercemu.o instremu.o remap.o vgafonts.o hgc.o dualmon.o remap_asm.o vesabios_pm.o vesabios.o
ranlib ../../../src/lib/libenv_video.a
make[2]: Leaving directory `/var/tmp/portage/dosemu-1.2.0/work/dosemu-1.2.0/src/env/video'
make[1]: Leaving directory `/var/tmp/portage/dosemu-1.2.0/work/dosemu-1.2.0/src'
make: *** [default] Error 2

!!! ERROR: app-emulation/dosemu-1.2.0 failed.
!!! Function src_compile, Line 42, Exitcode 2
!!! (no error message)

-j1 -distcc and so on didn't fix the problem.

Hanno meant at 0a000h, that this bug is upstream.

Johnny

Reproducible: Always
Steps to Reproduce:
1. emerge -u dosemu
2.
3.


Expected Results:  
 

Portage 2.0.50-r1 (default-x86-1.4, gcc-3.3.3, glibc-2.3.3_pre20040207-r0, 
2.6.3-gentoo-r2) 
================================================================= 
System uname: 2.6.3-gentoo-r2 i686 mobile AMD Athlon(tm) XP 2500+ 
Gentoo Base System version 1.4.3.13p1 
distcc 2.12.1 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) 
[disabled] 
ccache version 2.3 [enabled] 
Autoconf: sys-devel/autoconf-2.59-r3 
Automake: sys-devel/automake-1.8.2 
ACCEPT_KEYWORDS="x86 ~x86" 
AUTOCLEAN="yes" 
CFLAGS="-O3 -march=athlon-xp -funroll-loops -pipe" 
CHOST="i686-pc-linux-gnu" 
COMPILER="gcc3" 
CONFIG_PROTECT="/etc /lib/modules /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/alias /var/qmail/control" 
CONFIG_PROTECT_MASK="/etc/afs/C /etc/afs/afsws /etc/gconf /etc/env.d" 
CXXFLAGS="-O3 -march=athlon-xp -funroll-loops -pipe" 
DISTDIR="/usr/portage/distfiles" 
FEATURES="autoaddcvs ccache sandbox" 
GENTOO_MIRRORS="http://192.168.0.64/ 
ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo 
http://www.ibiblio.org/pub/Linux/distributions/gentoo 
http://gentoo.oregonstate.edu" 
MAKEOPTS="-j4" 
PKGDIR="/usr/portage/packages" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR="/usr/portage" 
PORTDIR_OVERLAY="/usr/local/portage" 
SYNC="rsync://rsync.gentoo.org/gentoo-portage" 
USE="X Xaw3d aalib acl acpi afs alsa apache2 apm arts avi berkdb bonobo cdr 
crypt cscope cups curl dga directfb doc dvd emacs encode esd ethereal evo 
fbcon firebird flash foomaticdb freetds gb gd gdbm ggi gif gnome gphoto2 gpm 
gps gstreamer gtk gtk2 gtkhtml guile imap imlib informix innodb ipv6 jack java 
jikes joystick jpeg kde kerberos krb4 ladcca lcm ldap leim libg++ libgda 
libwww lirc mad maildir mbox mcal memlimit mikmod mmx motif mozilla mpeg mpi 
mule mysql nas ncurses nhc98 nls oci8 odbc oggvorbis opengl oss pam pcmcia pda 
pdflib perl plotutils png pnp postgres ppds prelude python qt quicktime 
readline ruby ruby18 samba sasl scanner sdl slang slp snmp socks5 spell ssl 
svga tcltk tcpd tetex tiff truetype usb wmf wxwindows x86 xface xinerama xml2 
xmms xosd xv zeo zlib"
Comment 1 Mr. Bones. (RETIRED) gentoo-dev 2004-02-29 20:59:22 UTC
games doesn't maintain dosemu.
Comment 2 Hinrik Örn Sigurðsson 2004-03-05 03:36:50 UTC
Does anybody have a fix for this? I really want dosemu. :/
Comment 3 Hanno Böck gentoo-dev 2004-03-09 09:16:46 UTC
Can you please try dosemu-1.2.1? I've just commited that to the tree.
Comment 4 Hinrik Örn Sigurðsson 2004-03-14 10:32:56 UTC
Same error. :I
Comment 5 Hinrik Örn Sigurðsson 2004-04-09 10:46:28 UTC
I just reinstalled and I didn't encounter this error. The only difference I can think of is that I'm now using the default-x86-2004.0 profile instead of hardened-x86-2004.
Comment 6 Simon Arlott 2004-09-21 04:39:44 UTC
I get this problem too with:
CFLAGS="-march=athlon -O2 -pipe -fPIC -mmmx -msse -m3dnow -mfpmath=sse,387"

Removing -fPIC fixed it for me:
CFLAGS="-march=athlon -O2 -pipe -mmmx -msse -m3dnow -mfpmath=sse,387"
Comment 7 Hans-Christian Armingeon 2004-11-26 00:45:09 UTC
Hanno, ich amch den Sack mal zu
Comment 8 Jerzy Kozera 2005-02-16 11:54:09 UTC
dosemu ebuild should have -fno-pic flag enabled in hardened profile. It still can't emerge dosemu without it, I had to modify ebuild.

--- dosemu-1.2.2-r1.ebuild      2005-02-16 19:17:06.000000000 +0000
+++ dosemu-1.2.2-r1.ebuild      2005-02-16 19:19:15.000000000 +0000
@@ -37,6 +37,7 @@

        # Has problems with -O3 on some systems
        replace-flags -O[3-9] -O2
+       append-flags -fno-pic

        econf ${myflags} || die "DOSemu Base Configuration Failed"

Now I can use dosemu without problems. I guess there should be some hardened/pie detection code added to make it work on all configurations.