Re: problems building gcc cross compiler

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 07/22/2010 06:10 PM, Wade Smith wrote:
> I have two different problems on two different environments
> 
> I'm trying to build a cross compiler using gcc.  I have build binutils successfully on both systems.
> 
> Under cygwin I have tried to compile a few times with the same result.
> 
> Under Ubuntu 10.04, I tried once and quit until I can get help.
> 
> Cygwin:
> I have tried the following with same results
> ./gcc-4.4.3/configure --target=$TARGET --prefix=$PREFIX ---enable-languages=c
> ./gcc-4.4.3/configure --target=$TARGET --prefix=$PREFIX --with-mpfr=cygwin ---enable-languages=c  <=== that's where I was told
> ./gcc-4.4.3/configure --target=$TARGET --prefix=$PREFIX --with-mpfr=/bin ---enable-languages=c      <=== that is where cygmpfr.dll is
> ./gcc-4.4.3/configure --target=$TARGET --prefix=$PREFIX --with-mpfr=/ ---enable-languages=c          <=== that is where all of cygwin is
> ./gcc-4.4.3/configure --target=$TARGET --prefix=$PREFIX --with-mpfr=/lib ---enable-languages=c      <=== that is where libmpfr.dll.a and libmpfr.la are
> 
> all of the above followed with
> make
> 
> It compiles until it gets to
> gcc/testsuite/builtins.c
> unrecognized variable __imp__mpfr_j0
> and 8 others
> 
> It appears that BUILT_IN_J0 becomes __imp__mpfr_j0 but that becomes an unrecognized variable.
> What do I need to do in order to clear up this error so that I may continue?
> 
> 
> 
> Under Ubuntu 10.04
> -------
> make
> .
> checking for suffix of object files... configure: error: in '/home/wasmith/gcc-build/xxx.elf/libgcc':
> configure: error: cannot compute suffix of object files: cannot compile
> See config.log'  for more details.
> make[1]: *** [cinfigue-target-libgcc0 Error 1
> make[1]: Leaving directory `home/wasmith/gcc-build'
> make: *** [all] Error 2
> -------
> 
> "cannot compute suffix of object files"??   What is that and how do I fix it.

Hard to say.  The usual problem is that the assembler or linker or the target
C library are missing and/or broken.

One other thing: do not build gcc in its source directory.

Andrew.


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux