Discussion:
installation problem
Ch. A. Herrmann
2005-10-10 15:54:39 UTC
Permalink
Dear MetaOCaml hackers,

the installation of MetaOCaml on my laptop (mobile AMD athlon processor,
family 6, model 8)
fails, in the interaction of gcc and asm, due to lack of registers. The
recognized architecture
was ia32 which might have more registers, I don't know. The error
message is attached.

The problem occurs with MetaOCaml_307... as well as MetaOCaml_308...
versions. Currently, I'm
using gcc version 4.0.2 20050901 but the problem also occured about half
a year ago with another gcc.
I'd rather prefer use of other compiler flags or small,
correctness-preserving changes to the source code
than to install an additional gcc version, which might cause an
avalanche of further problems.

Since it is not the first time the problem occurs I'd like if it could
be fixed in future releases. For the
meantime, please tell me how to circumvent the problem without much effort.

If you are convinced that the problem can best be fixed by an OCaml
expert who is not on
this mailing list, please tell me the email address or forward this email.

Thank you very much in advance
--
Christoph Herrmann
University of Passau, Germany
Ch. A. Herrmann
2005-10-10 16:00:52 UTC
Permalink
Dear MetaOCaml hackers,

the installation of MetaOCaml on my laptop (mobile AMD athlon processor,
family 6, model 8)
fails, in the interaction of gcc and asm, due to lack of registers. The
recognized architecture
was ia32 which might have more registers, I don't know. The error
message is attached.

The problem occurs with MetaOCaml_307... as well as MetaOCaml_308...
versions. Currently, I'm
using gcc version 4.0.2 20050901 but the problem also occured about half
a year ago with another gcc.
I'd rather prefer use of other compiler flags or small,
correctness-preserving changes to the source code
than to install an additional gcc version, which might cause an
avalanche of further problems.

Since it is not the first time the problem occurs I'd like if it could
be fixed in future releases. For the
meantime, please tell me how to circumvent the problem without much effort.

If you are convinced that the problem can best be fixed by an OCaml
expert who is not on
this mailing list, please tell me the email address or forward this email.

Thank you very much in advance
--
Christoph Herrmann
University of Passau, Germany
Cristiano Calcagno
2005-10-10 16:15:12 UTC
Permalink
Dear Christoph,
the error you mention seems to appear very early in the compilation.
Did you check if it is a metaocaml-only issue or if it also happens when
compiling e.g. plain ocaml 3.08?

Cristiano.
Post by Ch. A. Herrmann
Dear MetaOCaml hackers,
the installation of MetaOCaml on my laptop (mobile AMD athlon processor,
family 6, model 8)
fails, in the interaction of gcc and asm, due to lack of registers. The
recognized architecture
was ia32 which might have more registers, I don't know. The error
message is attached.
The problem occurs with MetaOCaml_307... as well as MetaOCaml_308...
versions. Currently, I'm
using gcc version 4.0.2 20050901 but the problem also occured about half
a year ago with another gcc.
I'd rather prefer use of other compiler flags or small,
correctness-preserving changes to the source code
than to install an additional gcc version, which might cause an
avalanche of further problems.
Since it is not the first time the problem occurs I'd like if it could
be fixed in future releases. For the
meantime, please tell me how to circumvent the problem without much effort.
If you are convinced that the problem can best be fixed by an OCaml
expert who is not on
this mailing list, please tell me the email address or forward this email.
Thank you very much in advance
--
Christoph Herrmann
University of Passau, Germany
------------------------------------------------------------------------
make[1]: Entering directory `/home/herrmann/MetaOCaml_307_alpha_015/otherlibs/str'
gcc -O -I../../byterun -fno-defer-pop -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT -fPIC -c -o strstubs.o strstubs.c
./../boot/ocamlrun ../../tools/ocamlmklib -o str strstubs.o
./../ocamlcomp.sh -c -warn-error A str.mli
./../ocamlcomp.sh -c -warn-error A str.ml
./../boot/ocamlrun ../../tools/ocamlmklib -ocamlc '../../ocamlcomp.sh' -o str str.cmo
make[1]: Leaving directory `/home/herrmann/MetaOCaml_307_alpha_015/otherlibs/str'
make[1]: Entering directory `/home/herrmann/MetaOCaml_307_alpha_015/otherlibs/num'
gcc -O -I../../byterun -fno-defer-pop -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT -fPIC -DBNG_ARCH_ia32 -DBNG_ASM_LEVEL=2 -c -o bng.o bng.c
bng_ia32.c:153: error: can't find a register in class ‘GENERAL_REGS’ while reloading ‘asm’
make[1]: *** [bng.o] Error 1
make[1]: Leaving directory `/home/herrmann/MetaOCaml_307_alpha_015/otherlibs/num'
make: *** [otherlibraries] Error 2
h
------------------------------------------------------------------------
_______________________________________________
MetaOCaml-Hackers-L mailing list
https://mailman.rice.edu/mailman/listinfo/metaocaml-hackers-l
Ch. A. Herrmann
2005-10-10 16:34:58 UTC
Permalink
Dear Cristiano,

the error occured during "make world", but only with the *Meta*OCaml
distribution,
*not* with the newest OCaml release version 3.08.4 which also succeeded
in the bootstrapping.
Not to forget I called "configure" with "-no-tk" and nevertheless got a
message that "tk" was not available,
but that's not likely to be connected with the installation failure.
--
Christoph
Post by Cristiano Calcagno
Dear Christoph,
the error you mention seems to appear very early in the compilation.
Did you check if it is a metaocaml-only issue or if it also happens
when compiling e.g. plain ocaml 3.08?
Cristiano.
Post by Ch. A. Herrmann
Dear MetaOCaml hackers,
the installation of MetaOCaml on my laptop (mobile AMD athlon processor,
family 6, model 8)
fails, in the interaction of gcc and asm, due to lack of registers. The
recognized architecture
was ia32 which might have more registers, I don't know. The error
message is attached.
The problem occurs with MetaOCaml_307... as well as MetaOCaml_308...
versions. Currently, I'm
using gcc version 4.0.2 20050901 but the problem also occured about half
a year ago with another gcc.
I'd rather prefer use of other compiler flags or small,
correctness-preserving changes to the source code
than to install an additional gcc version, which might cause an
avalanche of further problems.
Since it is not the first time the problem occurs I'd like if it could
be fixed in future releases. For the
meantime, please tell me how to circumvent the problem without much effort.
If you are convinced that the problem can best be fixed by an OCaml
expert who is not on
this mailing list, please tell me the email address or forward this email.
Thank you very much in advance
--
Christoph Herrmann
University of Passau, Germany
------------------------------------------------------------------------
make[1]: Entering directory
`/home/herrmann/MetaOCaml_307_alpha_015/otherlibs/str'
gcc -O -I../../byterun -fno-defer-pop -Wall -D_FILE_OFFSET_BITS=64
-D_REENTRANT -fPIC -c -o strstubs.o strstubs.c
./../boot/ocamlrun ../../tools/ocamlmklib -o str strstubs.o
./../ocamlcomp.sh -c -warn-error A str.mli
./../ocamlcomp.sh -c -warn-error A str.ml
./../boot/ocamlrun ../../tools/ocamlmklib -ocamlc
'../../ocamlcomp.sh' -o str str.cmo
make[1]: Leaving directory
`/home/herrmann/MetaOCaml_307_alpha_015/otherlibs/str'
make[1]: Entering directory
`/home/herrmann/MetaOCaml_307_alpha_015/otherlibs/num'
gcc -O -I../../byterun -fno-defer-pop -Wall -D_FILE_OFFSET_BITS=64
-D_REENTRANT -fPIC -DBNG_ARCH_ia32 -DBNG_ASM_LEVEL=2 -c -o bng.o bng.c
bng_ia32.c:153: error: can't find a register in class
‘GENERAL_REGS’ while reloading ‘asm’
make[1]: *** [bng.o] Error 1
make[1]: Leaving directory
`/home/herrmann/MetaOCaml_307_alpha_015/otherlibs/num'
make: *** [otherlibraries] Error 2
h
------------------------------------------------------------------------
_______________________________________________
MetaOCaml-Hackers-L mailing list
https://mailman.rice.edu/mailman/listinfo/metaocaml-hackers-l
Loading...