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

Bytecode-only build does not work: build system tries to use missing ocamlopt and freezes #39

Open
barracuda156 opened this issue Jan 28, 2024 · 2 comments

Comments

@barracuda156
Copy link

This is the same issue which was present in 1.4, and despite a PR #30 intending to fix it, it is still broken in 1.5, unfortunately.

This is what happens on ppc (where only bytecode is available):

--->  Configuring ocaml-num
--->  Building ocaml-num
Executing:  cd "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_ocaml_ocaml-num/ocaml-num/work/num-1.5" && /usr/bin/make -j6 -w all 
make: Entering directory `/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_ocaml_ocaml-num/ocaml-num/work/num-1.5'
/usr/bin/make -C src all
make[1]: Entering directory `/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_ocaml_ocaml-num/ocaml-num/work/num-1.5/src'
ocamlc -ccopt -DBNG_ARCH_power -c bng.c
ocamlc -ccopt -DBNG_ARCH_power -c nat_stubs.c
ocamlc -w +a-4-9-41-42-44-45-48  -bin-annot -g -safe-string -strict-sequence -strict-formats -I +compiler-libs -c int_misc.mli
ocamlc -w +a-4-9-41-42-44-45-48  -bin-annot -g -safe-string -strict-sequence -strict-formats -I +compiler-libs -c nat.mli
ocamlc -w +a-4-9-41-42-44-45-48  -bin-annot -g -safe-string -strict-sequence -strict-formats -I +compiler-libs -c arith_flags.mli
ocamlc -w +a-4-9-41-42-44-45-48  -bin-annot -g -safe-string -strict-sequence -strict-formats -I +compiler-libs -c arith_status.mli
cp ../toplevel/num_top_printers.mli ../toplevel/num_top.mli ../toplevel/num_top_printers.ml ../toplevel/num_top.ml .
cp ../toplevel/num_top_printers.mli ../toplevel/num_top.mli ../toplevel/num_top_printers.ml ../toplevel/num_top.ml .
cp ../toplevel/num_top_printers.mli ../toplevel/num_top.mli ../toplevel/num_top_printers.ml ../toplevel/num_top.ml .
ocamlc -w +a-4-9-41-42-44-45-48  -bin-annot -g -safe-string -strict-sequence -strict-formats -I +compiler-libs -c num_top.mli
echo 'version = "1.6~dev"' > META.top
cat META.num-top.in >> META.top
ocamlopt -w +a-4-9-41-42-44-45-48  -bin-annot -g -safe-string -strict-sequence -strict-formats -I +compiler-libs -c int_misc.ml
make[1]: posix_spawn: ocamlopt: No such file or directory
ocamlc -w +a-4-9-41-42-44-45-48  -bin-annot -g -safe-string -strict-sequence -strict-formats -I +compiler-libs -c int_misc.ml
ocamlc -w +a-4-9-41-42-44-45-48  -bin-annot -g -safe-string -strict-sequence -strict-formats -I +compiler-libs -c nat.ml
ocamlc -w +a-4-9-41-42-44-45-48  -bin-annot -g -safe-string -strict-sequence -strict-formats -I +compiler-libs -c big_int.mli
ocamlc -w +a-4-9-41-42-44-45-48  -bin-annot -g -safe-string -strict-sequence -strict-formats -I +compiler-libs -c arith_flags.ml
ocamlc -w +a-4-9-41-42-44-45-48  -bin-annot -g -safe-string -strict-sequence -strict-formats -I +compiler-libs -c ratio.mli
ocamlc -w +a-4-9-41-42-44-45-48  -bin-annot -g -safe-string -strict-sequence -strict-formats -I +compiler-libs -c arith_status.ml
ocamlc -w +a-4-9-41-42-44-45-48  -bin-annot -g -safe-string -strict-sequence -strict-formats -I +compiler-libs -c num_top.ml
ocamlc -w +a-4-9-41-42-44-45-48  -bin-annot -g -safe-string -strict-sequence -strict-formats -I +compiler-libs -c big_int.ml
ocamlc -w +a-4-9-41-42-44-45-48  -bin-annot -g -safe-string -strict-sequence -strict-formats -I +compiler-libs -c ratio.ml
ocamlc -w +a-4-9-41-42-44-45-48  -bin-annot -g -safe-string -strict-sequence -strict-formats -I +compiler-libs -c num.mli
ocamlmklib -oc nums bng.o nat_stubs.o
ocamlc -w +a-4-9-41-42-44-45-48  -bin-annot -g -safe-string -strict-sequence -strict-formats -I +compiler-libs -c num.ml
ocamlc -w +a-4-9-41-42-44-45-48  -bin-annot -g -safe-string -strict-sequence -strict-formats -I +compiler-libs -c num_top_printers.mli
ocamlc -w +a-4-9-41-42-44-45-48  -bin-annot -g -safe-string -strict-sequence -strict-formats -I +compiler-libs -c num_top_printers.ml
ocamlc -w +a-4-9-41-42-44-45-48  -bin-annot -g -safe-string -strict-sequence -strict-formats -I +compiler-libs -a -o num_top.cma num_top_printers.cmo num_top.cmo
ocamlmklib -o nums -oc nums -linkall int_misc.cmo nat.cmo big_int.cmo arith_flags.cmo ratio.cmo num.cmo arith_status.cmo

Notice what the build system tries:

ocamlopt -w +a-4-9-41-42-44-45-48  -bin-annot -g -safe-string -strict-sequence -strict-formats -I +compiler-libs -c int_misc.ml
make[1]: posix_spawn: ocamlopt: No such file or directory

In result the build just freezes and I have to interrupt the process. Libraries are in fact successfully built, but forcing ocamlopt call prevents it from completion.

@dra27 Could you please take a look? It should be pretty trivial to fix in the master: we just need it to check if ocamlopt is de facto available, or at least offer a configure option to switch off native code generation, if reliable detection during the build is problematic for some reason.

@barracuda156
Copy link
Author

If I apply the patch to cut out everything related to ocamlopt, so that ocamlc is used exclusively, as it should, everything works fine, and tests pass:

36-246% sudo port -v -n test ocaml-num
Password:
Warning: configured user/group macports does not exist, will build as root
Portfile for ocaml-num changed since last build; discarding previous state.
--->  Computing dependencies for ocaml-num.
--->  Fetching distfiles for ocaml-num
--->  Verifying checksums for ocaml-num
--->  Checksumming num-1.5.tar.gz
--->  Extracting ocaml-num
--->  Extracting num-1.5.tar.gz
Executing:  cd "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_ocaml_ocaml-num/ocaml-num/work" && /usr/bin/gzip -dc '/opt/local/var/macports/distfiles/ocaml-num/num-1.5.tar.gz' | /usr/bin/gnutar --no-same-owner -xf - 
--->  Applying patches to ocaml-num
--->  Applying patch-no-ocamlopt.diff
Executing:  cd "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_ocaml_ocaml-num/ocaml-num/work/num-1.5" && /usr/bin/patch -p0 < '/opt/PPCSnowLeopardPorts/ocaml/ocaml-num/files/patch-no-ocamlopt.diff'
patching file Makefile.common
patching file src/Makefile
patching file test/Makefile
--->  Configuring ocaml-num
--->  Building ocaml-num
Executing:  cd "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_ocaml_ocaml-num/ocaml-num/work/num-1.5" && /usr/bin/make -j6 -w all 
make: Entering directory `/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_ocaml_ocaml-num/ocaml-num/work/num-1.5'
/usr/bin/make -C src all
make[1]: Entering directory `/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_ocaml_ocaml-num/ocaml-num/work/num-1.5/src'
ocamlc -ccopt -DBNG_ARCH_power -c bng.c
ocamlc -ccopt -DBNG_ARCH_power -c nat_stubs.c
ocamlc -w +a-4-9-41-42-44-45-48  -bin-annot -g -safe-string -strict-sequence -strict-formats -I +compiler-libs -c int_misc.mli
ocamlc -w +a-4-9-41-42-44-45-48  -bin-annot -g -safe-string -strict-sequence -strict-formats -I +compiler-libs -c nat.mli
ocamlc -w +a-4-9-41-42-44-45-48  -bin-annot -g -safe-string -strict-sequence -strict-formats -I +compiler-libs -c arith_flags.mli
ocamlc -w +a-4-9-41-42-44-45-48  -bin-annot -g -safe-string -strict-sequence -strict-formats -I +compiler-libs -c arith_status.mli
cp ../toplevel/num_top_printers.mli ../toplevel/num_top.mli ../toplevel/num_top_printers.ml ../toplevel/num_top.ml .
cp ../toplevel/num_top_printers.mli ../toplevel/num_top.mli ../toplevel/num_top_printers.ml ../toplevel/num_top.ml .
ocamlc -w +a-4-9-41-42-44-45-48  -bin-annot -g -safe-string -strict-sequence -strict-formats -I +compiler-libs -c num_top.mli
echo 'version = "1.6~dev"' > META.top
cat META.num-top.in >> META.top
ocamlc -w +a-4-9-41-42-44-45-48  -bin-annot -g -safe-string -strict-sequence -strict-formats -I +compiler-libs -c int_misc.ml
ocamlc -w +a-4-9-41-42-44-45-48  -bin-annot -g -safe-string -strict-sequence -strict-formats -I +compiler-libs -c nat.ml
ocamlc -w +a-4-9-41-42-44-45-48  -bin-annot -g -safe-string -strict-sequence -strict-formats -I +compiler-libs -c big_int.mli
ocamlc -w +a-4-9-41-42-44-45-48  -bin-annot -g -safe-string -strict-sequence -strict-formats -I +compiler-libs -c arith_flags.ml
ocamlc -w +a-4-9-41-42-44-45-48  -bin-annot -g -safe-string -strict-sequence -strict-formats -I +compiler-libs -c ratio.mli
ocamlc -w +a-4-9-41-42-44-45-48  -bin-annot -g -safe-string -strict-sequence -strict-formats -I +compiler-libs -c arith_status.ml
ocamlc -w +a-4-9-41-42-44-45-48  -bin-annot -g -safe-string -strict-sequence -strict-formats -I +compiler-libs -c num_top.ml
ocamlmklib -oc nums bng.o nat_stubs.o
ocamlc -w +a-4-9-41-42-44-45-48  -bin-annot -g -safe-string -strict-sequence -strict-formats -I +compiler-libs -c big_int.ml
ocamlc -w +a-4-9-41-42-44-45-48  -bin-annot -g -safe-string -strict-sequence -strict-formats -I +compiler-libs -c ratio.ml
ocamlc -w +a-4-9-41-42-44-45-48  -bin-annot -g -safe-string -strict-sequence -strict-formats -I +compiler-libs -c num.mli
ocamlc -w +a-4-9-41-42-44-45-48  -bin-annot -g -safe-string -strict-sequence -strict-formats -I +compiler-libs -c num.ml
ocamlc -w +a-4-9-41-42-44-45-48  -bin-annot -g -safe-string -strict-sequence -strict-formats -I +compiler-libs -c num_top_printers.mli
ocamlc -w +a-4-9-41-42-44-45-48  -bin-annot -g -safe-string -strict-sequence -strict-formats -I +compiler-libs -c num_top_printers.ml
ocamlc -w +a-4-9-41-42-44-45-48  -bin-annot -g -safe-string -strict-sequence -strict-formats -I +compiler-libs -a -o num_top.cma num_top_printers.cmo num_top.cmo
ocamlmklib -o nums -oc nums -linkall int_misc.cmo nat.cmo big_int.cmo arith_flags.cmo ratio.cmo num.cmo arith_status.cmo
make[1]: Leaving directory `/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_ocaml_ocaml-num/ocaml-num/work/num-1.5/src'
make: Leaving directory `/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_ocaml_ocaml-num/ocaml-num/work/num-1.5'
--->  Staging ocaml-num into destroot
. changed
	gid expected 0 found 80 modified
