Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation of ocamlopt fails on sparc #6229

Closed
vicuna opened this issue Nov 8, 2013 · 1 comment
Closed

Compilation of ocamlopt fails on sparc #6229

vicuna opened this issue Nov 8, 2013 · 1 comment

Comments

@vicuna
Copy link

vicuna commented Nov 8, 2013

Original bug ID: 6229
Reporter: @glondu
Status: closed (set by @xavierleroy on 2015-12-11T18:24:20Z)
Resolution: duplicate
Priority: normal
Severity: block
Platform: sparc
OS: Debian
OS Version: sid
Version: 4.01.0
Category: ~DO NOT USE (was: OCaml general)
Duplicate of: #6227
Monitored by: @gasche

Bug description

The 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 information

End 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

File attachments

@vicuna
Copy link
Author

vicuna commented Nov 8, 2013

Comment author: @xavierleroy

See #6227 for an analysis and a fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant