[LLVMdev] how to build llvm-test in separate directory

Tanya M. Lattner tonic at nondot.org
Mon Feb 23 12:24:32 PST 2009


> On Mon, Feb 23, 2009 at 6:32 PM, John Criswell <criswell at cs.uiuc.edu> wrote:
>
>> Aaron Gray wrote:
>>> I am trying to build llvm-test in a separate directory to the main llvm
>> tree.
>>>
>>> I have put llvm and llvm-gcc's bin directories on the path but think I am
>> missing a switch on the configure command.
>>>
>> You need to use --with-llvmsrc and --with-llvmobj to tell llvm-test
>> where it can find the LLVM source and object directories, respectively.
>
>
> with :-
>
> $ /usr/src/llvm-test-2.5/configure --with-llvmsrc=/usr/src/llvm-2.5
> --with-llvmobj=/usr/build/llvm-2.5
>
> I am getting :-
>
> ~~~
> $ make all
> make[1]: Entering directory `/usr/src/llvm-test-2.5/SingleSource'
> make[2]: Entering directory `/usr/src/llvm-test-2.5/SingleSource/UnitTests'
> make[3]: Entering directory
> `/usr/src/llvm-test-2.5/SingleSource/UnitTests/Vector'
> make[4]: Entering directory
> `/usr/src/llvm-test-2.5/SingleSource/UnitTests/Vector/SSE'
> make[4]: *** No rule to make target `Output/sse.expandfft.linked.rbc',
> needed by `Output/sse.expandfft.linked.bc'.  Stop.
> make[4]: Leaving directory
> `/usr/src/llvm-test-2.5/SingleSource/UnitTests/Vector/SSE'
> make[3]: *** [all] Error 1
> make[3]: Leaving directory
> `/usr/src/llvm-test-2.5/SingleSource/UnitTests/Vector'
> make[2]: *** [all] Error 1
> make[2]: Leaving directory `/usr/src/llvm-test-2.5/SingleSource/UnitTests'
> make[1]: *** [UnitTests/.makeall] Error 2
> make[1]: Leaving directory `/usr/src/llvm-test-2.5/SingleSource'
> make: *** [SingleSource/.makeall] Error 2
> ~~~
>
> I don't have the external testsets installed.
>
> Hope you can help,

That error means it could not find llvm-gcc. Did you reconfigure llvm with 
either llvm-gcc in your path or --with-llvmgccdir (or whatever it is)?

-Tanya

>
> Aaron
>



More information about the llvm-dev mailing list