./usr missing (created)
. missing (directory not created: File exists)
./Applications missing (created)
./Developer missing (created)
./Library missing (created)
. changed
	gid expected 80 found 0 modified
./bin missing (created)
./etc missing (created)
./include missing (created)
./lib missing (created)
./lib/pkgconfig missing (created)
./libexec missing (created)
./sbin missing (created)
./share missing (created)
./share/doc missing (created)
./share/info missing (created)
./share/man missing (created)
./share/man/cat1 missing (created)
./share/man/cat2 missing (created)
./share/man/cat3 missing (created)
./share/man/cat4 missing (created)
./share/man/cat5 missing (created)
./share/man/cat6 missing (created)
./share/man/cat7 missing (created)
./share/man/cat8 missing (created)
./share/man/cat9 missing (created)
./share/man/catl missing (created)
./share/man/catn missing (created)
./share/man/man1 missing (created)
./share/man/man2 missing (created)
./share/man/man3 missing (created)
./share/man/man4 missing (created)
./share/man/man5 missing (created)
./share/man/man6 missing (created)
./share/man/man7 missing (created)
./share/man/man8 missing (created)
./share/man/man9 missing (created)
./share/man/manl missing (created)
./share/man/mann missing (created)
./share/nls missing (created)
./share/nls/C missing (created)
./share/nls/af_ZA.ISO8859-1 missing (created)
./share/nls/af_ZA.ISO8859-15 missing (created)
./share/nls/bg_BG.CP1251 missing (created)
./share/nls/cs_CZ.ISO8859-2 missing (created)
./share/nls/da_DK.ISO8859-1 missing (created)
./share/nls/da_DK.ISO8859-15 missing (created)
./share/nls/de_AT.ISO8859-1 missing (created)
./share/nls/de_AT.ISO8859-15 missing (created)
./share/nls/de_CH.ISO8859-1 missing (created)
./share/nls/de_CH.ISO8859-15 missing (created)
./share/nls/de_DE.ISO8859-1 missing (created)
./share/nls/de_DE.ISO8859-15 missing (created)
./share/nls/el_GR.ISO8859-7 missing (created)
./share/nls/en_AU.ISO8859-1 missing (created)
./share/nls/en_AU.ISO8859-15 missing (created)
./share/nls/en_AU.US-ASCII missing (created)
./share/nls/en_CA.ISO8859-1 missing (created)
./share/nls/en_CA.ISO8859-15 missing (created)
./share/nls/en_CA.US-ASCII missing (created)
./share/nls/en_GB.ISO8859-1 missing (created)
./share/nls/en_GB.ISO8859-15 missing (created)
./share/nls/en_GB.US-ASCII missing (created)
./share/nls/en_NZ.ISO8859-1 missing (created)
./share/nls/en_NZ.ISO8859-15 missing (created)
./share/nls/en_NZ.US-ASCII missing (created)
./share/nls/en_US.ISO8859-1 missing (created)
./share/nls/en_US.ISO8859-15 missing (created)
./share/nls/es_ES.ISO8859-1 missing (created)
./share/nls/es_ES.ISO8859-15 missing (created)
./share/nls/et_EE.ISO8859-15 missing (created)
./share/nls/fi_FI.ISO8859-1 missing (created)
./share/nls/fi_FI.ISO8859-15 missing (created)
./share/nls/fr_BE.ISO8859-1 missing (created)
./share/nls/fr_BE.ISO8859-15 missing (created)
./share/nls/fr_CA.ISO8859-1 missing (created)
./share/nls/fr_CA.ISO8859-15 missing (created)
./share/nls/fr_CH.ISO8859-1 missing (created)
./share/nls/fr_CH.ISO8859-15 missing (created)
./share/nls/fr_FR.ISO8859-1 missing (created)
./share/nls/fr_FR.ISO8859-15 missing (created)
./share/nls/hi_IN.ISCII-DEV missing (created)
./share/nls/hr_HR.ISO8859-2 missing (created)
./share/nls/hu_HU.ISO8859-2 missing (created)
./share/nls/is_IS.ISO8859-1 missing (created)
./share/nls/is_IS.ISO8859-15 missing (created)
./share/nls/it_CH.ISO8859-1 missing (created)
./share/nls/it_CH.ISO8859-15 missing (created)
./share/nls/it_IT.ISO8859-1 missing (created)
./share/nls/it_IT.ISO8859-15 missing (created)
./share/nls/ja_JP.SJIS missing (created)
./share/nls/ja_JP.eucJP missing (created)
./share/nls/ko_KR.eucKR missing (created)
./share/nls/la_LN.ISO8859-1 missing (created)
./share/nls/la_LN.ISO8859-15 missing (created)
./share/nls/la_LN.ISO8859-2 missing (created)
./share/nls/la_LN.ISO8859-4 missing (created)
./share/nls/la_LN.US-ASCII missing (created)
./share/nls/lt_LT.ISO8859-4 missing (created)
./share/nls/nl_BE.ISO8859-1 missing (created)
./share/nls/nl_BE.ISO8859-15 missing (created)
./share/nls/nl_NL.ISO8859-1 missing (created)
./share/nls/nl_NL.ISO8859-15 missing (created)
./share/nls/no_NO.ISO8859-1 missing (created)
./share/nls/no_NO.ISO8859-15 missing (created)
./share/nls/pl_PL.ISO8859-2 missing (created)
./share/nls/pt_BR.ISO8859-1 missing (created)
./share/nls/pt_PT.ISO8859-1 missing (created)
./share/nls/pt_PT.ISO8859-15 missing (created)
./share/nls/ro_RO.ISO8859-2 missing (created)
./share/nls/ru_RU.CP866 missing (created)
./share/nls/ru_RU.ISO8859-5 missing (created)
./share/nls/ru_RU.KOI8-R missing (created)
./share/nls/sk_SK.ISO8859-2 missing (created)
./share/nls/sl_SI.ISO8859-2 missing (created)
./share/nls/sv_SE.ISO8859-1 missing (created)
./share/nls/sv_SE.ISO8859-15 missing (created)
./share/nls/tr_TR.ISO8859-9 missing (created)
./share/nls/uk_UA.ISO8859-5 missing (created)
./share/nls/uk_UA.KOI8-U missing (created)
./share/nls/zh_CN.eucCN missing (created)
./share/nls/zh_TW.Big5 missing (created)
./share/skel missing (created)
./var missing (created)
./var/cache missing (created)
./var/db missing (created)
./var/log missing (created)
./var/run missing (created)
./var/spool missing (created)
./www missing (created)
xinstall: mkdir /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_ocaml_ocaml-num/ocaml-num/work/destroot/opt/local/lib/ocaml
xinstall: mkdir /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_ocaml_ocaml-num/ocaml-num/work/destroot/opt/local/lib/ocaml/site-lib
xinstall: mkdir /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_ocaml_ocaml-num/ocaml-num/work/destroot/opt/local/lib/ocaml/site-lib/stublibs
Executing:  cd "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_ocaml_ocaml-num/ocaml-num/work/num-1.5" && /usr/bin/make -w findlib-install DESTDIR=/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_ocaml_ocaml-num/ocaml-num/work/destroot 
make: Entering directory `/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_ocaml_ocaml-num/ocaml-num/work/num-1.5'
/usr/bin/make -C src findlib-install
make[1]: Entering directory `/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_ocaml_ocaml-num/ocaml-num/work/num-1.5/src'
cp META.top META
ocamlfind install num-top META num_top.cma num_top_printers.cmi num_top.cmi
Installed /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_ocaml_ocaml-num/ocaml-num/work/destroot//opt/local/lib/ocaml/site-lib/num-top/num_top.cmi
Installed /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_ocaml_ocaml-num/ocaml-num/work/destroot//opt/local/lib/ocaml/site-lib/num-top/num_top_printers.cmi
Installed /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_ocaml_ocaml-num/ocaml-num/work/destroot//opt/local/lib/ocaml/site-lib/num-top/num_top.cma
Installed /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_ocaml_ocaml-num/ocaml-num/work/destroot//opt/local/lib/ocaml/site-lib/num-top/META
rm -f META
cp META.modern META
ocamlfind install num META nums.cma libnums.a big_int.cmi nat.cmi num.cmi ratio.cmi arith_status.cmi big_int.mli nat.mli num.mli ratio.mli arith_status.mli big_int.cmti nat.cmti num.cmti ratio.cmti arith_status.cmti  dllnums.so
Installed /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_ocaml_ocaml-num/ocaml-num/work/destroot//opt/local/lib/ocaml/site-lib/num/arith_status.cmti
Installed /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_ocaml_ocaml-num/ocaml-num/work/destroot//opt/local/lib/ocaml/site-lib/num/ratio.cmti
Installed /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_ocaml_ocaml-num/ocaml-num/work/destroot//opt/local/lib/ocaml/site-lib/num/num.cmti
Installed /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_ocaml_ocaml-num/ocaml-num/work/destroot//opt/local/lib/ocaml/site-lib/num/nat.cmti
Installed /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_ocaml_ocaml-num/ocaml-num/work/destroot//opt/local/lib/ocaml/site-lib/num/big_int.cmti
Installed /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_ocaml_ocaml-num/ocaml-num/work/destroot//opt/local/lib/ocaml/site-lib/num/arith_status.mli
Installed /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_ocaml_ocaml-num/ocaml-num/work/destroot//opt/local/lib/ocaml/site-lib/num/ratio.mli
Installed /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_ocaml_ocaml-num/ocaml-num/work/destroot//opt/local/lib/ocaml/site-lib/num/num.mli
Installed /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_ocaml_ocaml-num/ocaml-num/work/destroot//opt/local/lib/ocaml/site-lib/num/nat.mli
Installed /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_ocaml_ocaml-num/ocaml-num/work/destroot//opt/local/lib/ocaml/site-lib/num/big_int.mli
Installed /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_ocaml_ocaml-num/ocaml-num/work/destroot//opt/local/lib/ocaml/site-lib/num/arith_status.cmi
Installed /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_ocaml_ocaml-num/ocaml-num/work/destroot//opt/local/lib/ocaml/site-lib/num/ratio.cmi
Installed /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_ocaml_ocaml-num/ocaml-num/work/destroot//opt/local/lib/ocaml/site-lib/num/num.cmi
Installed /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_ocaml_ocaml-num/ocaml-num/work/destroot//opt/local/lib/ocaml/site-lib/num/nat.cmi
Installed /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_ocaml_ocaml-num/ocaml-num/work/destroot//opt/local/lib/ocaml/site-lib/num/big_int.cmi
Installed /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_ocaml_ocaml-num/ocaml-num/work/destroot//opt/local/lib/ocaml/site-lib/num/libnums.a
Installed /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_ocaml_ocaml-num/ocaml-num/work/destroot//opt/local/lib/ocaml/site-lib/num/nums.cma
Installed /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_ocaml_ocaml-num/ocaml-num/work/destroot//opt/local/lib/ocaml/site-lib/stublibs/dllnums.so
Installed /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_ocaml_ocaml-num/ocaml-num/work/destroot//opt/local/lib/ocaml/site-lib/stublibs/dllnums.so.owner
Installed /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_ocaml_ocaml-num/ocaml-num/work/destroot//opt/local/lib/ocaml/site-lib/num/META
rm -f META
make[1]: Leaving directory `/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_ocaml_ocaml-num/ocaml-num/work/num-1.5/src'
make: Leaving directory `/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_ocaml_ocaml-num/ocaml-num/work/num-1.5'
--->  Testing ocaml-num
Executing:  cd "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_ocaml_ocaml-num/ocaml-num/work/num-1.5" && make test 
make -C test all
ocamlc -I ../src  ../src/nums.cma test.ml test_nats.ml test_big_ints.ml test_ratios.ml test_nums.ml test_io.ml end_test.ml -o test.byt
----- Testing in bytecode...
ocamlrun -I ../src ./test.byt

