Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 285993 - dev-lang/ocaml-3.11.1 fails with USE="ocamlopt"
Summary: dev-lang/ocaml-3.11.1 fails with USE="ocamlopt"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Team for the ML programming language family
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-09-22 18:27 UTC by Erik Zeek
Modified: 2009-09-27 15:16 UTC (History)
1 user (show)

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


Attachments
build log (dev-lang:ocaml-3.11.1:20090922-181604.log,306.71 KB, text/plain)
2009-09-22 18:29 UTC, Erik Zeek
Details
emerge_info.txt (emerge_info.txt,9.97 KB, text/plain)
2009-09-22 18:31 UTC, Erik Zeek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Erik Zeek 2009-09-22 18:27:37 UTC
Setting other USE flags will cause the build to fail in other locations, but the error message is basically the same.

USE="-* ocamlopt" emerge -av1 =dev-lang/ocaml-3.11.1
<snip/>
make[1]: Leaving directory `/gentoo/tmp/portage/dev-lang/ocaml-3.11.1/work/ocaml-3.11.1/otherlibs/systhreads'                                                                                             
make[1]: Entering directory `/gentoo/tmp/portage/dev-lang/ocaml-3.11.1/work/ocaml-3.11.1/otherlibs/threads'                                                                                               
make[1]: Nothing to be done for `all'.                                                                                                                                                                    
make[1]: Leaving directory `/gentoo/tmp/portage/dev-lang/ocaml-3.11.1/work/ocaml-3.11.1/otherlibs/threads'                                                                                                
./build/mixed-boot.sh                                                                                                                                                                                     
++ dirname ./build/mixed-boot.sh                                                                                                                                                                          
+ cd ./build/..                                                                                                                                                                                           
+ touch build/ocamlbuild_mixed_mode                                                                                                                                                                       
+ mkdir -p _build                                                                                                                                                                                         
+ cp -rf boot _build/                                                                                                                                                                                     
+ ./build/mkconfig.sh                                                                                                                                                                                     
+ ./build/mkmyocamlbuild_config.sh                                                                                                                                                                        
+ ./build/boot.sh                                                                                                                                                                                         
+ TAGLINE='true: -use_stdlib'                                                                                                                                                                             
+ ./boot/ocamlrun boot/myocamlbuild.boot -tag-line '' boot/stdlib.cma boot/std_exit.cmo                                                                                                                   
+ boot/ocamlrun boot/myocamlbuild.boot -tag-line '' -log _boot_log1 ocamlbuild/ocamlbuildlightlib.cma ocamlbuild/ocamlbuildlight.byte                                                                     
+ rm -f _build/myocamlbuild
+ boot/ocamlrun boot/myocamlbuild.boot -just-plugin -install-lib-dir _build/ocamlbuild -byte-plugin
boot/ocamlrun boot/ocamlc -I boot -nostdlib -I /gentoo/tmp/portage/dev-lang/ocaml-3.11.1/work/ocaml-3.11.1/_build/ocamlbuild /gentoo/tmp/portage/dev-lang/ocaml-3.11.1/work/ocaml-3.11.1/_build/ocamlbuild/ocamlbuildlightlib.cma myocamlbuild_config.mli myocamlbuild_config.ml myocamlbuild.ml /gentoo/tmp/portage/dev-lang/ocaml-3.11.1/work/ocaml-3.11.1/_build/ocamlbuild/ocamlbuildlight.cmo -o myocamlbuild
+ cp _build/myocamlbuild boot/myocamlbuild
+ ./boot/ocamlrun boot/myocamlbuild -tag-line '' -log _boot_log2 boot/camlheader ocamlc
./build/ocamlbuild-byte-only.sh
+ ./boot/ocamlrun boot/myocamlbuild byte_stdlib_mixed_mode ocamlc lex/ocamllex ocamlbuild/ocamlbuildlib.cma ocamlbuild/ocamlbuildlightlib.cma ocamlbuild/ocamlbuild.byte ocamlbuild/ocamlbuildlight.byte
../ocamlcomp.sh -g -I stdlib ocamlbuild/ocamlbuild_pack.cmo ocamlbuild/ocamlbuildlight.cmo -o ocamlbuild/ocamlbuildlight.byte
Exit code 255 while executing this command:
  ../ocamlcomp.sh -g -I stdlib ocamlbuild/ocamlbuild_pack.cmo ocamlbuild/ocamlbuildlight.cmo -o ocamlbuild/ocamlbuildlight.byte
make: *** [ocamlbuild.byte] Error 255
 *
 * ERROR: dev-lang/ocaml-3.11.1 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 2893:  Called die
 * The specific snippet of code:
 *           make opt.opt || die "make opt.opt failed!";
 *  The die message:
 *   make opt.opt failed!
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/log/portage/dev-lang:ocaml-3.11.1:20090922-181604.log'.
 * The ebuild environment file is located at '/gentoo/tmp/portage/dev-lang/ocaml-3.11.1/temp/environment'.
 *

>>> Failed to emerge dev-lang/ocaml-3.11.1, Log file:
Comment 1 Erik Zeek 2009-09-22 18:29:20 UTC
Created attachment 204953 [details]
build log

Build log
Comment 2 Erik Zeek 2009-09-22 18:31:08 UTC
Created attachment 204955 [details]
emerge_info.txt

=emerge --info
Comment 3 Alexis Ballier gentoo-dev 2009-09-27 15:16:42 UTC
I've been able to reproduce it, it was caused by -mfpmath=sse in your cflags. I've filtered it, ocaml seems to expect the classical one. Thanks for the report.