From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Delivered-To: caml-list@yquem.inria.fr Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id 9DBE8BC48 for ; Mon, 21 Mar 2005 16:18:43 +0100 (CET) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id j2LFIhG0023948 for ; Mon, 21 Mar 2005 16:18:43 +0100 Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id QAA27809 for ; Mon, 21 Mar 2005 16:18:42 +0100 (MET) Received: from polaris-neu.offis.uni-oldenburg.de (polaris-neu.OFFIS.Uni-Oldenburg.DE [134.106.52.177]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id j2LFIgDh023938 for ; Mon, 21 Mar 2005 16:18:42 +0100 Received: from [134.106.52.65] (sunray.offis.uni-oldenburg.de [134.106.52.65]) by polaris-neu.offis.uni-oldenburg.de (8.12.10+Sun/8.12.10) with ESMTP id j2LFIadm003085 for ; Mon, 21 Mar 2005 16:18:37 +0100 (CET) Message-ID: <423EE5DE.3070300@informatik.uni-oldenburg.de> Date: Mon, 21 Mar 2005 16:18:54 +0100 From: Bernd Kuhls User-Agent: Mozilla Thunderbird 1.0 (X11/20041208) X-Accept-Language: en-us, en MIME-Version: 1.0 To: caml-list@inria.fr Subject: Problems compiling 3.08.3 on Solaris/SPARC 9 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-UNIOL_OFFIS-MailScanner-ABT_IS-Information: Please contact the ISP for more information X-MailScanner-From: bernd.kuhls@informatik.uni-oldenburg.de X-Miltered: at concorde with ID 423EE5D3.001 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at concorde with ID 423EE5D2.001 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; bernd:01 bernd:01 uname:01 sunos:01 makefile:01 makefile:01 sed:01 libdir:01 usr:01 lib:01 ocaml:01 byterun:01 usr:01 ocamlrun:01 bytecc:01 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on yquem.inria.fr X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.0.2 X-Spam-Level: Hi, uname -a SunOS sunray 5.9 Generic_117171-14 sun4u sparc SUNW,Sun-Fire-880 Solaris Running ./configure with the output below does not produce ./.depend which breaks building: make Makefile:675: .depend: No such file or directory 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 IPv6 is supported. unistd.h found. off_t is defined in 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 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 ** ==================================================================================================