num_digits_nat
 -1... 0... 1...
length_nat
 1...
equal_nat
 1... 2... 3... 4...
incr_nat
 1... 2... 3... 4...
decr_nat
 1... 2... 3... 4...
is_zero_nat
 1... 2... 3... 4...
string_of_nat
 1... 2...
string_of_nat && nat_of_string
 1... 2... 3... 4... 5... 6... 7... 8... 9... 10... 11... 12... 13... 14... 15... 16... 17... 18... 19... 20... 21... 22...
gcd_nat
 1... 2... 3... 4... 5... 6... 7... 8... 9... 10... 11... 12... 13... 14... 15... 16... 17... 18... 19... 20...
sqrt_nat
 1... 2... 3... 4... 5...
compare_big_int
 1... 2... 3... 4... 5... 6... 7... 8... 9... 10... 11... 12... 13...
pred_big_int
 1... 2... 3...
succ_big_int
 1... 2... 3...
add_big_int
 1... 2... 3... 4... 5... 6... 7... 8... 9... 10... 11... 12... 13... 14... 15... 16... 17...
sub_big_int
 1... 2... 3... 4... 5... 6... 7... 8... 9... 10... 11... 12... 13... 14... 15... 16... 17...
mult_int_big_int
 1... 2... 3... 4...
