Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] Build error on DEC Alpha
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Daniel Andor <da209@c...>
Subject: [Caml-list] Build error on DEC Alpha
Hi,

I've been trying to build 3.02 on a Tru64 box. I can't use the native code
compiler to link. I'm new to the list, so apologies if this has been
reported/fixed already (brief search in archive showed naught).

It seems the problem only occurs when trying to link to a library.

Platform details:

$ cc -V
Compaq C V6.3-027 on Compaq Tru64 UNIX V5.1 (Rev. 732)
Compiler Driver V6.3-026 (sys) cc Driver
$ uname -a
OSF1 tcm18.phy.cam.ac.uk V5.1 732 alpha

Error details:

$ cat trivial.ml
print_int 5;;
$ ocamlopt trivial.ml -o go; ./go
5$ cat trivial2.ml
Printf.printf "%d" 5;;
$ ocamlopt trivial2.ml -c
$ ocamlopt trivial2.ml -o go
ld:
/temp/usr/local/lib/ocaml/stdlib.a(array.o): branch to shared library symbol
'__divq' will cause unpredictable behavior.
/temp/usr/local/lib/ocaml/stdlib.a(array.o): branch relocation out-of-range,
bad object file produced, can't branch from 0x120013e34 to 0x3ff800f062c
[snip more of the same]
Error during linking
$

Error details on make opt.opt:

ld:
typing/printtyp.o: branch to shared library symbol '__divq' will cause
unpredictable behavior.
typing/printtyp.o: branch relocation out-of-range, bad object file produced,
can't branch from 0x1201067b0 to 0x3ff800f062c
typing/printtyp.o: branch to shared library symbol '__remq' will cause
unpredictable behavior.
typing/printtyp.o: branch relocation out-of-range, bad object file produced,
can't branch from 0x1201067f8 to 0x3ff801148bc
[snip -- lots more of the same]
Error during linking
*** Exit 2
Stop.
-------------------
Bug reports: http://caml.inria.fr/bin/caml-bugs  FAQ: http://caml.inria.fr/FAQ/
To unsubscribe, mail caml-list-request@inria.fr  Archives: http://caml.inria.fr