This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Trouble building AR
- From: Uri Moszkowicz <uri at 4refs dot com>
- To: Ian Lance Taylor <iant at google dot com>
- Cc: gcc-help <gcc-help at gcc dot gnu dot org>
- Date: Wed, 19 Jun 2013 17:04:23 -0500
- Subject: Re: Trouble building AR
- References: <CAMJd5ARjw26rFsWyYk+me+3mCK5Tj_UjWfzaFcitCORReymNAg at mail dot gmail dot com> <CAKOQZ8xfuHxd8bnWPDjvz4Ycm12mFz+QSo2sYkc0ufv8QF2b4w at mail dot gmail dot com> <CAMJd5ATaYdqe151E+FFo47_1b8dWCiUQC0he5YiL4j7+PCPHUA at mail dot gmail dot com> <CAKOQZ8xWaM3AbF=Kk2xtYSDT2ie3vDnW2Z0o9TPXkmydf8Kdiw at mail dot gmail dot com> <CAMJd5ARHX-2cveFrFTtwj6UgwMy2bq=Q2hqt2E8fEkY4SPXEKA at mail dot gmail dot com> <CAKOQZ8xQ_VuQonBLqLqm4QVg9eO9CpZjqG-a5BrMpgVc=QOmQA at mail dot gmail dot com>
Log uploaded here:
http://www.4refs.com/gcc.log
It seems to be looking in the right places just not for the right
file. It looks for "real-ld", "collect-ld", and "ld-new" but not "ld".
On Wed, Jun 19, 2013 at 4:38 PM, Ian Lance Taylor <iant@google.com> wrote:
> On Wed, Jun 19, 2013 at 2:20 PM, Uri Moszkowicz <uri@4refs.com> wrote:
>> No luck - same error :( I see the following list in config.log:
>>
>> /tools/gcc-4.7.2/lib/gcc/x86_64-unknown-linux-gnu/4.7.2/../../../../x86_64-unknown-linux-gnu/bin/ld:
>> cannot find -lpwl
>> collect2: error: ld returned 1 exit status
>
> Errors in config.log are normal.
>
>> Is that of interest? Maybe I should just try a different GCC /
>> binutils combination. Any other suggestions to help figure out what's
>> wrong?
>
> You said the program is failing when you try to use it. Try running
> gcc -o foo foo.c -Wl,-debug
> That should show all the places where the collect2 program is looking
> for ld. Then we need to find out why it is not looking in the right
> place.
>
> Ian