* [Caml-list] OCaml 3.0.6 build problems (Linux Alpha)
@ 2002-09-07 22:33 Erik Arneson
2002-09-07 22:56 ` Erik Arneson
2002-09-09 14:25 ` Xavier Leroy
0 siblings, 2 replies; 3+ messages in thread
From: Erik Arneson @ 2002-09-07 22:33 UTC (permalink / raw)
To: OCaml Mailing List
Hi everybody,
I'm having problems building OCaml 3.0.6 on Linux Alpha. I'm using
the Compaq C Compiler version 6.5.6.002 and am building from the
source RPM on the OCaml website.
Here's the configuration information:
./configure -cc 'ccc -fast' -bindir /usr/bin -libdir /usr/lib/ocaml -mandir /usr/share/man/man1
** Configuration summary **
Directories where Objective Caml will be installed:
binaries.................. /usr/bin
standard library.......... /usr/lib/ocaml
manual pages.............. /usr/share/man (with extension .1)
Configuration for the bytecode compiler:
C compiler used........... ccc -fast
options for compiling..... -D_FILE_OFFSET_BITS=64
options for linking....... -Wl,-E -lm -ldl -lcurses
shared libraries are supported
options for compiling..... -fPIC -D_FILE_OFFSET_BITS=64
command for building...... ccc -fast -shared -o lib.so -Wl,-rpath,/a/path objs
Configuration for the native-code compiler:
hardware architecture..... alpha
OS variant................ linux
C compiler used........... ccc -fast
options for compiling..... -D_FILE_OFFSET_BITS=64
options for linking....... -lm
assembler ................ $(AS)
preprocessed assembler ... gcc -c -DSYS_$(SYSTEM)
profiling with gprof ..... not supported
ocamlopt -pack ........... supported
Source-level replay debugger: supported
Additional libraries supported:
unix str num dynlink bigarray threads graph dbm
Configuration for the "num" library:
target architecture ...... C
Configuration for the "graph" library:
options for compiling .... -I/usr/X11R6/include
options for linking ...... -L/usr/X11R6/lib -lX11
The "labltk" library: not found
And here's where the build fails:
mkdir -p stdlib_man
sh ./runocamldoc true -man -d stdlib_man -I ../parsing -I ../utils -I ../typing -I ../driver -I ../bytecomp -I ../tools -I ../toplevel/ -I ../stdlib -I ../otherlibs/str -I ../otherlibs/dynlink -I ../otherlibs/unix -I ../otherlibs/num -I ../otherlibs/graph \
-t "OCaml library" -man-mini \
../stdlib/*.mli ../otherlibs/unix/unix.mli ../otherlibs/str/str.mli ../otherlibs/bigarray/bigarray.mli ../otherlibs/num/num.mli
Compilation error. Use the OCaml compiler to get more details.
Warning: Element Complex.t not found
1 error(s) encountered
make[1]: *** [stdlib_man/Pervasives.o] Error 1
make[1]: Leaving directory `/home/erik/RPM/BUILD/ocaml-3.06/ocamldoc'
make: *** [ocamldoc] Error 2
Has anybody seen this problem before? How can I fix it? Thanks!
--
;; Erik Arneson <erik@aarg.net> JD, Ashland Lodge No. 23 ;;
;; GPG Key ID: 2048R/8B4CBC9C RAM, Siskiyou Chapter No. 21 ;;
;; <http://erik.arneson.org/> <http://www.aarg.net/mason> ;;
-------------------
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Caml-list] OCaml 3.0.6 build problems (Linux Alpha)
2002-09-07 22:33 [Caml-list] OCaml 3.0.6 build problems (Linux Alpha) Erik Arneson
@ 2002-09-07 22:56 ` Erik Arneson
2002-09-09 14:25 ` Xavier Leroy
1 sibling, 0 replies; 3+ messages in thread
From: Erik Arneson @ 2002-09-07 22:56 UTC (permalink / raw)
To: OCaml Mailing List
Well, I thought I'd try it with GCC before somebody suggested I try it
(especially since it's recommended in the INSTALL document), but I get
an error in the same place:
sh ./runocamldoc true -man -d stdlib_man -I ../parsing -I ../utils -I ../typing -I ../driver -I ../bytecomp -I ../tools -I ../toplevel/ -I ../stdlib -I ../otherlibs/str -I ../otherlibs/dynlink -I ../otherlibs/unix -I ../otherlibs/num -I ../otherlibs/graph \
-t "OCaml library" -man-mini \
../stdlib/*.mli ../otherlibs/unix/unix.mli ../otherlibs/str/str.mli ../otherlibs/bigarray/bigarray.mli ../otherlibs/num/num.mli
Fatal error: out of memory.
make[1]: *** [stdlib_man/Pervasives.o] Error 2
make[1]: Leaving directory `/home/erik/RPM/BUILD/ocaml-3.06/ocamldoc'
make: *** [ocamldoc] Error 2
And I am most certainly not out of memory. Got lots of it left! I
wasn't even swapping.
--
;; Erik Arneson <erik@aarg.net> JD, Ashland Lodge No. 23 ;;
;; GPG Key ID: 2048R/8B4CBC9C RAM, Siskiyou Chapter No. 21 ;;
;; <http://erik.arneson.org/> <http://www.aarg.net/mason> ;;
-------------------
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Caml-list] OCaml 3.0.6 build problems (Linux Alpha)
2002-09-07 22:33 [Caml-list] OCaml 3.0.6 build problems (Linux Alpha) Erik Arneson
2002-09-07 22:56 ` Erik Arneson
@ 2002-09-09 14:25 ` Xavier Leroy
1 sibling, 0 replies; 3+ messages in thread
From: Xavier Leroy @ 2002-09-09 14:25 UTC (permalink / raw)
To: Erik Arneson; +Cc: OCaml Mailing List
> I'm having problems building OCaml 3.0.6 on Linux Alpha.
This is a known problem with recent libc versions on 64-bit Linux.
The good news is that the workaround is already in the 3.06 sources,
it just needs to be activated at configuration time.
The patch below to "configure" should do the job.
- Xavier Leroy
Index: csl/configure
diff -c csl/configure:1.174 csl/configure:1.175
*** csl/configure:1.174 Wed Aug 7 14:45:00 2002
--- csl/configure Tue Aug 27 10:30:53 2002
***************
*** 13,19 ****
# #
#########################################################################
! # $Id: configure,v 1.174 2002/08/07 12:45:00 garrigue Exp $
configure_options="$*"
prefix=/usr/local
--- 13,19 ----
# #
#########################################################################
! # $Id: configure,v 1.175 2002/08/27 08:30:53 xleroy Exp $
configure_options="$*"
prefix=/usr/local
***************
*** 495,501 ****
# Further machine-specific hacks
case "$host" in
! ia64-*-linux*)
echo "Will use mmap() instead of malloc() for allocation of major heap chunks."
echo "#define USE_MMAP_INSTEAD_OF_MALLOC" >> s.h;;
esac
--- 495,501 ----
# Further machine-specific hacks
case "$host" in
! ia64-*-linux*|alpha*-*-linux*)
echo "Will use mmap() instead of malloc() for allocation of major heap chunks."
echo "#define USE_MMAP_INSTEAD_OF_MALLOC" >> s.h;;
esac
-------------------
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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2002-09-09 14:26 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-09-07 22:33 [Caml-list] OCaml 3.0.6 build problems (Linux Alpha) Erik Arneson
2002-09-07 22:56 ` Erik Arneson
2002-09-09 14:25 ` Xavier Leroy
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox