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

Re: Installation #2469

Closed
vicuna opened this issue May 26, 2000 · 3 comments
Closed

Re: Installation #2469

vicuna opened this issue May 26, 2000 · 3 comments
Labels

Comments

@vicuna
Copy link

vicuna commented May 26, 2000

Original bug ID: 128
Reporter: administrator
Status: closed
Resolution: not a bug
Priority: normal
Severity: minor
Category: ~DO NOT USE (was: OCaml general)

Bug description

Hi,

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%

@vicuna
Copy link
Author

vicuna commented Jun 5, 2000

Comment author: administrator

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

@vicuna
Copy link
Author

vicuna commented Jun 5, 2000

Comment author: administrator

Looks like a gcc problem (gcc too old?). -Xavier

@vicuna vicuna closed this as completed Jun 5, 2000
@vicuna
Copy link
Author

vicuna commented Jun 5, 2000

Comment author: administrator

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

@vicuna vicuna added the bug label Mar 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant