Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 40948 - emerge mtools does not compile
Summary: emerge mtools does not compile
Status: RESOLVED DUPLICATE of bug 40947
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High critical (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-09 01:10 UTC by davaeron
Modified: 2005-07-17 13:06 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 davaeron 2004-02-09 01:10:14 UTC
codepage.c: In function `to_dos':
codepage.c:209: internal error: Floating point exception
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugs.gentoo.org/> for instructions.
make: *** [codepage.o] ?????? 1

!!! ERROR: sys-fs/mtools-3.9.8-r1 failed.
!!! Function src_compile, Line 17, Exitcode 2
!!! (no error message)

Reproducible: Always
Steps to Reproduce:
emerge mtools
Actual Results:  
blah... blah...blah... 
gcc  -DHAVE_CONFIG_H -DSYSCONFDIR=\"/etc/mtools\" -DCPU_i486 -DVENDOR_pc 
-DOS_linux_gnu  -O3 -march=pentium4 -fprefetch-loop-arrays -funroll-loops 
-pipe -m486 -Wall -I.  -I.   -c buffer.c 
`-m486' is deprecated. Use `-march=i486' or `-mcpu=i486' instead. 
gcc  -DHAVE_CONFIG_H -DSYSCONFDIR=\"/etc/mtools\" -DCPU_i486 -DVENDOR_pc 
-DOS_linux_gnu  -O3 -march=pentium4 -fprefetch-loop-arrays -funroll-loops 
-pipe -m486 -Wall -I.  -I.   -c codepage.c 
`-m486' is deprecated. Use `-march=i486' or `-mcpu=i486' instead. 
codepage.c: In function `to_dos': 
codepage.c:209: internal error: Floating point exception 
Please submit a full bug report, 
with preprocessed source if appropriate. 
See <URL:http://bugs.gentoo.org/> for instructions. 
make: *** [codepage.o] ?????? 1 
 
!!! ERROR: sys-fs/mtools-3.9.8-r1 failed. 
!!! Function src_compile, Line 17, Exitcode 2 
!!! (no error message) 
 

Expected Results:  
emerged mtools of course :) 

Portage 2.0.50 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r9, 2.6.1-gentoo) 
================================================================= 
System uname: 2.6.1-gentoo i686 Intel(R) Celeron(R) CPU 1.70GHz 
Gentoo Base System version 1.4.3.10 
Autoconf: sys-devel/autoconf-2.58 
Automake: sys-devel/automake-1.7.7 
ACCEPT_KEYWORDS="x86" 
AUTOCLEAN="yes" 
CFLAGS="-O3 -march=pentium4 -fprefetch-loop-arrays -funroll-loops -pipe" 
CHOST="i486-pc-linux-gnu" 
COMPILER="gcc3" 
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" 
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" 
CXXFLAGS="-O3 -march=pentium4 -fprefetch-loop-arrays -funroll-loops -pipe" 
DISTDIR="/usr/portage/distfiles" 
FEATURES="autoaddcvs ccache sandbox" 
GENTOO_MIRRORS="http://gentoo.oregonstate.edu 
http://distro.ibiblio.org/pub/Linux/distributions/gentoo" 
MAKEOPTS="-j2" 
PKGDIR="/usr/portage/packages" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR="/usr/portage" 
PORTDIR_OVERLAY="" 
SYNC="rsync://rsync.gentoo.org/gentoo-portage" 
USE="X alsa arts avi berkdb crypt cups encode foomaticdb gdbm gif gtk2 imlib 
java jpeg kde libg++ libwww linguas_ru mad mikmod motif mpeg ncurses nls 
oggvorbis opengl pam pdflib perl png python qt quicktime readline sdl slang 
spell ssl svga tcpd truetype x86 xml2 xv zlib"
Comment 1 Christoph Brill (egore) (RESIGNED) 2004-02-09 02:01:14 UTC
I think the combination of

CHOST="i486-pc-linux-gnu"

and

CXXFLAGS="-O3 -march=pentium4 -fprefetch-loop-arrays -funroll-loops -pipe" 

is wrong. You should set CHOST to "i686-pc-linux-gnu". But it might be that you have to recompile your whole system against this, because this settings are VERY sensitive!
Comment 2 SpanKY gentoo-dev 2004-02-09 08:48:57 UTC

*** This bug has been marked as a duplicate of 40947 ***