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

install, make fails #3596

Closed
vicuna opened this issue Aug 28, 2002 · 3 comments
Closed

install, make fails #3596

vicuna opened this issue Aug 28, 2002 · 3 comments
Labels

Comments

@vicuna
Copy link

vicuna commented Aug 28, 2002

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

Bug description

Full_Name: Jason Addison
Version: 3.06
OS: SunOS
Submission from: lectura.cs.arizona.edu (192.12.69.186)

I'm trying to install a "personal" ocaml on a SunOS computer.
configure seems to work fine, but the make fails. Here is the listing:

bash-2.04$ uname -a
SunOS lectura.CS.Arizona.EDU 5.9 Generic sun4u sparc SUNW,Sun-Fire-280R
bash-2.04$ ./configure -prefix /home/jaddison/usr/SunOS
Configuring for a sparc-sun-solaris2.9 ...
gcc found
The C compiler is ANSI-compliant.
Checking the sizes of integers and pointers...
OK, this is a regular 32 bit architecture.

...

Configuration for the "num" library:
target architecture ...... supersparc-solaris
Configuration for the "graph" library:
options for compiling .... -I/usr/X11R6/include
options for linking ...... -L/usr/X11R6/lib -lX11
Configuration for the "labltk" library:
use tcl/tk version ....... 8.3
options for compiling ....
options for linking ...... -ltk8.3 -ltcl8.3 -ldl
bash-2.04$ make world > log.world 2>&1
bash-2.04$ cat log.world
cd byterun; make all
sed -n -e '/^ /s/ ([A-Z])/ &&lbl_\1/gp'
-e '/^}/q' instruct.h > jumptbl.h
gcc -O -fno-defer-pop -Wall -Wno-unused -D_FILE_OFFSET_BITS=64 -c interp.c
gcc -O -fno-defer-pop -Wall -Wno-unused -D_FILE_OFFSET_BITS=64 -c misc.c
gcc -O -fno-defer-pop -Wall -Wno-unused -D_FILE_OFFSET_BITS=64 -c stacks.c
gcc -O -fno-defer-pop -Wall -Wno-unused -D_FILE_OFFSET_BITS=64 -c fix_code.c

...

gcc -O -fno-defer-pop -Wall -Wno-unused -D_FILE_OFFSET_BITS=64 -c ints.c
gcc -O -fno-defer-pop -Wall -Wno-unused -D_FILE_OFFSET_BITS=64 -c floats.c
floats.c: In function float_of_bytes': floats.c:327: warning: implicit declaration of function memcpy'
gcc -O -fno-defer-pop -Wall -Wno-unused -D_FILE_OFFSET_BITS=64 -c str.c
gcc -O -fno-defer-pop -Wall -Wno-unused -D_FILE_OFFSET_BITS=64 -c array.c

...

gcc -O -fno-defer-pop -Wall -Wno-unused -D_FILE_OFFSET_BITS=64 -c callback.c
gcc -O -fno-defer-pop -Wall -Wno-unused -D_FILE_OFFSET_BITS=64 -c debugger.c
In file included from /usr/include/netinet/in.h:41,
from /usr/include/sys/socket.h:203,
from debugger.c:52:
/usr/include/sys/stream.h:307: parse error before "projid_t"
*** Error code 1
make: Fatal error: Command failed for target debugger.o' Current working directory /home/jaddison/swd/ocaml-3.06/byterun *** Error code 1 make: Fatal error: Command failed for target coldstart'

@vicuna
Copy link
Author

vicuna commented Sep 3, 2002

Comment author: administrator

I'm trying to install a "personal" ocaml on a SunOS computer.
configure seems to work fine, but the make fails. Here is the listing:
gcc -O -fno-defer-pop -Wall -Wno-unused -D_FILE_OFFSET_BITS=64 -c debugger.c
In file included from /usr/include/netinet/in.h:41,
from /usr/include/sys/socket.h:203,
from debugger.c:52:
/usr/include/sys/stream.h:307: parse error before "projid_t"

This is a "name space pollution" problem: a macro or typedef in one of
the system includes conflicts with an OCaml macro or typedef. Or the
other way around :-) This is nearly impossible to diagnose and fix
without access to the machine, and we don't have access to a Solaris 9
machine.

If you feel comfortable with the C preprocessor, you could do

    gcc -E -D_FILE_OFFSET_BITS=64 debugger.c

and try to understand the exact macro/typedef conflict that occurs in
<sys/stream.h>. I'm willing to help, but can't do much without access
to a Solaris 9 machine.

  • Xavier Leroy

@vicuna
Copy link
Author

vicuna commented Sep 5, 2002

Comment author: administrator

This is nearly impossible to diagnose and fix
without access to the machine, and we don't have access to a Solaris 9
machine.

Strike this: we were able to get access to a freshly-installed Solaris
9 machine. Using the version of gcc provided by Sun on the
installation CDs, the problem you reported doesn't show up, and OCaml
3.06 compiles fine right out of the box. So, I suggest you check
carefully which C compiler you used to build OCaml, and select Sun's
provided gcc.

Hope this helps,

  • Xavier Leroy

@vicuna
Copy link
Author

vicuna commented Sep 5, 2002

Comment author: administrator

Cannot reproduce on fresh install of Solaris 9 with provided gcc.

@vicuna vicuna closed this as completed Sep 5, 2002
@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