Amir, Apparently, there is a problem with Xcode 4. I also had installed version 4. When I uninstalled it and reinstalled version 3, the build and compile errors associated with OCaml went away. There are instructions available on the web for completely uninstalling Xcode; I am sorry that I do not have the instructions handy.
Good luck. Rudy ---------------------------------------------------- On Thu, 30 Jun 2011, Amir Reza wrote: > Yes, I have Xcode 4.0.2.. that will be a huge pain :-s... > > Thanks anyway, > > Amir. > > On 6/30/11 10:24 AM, Rudy J. Richardson wrote: >> Amir, >> >> Have you installed Xcode 4? If so, it _might_ be necessary to completely >> uninstall this version and to reinstall Xcode 3. >> >> Rudy >> >> ---------------------------------------------------- >> >> On Thu, 30 Jun 2011, Amir wrote: >> >>> Stefan Radomski <radomski <at> tk.informatik.tu-darmstadt.de> writes: >>> >>> >>>>>> >>>>>> I am trying to install fftw3, but as part of the dependancies ocaml is >>> required and fails to build: >>>>>> >>>>>> [...] >>>>>> ld: in ocamlbuild/ocamlbuild_pack.o, in section __DATA,__data reloc 56: >>>> sectionForAddress(0x48026FD4) address not in any section >>>>>> 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 >>>>>> ### execution of /var/tmp/tmp.1.ARNpjX failed, exit code 2 >>>>>> Removing runtime build-lock... >>>>>> Removing build-lock package... >>>>>> /sw/bin/dpkg-lockwait -r fink-buildlock-ocaml-3.11.1-1 >>>>>> (Reading database ... 63598 files and directories currently installed.) >>>>>> Removing fink-buildlock-ocaml-3.11.1-1 ... >>>>>> Failed: phase compiling: ocaml-3.11.1-1 failed >>>>>> >>>>>> >>>>>> This is a brand new "stable" fink installation. In between I switched >>>>>> to >>> unstable as described in the FAQ >>>> [1], but the problem persists. I looked through the tickets for ocaml [2] >>>> but >>> could not find anything >>>> related. Could someone shed some light on this? >>>>>> >>>>>> Thank you in advance >>>>>> Stefan Radomski >>>>>> >>>>>> [1] http://www.finkproject.org/faq/usage-fink.php#unstable >>>>>> [2] >>> http://trac.macports.org/search?portsummarysearch=on&q=ocaml&page=1&noquickjump=1 >>> >>>>> >>>>> I'm not sure why a macports ticket would necessarily have any bearing on >>>>> a Fink build >>>>> >>>> >>>> Sorry, it's been late - staring on compiler output for the better part of >>>> the >>> day takes its toll it seems :( >>>> Nevertheless, the original issue still stands. >>>> >>>>> And you didn't include your OS version and architecture. >>>>> >>>> >>>> Mac OSX Snow Leopard 10.6.4 with all updates applied on a Intel Core 2 >>>> Duo >>> MacBook. >>>> >>>> $ fink -V >>>> Package manager version: 0.29.15 >>>> Distribution version: selfupdate-rsync Wed Nov 3 00:44:10 2010, 10.6, >>>> i386 >>>> >>>>> - -- Alexander Hansen >>>>> Fink User Liaison >>> >>> >>> I have a same problem. Using the last Xcode and brand new fink... I was >>> trying >>> to install octave, but as a dependency it needs ocaml package and >>> unfortunately >>> ocaml fails to be built. >>> >>> Is there any >>> solution to that? >>> >>> Thanks, >>> >>> Amir. >>> >>> >>> >>> >>> ------------------------------------------------------------------------------ >>> >>> All of the data generated in your IT infrastructure is seriously valuable. >>> Why? It contains a definitive record of application performance, security >>> threats, fraudulent activity, and more. Splunk takes this data and makes >>> sense of it. IT sense. And common sense. >>> http://p.sf.net/sfu/splunk-d2d-c2 >>> _______________________________________________ >>> Fink-beginners mailing list >>> [email protected] >>> List archive: >>> http://news.gmane.org/gmane.os.apple.fink.beginners >>> Subscription management: >>> https://lists.sourceforge.net/lists/listinfo/fink-beginners >>> >>> >>> >> > > > > ------------------------------------------------------------------------------ All of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitive record of application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-d2d-c2 _______________________________________________ Fink-beginners mailing list [email protected] List archive: http://news.gmane.org/gmane.os.apple.fink.beginners Subscription management: https://lists.sourceforge.net/lists/listinfo/fink-beginners
