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: Rainer Orth <ro at CeBiTec dot Uni-Bielefeld dot DE>
- To: Tobias Burnus <burnus at net-b dot de>
- Cc: "H.J. Lu" <hjl dot tools at gmail dot com>, 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 23:48:59 +0100
- 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>
Tobias Burnus <burnus@net-b.de> writes:
> 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:
[...]
> 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
Do you happen to have the same/a recent version installed at the same
prefix your build under test is configured for? In that case, it's
likely that libcilkrts.spec is picked up from there.
For reasons like this, I usually configure test builds with a prefix
where no gcc is installed, so I can guarantee I really test the freshly
built version and not a mix.
Rainer
--
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University