D on the Raspberry Pi

Johannes Pfau nospam at example.com
Sat Aug 11 00:20:33 PDT 2012


Am Fri, 10 Aug 2012 18:40:46 +0200
schrieb "Stefan Frijters" <sfrijters at gmail.com>:

> I found some time to test some more configurations: the most 
> recent version on the master branch combined with the 20120805 
> snapshot of gcc 4.8 failed with the same errors as reported 
> above. Using gcc 4.7.1 (both a fresh copy and a patched copy from 
> the debian repo) I run into a new error. The configure reports 
> two errors (which I didn't notice first time around) which then 
> leads to a compilation error later:
> 
> configure:4035: arm-linux-gnueabihf-gcc -V >&5
> arm-linux-gnueabihf-gcc: error: unrecognized option '-V'
> arm-linux-gnueabihf-gcc: fatal error: no input files
> compilation terminated.
> configure:4046: $? = 4
> configure:4035: arm-linux-gnueabihf-gcc -qversion >&5
> arm-linux-gnueabihf-gcc: error: unrecognized option '-qversion'
> arm-linux-gnueabihf-gcc: fatal error: no input files
> compilation terminated.

You probably have to dig deeper in "config.log", as the above output
are not really errors. The configure script works with different
compilers, some use -V, some -qversion. GCC doesn't use those, it uses
-v. There should be a successful test in config.log which checked for
-v.

> 
> Leading to (during compilation):
> 
> checking for arm-linux-gnueabihf-gcc... 
> /home/pi/gcc-4.7.1/objdir/./gcc/xgcc 
> -B/home/pi/gcc-4.7.1/objdir/./gcc/ 
> -B/opt/gdc/arm-linux-gnueabihf/bin/ 
> -B/opt/gdc/arm-linux-gnueabihf/lib/ -isystem 
> /opt/gdc/arm-linux-gnueabihf/include -isystem 
> /opt/gdc/arm-linux-gnueabihf/sys-include
> checking for suffix of object files... configure: error: in 
> `/home/pi/gcc-4.7.1/objdir/arm-linux-gnueabihf/libgcc':
> configure: error: cannot compute suffix of object files: cannot 
> compile
> See `config.log' for more details.
> make[1]: *** [configure-target-libgcc] Error 1
> make[1]: Leaving directory `/home/pi/gcc-4.7.1/objdir'
> make: *** [all] Error 2
> 
Can you paste libgcc's config.log at some pastebin? I guess
it should be
at /home/pi/gcc-4.7.1/objdir/arm-linux-gnueabihf/libgcc/config.log




More information about the D.gnu mailing list