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
Problems compiling ocaml-3.02 on solaris ! #2887
Comments
Comment author: administrator
I'm not surprised "make -j 2" causes problems -- the top-level Both "cc -fast" and "gcc" compile OCaml just fine on my test Solaris
This is interesting. It could be a code generation bug in gcc 3.0,
Yes, this is a known issue. GNU as doesn't implement the Thanks for your feedback,
|
Comment author: administrator Dear Xavier, I tried again with cc -fast and it worked (it's worth the optimization ;)). Mmmh , sorry. gcc problem still exists ! Viele Gruesse / Best Regards -- Mario Mario Deilmann
|
Comment author: administrator
Yes, and I was able to track it down. It's quite interesting, actually. This is now fixed in the working sources. You should be able to get Thanks for the interesting bug report.
|
Comment author: administrator Fixed 2001-08-03 by XL. |
Original bug ID: 470
Reporter: administrator
Status: closed
Resolution: fixed
Priority: normal
Severity: minor
Category: ~DO NOT USE (was: OCaml general)
Bug description
Hi,
I just tried to compile ocaml-3.02 on
poohocaml/ocaml-3.02> uname -a ;
SunOS pooh 5.7 Generic_106541-12 sun4u sparc SUNW,Ultra-4
with Sun's cc and Gnu gcc 3.0 and encountered several problems. I finally got it
run with Sun's cc without options and without parallel make (-j 2).
Another little problem is that Sparc.S won't compiler with Gnu as. I choose
/usr/ccs/bin/as and it works.
GNU assembler version 2.11 (sparc-sun-solaris2.7) using BFD version 2.11
So I am happy now. Probably you are interesting in the problems :
1st try with WorkShop Compilers 5.0 98/12/15 C 5.0
./configure -cc "cc -fast" -prefix /home/mdeil
** Configuration summary **
Directories where Objective Caml will be installed:$(AS) -P -DSYS_$ (SYSTEM)
binaries.................. /home/mdeil/bin
standard library.......... /home/mdeil/lib/ocaml
manual pages.............. /home/mdeil/man/man1 (with extension .1)
Configuration for the bytecode compiler:
C compiler used........... cc -fast
options for compiling.....
options for linking....... -lnsl -lsocket -lm -lcurses
Configuration for the native-code compiler:
hardware architecture..... sparc
OS variant................ solaris
C compiler used........... cc -fast
options for compiling.....
options for linking....... -lnsl -lsocket -lm
assembler ................ $(AS)
preprocessed assembler ...
profiling with gprof ..... not supported
Source-level replay debugger: supported
Configuration for the external libraries:
libraries supported ...... unix str num dynlink bigarray threads graph
dbm
The "num" library:
target architecture ...... supersparc-solaris
The "graph" library:
options for compiling ....
options for linking ...... -cclib -lX11
The "labltk" library: configuration failed
kdoertel has logged on pts/17 from kottan.
kdoertel has logged on pts/18 from kottan.
mdeil has logged on pts/19 from 192.168.3.53.
poohocaml/ocaml-3.02> make world
...
boot/ocamlrun boot/ocamlc -I boot -I utils -I parsing -I typing -I bytecomp -I
asmcomp -I driver -I toplevel -c utils/misc.mli
Trying without -fast and without -j 2 for make lead to the same results. Mmmh,
try switching to GCC 3.0. see next
=============================================*
2nd try with gcc version 3.0
./configure -prefix /home/mdeil
** Configuration summary **
Directories where Objective Caml will be installed:
binaries.................. /home/mdeil/bin
standard library.......... /home/mdeil/lib/ocaml
manual pages.............. /home/mdeil/man/man1 (with extension .1)
Configuration for the bytecode compiler:
C compiler used........... gcc
options for compiling..... -fno-defer-pop -Wall -Wno-unused
options for linking....... -lnsl -lsocket -lm -lcurses
Configuration for the native-code compiler:
hardware architecture..... sparc
OS variant................ solaris
C compiler used........... gcc
options for compiling..... -Wall -Wno-unused
options for linking....... -lnsl -lsocket -lm
assembler ................ $(AS)
preprocessed assembler ... gcc -c -DSYS_$(SYSTEM)
profiling with gprof ..... not supported
Source-level replay debugger: supported
Configuration for the external libraries:
libraries supported ...... unix str num dynlink bigarray threads graph
dbm
The "num" library:
target architecture ...... supersparc-solaris
The "graph" library:
options for compiling ....
options for linking ...... -cclib -lX11
The "labltk" library: configuration failed
poohocaml/ocaml-3.02> make world
...
../boot/ocamlrun ../boot/ocamlc -g -c char.ml
make[1]: *** [char.cmo] Bus Error (core dumped)
make[1]: *** Deleting file
char.cmo' make[1]: Leaving directory
/home/mdeil/data/soft/ocaml/ocaml-3.02/stdlib'make: *** [coldstart] Error 2
in another run (don't know what I did to come that far) the procedure came to
../boot/ocamlrun ../boot/ocamlc -g -nopervasives -c pervasives.mli
and I stopped the program after running nearly 45 minutes without any progress.
process is still running
...
Viele Gruesse / Best Regards
-- Mario
The text was updated successfully, but these errors were encountered: