caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Daan Leijen <daan@cs.uu.nl>
To: Bernd Kuhls <bernd.kuhls@informatik.uni-oldenburg.de>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] Problems compiling 3.08.3 on Solaris/SPARC 9
Date: Mon, 21 Mar 2005 16:30:14 +0100	[thread overview]
Message-ID: <423EE886.3010808@cs.uu.nl> (raw)
In-Reply-To: <423EE5DE.3070300@informatik.uni-oldenburg.de>

Bernd Kuhls wrote:

> Running ./configure with the output below does not produce ./.depend
> which breaks building:
>
> make
> Makefile:675: .depend: No such file or directory

Maybe you should try to run "gmake" instead of "make".

-- Daan.

>
> If I rem out the last line in ./Makefile and run "make depend" it does
> not compile, output below.
>
> Running ./configure on a Linux i686 machine works and creates .depend,
> copying this file on the Solaris machine and running "make world.opt"
> works but it should work out of the box.
>
> Any help on this is appreciated.
>
> Greetings, Bernd Kuhls
>
> ================================================================================================== 
>
> make depend
> sed -e 's|%%LIBDIR%%|/usr/local/lib/ocaml|' \
>             -e 's|%%BYTERUN%%|/usr/local/bin/ocamlrun|' \
>             -e 's|%%CCOMPTYPE%%|cc|' \
>             -e 's|%%BYTECC%%|gcc -fno-defer-pop -Wall
> -D_FILE_OFFSET_BITS=64 -D_REENTRANT -fPIC|' \
>             -e 's|%%BYTELINK%%|gcc -Wl,-E|' \
>             -e 's|%%NATIVECC%%|gcc -Wall -D_FILE_OFFSET_BITS=64
> -D_REENTRANT|' \
>             -e 's|%%NATIVELINK%%|gcc |' \
>             -e 's|%%PARTIALLD%%|ld -r |' \
>             -e 's|%%PACKLD%%|ld -r |' \
>             -e 's|%%BYTECCLIBS%%|-lnsl -lsocket -lm  -lcurses -lpthread
> -lposix4|' \
>             -e 's|%%NATIVECCLIBS%%|-lnsl -lsocket -lm |' \
>             -e 's|%%RANLIBCMD%%|ranlib|' \
>             -e 's|%%BINUTILS_NM%%|/usr/local/bin/nm|' \
>             -e 's|%%CC_PROFILE%%|-pg|' \
>             -e 's|%%BINUTILS_OBJCOPY%%|/usr/local/bin/objcopy|' \
>             -e 's|%%ARCH%%|sparc|' \
>             -e 's|%%MODEL%%|default|' \
>             -e 's|%%SYSTEM%%|solaris|' \
>             -e 's|%%EXT_OBJ%%|.o|' \
>             -e 's|%%EXT_ASM%%|.s|' \
>             -e 's|%%EXT_LIB%%|.a|' \
>             -e 's|%%EXT_DLL%%|.so|' \
>             utils/config.mlp > utils/config.ml
> boot/ocamlyacc -v parsing/parser.mly
> boot/ocamlrun boot/ocamllex parsing/lexer.mll
> 151 states, 2994 transitions, table size 12882 bytes
> 2112 additional bytes used for bindings
> boot/ocamlrun boot/ocamllex parsing/linenum.mll
> 12 states, 323 transitions, table size 1364 bytes
> sed -n -e '/^enum/p' -e 's/,//g' -e '/^  /p' byterun/instruct.h | \
>         awk -f tools/make-opcodes > bytecomp/opcodes.ml
> cd byterun; make primitives
> make[1]: Entering directory
> `/disk/sunray/sd2h/local/lude/soft/ocaml-3.08.3/src/default/sparc_sun_solaris2.9/ocaml-3.08.3/byterun' 
>
> sed -n -e "s/CAMLprim value \([a-z0-9_][a-z0-9_]*\).*/\1/p" \
>     alloc.c array.c compare.c extern.c floats.c gc_ctrl.c hash.c
> intern.c interp.c ints.c io.c lexing.c md5.c meta.c obj.c parsing.c
> signals.c str.c sys.c terminfo.c callback.c weak.c finalise.c stacks.c
> dynlink.c > primitives
> make[1]: Leaving directory
> `/disk/sunray/sd2h/local/lude/soft/ocaml-3.08.3/src/default/sparc_sun_solaris2.9/ocaml-3.08.3/byterun' 
>
> (echo 'let builtin_exceptions = [|'; \
>  sed -n -e 's|.*/\* \("[A-Za-z_]*"\) \*/$|  \1;|p' byterun/fail.h | \
>  sed -e '$s/;$//'; \
>          echo '|]'; \
>          echo 'let builtin_primitives = [|'; \
>          sed -e 's/.*/  "&";/' -e '$s/;$//' byterun/primitives; \
>  echo '|]') > bytecomp/runtimedef.ml
> ln -s sparc/arch.ml asmcomp/arch.ml
> ln -s sparc/proc.ml asmcomp/proc.ml
> ln -s sparc/selection.ml asmcomp/selection.ml
> ln -s sparc/reload.ml asmcomp/reload.ml
> ln -s sparc/scheduling.ml asmcomp/scheduling.ml
> cd tools; make CAMLC="../byterun/ocamlrun ../ocamlc -I ../stdlib" 
> cvt_emit
> make[1]: Entering directory
> `/disk/sunray/sd2h/local/lude/soft/ocaml-3.08.3/src/default/sparc_sun_solaris2.9/ocaml-3.08.3/tools' 
>
> ../boot/ocamlrun ../boot/ocamllex cvt_emit.mll
> 12 states, 285 transitions, table size 1212 bytes
> ../byterun/ocamlrun ../ocamlc -I ../stdlib -c -warn-error A -I ../utils
> -I ../parsing -I ../typing -I ../bytecomp -I ../asmcomp -I ../driver
> cvt_emit.ml
> make[1]: ../byterun/ocamlrun: Command not found
> make[1]: *** [cvt_emit.cmo] Error 127
> make[1]: Leaving directory
> `/disk/sunray/sd2h/local/lude/soft/ocaml-3.08.3/src/default/sparc_sun_solaris2.9/ocaml-3.08.3/tools' 
>
> make: *** [tools/cvt_emit] Error 2
>
>
> ================================================================================================== 
>
> ocaml-3.08.3/> ./configure
> 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.
> 64-bit "long long" integer type found (printf with "%ll").
> This is a big-endian architecture.
> Doubles must be doubleword-aligned.
> 64-bit integers must be doubleword-aligned.
> Native division and modulus have round-towards-zero semantics, will use
> them.
> objcopy and nm found in /usr/local/bin
> ranlib found
> #! appears to work in shell scripts
> POSIX signal handling found.
> times() found.
> termcap functions found (with libraries '-lcurses')
> You have BSD sockets (with libraries '-lnsl -lsocket')
> socklen_t is defined in <sys/socket.h>
> IPv6 is supported.
> unistd.h found.
> off_t is defined in <sys/types.h>
> 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.
> sys/select.h found.
> select() found.
> symlink() found.
> waitpid() found.
> wait4() found.
> getgroups() found.
> POSIX termios found.
> setitimer() found.
> gethostname() found.
> uname() found.
> gettimeofday() found.
> mktime() found.
> setsid() found.
> putenv() found.
> setlocale() and <locale.h> found.
> dlopen() found.
> Dynamic loading of shared libraries is supported.
> mmap() found.
> gethostbyname_r() found (with 5 arguments).
> gethostbyaddr_r() found (with 7 arguments).
> Replay debugger supported.
> Cannot detect system stack overflow.
> POSIX threads library supported.
> Options for linking with POSIX threads: -lpthread -lposix4
> sigwait() found
> Bytecode threads library supported.
> Location of X11 include files: /usr/X11R6/include/X11
> Options for linking with X11: -L/usr/X11R6/lib -lX11
> NDBM found (in /usr/include)
> Configuring LablTk...
> tcl.h version 8.4 found with "".
> tk.h found.
> Tcl/Tk libraries found.
> Camlp4 correctly configured.
>
> ** Configuration summary **
>
> Directories where Objective Caml will be installed:
>         binaries.................. /usr/local/bin
>         standard library.......... /usr/local/lib/ocaml
>         manual pages.............. /usr/local/man (with extension .1)
> Configuration for the bytecode compiler:
>         C compiler used........... gcc
>         options for compiling..... -fno-defer-pop -Wall
> -D_FILE_OFFSET_BITS=64 -D_REENTRANT
>         options for linking.......  -Wl,-E  -lnsl -lsocket -lm
> -lcurses -lpthread -lposix4
>         shared libraries are supported
>         options for compiling..... -fPIC -fno-defer-pop -Wall
> -D_FILE_OFFSET_BITS=64 -D_REENTRANT
>         command for building...... gcc -shared -o lib.so
> -Wl,-rpath,/a/path objs
> Configuration for the native-code compiler:
>         hardware architecture..... sparc
>         OS variant................ solaris
>         C compiler used........... gcc
>         options for compiling..... -Wall -D_FILE_OFFSET_BITS=64
> -D_REENTRANT
>         options for linking.......   -lnsl -lsocket -lm
>         assembler ................ $(AS)
>         preprocessed assembler ... gcc -c -DSYS_$(SYSTEM)
>         profiling with gprof ..... supported
>         ocamlopt -pack ........... supported
> Source-level replay debugger: supported
> Additional libraries supported:
>         unix str num dynlink bigarray systhreads threads graph dbm labltk
> Configuration for the "num" library:
>         target architecture ...... sparc (asm level 1)
> 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.4
>         options for compiling ....
>         options for linking ......  -ltk8.4 -ltcl8.4
>
> ** Objective Caml configuration completed successfully **
> ================================================================================================== 
>
>
> _______________________________________________
> Caml-list mailing list. Subscription management:
> http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list
> Archives: http://caml.inria.fr
> Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
> Bug reports: http://caml.inria.fr/bin/caml-bugs



  reply	other threads:[~2005-03-21 15:30 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-03-21 15:18 Bernd Kuhls
2005-03-21 15:30 ` Daan Leijen [this message]
2005-03-21 15:49   ` [Caml-list] " Bernd Kuhls
2005-03-21 16:00 ` Xavier Leroy
2005-03-21 19:35   ` Eijiro Sumii
2005-03-21 20:12     ` Damien Doligez

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=423EE886.3010808@cs.uu.nl \
    --to=daan@cs.uu.nl \
    --cc=bernd.kuhls@informatik.uni-oldenburg.de \
    --cc=caml-list@inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).