when i try to emerge dev-lang/ocaml, version 3.10.2 or 3.11.1 it fails with this message: camlp4/Camlp4Parsers/Camlp4OCamlParserParser.cmo camlp4/Camlp4Parsers/Camlp4GrammarParser.cmo camlp4/Camlp4Parsers/Camlp4MacroParser.cmo camlp4/Camlp4Parsers/Camlp4ListComprehension.cmo camlp4/Camlp4Printers/Camlp4AutoPrinter.cmo camlp4/Camlp4Bin.cmo -o camlp4/camlp4of.byte Fatal error: exception Invalid_argument("output_value: abstract value (outside heap)") Exit code 2 while executing this command: ../ocamlcomp.sh -I ../otherlibs/dynlink dynlink.cma -I ../otherlibs/unix unix.cma -I stdlib camlp4/camlp4lib.cma -linkall camlp4/Camlp4Parsers/Camlp4OCamlRevisedParser.cmo camlp4/Camlp4Parsers/Camlp4QuotationCommon.cmo camlp4/Camlp4Parsers/Camlp4QuotationExpander.cmo camlp4/Camlp4Parsers/Camlp4OCamlParser.cmo camlp4/Camlp4Parsers/Camlp4OCamlRevisedParserParser.cmo camlp4/Camlp4Parsers/Camlp4OCamlParserParser.cmo camlp4/Camlp4Parsers/Camlp4GrammarParser.cmo camlp4/Camlp4Parsers/Camlp4MacroParser.cmo camlp4/Camlp4Parsers/Camlp4ListComprehension.cmo camlp4/Camlp4Printers/Camlp4AutoPrinter.cmo camlp4/Camlp4Bin.cmo -o camlp4/camlp4of.byte make[1]: *** [camlp4out] Error 2 make[1]: Leaving directory `/var/tmp/portage/dev-lang/ocaml-3.11.1/work/ocaml-3.11.1' make: *** [world] Error 2 * * ERROR: dev-lang/ocaml-3.11.1 failed. * Call stack: * ebuild.sh, line 49: Called src_compile * environment, line 2836: Called die * The specific snippet of code: * make world || die "make world failed!"; * The die message: * make world failed! * * If you need support, post the topmost build error, and the call stack if relevant. * A complete build log is located at '/var/tmp/portage/dev-lang/ocaml-3.11.1/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/dev-lang/ocaml-3.11.1/temp/environment'. * >>> Failed to emerge dev-lang/ocaml-3.11.1, Log file: i have tried to eliminate all use flags, but it seems the problem persist with all combinations.. ---------------------------------------- emerge info: roby-sheeva ~ # emerge --info Portage 2.1.6.13 (default/linux/arm/10.0/server, gcc-4.3.4, glibc-2.9_p20081201-r2, 2.6.32-rc7 armv5tel) ================================================================= System uname: Linux-2.6.32-rc7-armv5tel-Feroceon_88FR131_rev_1_-v5l-with-gentoo-1.12.13 Timestamp of tree: Sun, 29 Nov 2009 18:00:01 +0000 distcc 3.1 armv5tel-softfloat-linux-gnueabi [disabled] app-shells/bash: 4.0_p28 dev-lang/python: 2.6.2-r1 sys-apps/baselayout: 1.12.13 sys-apps/sandbox: 1.6-r2 sys-devel/autoconf: 2.63-r1 sys-devel/automake: 1.9.6-r2, 1.10.2 sys-devel/binutils: 2.18-r3 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.6a virtual/os-headers: 2.6.27-r2 ACCEPT_KEYWORDS="arm" CBUILD="armv5tel-softfloat-linux-gnueabi" CFLAGS="-Os -march=armv5te -pipe" CHOST="armv5tel-softfloat-linux-gnueabi" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-Os -march=armv5te -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LDFLAGS="-Wl,-O1" MAKEOPTS="-j4" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="acl alsa apache2 arm berkdb bzip2 cli cracklib crypt cups fortran gd gpm iconv ipv6 ldap modules mudflap mysql nls nptl nptlonly openmp pam pcre perl pppd python readline reflection session snmp spl ssl sysfs tcpd truetype unicode xml xorg zlib" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="fbdev glint mach64 mga nv r128 radeon savage sis tdfx trident vga voodoo" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY ------------------------------------- build log: [............] ../ocamlcomp.sh -c -g -w Ale -warn-error Ale -I ../otherlibs/unix -pp 'boot/ocamlrun camlp4/boot/camlp4boot.byte' -I camlp4/Camlp4Printers -I camlp4 -I stdlib -o camlp4/Camlp4Printers/Camlp4OCamlPrinter.cmo camlp4/Camlp4Printers/Camlp4OCamlPrinter.ml ../ocamlcomp.sh -c -g -w Ale -warn-error Ale -I ../otherlibs/unix -pp 'boot/ocamlrun camlp4/boot/camlp4boot.byte' -I camlp4/Camlp4Printers -I camlp4 -I stdlib -o camlp4/Camlp4Printers/Camlp4OCamlRevisedPrinter.cmo camlp4/Camlp4Printers/Camlp4OCamlRevisedPrinter.ml ../ocamlcomp.sh -c -g -w Ale -warn-error Ale -pp 'boot/ocamlrun camlp4/boot/camlp4boot.byte' -I camlp4/Camlp4Filters -I camlp4 -I stdlib -o camlp4/Camlp4Filters/Camlp4AstLifter.cmo camlp4/Camlp4Filters/Camlp4AstLifter.ml ../ocamlcomp.sh -c -g -w Ale -warn-error Ale -pp 'boot/ocamlrun camlp4/boot/camlp4boot.byte' -I camlp4/Camlp4Filters -I camlp4 -I stdlib -o camlp4/Camlp4Filters/Camlp4ExceptionTracer.cmo camlp4/Camlp4Filters/Camlp4ExceptionTracer.ml ../ocamlcomp.sh -c -g -w Ale -warn-error Ale -pp 'boot/ocamlrun camlp4/boot/camlp4boot.byte' -I camlp4/Camlp4Filters -I camlp4 -I stdlib -o camlp4/Camlp4Filters/Camlp4FoldGenerator.cmo camlp4/Camlp4Filters/Camlp4FoldGenerator.ml ../ocamlcomp.sh -c -g -w Ale -warn-error Ale -pp 'boot/ocamlrun camlp4/boot/camlp4boot.byte' -I camlp4/Camlp4Filters -I camlp4 -I stdlib -o camlp4/Camlp4Filters/Camlp4LocationStripper.cmo camlp4/Camlp4Filters/Camlp4LocationStripper.ml ../ocamlcomp.sh -c -g -w Ale -warn-error Ale -pp 'boot/ocamlrun camlp4/boot/camlp4boot.byte' -I camlp4/Camlp4Filters -I camlp4 -I stdlib -o camlp4/Camlp4Filters/Camlp4MapGenerator.cmo camlp4/Camlp4Filters/Camlp4MapGenerator.ml ../ocamlcomp.sh -c -g -w Ale -warn-error Ale -pp 'boot/ocamlrun camlp4/boot/camlp4boot.byte' -I camlp4/Camlp4Filters -I camlp4 -I stdlib -o camlp4/Camlp4Filters/Camlp4MetaGenerator.cmo camlp4/Camlp4Filters/Camlp4MetaGenerator.ml ../ocamlcomp.sh -c -g -w Ale -warn-error Ale -pp 'boot/ocamlrun camlp4/boot/camlp4boot.byte' -I camlp4/Camlp4Filters -I camlp4 -I stdlib -o camlp4/Camlp4Filters/Camlp4Profiler.cmo camlp4/Camlp4Filters/Camlp4Profiler.ml ../ocamlcomp.sh -c -g -w Ale -warn-error Ale -pp 'boot/ocamlrun camlp4/boot/camlp4boot.byte' -I camlp4/Camlp4Filters -I camlp4 -I stdlib -o camlp4/Camlp4Filters/Camlp4TrashRemover.cmo camlp4/Camlp4Filters/Camlp4TrashRemover.ml ../ocamlcomp.sh -a -I stdlib camlp4/Camlp4_import.cmo camlp4/Camlp4_config.cmo camlp4/Camlp4.cmo camlp4/Camlp4Parsers/Camlp4AstLoader.cmo camlp4/Camlp4Parsers/Camlp4DebugParser.cmo camlp4/Camlp4Parsers/Camlp4GrammarParser.cmo camlp4/Camlp4Parsers/Camlp4ListComprehension.cmo camlp4/Camlp4Parsers/Camlp4MacroParser.cmo camlp4/Camlp4Parsers/Camlp4OCamlParser.cmo camlp4/Camlp4Parsers/Camlp4OCamlRevisedParser.cmo camlp4/Camlp4Parsers/Camlp4QuotationCommon.cmo camlp4/Camlp4Parsers/Camlp4OCamlOriginalQuotationExpander.cmo camlp4/Camlp4Parsers/Camlp4OCamlRevisedParserParser.cmo camlp4/Camlp4Parsers/Camlp4OCamlParserParser.cmo camlp4/Camlp4Parsers/Camlp4OCamlRevisedQuotationExpander.cmo camlp4/Camlp4Parsers/Camlp4QuotationExpander.cmo camlp4/Camlp4Printers/Camlp4AstDumper.cmo camlp4/Camlp4Printers/Camlp4AutoPrinter.cmo camlp4/Camlp4Printers/Camlp4NullDumper.cmo camlp4/Camlp4Printers/Camlp4OCamlAstDumper.cmo camlp4/Camlp4Printers/Camlp4OCamlPrinter.cmo camlp4/Camlp4Printers/Camlp4OCamlRevisedPrinter.cmo camlp4/Camlp4Filters/Camlp4AstLifter.cmo camlp4/Camlp4Filters/Camlp4ExceptionTracer.cmo camlp4/Camlp4Filters/Camlp4FoldGenerator.cmo camlp4/Camlp4Filters/Camlp4LocationStripper.cmo camlp4/Camlp4Filters/Camlp4MapGenerator.cmo camlp4/Camlp4Filters/Camlp4MetaGenerator.cmo camlp4/Camlp4Filters/Camlp4Profiler.cmo camlp4/Camlp4Filters/Camlp4TrashRemover.cmo camlp4/Camlp4Top.cmo -o camlp4/camlp4fulllib.cma ../ocamlcomp.sh -I ../otherlibs/dynlink dynlink.cma -I stdlib camlp4/camlp4lib.cma -linkall camlp4/Camlp4Parsers/Camlp4OCamlRevisedParser.cmo camlp4/Camlp4Parsers/Camlp4QuotationCommon.cmo camlp4/Camlp4Parsers/Camlp4QuotationExpander.cmo camlp4/Camlp4Parsers/Camlp4OCamlRevisedParserParser.cmo camlp4/Camlp4Parsers/Camlp4GrammarParser.cmo camlp4/Camlp4Parsers/Camlp4MacroParser.cmo camlp4/Camlp4Parsers/Camlp4DebugParser.cmo camlp4/Camlp4Parsers/Camlp4ListComprehension.cmo camlp4/Camlp4Printers/Camlp4OCamlAstDumper.cmo camlp4/Camlp4Bin.cmo -o camlp4/camlp4boot.byte ../ocamlcomp.sh -a -I stdlib camlp4/camlp4lib.cma -linkall camlp4/Camlp4Parsers/Camlp4OCamlRevisedParser.cmo camlp4/Camlp4Parsers/Camlp4QuotationCommon.cmo camlp4/Camlp4Parsers/Camlp4QuotationExpander.cmo camlp4/Camlp4Parsers/Camlp4OCamlRevisedParserParser.cmo camlp4/Camlp4Parsers/Camlp4GrammarParser.cmo camlp4/Camlp4Parsers/Camlp4MacroParser.cmo camlp4/Camlp4Parsers/Camlp4DebugParser.cmo camlp4/Camlp4Parsers/Camlp4ListComprehension.cmo camlp4/Camlp4Top/Rprint.cmo camlp4/Camlp4Top/Top.cmo -o camlp4/camlp4boot.cma ../ocamlcomp.sh -I ../otherlibs/dynlink dynlink.cma -I ../otherlibs/unix unix.cma -I stdlib camlp4/camlp4lib.cma -linkall camlp4/Camlp4Parsers/Camlp4OCamlRevisedParser.cmo camlp4/Camlp4Parsers/Camlp4OCamlRevisedParserParser.cmo camlp4/Camlp4Printers/Camlp4AutoPrinter.cmo camlp4/Camlp4Bin.cmo -o camlp4/camlp4r.byte ../ocamlcomp.sh -a -I stdlib camlp4/camlp4lib.cma -linkall camlp4/Camlp4Parsers/Camlp4OCamlRevisedParser.cmo camlp4/Camlp4Parsers/Camlp4OCamlRevisedParserParser.cmo camlp4/Camlp4Top/Rprint.cmo camlp4/Camlp4Top/Top.cmo -o camlp4/camlp4r.cma ../ocamlcomp.sh -I ../otherlibs/dynlink dynlink.cma -I ../otherlibs/unix unix.cma -I stdlib camlp4/camlp4lib.cma -linkall camlp4/Camlp4Parsers/Camlp4OCamlRevisedParser.cmo camlp4/Camlp4Parsers/Camlp4QuotationCommon.cmo camlp4/Camlp4Parsers/Camlp4QuotationExpander.cmo camlp4/Camlp4Parsers/Camlp4OCamlRevisedParserParser.cmo camlp4/Camlp4Parsers/Camlp4GrammarParser.cmo camlp4/Camlp4Parsers/Camlp4MacroParser.cmo camlp4/Camlp4Parsers/Camlp4ListComprehension.cmo camlp4/Camlp4Printers/Camlp4AutoPrinter.cmo camlp4/Camlp4Bin.cmo -o camlp4/camlp4rf.byte ../ocamlcomp.sh -a -I stdlib camlp4/camlp4lib.cma -linkall camlp4/Camlp4Parsers/Camlp4OCamlRevisedParser.cmo camlp4/Camlp4Parsers/Camlp4QuotationCommon.cmo camlp4/Camlp4Parsers/Camlp4QuotationExpander.cmo camlp4/Camlp4Parsers/Camlp4OCamlRevisedParserParser.cmo camlp4/Camlp4Parsers/Camlp4GrammarParser.cmo camlp4/Camlp4Parsers/Camlp4MacroParser.cmo camlp4/Camlp4Parsers/Camlp4ListComprehension.cmo camlp4/Camlp4Top/Rprint.cmo camlp4/Camlp4Top/Top.cmo -o camlp4/camlp4rf.cma ../ocamlcomp.sh -I ../otherlibs/dynlink dynlink.cma -I ../otherlibs/unix unix.cma -I stdlib camlp4/camlp4lib.cma -linkall camlp4/Camlp4Parsers/Camlp4OCamlRevisedParser.cmo camlp4/Camlp4Parsers/Camlp4OCamlParser.cmo camlp4/Camlp4Parsers/Camlp4OCamlRevisedParserParser.cmo camlp4/Camlp4Parsers/Camlp4OCamlParserParser.cmo camlp4/Camlp4Printers/Camlp4AutoPrinter.cmo camlp4/Camlp4Bin.cmo -o camlp4/camlp4o.byte ../ocamlcomp.sh -a -I stdlib camlp4/camlp4lib.cma -linkall camlp4/Camlp4Parsers/Camlp4OCamlRevisedParser.cmo camlp4/Camlp4Parsers/Camlp4OCamlParser.cmo camlp4/Camlp4Parsers/Camlp4OCamlRevisedParserParser.cmo camlp4/Camlp4Parsers/Camlp4OCamlParserParser.cmo camlp4/Camlp4Top/Top.cmo -o camlp4/camlp4o.cma ../ocamlcomp.sh -I ../otherlibs/dynlink dynlink.cma -I ../otherlibs/unix unix.cma -I stdlib camlp4/camlp4lib.cma -linkall camlp4/Camlp4Parsers/Camlp4OCamlRevisedParser.cmo camlp4/Camlp4Parsers/Camlp4QuotationCommon.cmo camlp4/Camlp4Parsers/Camlp4QuotationExpander.cmo camlp4/Camlp4Parsers/Camlp4OCamlParser.cmo camlp4/Camlp4Parsers/Camlp4OCamlRevisedParserParser.cmo camlp4/Camlp4Parsers/Camlp4OCamlParserParser.cmo camlp4/Camlp4Parsers/Camlp4GrammarParser.cmo camlp4/Camlp4Parsers/Camlp4MacroParser.cmo camlp4/Camlp4Parsers/Camlp4ListComprehension.cmo camlp4/Camlp4Printers/Camlp4AutoPrinter.cmo camlp4/Camlp4Bin.cmo -o camlp4/camlp4of.byte Fatal error: exception Invalid_argument("output_value: abstract value (outside heap)") Exit code 2 while executing this command: ../ocamlcomp.sh -I ../otherlibs/dynlink dynlink.cma -I ../otherlibs/unix unix.cma -I stdlib camlp4/camlp4lib.cma -linkall camlp4/Camlp4Parsers/Camlp4OCamlRevisedParser.cmo camlp4/Camlp4Parsers/Camlp4QuotationCommon.cmo camlp4/Camlp4Parsers/Camlp4QuotationExpander.cmo camlp4/Camlp4Parsers/Camlp4OCamlParser.cmo camlp4/Camlp4Parsers/Camlp4OCamlRevisedParserParser.cmo camlp4/Camlp4Parsers/Camlp4OCamlParserParser.cmo camlp4/Camlp4Parsers/Camlp4GrammarParser.cmo camlp4/Camlp4Parsers/Camlp4MacroParser.cmo camlp4/Camlp4Parsers/Camlp4ListComprehension.cmo camlp4/Camlp4Printers/Camlp4AutoPrinter.cmo camlp4/Camlp4Bin.cmo -o camlp4/camlp4of.byte make[1]: *** [camlp4out] Error 2 make[1]: Leaving directory `/var/tmp/portage/dev-lang/ocaml-3.11.1/work/ocaml-3.11.1' make: *** [world] Error 2 * * ERROR: dev-lang/ocaml-3.11.1 failed. * Call stack: * ebuild.sh, line 49: Called src_compile * environment, line 2836: Called die * The specific snippet of code: * make world || die "make world failed!"; * The die message: * make world failed! * * If you need support, post the topmost build error, and the call stack if relevant. * A complete build log is located at '/var/tmp/portage/dev-lang/ocaml-3.11.1/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/dev-lang/ocaml-3.11.1/temp/environment'. * ------------------------------- roby-sheeva ~ # cat /etc/make.conf # These settings were set by the catalyst build script that automatically # built this stage. # Please consult /usr/share/portage/config/make.conf.example for a more # detailed example. CFLAGS="-Os -march=armv5te -pipe" CXXFLAGS="-Os -march=armv5te -pipe" MAKEOPTS="-j4" # WARNING: Changing your CHOST is not something that should be done lightly. # Please consult http://www.gentoo.org/doc/en/change-chost.xml before changing. CHOST="armv5tel-softfloat-linux-gnueabi" USE="-gtk -gnome -qt3 -qt4 -kde alsa gd -ncurses -gdbm -ocamlopt" #FEATURES="distcc"
*** Bug 295128 has been marked as a duplicate of this bug. ***
I have this problem too, on a Marvell open-rd box. I notice that CHOST=armv5tel-softfloat-linux-gnueabi No currently released version of ocaml will compile on an softfloat or gnueabi toolchain. Support for gnueabi is (apparently) in ocaml svn, and expected to be in release 3.12 of ocaml. See: http://caml.inria.fr/mantis/view.php?id=3746 Perhaps the existing ocaml ebuilds should check CHOST and abort with an informative error message if they see softfloat? Another symptom of this same issue is this error during ocaml compilation: arm.S: Assembler messages: arm.S:21: Warning: ignoring attempt to redefine built-in register 'sp' arm.S:22: Warning: ignoring attempt to redefine built-in register 'lr' arm.S:23: Warning: ignoring attempt to redefine built-in register 'pc' arm.S:114: Error: selected processor does not support `stfd f0,[sp,#-8]!' arm.S:115: Error: selected processor does not support `stfd f1,[sp,#-8]!' arm.S:116: Error: selected processor does not support `stfd f2,[sp,#-8]!' arm.S:117: Error: selected processor does not support `stfd f3,[sp,#-8]!' arm.S:127: Error: selected processor does not support `ldfd f4,[sp],#8' arm.S:128: Error: selected processor does not support `ldfd f5,[sp],#8' arm.S:129: Error: selected processor does not support `ldfd f6,[sp],#8' arm.S:130: Error: selected processor does not support `ldfd f7,[sp],#8' arm.S:186: Error: selected processor does not support `stfd f7,[sp,#-8]!' arm.S:187: Error: selected processor does not support `stfd f6,[sp,#-8]!' arm.S:188: Error: selected processor does not support `stfd f5,[sp,#-8]!' arm.S:189: Error: selected processor does not support `stfd f4,[sp,#-8]!' arm.S:242: Error: selected processor does not support `ldfd f4,[sp],#8' arm.S:243: Error: selected processor does not support `ldfd f5,[sp],#8' arm.S:244: Error: selected processor does not support `ldfd f6,[sp],#8' arm.S:245: Error: selected processor does not support `ldfd f7,[sp],#8' Note that the assembler is choking on the floating point instructions. The original reporter didn't see this message because he was using parallel make.
(In reply to comment #2) > I have this problem too, on a Marvell open-rd box. > > I notice that CHOST=armv5tel-softfloat-linux-gnueabi > > No currently released version of ocaml will compile on an softfloat or gnueabi > toolchain. Support for gnueabi is (apparently) in ocaml svn, and expected to be > in release 3.12 of ocaml. Well debian armel uses gnueabi, which defaults to softfloat. The problem here is that it fails when respecting the CFLAGS. IOW, with empty CFLAGS it works. I'm looking at it...
Sync in an hour and try again.