This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Newbie trying to build newlib


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]