mult_big_int
 1... 2... 3... 4... 5...
quomod_big_int
 1... 2... 3... 4... 5... 6... 7... 8... 9... 10... 11... 12... 13... 14... 15... 16... 17... 18... 19... 20... 21... 22... 23... 24... 25...
gcd_big_int
 1... 2... 3... 4... 5... 6... 7... 8... 9... 10... 11... 12... 13... 14... 15... 16... 17... 18... 19... 20... 21... 22... 23... 24... 25... 26... 27... 28...
int_of_big_int
 1... 2... 3... 4... 5... 6... 7... 8...
is_int_big_int
 1... 2... 3... 4... 5... 6... 7... 8... 9... 10...
sys_string_of_big_int
 1...
big_int_of_string
 1... 2... 4... 5... 6... 7... 9... 10... 18... 19... 20... 21...
power_base_int
 1... 2... 3...
base_power_big_int
 1... 2... 3...
power_int_positive_big_int
 1... 2... 3... 4... 5... 6... 7...
power_big_int_positive_int
 1... 2... 3... 4... 5...
power_big_int_positive_big_int
 1... 2... 3... 4... 5... 6... 7... 8... 9...
square_big_int
 1... 2... 3... 4...
big_int_of_nativeint
 1... 2... 3...
nativeint_of_big_int
 1... 2... 2...
