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@xxxxxxxxxx> wrote: > On Wed, Jun 19, 2013 at 2:20 PM, Uri Moszkowicz <uri@xxxxxxxxx> 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