Emerging dev-lang/ocaml/3.12.0 fails in a Gentoo prefix installation on OSX Lion when the ocamlopt useflag is active. It compiles fine on a Gentoo prefix installation on a Linux based system. Reproducible: Always Steps to Reproduce: $ USE="ocamlopt" emerge =dev-lang/ocaml-3.12.0 Actual Results: x86_64-apple-darwin11-gcc -I../byterun -DCAML_NAME_SPACE -DNATIVE_CODE -DTARGET_none -DSYS_unknown -O -O2 -pipe -D_FILE_OFFSET_BITS=64 -D_REENTRANT -c -o natdynlink.o natdynlink.c ln -s ../byterun/debugger.c debugger.c x86_64-apple-darwin11-gcc -I../byterun -DCAML_NAME_SPACE -DNATIVE_CODE -DTARGET_none -DSYS_unknown -O -O2 -pipe -D_FILE_OFFSET_BITS=64 -D_REENTRANT -c -o debugger.o debugger.c make[2]: *** No rule to make target `none.o', needed by `libasmrun.a'. Stop. make[2]: Leaving directory `/Users/user/Library/Gentoo/var/tmp/portage/dev-lang/ocaml-3.12.0/work/ocaml-3.12.0/asmrun' make[1]: *** [makeruntimeopt] Error 2 make[1]: Leaving directory `/Users/user/Library/Gentoo/var/tmp/portage/dev-lang/ocaml-3.12.0/work/ocaml-3.12.0' make: *** [opt] Error 2 emake failed * ERROR: dev-lang/ocaml-3.12.0 failed (compile phase): * make opt failed! * * Call stack: * ebuild.sh, line 98: Called call-ebuildshell 'src_compile' * environment, line 598: Called src_compile * environment, line 2878: Called die * The specific snippet of code: * emake -j1 opt || die "make opt failed!"; $ emerge --info Portage 2.2.01.19572-prefix (prefix/darwin/macos/10.7/x64, gcc-4.2.1, unavailable, 11.2.0 x86_64) ================================================================= System uname: Darwin-11.2.0-x86_64-i386-64bit Timestamp of tree: Mon, 14 Nov 2011 18:40:08 +0000 distcc 3.1-toolwhip.1 i386-apple-darwin11.0 [disabled] app-shells/bash: 4.2_p10 dev-lang/python: 2.7.2 dev-util/pkgconfig: 0.26 sys-devel/autoconf: 2.68 sys-devel/automake: 1.11.1 sys-devel/gcc-config: 1.4.1-r00.2 sys-devel/libtool: 2.4-r4 sys-devel/make: 3.82 Repositories: gentoo_prefix LocalDevel Installed sets: ACCEPT_KEYWORDS="~x64-macos" ACCEPT_LICENSE="* -@EULA" CBUILD="x86_64-apple-darwin11" CFLAGS="-O2 -pipe" CHOST="x86_64-apple-darwin11" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/portage /etc/terminfo" CXXFLAGS="-O2 -pipe" DISTDIR="/Users/user/Library/Gentoo/usr/portage/distfiles" FEATURES="assume-digests binpkg-logs collision-protect distlocks ebuild-locks fixlafiles news nostrip parallel-fetch preserve-libs protect-owned sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch" FFLAGS="" GENTOO_MIRRORS="http://distfiles.gentoo.org" LANG="en_US.UTF-8" LDFLAGS="-Wl,-dead_strip_dylibs" MAKEOPTS="-j5" PKGDIR="/Users/user/Library/Gentoo/usr/portage/packages" PORTAGE_CONFIGROOT="/Users/user/Library/Gentoo/" 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="/Users/user/Library/Gentoo/var/tmp" PORTDIR="/Users/user/Library/Gentoo/usr/portage" PORTDIR_OVERLAY="/Users/user/Library/Gentoo/usr/local/portage" SYNC="rsync://rsync.prefix.freens.org/gentoo-portage-prefix" USE="aqua coreaudio cracklib cxx mmx mmxext modules ncurses nls objc objc++ prefix readline sse sse2 ssl unicode x64-macos zlib" 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 cgi cgid 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" CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="Darwin" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse" KERNEL="Darwin" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
sounds like an asm issue to me, try and see if you can disable it
Created attachment 414180 [details] dev-lang:ocaml-4.02.1:20151009-060910.log Fri Oct 9 08:19:48 CEST 2015 emerge --info =dev-lang/ocaml-4.02.1 Portage 2.2.20.1 (python 3.4.3-final-0, default/linux/powerpc/ppc64/13.0/64bit-userland, gcc-4.9.3, glibc-2.20-r2, 4.0.5-gentoo ppc64) ================================================================= System Settings ================================================================= System uname: Linux-4.0.5-gentoo-ppc64-PPC970FX,_altivec_supported-with-gentoo-2.2 KiB Mem: 8071168 total, 1184984 free KiB Swap: 1048572 total, 1022396 free Timestamp of repository gentoo: Fri, 09 Oct 2015 03:15:01 +0000 sh bash 4.3_p39 ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1 distcc 3.1 powerpc64-unknown-linux-gnu [enabled] app-shells/bash: 4.3_p39::gentoo dev-lang/perl: 5.20.2::gentoo dev-lang/python: 2.7.10::gentoo, 3.3.5-r1::gentoo, 3.4.3::gentoo dev-util/cmake: 3.3.1-r1::gentoo dev-util/pkgconfig: 0.28-r2::gentoo sys-apps/baselayout: 2.2::gentoo sys-apps/openrc: 0.17::gentoo sys-apps/sandbox: 2.6-r1::gentoo sys-devel/autoconf: 2.13::gentoo, 2.69::gentoo sys-devel/automake: 1.11.6-r1::gentoo, 1.12.6::gentoo, 1.13.4::gentoo, 1.14.1::gentoo, 1.15::gentoo sys-devel/binutils: 2.24-r3::gentoo, 2.25.1-r1::gentoo sys-devel/gcc: 4.7.4::gentoo, 4.8.4::gentoo, 4.8.5::gentoo, 4.9.3::gentoo sys-devel/gcc-config: 1.7.3::gentoo sys-devel/libtool: 2.4.6::gentoo sys-devel/make: 4.1-r1::gentoo sys-kernel/linux-headers: 3.18::gentoo (virtual/os-headers) sys-libs/glibc: 2.20-r2::gentoo Repositories: gentoo location: /world/gentoo/portage sync-type: rsync sync-uri: rsync://rsync.nl.gentoo.org/gentoo-portage priority: 0 JeR location: /keeps/gentoo/local masters: gentoo priority: 10000 ACCEPT_KEYWORDS="ppc64" ACCEPT_LICENSE="*" CBUILD="powerpc64-unknown-linux-gnu" CFLAGS="-O2 -mcpu=G5 -mtune=G5 -Wall" CHOST="powerpc64-unknown-linux-gnu" CONFIG_PROTECT="/etc /usr/lib/ccache/bin /usr/lib/distcc/bin /usr/share/config /usr/share/gnupg/qualified.txt /var/bind" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.4/ext-active/ /etc/php/apache2-php5.5/ext-active/ /etc/php/apache2-php5.6/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cgi-php5.6/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/php/cli-php5.6/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXXFLAGS="-O2 -mcpu=G5 -mtune=G5 -Wall" DISTDIR="/aches/gentoo/distfiles" EMERGE_DEFAULT_OPTS="--autounmask=n" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-logs buildpkg cgroup compressdebug config-protect-if-modified distcc distlocks ebuild-locks fixlafiles merge-sync metadata-transfer multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms sign splitdebug strict test test-fail-continue unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync" FFLAGS="-O2 -pipe" GENTOO_MIRRORS=" http://mirror.netcologne.de/gentoo/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo http://gentoo.tiscali.nl/ http://mirror.leaseweb.com/gentoo/ " LANG="en_GB.utf8" LC_ALL="en_US.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed" MAKEOPTS="-j3" PKGDIR="/aches/gentoo/packages/martijn" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" USE="X acl alsa altivec apache2 avahi berkdb botan bzip2 cairo cli consolekit cracklib crypt cups cxx dri drm evdev fontforge fortran fusionsound gadu gdbm gstreamer http2 ibm iconv idn introspection ipv6 jpeg jpeg2k kerberos lcms lensfun lua modules mpi multilib multislot multitarget natspec ncurses nethack nls nptl ocamlopt offensive ofono-headset opengl openmp pam pcre png ppc64 qt3support qt4 r600-llvm-compiler raw readline rubberband scanner session ssl tcl tcmalloc tcpd theora threads tiff tk truetype unicode vpx webp zlib" ABI_PPC="64" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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 cgi cgid 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" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CURL_SSL="gnutls" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en_GB en nl" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3 python3_4" RUBY_TARGETS="ruby19 ruby20 ruby21" USERLAND="GNU" VIDEO_CARDS="modesetting radeon" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON ================================================================= Package Settings ================================================================= dev-lang/ocaml-4.02.1::gentoo was built with the following: USE="X ncurses -emacs -latex -ocamlopt -xemacs" CFLAGS="-O2 -g -pipe -mcpu=G5 -mtune=G5 -maltivec -Wall" CXXFLAGS="-O2 -g -pipe -mcpu=G5 -mtune=G5 -maltivec -Wall" [ebuild R ~] dev-lang/ocaml-4.02.1:0/4.02.1::gentoo USE="X ncurses ocamlopt* -emacs -latex -xemacs" 0 KiB
Fedora carries PPC64 specific patches that neither we nor upstream has incorporated so far. Nothing new then, but these do seem to fix this issue: 0006-Add-support-for-ppc64.patch 0007-ppc64-Update-for-OCaml-4.02.0.patch 0008-Add-support-for-ppc64le.patch 0009-ppc64le-Update-for-OCaml-4.02.0.patch 0015-ppc64-ppc64le-proc-Interim-definitions-for-op_is_pur.patch 0016-ppc64le-Fix-calling-convention-of-external-functions.patch 0017-ppc64-Fix-PIC-variant-of-asmrun.patch 0018-ppc64le-Fix-PIC-variant-of-asmrun.patch 0019-ppc64-ppc64le-Fix-behaviour-of-Int64.max_int-1-RHBZ-.patch Note that this excludes 0014-ppc-ppc64-ppc64le-Mark-stack-as-non-executable.patch which fails to apply.
I'll open a new PPC64 specific bug. This one appears to be about OS X/amd64.
This also happens on sparc for both 4.09.0 and 4.04.2-r1.
Removed from tree