Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000128OCamlOCaml generalpublic2000-05-26 20:532000-06-05 14:51
Reporteradministrator 
Assigned To 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionno change required 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0000128: Re: Installation
DescriptionHi,

Thank you for your message to the Caml mailing list.

However your message seems to be a bug report; hence I send it to the
relevant mailing list

caml-bugs@inria.fr

Thank again for your interest in Caml.

Pierre Weis

INRIA, Projet Cristal, Pierre.Weis@inria.fr, http://cristal.inria.fr/~weis/ [^]

> Hello,
>
> I'm trying to install ocaml-2.04 on a Sparc/Solaris workstation. I have to
> install it in my personal account. I'm getting compilation errors in
> asmrun/signals.c. I had the same problem with version 3.00.
>
> I don't know if it comes from a poor installation of the system (quite
> possible), or if I just have to add some options for gcc. Does anybody have a
> clue ?
>
> Below is the output of "make opt" (restarted a second time after the initial
> run), and the output of "configure".
>
> Thanks in advance,
>
> JF Bosc
>
> ---
> zircon:ocaml-2.04>make opt
> cd asmrun; make all
> gcc -I../byterun -DNATIVE_CODE -DTARGET_sparc -DSYS_solaris -O -Wall -c signals.c
> In file included from ../byterun/alloc.h:19, from signals.c:20:
> ../byterun/misc.h:54: warning: `noreturn' attribute directive ignored
> ../byterun/misc.h:55: warning: `noreturn' attribute directive ignored
> In file included from signals.c:26:
> ../byterun/fail.h:49: warning: `noreturn' attribute directive ignored
> ../byterun/fail.h:50: warning: `noreturn' attribute directive ignored
> ../byterun/fail.h:51: warning: `noreturn' attribute directive ignored
> ../byterun/fail.h:52: warning: `noreturn' attribute directive ignored
> ../byterun/fail.h:53: warning: `noreturn' attribute directive ignored
> ../byterun/fail.h:54: warning: `noreturn' attribute directive ignored
> ../byterun/fail.h:55: warning: `noreturn' attribute directive ignored
> ../byterun/fail.h:56: warning: `noreturn' attribute directive ignored
> ../byterun/fail.h:57: warning: `noreturn' attribute directive ignored
> ../byterun/fail.h:58: warning: `noreturn' attribute directive ignored
> ../byterun/fail.h:59: warning: `noreturn' attribute directive ignored
> ../byterun/fail.h:60: warning: `noreturn' attribute directive ignored
> ../byterun/fail.h:61: warning: `noreturn' attribute directive ignored
> ../byterun/fail.h:63: warning: `noreturn' attribute directive ignored
> ../byterun/fail.h:64: warning: `noreturn' attribute directive ignored
> signals.c:342: parse error before `siginfo_t'
> signals.c: In function `trap_handler':
> signals.c:347: `info' undeclared (first use this function)
> signals.c:347: (Each undeclared identifier is reported only once
> signals.c:347: for each function it appears in.)
> signals.c:347: `ILL_ILLTRP' undeclared (first use this function)
> signals.c:349: warning: unsigned int format, different type arg (arg 3)
> signals.c:353: `arg' undeclared (first use this function)
> signals.c: In function `init_signals':
> signals.c:423: structure has no member named `sa_sigaction'
> *** Error code 1
> make: Fatal error: Command failed for target `signals.o'
> Current working directory /stip/user/bosc/Ocaml-2.04/ocaml-2.04/asmrun
> *** Error code 1
> make: Fatal error: Command failed for target `runtimeopt'
>
> ---
> zircon:ocaml-2.04>./configure -prefix /stip/user/bosc/Ocaml-2.04/
> Configuring for a sparc-sun-solaris2.6 ...
> gcc found
> The C compiler is ANSI-compliant.
> Checking the sizes of integers and pointers...
> OK, this is a regular 32 bit architecture.
> This is a big-endian architecture.
> Doubles must be doubleword-aligned.
> ranlib not used
> #! appears to work in shell scripts
> Function "memmove" is provided and handles overlapping moves correctly.
> Function "bcopy" is provided and handles overlapping moves correctly.
> POSIX signal handling found.
> strerror() found.
> times() found.
> termcap functions found (with libraries '-lcurses')
> You have BSD sockets (with libraries '-lnsl -lsocket')
> unistd.h found.
> dirent.h found.
> rewinddir() found.
> lockf() found.
> mkfifo() found.
> getcwd() found.
> getwd() found.
> getpriority() found.
> utime() found.
> utimes() found.
> dup2() found.
> fchmod() found.
> truncate() found.
> select() found.
> sys/select.h found.
> symlink() found.
> waitpid() found.
> wait4() found.
> POSIX termios found.
> setitimer() found.
> gethostname() found.
> uname() found.
> gettimeofday() found.
> mktime() found.
> setsid() found.
> putenv() found.
> setlocale() and <locale.h> found.
> Replay debugger supported.
> Threads library supported.
> Location of X11 include files: /usr/include/X11
> Options for linking with X11: -cclib -L/usr/lib -cclib -lX11
> NDBM library found.
>
> ** Configuration summary **
>
> Directories where Objective Caml will be installed:
> binaries.................. /stip/user/bosc/Ocaml-2.04//bin
> standard library.......... /stip/user/bosc/Ocaml-2.04//lib/ocaml
> manual pages.............. /stip/user/bosc/Ocaml-2.04//man/man1 (with extension .1)
> Configuration for the bytecode compiler:
> C compiler used........... gcc
> options for compiling..... -fno-defer-pop -Wall
> options for linking....... -lcurses -lnsl -lsocket -lm
> Configuration for the native-code compiler:
> hardware architecture..... sparc
> OS variant................ solaris
> C compiler used........... gcc
> options for compiling..... -Wall
> options for linking....... -lcurses -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 threads graph dbm
> The "num" library:
> target architecture ...... supersparc-solaris
> The "graph" library:
> options for compiling ....
> options for linking ...... -cclib -L/usr/lib -cclib -lX11
> 74.59u 69.12s 3:48.01 63.0%