big_int_of_int32
 1... 2... 3...
int32_of_big_int
 1... 2... 3... 4... 5... 6... 7... 8...
big_int_of_int64
 1... 2... 3... 4... 5... 6... 7... 8...
int64_of_big_int
 1... 2... 3... 4... 5... 6... 7... 8...
and_big_int
 1... 2... 3... 4... 5... 6...
or_big_int
 1... 2... 3... 4... 5... 6...
xor_big_int
 1... 2... 3... 4... 5... 6...
shift_left_big_int
 1... 2... 2... 3... 4... 5... 6...
shift_right_big_int
 1... 2... 3... 4... 5... 6...
shift_right_towards_zero_big_int
 1... 2...
extract_big_int
 1... 2... 3... 4... 5... 6... 7... 8... 9... 10...
hashing of big integers
 1... 2... 3... 4... 5... 6...
float_of_big_int
 1... 2... 3... 4... 5... 6... 7... 8...
create_ratio
 1... 2... 3... 4... 5... 6... 7... 8...
create_normalized_ratio
 1... 2... 3... 4... 5... 6... 7... 8... 9... 10...
null_denominator
 1... 2...
sign_ratio
 1... 2... 3...
normalize_ratio
 1... 2... 3... 4...
report_sign_ratio
 1... 2...
