Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 97826 - ocaml does not compile
Summary: ocaml does not compile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High blocker (vote)
Assignee: Gentoo Team for the ML programming language family
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-03 08:33 UTC by Timo Nentwig
Modified: 2005-09-21 11:58 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 Timo Nentwig 2005-07-03 08:33:52 UTC
gcc -O -I../../byterun -fno-defer-pop -Wall -D_FILE_OFFSET_BITS=64 
-D_REENTRANT -O2 -march=pentium3 -pipe -fomit-frame-pointer -funroll-loops 
-mmmx -msse -msse2 -mfpmath=sse -fPIC -DBNG_ARCH_ia32 -DBNG_ASM_LEVEL=2   -c 
-o bng.o bng.c 
In file included from bng.c:20: 
bng_ia32.c: In function `bng_ia32_mult_sub_digit': 
bng_ia32.c:153: error: can't find a register in class `GENERAL_REGS' while 
reloading `asm' 
make[1]: *** [bng.o] Error 1 
make[1]: Leaving directory 
`/var/tmp/portage/ocaml-3.08.1/work/ocaml-3.08.1/otherlibs/num' 
make: *** [otherlibraries] Error 2 
 
!!! ERROR: dev-lang/ocaml-3.08.1 failed. 
!!! Function src_compile, Line 51, Exitcode 2 
!!! (no error message) 
!!! If you need support, post the topmost build error, NOT this status 
message. 
 
Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.3.5-20050130, 
glibc-2.3.4.20041102-r1, 2.6.11-gentoo-r11 i686) 
================================================================= 
System uname: 2.6.11-gentoo-r11 i686 Intel(R) Pentium(R) M processor 1.60GHz 
Gentoo Base System version 1.6.12 
Python:              dev-lang/python-2.3.5 [2.3.5 (#1, Apr 30 2005, 16:24:40)] 
dev-lang/python:     2.3.5 
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.5 
sys-devel/binutils:  2.15.92.0.2-r10 
sys-devel/libtool:   1.5.16 
virtual/os-headers:  2.6.8.1-r4 
ACCEPT_KEYWORDS="x86" 
AUTOCLEAN="yes" 
CFLAGS="-O2 -march=pentium3 -pipe -fomit-frame-pointer -funroll-loops -mmmx 
-msse -msse2 -mfpmath=sse" 
CHOST="i686-pc-linux-gnu" 
CONFIG_PROTECT="/usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/lib/X11/xkb /usr/share/config" 
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" 
CXXFLAGS="-O2 -march=pentium3 -pipe -fomit-frame-pointer -funroll-loops -mmmx 
-msse -msse2 -mfpmath=sse" 
DISTDIR="/usr/portage/distfiles" 
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms strict" 
GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo" 
MAKEOPTS="-j2" 
PKGDIR="/usr/portage/packages" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR="/usr/portage" 
PORTDIR_OVERLAY="/usr/local/portage" 
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage" 
USE="x86 X aac acpi alsa apm arts avi berkdb bitmap-fonts cdr crypt cups curl 
dvd emboss encode esd fam foomaticdb fortran gdbm gif gpm gtk gtk2 icc icc-pgo 
ieee1394 imagemagick imlib ipv6 java jpeg kde libg++ libwww mad mikmod mmx 
motif mp3 mpeg ncurses nls nptl nptlonly ogg oggvorbis opengl oss pam pdflib 
perl png python qt quicktime readline samba sdl spell sse ssl svga tcltk tcpd 
threads tiff truetype truetype-fonts type1-fonts unicode vorbis wifi xine xml2 
xmms xv zlib userland_GNU kernel_linux elibc_glibc" 
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS 

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2005-07-03 08:56:30 UTC
This one is really picky about C[XX]FLAGS. Please try with much simpler ones
(definitely remove "-funroll-loops -mmmx -msse -msse2 -mfpmath=sse"). I'd
suggest something really simple, like "-O2 -march=pentium3"
Comment 2 Harald van Dijk (RETIRED) gentoo-dev 2005-07-03 12:32:06 UTC
Might Fedora's ocaml gcc4 patch (
http://cvs.fedora.redhat.com/viewcvs/*checkout*/devel/ocaml/ocaml-num-gcc4.patch?root=extras
) fix this?
Comment 3 spiralvoice 2005-08-26 16:26:05 UTC
(In reply to comment #2)
> Might Fedora's ocaml gcc4 patch (
>
http://cvs.fedora.redhat.com/viewcvs/*checkout*/devel/ocaml/ocaml-num-gcc4.patch?root=extras
> ) fix this?

Yes, it does. This bug is also fixed in Ocaml 3.08.4
Comment 4 Matthieu Sozeau (RETIRED) gentoo-dev 2005-09-21 11:53:24 UTC
I'll add the patch to the 08.3 ebuild, 08.4 is coming this night. 
Comment 5 Matthieu Sozeau (RETIRED) gentoo-dev 2005-09-21 11:58:56 UTC
I messed up, the patch is already in 08.3 since 25/07(see #97186), and 08.4 is  
coming soon.