[LLVMdev] PATCH: Use size reduction -- wave1
Török Edwin
edwintorok at gmail.com
Fri Apr 4 10:51:58 PDT 2008
heisenbug wrote:
> On Apr 3, 10:53 pm, Gabor Greif <ga... at mac.com> wrote:
> ...
>
>
>>> 3) Make sure that make check and some reasonable subset of llvm-test
>>> passes with this patch :)
>>>
>> I have never run llvm-test in the past. Is it just checking it out and
>> following a readme?
>>
>
>
> After building an llvm-gcc (4.2.1), see below, I tried running this. I
> configured:
>
>
> ./configure --with-llvmsrc=$LLVM_TOP/llvm --with-llvmobj=$LLVM_TOP/
> llvm --srcdir=$LLVM_TOP/test-suite --with-llvmgccdir=$LLVM_TOP/install
> --with-externals=$LLVM_TOP/externals
>
> Then 'make', it complained that some .bc file could not be made.
>
> Then I put $LLVM_TOP/install and $LLVM_TOP/llvm/Release/bin im my
> path, but now
>
> checking for C++ compiler default output file name... configure:
> error: C++ compiler cannot create executables
>
> invoking g++ directly gives:
>
>
> ggreif$ g++ jj.cpp
> /usr/bin/ld: can't locate file for: -lstdc++
>
> I am stuck. What can I do to run the tests?
>
Did you do a make install? It is probably searching for libstdc++ from
the g++ you just built.
I usually add a "--program-prefix=llvm-" to configure, and then I can
just do a make install into /usr/local without
interfering with system's gcc/g++.
But for running llvm-test I think you should have system's gcc/g++ on
your path and not llvm-gcc/llvm-g++.
If I understand correctly, the purpose of the testsuite is to test
system gcc/g++ vs. LLC vs. CBE vs. JIT.
Best regards,
--Edwin
More information about the llvm-dev
mailing list