From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id VAA14135; Fri, 15 Oct 2004 21:17:36 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id VAA14077 for ; Fri, 15 Oct 2004 21:17:35 +0200 (MET DST) Received: from mproxy.gmail.com (rproxy.gmail.com [64.233.170.198]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id i9FJHYQV021599 for ; Fri, 15 Oct 2004 21:17:34 +0200 Received: by mproxy.gmail.com with SMTP id 74so12576rnk for ; Fri, 15 Oct 2004 12:17:34 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding; b=sxlgyS0XrTMbKM8kkbUjzDX9iV4I0Vu4KxxlOa+c6HWASHvA3PnF2ooHpUXwB8Xboeugo8BPOmuOjqSqbLqW8Q8aAmgK9V/u+EkeNjfI6s/iVXn3wRhSLAfj3nXMmBYDjCKAd5AB1y5NrTJmgFYz9ZZMMnb3OBEN2riOtpOhOhk Received: by 10.38.72.80 with SMTP id u80mr381840rna; Fri, 15 Oct 2004 12:17:04 -0700 (PDT) Received: by 10.38.72.59 with HTTP; Fri, 15 Oct 2004 12:17:03 -0700 (PDT) Message-ID: Date: Fri, 15 Oct 2004 14:17:03 -0500 From: TiM Reply-To: TiM To: caml-list@inria.fr Subject: [Caml-list] problem building ocaml 3.08.1 on MIPS/IRIX Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Miltered: at nez-perce with ID 4170224E.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Loop: caml-list@inria.fr X-Spam: no; 0.00; mips:01 mips:01 gcc:01 -prefix:01 binaries:01 gcc:01 -wall:01 -lm:01 -lcurses:01 -fpic:01 -wall:01 -shared:01 -rpath:01 objs:01 -wl:01 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk greetings. i am attemping to build ocaml 3.08.1 on a MIPS/IRIX system, but i am having a few troublems. note: IRIX v6.5 gcc v2.95.3 cc v7.41 ./configure -prefix /home/treid yields: ** Configuration summary ** Directories where Objective Caml will be installed: binaries.................. /home/treid/bin standard library.......... /home/treid/lib/ocaml manual pages.............. /home/treid/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....... -lm -lcurses -lpthread shared libraries are supported options for compiling..... -fPIC -fno-defer-pop -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT command for building...... ld -shared -rdata_shared -o lib.so -rpath /a/path objs Configuration for the native-code compiler: hardware architecture..... mips OS variant................ irix C compiler used........... cc options for compiling..... -n32 -D_FILE_OFFSET_BITS=64 -D_REENTRANT options for linking....... -n32 -Wl,-woff,84 -lm assembler ................ $(AS) -n32 -O2 preprocessed assembler ... $(AS) -n32 -O2 profiling with gprof ..... not supported ocamlopt -pack ........... not supported (no binutils) Source-level replay debugger: supported Additional libraries supported: unix str num dynlink bigarray systhreads threads graph dbm Configuration for the "num" library: target architecture ...... mips (asm level 1) Configuration for the "graph" library: options for compiling .... options for linking ...... -lX11 The "labltk" library: not found so gcc is being used to build the bytecode compiler, and cc is being used for the native compiler. i believe that gcc is operating in 64b mode, but the "-n32" option to cc definately means that cc is operating in 32b mode. my goal is maximum 64b floating point performance, so i am pretty sure that the "-n32" option needs to be replaced with the "-64" option, and i would like to explore "-O3" and various other optimizations, although i understand that fancy optimizations may break the ocaml compiler. anyhow, without me messing with the Makefile at all, "make world" and "make bootstrap" complete just fine. however, "make opt" dies with: make[1]: Entering directory `/u/treid/ocaml/ocaml-3.08.1/stdlib' ../boot/ocamlrun ../ocamlopt -warn-error A -nostdlib `./Compflags pervasives.cmx` -c pervasives.ml as: Error: /tmp/camlasm86466e.s, line 445: Overflow: 4372995238176751616 .word 4372995238176751616 as: Error: /tmp/camlasm86466e.s, line 451: Overflow: 4503599627370496 .word 4503599627370496 as: Error: /tmp/camlasm86466e.s, line 457: Overflow: 9218868437227405311 .word 9218868437227405311 as: Error: /tmp/camlasm86466e.s, line 463: Overflow: 9218868437227405313 .word 9218868437227405313 as: Error: /tmp/camlasm86466e.s, line 469: Overflow: 4503599627370496 .word -4503599627370496 as: Error: /tmp/camlasm86466e.s, line 475: Overflow: 9218868437227405312 .word 9218868437227405312 as: Error: /tmp/camlasm86466e.s, line 3163: li expression must be 32-bit immediate li $5, -9223372036854775807 as: Error: /tmp/camlasm86466e.s, line 3164: li expression must be 32-bit immediate li $4, -9223372036854775807 as: Error: /tmp/camlasm86466e.s, line 3166: li expression must be 32-bit immediate li $3, 9223372036854775807 Assembler error, input left in file /tmp/camlasm86466e.s make[1]: *** [pervasives.cmx] Error 2 make[1]: Leaving directory `/u/treid/ocaml/ocaml-3.08.1/stdlib' make: *** [libraryopt] Error 2 so, nievely, i start over from a freshly unpacked tarball, configure, and change all occurances of "-n32" in config/Makefile to "-64", but "make opt" dies in exactly the same way. any help appreciated ... TiM ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners