O'Caml won't compile on Leopard
When I try to install O'Caml I get the following error messages (note that I use MacPorts 1.6 from SVN, see version info at the bottom; I also use make -j3 but it didn't compile with default settings either):
mjakl@mbp:~ % sudo port install ocaml
---> Building ocaml with target world.opt
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_trunk_dports_lang_ocaml/work/ocaml-3.10.0" && make -j3 world.opt " returned error 2
Command output: make[1]: Nothing to be done for `all'.
cd yacc; make all
if test -f stdlib/libcamlrun.a; then :; else \
ln -s ../byterun/libcamlrun.a stdlib/libcamlrun.a; fi
cd yacc; make all
make[1]: Nothing to be done for `all'.
cp yacc/ocamlyacc boot/ocamlyacc
cd stdlib; make COMPILER=../boot/ocamlc all
make[1]: Nothing to be done for `all'.
cd stdlib; make all
make[1]: Nothing to be done for `all'.
cd stdlib; cp stdlib.cma std_exit.cmo *.cmi camlheader ../boot
make[1]: Nothing to be done for `all'.
cd asmrun; make all
if test -f boot/libcamlrun.a; then :; else \
ln -s ../byterun/libcamlrun.a boot/libcamlrun.a; fi
gcc -I../byterun -DCAML_NAME_SPACE -DNATIVE_CODE -DTARGET_i386 -DSYS_macosx -O -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT -c -o signals_asm.o signals_asm.c
if test -d stdlib/caml; then :; else \
ln -s ../byterun stdlib/caml; fi
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 asmcomp/arch.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 asmcomp/debuginfo.mli
signals_asm.c: In function 'segv_handler':
signals_asm.c:193: error: dereferencing pointer to incomplete type
signals_asm.c:193: error: dereferencing pointer to incomplete type
signals_asm.c: In function 'caml_init_signals':
signals_asm.c:241: error: storage size of 'stk' isn't known
signals_asm.c:241: warning: unused variable 'stk'
make[1]: *** [signals_asm.o] Error 1
make: *** [runtimeopt] Error 2
make: *** Waiting for unfinished jobs....
Error: Status 1 encountered during processing.
mjakl@mbp:~ % port --version
MacPorts 1.600
Entering interactive mode... ("help" for help, "quit" to quit)
[Users/mjakl] >
Change History (3)
Cc: |
jakl.michael@… pguyot@… added
|
Milestone: |
→ Port Bugs
|
Owner: |
changed from macports-dev@… to pguyot@…
|
Resolution: |
→ duplicate
|
Status: |
new →
closed
|
Closing as a duplicate of Issue #13308 and #13236.
This error is caused by the new UNIX2003 signal handling changes, which the current O'Caml system does not handle yet.