Newbie trying to build newlib

Jeff Johnston jjohnstn@redhat.com
Wed Feb 18 09:00:00 GMT 2009


Vincent Rivière wrote:
> Beman Dawes wrote:
>> checking for gcc... gcc  -m64
> ...
>> checking for C compiler default output file name... configure: error:
>> C compiler cannot create executables
>
> It seems that for an unknown reason, the makefile wants to make a 
> 64-bit build. It wants to compile using gcc -m64. However, you 
> probably don't have 64-bit libraries on your system. Try to compile an 
> Hello, World with such option: it will probably fail.
>
> Check your environment, especially the CC and CFLAGS variables. They 
> should be empty.
>
> I may be totally wrong, so good luck.
>
A long shot, but check if the gcc on your system is set up to do 
multilibs.  Issue "gcc -print-multi-lib"

If that shows up with a line that has m64, then that is what is 
happening.  You can then do a configure with:

--disable-multilib

to stop that from happening.  Otherwise, look at all your environment 
variables to see if anything has -m64 set up.

-- Jeff J.



More information about the Newlib mailing list