is_integer_ratio
 1... 2...
add_ratio
 1... 2... 3... 4... 5... 6... 7... 8... 9... 10... 11... 12... 1... 2... 3... 4...
sub_ratio
 1... 2... 3... 4... 5... 6... 7... 8...
mult_ratio
 1... 2... 3... 4... 5... 6... 7... 8...
div_ratio
 1... 2... 3... 4... 5... 6... 7... 8...
integer_ratio
 1... 2... 3... 4... 5...
floor_ratio
 1... 2... 3... 4... 5...
round_ratio
 1... 2... 3... 4... 5...
ceiling_ratio
 1... 2... 3... 4... 5... 6...
eq_ratio
 1... 2... 3... 4... 5...
compare_ratio
 1... 2... 3... 4... 5... 6... 7... 8... 9... 10... 11... 12... 13... 14... 15... 16... 17... 18... 19... 20... 21... 22... 23... 24... 25... 26... 27... 28... 29... 30... 31... 32... 33... 34... 35... 36...
eq_big_int_ratio
 1... 2... 3... 4... 5...
compare_big_int_ratio
 1... 2... 3... 4... 5... 6... 7... 8... 9...
int_of_ratio
 1... 2... 3... 4... 5...
ratio_of_int
 1... 2...
nat_of_ratio
 1... 2... 3... 4...
