On 6/1/12 4:22 PM, Peter Dyballa wrote: > Hello! > > These are the famous last lines: > > ../boot/ocamlrun ../ocamlopt -nostdlib -I ../stdlib -o ocamllex.opt > cset.cmx syntax.cmx parser.cmx lexer.cmx table.cmx lexgen.cmx compact.cmx > common.cmx output.cmx outputbis.cmx main.cmx > cd tools; make opt.opt > ../boot/ocamlrun ../ocamlopt -nostdlib -I ../stdlib -warn-error A -I > ../utils -I ../parsing -I ../typing -I ../bytecomp -I ../asmcomp -I ../driver > -c depend.ml > ../boot/ocamlrun ../ocamlopt -nostdlib -I ../stdlib -warn-error A -I > ../utils -I ../parsing -I ../typing -I ../bytecomp -I ../asmcomp -I ../driver > -c ocamldep.ml > ../boot/ocamlrun ../ocamlopt -nostdlib -I ../stdlib -I ../utils -I > ../parsing -I ../typing -I ../bytecomp -I ../asmcomp -I ../driver -o > ocamldep.opt misc.cmx config.cmx clflags.cmx terminfo.cmx linenum.cmx > warnings.cmx location.cmx longident.cmx syntaxerr.cmx parser.cmx lexer.cmx > parse.cmx \ > depend.cmx ocamldep.cmx > ./build/ocamlbuild-native-only.sh > + ./boot/ocamlrun boot/myocamlbuild native_stdlib_mixed_mode ocamlopt > lex/ocamllex ocamlbuild/ocamlbuildlib.cmxa ocamlbuild/ocamlbuildlightlib.cmxa > ocamlbuild/ocamlbuild.native ocamlbuild/ocamlbuildlight.native > ../ocamlcompopt.sh -nostdlib -c -g -annot -warn-error A -w L -w R -w Z > -I ../otherlibs/unix -for-pack Ocamlbuild_pack -I ocamlbuild -I stdlib -o > ocamlbuild/ocamlbuild.cmx ocamlbuild/ocamlbuild.ml > ../ocamlcompopt.sh -nostdlib unix.cmxa -g -I stdlib -I > ../otherlibs/unix ocamlbuild/ocamlbuild_executor.cmx > ocamlbuild/ocamlbuild_pack.cmx ocamlbuild/ocamlbuild_unix_plugin.cmx > ocamlbuild/ocamlbuild.cmx -o ocamlbuild/ocamlbuild.native > ld: in ocamlbuild/ocamlbuild_pack.o, in section __DATA,__data reloc 1: > sectionForAddress(0x4028944) address not in any section for architecture i386 > collect2: ld returned 1 exit status > File "caml_startup", line 1, characters 0-1: > Error: Error during linking > Exit code 2 while executing this command: > ../ocamlcompopt.sh -nostdlib unix.cmxa -g -I stdlib -I > ../otherlibs/unix ocamlbuild/ocamlbuild_executor.cmx > ocamlbuild/ocamlbuild_pack.cmx ocamlbuild/ocamlbuild_unix_plugin.cmx > ocamlbuild/ocamlbuild.cmx -o ocamlbuild/ocamlbuild.native > make: *** [ocamlbuild.native] Error 2 > > Package manager version: 0.32.6 > Distribution version: selfupdate-rsync Sat Jun 2 00:10:47 2012, 10.6, i386 > Trees: local/main stable/main unstable/main > Xcode: 4.0.2 > Max. Fink build jobs: 8 > > Hardware is 64-bit Sandy Bridge Core i. > > > The build script looks OK: > > #!/bin/sh -ex > if [ i386 = "i386" ]; then > ./configure -tkdefs -I/sw/include -tklibs -L/sw/lib -prefix /sw > -mandir /sw/share/man -cc "gcc -m32" -as "as -arch i386" -aspp "gcc -m32 -c" > else > ./configure -tkdefs -I/sw/include -tklibs -L/sw/lib -prefix /sw > -mandir /sw/share/man > fi > make world opt opt.opt > > The file "caml_startup" cannot be found anywhere. > > The file command reports: > > ocaml-3.12.1-1/ocaml-3.12.1/_build/ocamlbuild/ocamlbuild_pack.o: Mach-O > object i386 > > Lipo says it's 'non-fat' and 'architecture: i386'. File also reports: > > _build/ocamlbuild/ocamlbuild_pack.cmi: Objective caml interface file > (.cmi) (Version 012). > _build/ocamlbuild/ocamlbuild_pack.cmo: Objective caml object file > (.cmo) (Version 007). > _build/ocamlbuild/ocamlbuild_pack.cmx: Objective caml native object > file (.cmx) (Version 011). > _build/ocamlbuild/ocamlbuild_pack.mlpack: ASCII text > _build/ocamlbuild/ocamlbuild_executor.annot: ASCII c program text > _build/ocamlbuild/ocamlbuild_executor.cmi: Objective caml > interface file (.cmi) (Version 012). > _build/ocamlbuild/ocamlbuild_executor.cmo: Objective caml > object file (.cmo) (Version 007). > _build/ocamlbuild/ocamlbuild_executor.cmx: Objective caml > native object file (.cmx) (Version 011). > _build/ocamlbuild/ocamlbuild_executor.ml: Mathematica 3.0 > notebook > _build/ocamlbuild/ocamlbuild_executor.ml.depends: ASCII text > _build/ocamlbuild/ocamlbuild_executor.mli: Mathematica 3.0 > notebook > _build/ocamlbuild/ocamlbuild_executor.mli.depends: ASCII text > _build/ocamlbuild/ocamlbuild_executor.o: Mach-O object i386 > _build/ocamlbuild/ocamlbuild_unix_plugin.annot: ASCII c program > text > _build/ocamlbuild/ocamlbuild_unix_plugin.cmi: Objective caml > interface file (.cmi) (Version 012). > _build/ocamlbuild/ocamlbuild_unix_plugin.cmo: Objective caml > object file (.cmo) (Version 007). > _build/ocamlbuild/ocamlbuild_unix_plugin.cmx: Objective caml > native object file (.cmx) (Version 011). > _build/ocamlbuild/ocamlbuild_unix_plugin.ml: Mathematica 3.0 > notebook > _build/ocamlbuild/ocamlbuild_unix_plugin.ml.depends: ASCII text > _build/ocamlbuild/ocamlbuild_unix_plugin.mli: Mathematica 3.0 > notebook > _build/ocamlbuild/ocamlbuild_unix_plugin.mli.depends: ASCII text > _build/ocamlbuild/ocamlbuild_unix_plugin.o: Mach-O object i386 > _build/ocamlbuild/ocamlbuild.annot: ASCII text > _build/ocamlbuild/ocamlbuild.byte: a /sw/bin/ocamlrun script > text executable > _build/ocamlbuild/ocamlbuild.cmi: Objective caml interface file > (.cmi) (Version 012). > _build/ocamlbuild/ocamlbuild.cmo: Objective caml object file > (.cmo) (Version 007). > _build/ocamlbuild/ocamlbuild.cmx: Objective caml native object > file (.cmx) (Version 011). > _build/ocamlbuild/ocamlbuild.ml: Mathematica 3.0 notebook > _build/ocamlbuild/ocamlbuild.ml.depends: ASCII text > _build/ocamlbuild/ocamlbuild.mli: Mathematica 3.0 notebook > _build/ocamlbuild/ocamlbuild.mli.depends: ASCII text > _build/ocamlbuild/ocamlbuild.o: Mach-O object i386 > otherlibs/unix/unix.a: current ar archive random library > otherlibs/unix/unix.cma: Objective caml library file (.cma) (Version > 008). > otherlibs/unix/unix.cmi: Objective caml interface file (.cmi) > (Version 012). > otherlibs/unix/unix.cmo: Objective caml object file (.cmo) (Version > 007). > otherlibs/unix/unix.cmx: Objective caml native object file (.cmx) > (Version 011). > otherlibs/unix/unix.cmxa: Objective caml native library file (.cmxa) > (Version 010). > otherlibs/unix/unix.ml: Mathematica 3.0 notebook > otherlibs/unix/unix.mli: Mathematica 3.0 notebook > otherlibs/unix/unix.mllib: ASCII text > otherlibs/unix/unix.o: Mach-O object i386 > > > -- > Greetings > > Pete (: > _ / __ - - > _/ \__/_/ - - > (´`) (´`) - - > `´ `´ > >
Your hardware is irrelevant to this issue. Xcode 4.0.2 has a bug in its linker which affects ocaml--there were a few reports about this a while ago. Either update to 4.2 or downgrade to 3.2.6 -- Alexander Hansen, Ph.D. Fink User Liaison http://finkakh.wordpress.com/2012/02/21/got-job/ ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Fink-users mailing list [email protected] List archive: http://news.gmane.org/gmane.os.macosx.fink.user Subscription management: https://lists.sourceforge.net/lists/listinfo/fink-users
