Problem compiling gcc 4.7.0 libgcc on Netgear ReadyNAS DUO Sparc
Jonathan Wakely
jwakely.gcc@gmail.com
Wed May 23 16:35:00 GMT 2012
On 23 May 2012 17:16, Jonathan Wakely <jwakely.gcc@gmail.com> wrote:
> On 23 May 2012 14:29, .uservorname .usernachname wrote:
>>
>> Hello,
>>
>> I'm trying to upgrade my gcc from 4.0 to 4.7.
>>
>> I got the following compiling enviroment:
>> 2.6.17.14ReadyNAS #1 Thu Sep 1 17:44:33 PDT 2011 padre GNU/Linux
>> GNU ld (GNU Binutils) 2.22
>> ldconfig (GNU libc) 2.3.2
>> GNU Make 3.82
>> debian sarge
>>
>> ls /usr/local/lib/libmpfr.*
>> /usr/local/lib/libmpfr.a /usr/local/lib/libmpfr.so /usr/local/lib/libmpfr.so.1.2.2 /usr/local/lib/libmpfr.so.4.1.0
>> /usr/local/lib/libmpfr.la /usr/local/lib/libmpfr.so.1 /usr/local/lib/libmpfr.so.4
>>
>> ls /usr/local/lib/libmpc.*
>> /usr/local/lib/libmpc.a /usr/local/lib/libmpc.so /usr/local/lib/libmpc.so.0.0.0 /usr/local/lib/libmpc.so.2.0.0
>> /usr/local/lib/libmpc.la /usr/local/lib/libmpc.so.0 /usr/local/lib/libmpc.so.2
>>
>> whereis libgmp
>> libgmp: /usr/lib/libgmp.a /usr/lib/libgmp.lai /usr/local/lib/libgmp.so /usr/local/lib/libgmp.la /usr/local/lib/libgmp.a
>>
>> I configured gcc with the following parameters: gcc-4.7.0-compiled# ../gcc-4.7.0/configure --build='sparc-linux' --enable-languages=c,c++ --prefix=/usr --mandir=/usr/share/man --enable-shared --with-system-zlib --enable-nls --enable-clocale=gnu --enable-debug --with-cpu=v7 --enable-objc-gc
>>
>> make breaks at:
>> make[3]: Leaving directory `/c/backup/gcc-4.7.0-compiled/gcc'mkdir -p -- sparc-linux/libgccChecking multilib configuration for libgcc...Configuring stage 1 in sparc-linux/libgccconfigure: creating cache ./config.cachechecking build system type... sparc-unknown-linux-gnuchecking host system type... sparc-unknown-linux-gnuchecking for --enable-version-specific-runtime-libs... nochecking for a BSD-compatible install... /usr/bin/install -cchecking for gawk... mawkchecking for sparc-linux-ar... archecking for sparc-linux-lipo... lipochecking for sparc-linux-nm... /backup/gcc-4.7.0-compiled/./gcc/nmchecking for sparc-linux-ranlib... ranlibchecking for sparc-linux-strip... stripchecking whether ln -s works... yeschecking for sparc-linux-gcc...
>> /backup/gcc-4.7.0-compiled/./gcc/xgcc
>> -B/backup/gcc-4.7.0-compiled/./gcc/ -B/usr/sparc-linux/bin/
>> -B/usr/sparc-linux/lib/ -isystem /usr/sparc-linux/include -isystem
>> /usr/sparc-linux/sys-includechecking for suffix of object files... configure: error: in `/backup/gcc-4.7.0-compiled/sparc-linux/libgcc':configure: error: cannot compute suffix of object files: cannot compileSee `config.log' for more details.
>
> This is a FAQ: http://gcc.gnu.org/wiki/FAQ#configure_suffix
>
> Please read http://gcc.gnu.org/wiki/InstallingGCC
Actually, the bus errors indicate a different problem:
On 23 May 2012 14:29, .uservorname .usernachname wrote:
> /backup/gcc-4.7.0-compiled/./gcc/xgcc
> -B/backup/gcc-4.7.0-compiled/./gcc/ -B/usr/sparc-linux/bin/
> -B/usr/sparc-linux/lib/ -isystem /usr/sparc-linux/include -isystem
> /usr/sparc-linux/sys-include -o conftest -g -O2 conftest.c
> >&5xgcc: internal compiler error: Bus error (program cc1)Please submit a full bug report,with preprocessed source if appropriate.See <http://gcc.gnu.org/bugs.html> for instructions.configure:3437: $? = 4configure:3625: checking for suffix of object filesconfigure:3647:
> /backup/gcc-4.7.0-compiled/./gcc/xgcc
> -B/backup/gcc-4.7.0-compiled/./gcc/ -B/usr/sparc-linux/bin/
> -B/usr/sparc-linux/lib/ -isystem /usr/sparc-linux/include -isystem
> /usr/sparc-linux/sys-include -c -g -O2 conftest.c >&5xgcc: internal compiler error: Bus error (program cc1)Please submit a full bug report,with preprocessed source if appropriate.See <http://gcc.gnu.org/bugs.html> for instructions.configure:3651: $? = 4configure: failed program was:| /* confdefs.h */| #define PACKAGE_NAME "GNU C Runtime Library"| #define PACKAGE_TARNAME "libgcc"| #define PACKAGE_VERSION "1.0"| #define PACKAGE_STRING "GNU C Runtime Library 1.0"| #define PACKAGE_BUGREPORT ""| #define PACKAGE_URL "http://www.gnu.org/software/libgcc/"| /* end confdefs.h. */| | int| main ()| {| | ;| return 0;| }configure:3665: error: in `/backup/gcc-4.7.0-compiled/sparc-linux/libgcc':configure:3668: error: cannot compute suffix of object files: cannot compileSee `config.log' for more details.
As it says, "Please submit a full bug report,with preprocessed source
if appropriate.See <http://gcc.gnu.org/bugs.html> for instructions."
(and please try to preserve newlines in the output so it's readable!)
More information about the Gcc-help
mailing list