ratio_of_big_int
 1...
big_int_of_ratio
 1... 2... 3...
string_of_ratio
 1... 2... 3... 4...
ratio_of_string
 1... 6... 7... 8...
round_futur_last_digit
 1... 2... 3... 4... 5... 6... 7... 8... 9... 10... 11... 12... 13... 14... 15... 16... 17... 18... 19... 20... 21... 22... 23... 24...
approx_ratio_fix
 1... 2... 3... 4... 5... 6... 7... 8... 9... 10... 11... 12... 13... 14...
approx_ratio_exp
 1... 2... 3... 4... 5... 6... 7... 8... 9...
float_of_ratio
 1...
add_num
 1... 2... 3... 4... 5... 6... 7... 8... 9...
sub_num
 1... 2... 3... 4... 5... 7... 8... 9... 10...
mult_num
 1... 2... 3... 4... 5... 6... 7... 8... 9...
div_num
 1... 2... 3... 4... 5... 6... 7... 8... 9...
is_integer_num
 1... 2... 3... 4...
num_of_ratio
 1... 2... 3...
num_of_string
 1... 7... 8... 11... 12... 13... 14... 15...
output_value/input_value on nats
 1... 2... 3... 4... 5... 6... 7...
output_value/input_value on big ints
 1... 2... 3... 4... 5...
output_value/input_value on nums
 1... 2... 3... 4... 5... 6... 7... 8...
************* TESTS COMPLETED SUCCESSFULLY ****************

@MIvanchev
Copy link

I just got this error as well, it doesn't work as @barracuda156 points out. A fix is needed.

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

No branches or pull requests

2 participants