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
Crash when build on sparc64 linux #4441
Comments
Comment author: tommat build commands: ./configure \ /usr/bin/make -j1 world bootstrap opt.opt CFLAGS="-O2 -fno-strict-aliasing -fwrapv -mcpu=ultrasparc -fno-strict-aliasing -gdwarf-2 -g2 -Wall" |
Comment author: @xavierleroy Try to add the following line to config/s.h after running configure: #define USE_MMAP_INSTEAD_OF_MALLOC If it works, I'll update the configure script accordingly. Also, what does "configure" report as the system type? The first line, |
Comment author: tommat It is better now but it fails on assembler. |
Comment author: tommat According to http://developers.sun.com/solaris/articles/sparcv9abi.html /* Required size in %g2 */
Caml_allocN: And it helped but there is linking problem now (full buildlog in attachment): |
Comment author: @xavierleroy OCaml's native-code generator cannot generate Sparc 64 bits code. An unofficial port for Sparc64/Solaris exists (http://www.mit.edu/~jfc/) but was never integrated in the trunk by lack of resources. So, you're stuck with bytecode only. I'll try to fix the configure script so that it turns native compilation off on Sparc in 64-bit mode. |
Original bug ID: 4441
Reporter: tommat
Status: closed (set by @xavierleroy on 2007-11-12T14:22:39Z)
Resolution: fixed
Priority: normal
Severity: crash
Version: 3.10.0
Category: ~DO NOT USE (was: OCaml general)
Monitored by: tommat
Bug description
end of build:
../boot/ocamlrun ../ocamlc -g -warn-error A -nostdlib
./Compflags filename.cmo
-c filename.ml../boot/ocamlrun ../ocamlc -g -warn-error A -nostdlib
./Compflags complex.cmi
-c complex.mli../boot/ocamlrun ../ocamlc -g -warn-error A -nostdlib
./Compflags complex.cmo
-c complex.ml../boot/ocamlrun ../ocamlc -g -warn-error A -nostdlib
./Compflags arrayLabels.cmi
-c arrayLabels.mli../boot/ocamlrun ../ocamlc -g -warn-error A -nostdlib
./Compflags arrayLabels.cmo
-c arrayLabels.ml../boot/ocamlrun ../ocamlc -g -warn-error A -nostdlib
./Compflags listLabels.cmi
-c listLabels.mli../boot/ocamlrun ../ocamlc -g -warn-error A -nostdlib
./Compflags listLabels.cmo
-c listLabels.ml../boot/ocamlrun ../ocamlc -g -warn-error A -nostdlib
./Compflags stringLabels.cmi
-c stringLabels.mli../boot/ocamlrun ../ocamlc -g -warn-error A -nostdlib
./Compflags stringLabels.cmo
-c stringLabels.ml../boot/ocamlrun ../ocamlc -g -warn-error A -nostdlib
./Compflags moreLabels.cmi
-c moreLabels.mli../boot/ocamlrun ../ocamlc -g -warn-error A -nostdlib
./Compflags moreLabels.cmo
-c moreLabels.ml../boot/ocamlrun ../ocamlc -g -warn-error A -nostdlib
./Compflags stdLabels.cmi
-c stdLabels.mli../boot/ocamlrun ../ocamlc -g -warn-error A -nostdlib
./Compflags stdLabels.cmo
-c stdLabels.ml../boot/ocamlrun ../ocamlc -a -o stdlib.cma pervasives.cmo array.cmo list.cmo char.cmo string.cmo sys.cmo hashtbl.cmo sort.cmo marshal.cmo obj.cmo int32.cmo int64.cmo nativeint.cmo lexing.cmo parsing.cmo set.cmo map.cmo stack.cmo queue.cmo stream.cmo buffer.cmo printf.cmo format.cmo scanf.cmo arg.cmo printexc.cmo gc.cmo digest.cmo random.cmo callback.cmo camlinternalOO.cmo oo.cmo camlinternalMod.cmo genlex.cmo weak.cmo lazy.cmo filename.cmo complex.cmo arrayLabels.cmo listLabels.cmo stringLabels.cmo moreLabels.cmo stdLabels.cmo
../boot/ocamlrun ../ocamlc -g -warn-error A -nostdlib
./Compflags std_exit.cmo
-c std_exit.mlmake[1]: Leaving directory `/home/users/builder/rpm/BUILD/ocaml-3.10.0/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
File attachments
The text was updated successfully, but these errors were encountered: