Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 270290 - [patch] dev-lang/ocaml-3.10.2 fails to compile on PPC64
Summary: [patch] dev-lang/ocaml-3.10.2 fails to compile on PPC64
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: PPC64 Linux
: High normal (vote)
Assignee: Gentoo Team for the ML programming language family
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-18 13:06 UTC by Yuta SATOH
Modified: 2010-11-11 19:03 UTC (History)
0 users

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


Attachments
patch for ocaml-3.10.2.ebuild. (ocaml-3.10.2.ebuild.patch,327 bytes, patch)
2009-05-18 13:11 UTC, Yuta SATOH
Details | Diff
files/ocaml-3.10.2-buildfix-ppc64.patch (ocaml-3.10.2-buildfix-ppc64.patch,565 bytes, patch)
2009-05-18 13:13 UTC, Yuta SATOH
Details | Diff
patch for ocaml-3.08.4.ebuild (ocaml-3.08.4.ebuild.patch,346 bytes, patch)
2009-05-18 13:14 UTC, Yuta SATOH
Details | Diff
files/ocaml-3.08.4-buildfix-ppc64.patch (ocaml-3.08.4-buildfix-ppc64.patch,531 bytes, patch)
2009-05-18 13:15 UTC, Yuta SATOH
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Yuta SATOH 2009-05-18 13:06:30 UTC
The following message is displayed and fails to compile on PPC64.

make[1]: Leaving directory `/var/tmp/portage/dev-lang/ocaml-3.10.2/work/ocaml-3.10.2/stdlib'
boot/ocamlrun boot/ocamlc -nostdlib -I boot -warn-error A -I utils -I parsing -I typing -I bytecomp -I asmcomp -I driver -I toplevel -c toplevel/genprintval.mli
boot/ocamlrun boot/ocamlc -nostdlib -I boot -warn-error A -I utils -I parsing -I typing -I bytecomp -I asmcomp -I driver -I toplevel -c toplevel/genprintval.ml
boot/ocamlrun boot/ocamlc -nostdlib -I boot -warn-error A -I utils -I parsing -I typing -I bytecomp -I asmcomp -I driver -I toplevel -c toplevel/toploop.mli
boot/ocamlrun boot/ocamlc -nostdlib -I boot -warn-error A -I utils -I parsing -I typing -I bytecomp -I asmcomp -I driver -I toplevel -c toplevel/toploop.ml
boot/ocamlrun boot/ocamlc -nostdlib -I boot -warn-error A -I utils -I parsing -I typing -I bytecomp -I asmcomp -I driver -I toplevel -c toplevel/trace.mli
boot/ocamlrun boot/ocamlc -nostdlib -I boot -warn-error A -I utils -I parsing -I typing -I bytecomp -I asmcomp -I driver -I toplevel -c toplevel/trace.ml
boot/ocamlrun boot/ocamlc -nostdlib -I boot -warn-error A -I utils -I parsing -I typing -I bytecomp -I asmcomp -I driver -I toplevel -c toplevel/topdirs.mli
boot/ocamlrun boot/ocamlc -nostdlib -I boot -warn-error A -I utils -I parsing -I typing -I bytecomp -I asmcomp -I driver -I toplevel -c toplevel/topdirs.ml
boot/ocamlrun boot/ocamlc -nostdlib -I boot -warn-error A -I utils -I parsing -I typing -I bytecomp -I asmcomp -I driver -I toplevel -c toplevel/topmain.mli
boot/ocamlrun boot/ocamlc -nostdlib -I boot -warn-error A -I utils -I parsing -I typing -I bytecomp -I asmcomp -I driver -I toplevel -c toplevel/topmain.ml
boot/ocamlrun boot/ocamlc -nostdlib -I boot -a -o toplevel/toplevellib.cma utils/misc.cmo utils/tbl.cmo utils/config.cmo utils/clflags.cmo utils/terminfo.cmo utils/ccomp.cmo utils/warnings.cmo utils/consistbl.cmo parsing/linenum.cmo parsing/location.cmo parsing/longident.cmo parsing/syntaxerr.cmo parsing/parser.cmo parsing/lexer.cmo parsing/parse.cmo parsing/printast.cmo typing/unused_var.cmo typing/ident.cmo typing/path.cmo typing/primitive.cmo typing/types.cmo typing/btype.cmo typing/oprint.cmo typing/subst.cmo typing/predef.cmo typing/datarepr.cmo typing/env.cmo typing/typedtree.cmo typing/ctype.cmo typing/printtyp.cmo typing/includeclass.cmo typing/mtype.cmo typing/includecore.cmo typing/includemod.cmo typing/parmatch.cmo typing/typetexp.cmo typing/stypes.cmo typing/typecore.cmo typing/typedecl.cmo typing/typeclass.cmo typing/typemod.cmo bytecomp/lambda.cmo bytecomp/printlambda.cmo bytecomp/typeopt.cmo bytecomp/switch.cmo bytecomp/matching.cmo bytecomp/translobj.cmo bytecomp/translcore.cmo bytecomp/translclass.cmo bytecomp/translmod.cmo bytecomp/simplif.cmo bytecomp/runtimedef.cmo bytecomp/meta.cmo bytecomp/instruct.cmo bytecomp/bytegen.cmo bytecomp/printinstr.cmo bytecomp/opcodes.cmo bytecomp/emitcode.cmo bytecomp/bytesections.cmo bytecomp/dll.cmo bytecomp/symtable.cmo bytecomp/bytelink.cmo bytecomp/bytelibrarian.cmo bytecomp/bytepackager.cmo driver/pparse.cmo driver/errors.cmo driver/compile.cmo toplevel/genprintval.cmo toplevel/toploop.cmo toplevel/trace.cmo toplevel/topdirs.cmo toplevel/topmain.cmo
boot/ocamlrun boot/ocamlc -nostdlib -I boot -warn-error A -I utils -I parsing -I typing -I bytecomp -I asmcomp -I driver -I toplevel -c toplevel/topstart.ml
boot/ocamlrun boot/ocamlc -nostdlib -I boot -warn-error A -I utils -I parsing -I typing -I bytecomp -I asmcomp -I driver -I toplevel -c toplevel/expunge.ml
boot/ocamlrun boot/ocamlc -nostdlib -I boot  -o expunge utils/misc.cmo utils/tbl.cmo utils/config.cmo utils/clflags.cmo typing/ident.cmo typing/path.cmo typing/types.cmo typing/btype.cmo typing/predef.cmo bytecomp/runtimedef.cmo bytecomp/bytesections.cmo bytecomp/dll.cmo bytecomp/meta.cmo bytecomp/symtable.cmo toplevel/expunge.cmo
boot/ocamlrun boot/ocamlc -nostdlib -I boot  -linkall -o ocaml.tmp toplevel/toplevellib.cma toplevel/topstart.cmo
Fatal error: exception Out_of_memory
make: *** [ocaml] Error 2
 *
 * ERROR: dev-lang/ocaml-3.10.2 failed.
 * Call stack:
 *               ebuild.sh, line   48:  Called src_compile
 *             environment, line 2741:  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.10.2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-lang/ocaml-3.10.2/temp/environment'.
 *

Reproducible: Always

Steps to Reproduce:
1. emerge dev-lang/ocaml

Actual Results:  
fails to compile

Expected Results:  
success to compile.

Portage 2.1.6.11 (arch/powerpc/ppc64/64ul, gcc-4.3.2, glibc-2.8_p20080602-r1, 2.6.29-gentoo-r3 ppc64)
=================================================================
System uname: Linux-2.6.29-gentoo-r3-ppc64-Cell_Broadband_Engine,_altivec_supported-with-glibc2.3
Timestamp of tree: Mon, 18 May 2009 12:00:17 +0000
distcc 3.0 powerpc64-unknown-linux-gnu [disabled]
app-shells/bash:     3.2_p39
dev-java/java-config: 2.1.7
dev-lang/python:     2.5.4-r2
dev-util/cmake:      2.6.2-r1
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.63
sys-devel/automake:  1.6.3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="ppc64"
CBUILD="powerpc64-unknown-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="powerpc64-unknown-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict test unmerge-orphans userfetch"
GENTOO_MIRRORS="http://ftp.iij.ad.jp/pub/linux/gentoo/ http://ftp.jaist.ac.jp/pub/Linux/Gentoo/"
LDFLAGS=""
LINGUAS="ja"
MAKEOPTS="-j2"
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"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="a52 aac aalib acl alsa altivec ao apache2 audiofile cdparanoia cdr cjk clamav crypt css cups cvs dvd dvdr dvdread emacs encode esd estraier fbcon ffmpeg flac flash fontconfig foomaticdb gd gif gstreamer ibm iconv icq imagemagick imap imlib immqt java javascript joystick jpeg jpeg2k k-de lcms m17n-lib mad maildir matroska migemo mime ming mng mp3 mp4 mpeg mplayer msn musepack ncurses nls nogcj nptl ogg oss pdf php png postgres ppc64 rdesktop rss ruby samba scanner sdl smp snmp sox spell ssl symlink symlinkx syslog tcpd theora thumbnail tiff truetype unicode usb vorbis wavpack wma wmf x264 xine xml xml2 xmms xvid yahoo"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Yuta SATOH 2009-05-18 13:11:59 UTC
Created attachment 191660 [details, diff]
patch for ocaml-3.10.2.ebuild.
Comment 2 Yuta SATOH 2009-05-18 13:13:26 UTC
Created attachment 191661 [details, diff]
files/ocaml-3.10.2-buildfix-ppc64.patch

When those patches apply, success to compile.
Comment 3 Yuta SATOH 2009-05-18 13:14:50 UTC
Created attachment 191662 [details, diff]
patch for ocaml-3.08.4.ebuild

Additionally, version 3.08.4 fails.
Please drop the ~ppc64 keywords or apply this patch.
Comment 4 Yuta SATOH 2009-05-18 13:15:18 UTC
Created attachment 191663 [details, diff]
files/ocaml-3.08.4-buildfix-ppc64.patch
Comment 5 Yuta SATOH 2009-05-18 13:16:22 UTC
This problem looks like the problem of SPARC64 reported to BTS of up-stream.
http://caml.inria.fr/mantis/view.php?id=4441

configure file was fixed and this problem was solved. 
http://camlcvs.inria.fr/cgi-bin/cvsweb/ocaml/configure.diff?r1=1.244.4.3;r2=1.244.4.4

FYI, Version 3.11.0 doesn't need my patch. 
http://caml.inria.fr/mantis/view.php?id=4448

Thanks in advance.
Comment 6 Alexis Ballier gentoo-dev 2010-11-11 19:03:57 UTC
well, ocaml 3.11.2 is going stable with bug #343751