This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [Build, Driver] Add -lcilkrts for -fcilkplus
- From: "H.J. Lu" <hjl dot tools at gmail dot com>
- To: Tobias Burnus <burnus at net-b dot de>
- Cc: gcc-patches <gcc-patches at gcc dot gnu dot org>, Paolo Bonzini <bonzini at gnu dot org>, "Iyer, Balaji V" <balaji dot v dot iyer at intel dot com>, "Joseph S. Myers" <joseph at codesourcery dot com>
- Date: Wed, 26 Mar 2014 15:40:39 -0700
- Subject: Re: [Build, Driver] Add -lcilkrts for -fcilkplus
- Authentication-results: sourceware.org; auth=none
- References: <531EB05C dot 8060603 at net-b dot de> <CAMe9rOqaai5pDoQhCy1xYH=BA839FiKL=VEW5=f5sPUHnRbcMQ at mail dot gmail dot com> <5333563D dot 6070305 at net-b dot de>
On Wed, Mar 26, 2014 at 3:35 PM, Tobias Burnus <burnus@net-b.de> wrote:
> H.J. Lu wrote:
>>
>> All cilk-plus link tests failed with
>> xgcc: error: libcilkrts.spec: No such file or directory
>> Don't you need to add -B............/libcilkrts for this?
>
>
> Hmm, I really wonder why it fails for you while it works for me:
>
> Running /home/tob/projects/gcc/gcc/testsuite/gcc.dg/cilk-plus/cilk-plus.exp
> ...
> === gcc Summary ===
> # of expected passes 1934
> Running /home/tob/projects/gcc/gcc/testsuite/g++.dg/cilk-plus/cilk-plus.exp
> ...
> === g++ Summary ===
> # of expected passes 1906
> # of unsupported tests 37
>
>
> I cross-checked: I have the installed version not in the $PATH or
> $LD_LIBRARY_PATH. And your version is r208851, which has my spec file, which
> I initially (r208851) missed:
> http://gcc.gnu.org/ml/gcc-testresults/2014-03/msg01965.html
>
I got
spawn -ignore SIGHUP
/export/gnu/import/git/gcc-test-ia32corei7/bld/gcc/xgcc
-B/export/gnu/import/git/gcc-test-ia32corei7/bld/gcc/
/export/gnu/import/git/gcc-test-ia32corei7/src-trunk/gcc/testsuite/c-c++-common/cilk-plus/PS/reduction-1.c
-fno-diagnostics-show-caret -fdiagnostics-color=never -ftree-vectorize
-fcilkplus -std=c99 -O3 -fcilkplus
-L/export/gnu/import/git/gcc-test-ia32corei7/bld/i686-linux/./libcilkrts/.libs
-lm -o ./reduction-1.exe^M
xgcc: error:l libcikrts.spec: No such file or directory^M
compiler exited with status 1
Can you find where your tests get libcilkrts.spec?
--
H.J.