On 04/13/2012 09:04 AM, Andrew Benton wrote:
> On Fri, 13 Apr 2012 06:51:16 +0100
> James Richard Tyrer<[email protected]>  wrote:
>
>> I was unable to build llvm-3.0.
>>
>> It failed with:
>>
>> make[3]: Entering directory `/usr/src/llvm-3.0.src/bindings/ocaml/llvm'
>> make[3]: *** No rule to make target
>> `/usr/src/llvm-3.0.src/Release/lib/ocaml/libLLVMCore.so', needed by
>> `build-deplibs'.  Stop.
>> make[3]: Leaving directory `/usr/src/llvm-3.0.src/bindings/ocaml/llvm'
>> make[2]: *** [all] Error 1
>> make[2]: Leaving directory `/usr/src/llvm-3.0.src/bindings/ocaml'
>>
>> This appears to be an error in a Makefine somewhere since the file
>> exists but it is in a different directory:
>>
>> /usr/src/llvm-3.0.src/Release/lib/libLLVMCore.so
>>
>> The same is true for other SO files so I can only speculate that it is
>> using:
>>
>>      ./Release/lib/ocaml
>>
>> instead of:
>>
>>      .Release/lib
>>
>> somewhere.  But, these Make files are too clever and I couldn't figure
>> it out.
>>
>> I also note that the: "configure" option: "--with-ocaml-libdir=" is
>> necessary if building OCaml bindings.  Should this be where OCaml is
>> installed?  The default appears to be for where LLVM will be installed:
>> "/opt/llvm/lib/ocaml".  "--prefix=" does not appear to change this.
>
> How did you configure llvm?

./configure --prefix=/opt/llvm --enable-targets=x86,x86_64 --enable-libffi

Then I ran the script code with the: "sed" instructions in the BLFS SVN 
page.

I decided to install in: "/opt/llvm" so I didn't use: 
"--with-ocaml-libdir=".

> If I grep through my build log for
> 'bindings/ocaml/llvm' the only mention of it is when it's creating a
> file called META.llvm. Ie, for me, it doesn't run make in the directory
> at all.
>
Do you have OCaml installed?

-- 
James Tyrer

Linux (mostly) From Scratch
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to