TagsNo tags attached.
Attached Files

- Relationships

-  Notes
(0002114)
administrator (administrator)
2000-06-05 14:50

> I'm trying to install ocaml-2.04 on a Sparc/Solaris workstation. I have to
> install it in my personal account. I'm getting compilation errors in
> asmrun/signals.c. I had the same problem with version 3.00.
[...]
> In file included from ../byterun/alloc.h:19, from signals.c:20:
> ../byterun/misc.h:54: warning: `noreturn' attribute directive ignored
> ../byterun/misc.h:55: warning: `noreturn' attribute directive ignored
[...]
> signals.c:342: parse error before `siginfo_t'
[...]
> zircon:ocaml-2.04>./configure -prefix /stip/user/bosc/Ocaml-2.04/
> Configuring for a sparc-sun-solaris2.6 ...

I can't access a Solaris 2.6 machine right now, but I believe OCaml
2.04 and 3.00 were tested on such a machine and worked all right.

From the log above, the version of gcc on your machine seems quite old
(it doesn't recognize the "noreturn" attribute), and appears not to
select POSIX-compliant system headers, which newer versions of gcc
do. So, I suspect you'd need a more recent version of gcc
(anything posterior to 2.7.2.3 should do).

Hope this helps.

- Xavier Leroy

(0002115)
administrator (administrator)
2000-06-05 14:51

Looks like a gcc problem (gcc too old?). -Xavier
(0002116)
administrator (administrator)
2000-06-05 15:23


Le 5/6 à 14:50, Xavier Leroy a écrit :
> I can't access a Solaris 2.6 machine right now, but I believe OCaml
> 2.04 and 3.00 were tested on such a machine and worked all right.
>
> From the log above, the version of gcc on your machine seems quite old
> (it doesn't recognize the "noreturn" attribute), and appears not to
> select POSIX-compliant system headers, which newer versions of gcc
> do. So, I suspect you'd need a more recent version of gcc
> (anything posterior to 2.7.2.3 should do).

Yes, it worked fine with a more recent gcc (sorry, I should have made a
followup to close my question).

Thanks a lot.

JF


- Issue History
Date Modified Username Field Change
2005-11-18 10:13 administrator New Issue


Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker