How to make native build?
Wed May 30 09:09:00 GMT 2012
I am trying to do native build for newlib 1.20.0. I used below command to
But I am getting below error:
checking whether we are cross compiling... configure: error: in
configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
Please correct me where I went wrong.
Thanks and Regards,
Jeff Johnston wrote:
> On 01/24/2011 04:44 PM, Miro Kropáček wrote:
>> I'm new here and I hope I don't ask something totally obvious but I'm
>> really stuck. I'm trying to compile newlib. I checkout the sources,
>> create 'build' directory nearby, type 'cd build&& ../src/configure&&
>> make' and after some initial messages (makeinfo etc) ... compilation
>> ends. No error, just regular end. I can post build output if it helps.
>> What makes me wonder is next thing, when I specify some target,
>> different from host (i.e. NOT i686-pc-linux-gnu), compilation starts
>> as one would expect. Am I missing here something? How I make normal,
>> classic, native, linux build?
>> Thanks for any hint...
> By default, newlib does not build natively. It is expected that you
> would use glibc. To build for i686-pc-linux-gnu, you need to specify
> --target=i686-pc-linux-gnu --with-newlib on your configuration. Note
> that linux is currently only supported for x86.
> -- Jeff J.
View this message in context: http://old.nabble.com/How-to-make-native-build--tp30752859p33918145.html
Sent from the Sourceware - newlib list mailing list archive at Nabble.com.
More information about the Newlib