Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0006229OCamlOCaml generalpublic2013-11-08 15:502013-11-08 16:24
Reporterglondu 
Assigned To 
PrioritynormalSeverityblockReproducibilityalways
StatusresolvedResolutionduplicate 
PlatformsparcOSDebianOS Versionsid
Product Version4.01.0 
Target VersionFixed in Version 
Summary0006229: Compilation of ocamlopt fails on sparc
DescriptionThe compilation of ocamlopt 4.01.0 fails on sparc.

The first reason is because of use of obsolete "&" operator.

After fixing this, an "index out of bounds" exception is raised while compiling complex.ml.
Steps To Reproduce 1. download and extract ocaml 4.01.0 tarball
 2. patch -p1 < ocamlopt-sparc (file attached)
 3. ./configure
 4. make world
 5. make opt
Additional InformationEnd of build log:

[...]
../boot/ocamlrun ../ocamlopt -warn-error A -nostdlib -g `./Compflags format.cmx` -c format.ml
../boot/ocamlrun ../ocamlopt -warn-error A -nostdlib -g `./Compflags scanf.cmx` -c scanf.ml
../boot/ocamlrun ../ocamlopt -warn-error A -nostdlib -g `./Compflags callback.cmx` -c callback.ml
../boot/ocamlrun ../ocamlopt -warn-error A -nostdlib -g `./Compflags camlinternalOO.cmx` -c camlinternalOO.ml
../boot/ocamlrun ../ocamlopt -warn-error A -nostdlib -g `./Compflags oo.cmx` -c oo.ml
../boot/ocamlrun ../ocamlopt -warn-error A -nostdlib -g `./Compflags camlinternalMod.cmx` -c camlinternalMod.ml
../boot/ocamlrun ../ocamlopt -warn-error A -nostdlib -g `./Compflags genlex.cmx` -c genlex.ml
../boot/ocamlrun ../ocamlopt -warn-error A -nostdlib -g `./Compflags weak.cmx` -c weak.ml
../boot/ocamlrun ../ocamlopt -warn-error A -nostdlib -g `./Compflags filename.cmx` -c filename.ml
../boot/ocamlrun ../ocamlopt -warn-error A -nostdlib -g `./Compflags complex.cmx` -c complex.ml
Fatal error: exception Invalid_argument("index out of bounds")
make[2]: *** [complex.cmx] Error 2
make[2]: Leaving directory `/home/glondu/pristine/ocaml-4.01.0/stdlib'
make[1]: *** [libraryopt] Error 2
make[1]: Leaving directory `/home/glondu/pristine/ocaml-4.01.0'
make: *** [opt] Error 2
TagsNo tags attached.
Attached Files? file icon ocamlopt-sparc [^] (3,169 bytes) 2013-11-08 15:50 [Show Content]

- Relationships
duplicate of 0006227resolvedshinwell Solaris Sparc build broken due to deprecated & operator in asmcomp/emit.ml (generated from asmcomp/sparc/emit.mlp) 

-  Notes
(0010606)
xleroy (administrator)
2013-11-08 16:24

See 0006227 for an analysis and a fix.

- Issue History
Date Modified Username Field Change
2013-11-08 15:50 glondu New Issue
2013-11-08 15:50 glondu File Added: ocamlopt-sparc
2013-11-08 16:23 xleroy Relationship added duplicate of 0006227
2013-11-08 16:24 xleroy Note Added: 0010606
2013-11-08 16:24 xleroy Status new => resolved
2013-11-08 16:24 xleroy Resolution open => duplicate


Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker