How to make native build?
meenaj
meetubansal@gmail.com
Wed May 30 09:09:00 GMT 2012
Hi Jeff!
I am trying to do native build for newlib 1.20.0. I used below command to
configure:
../newlib-1.20.0/configure --target=i686-pc-linux-gnu
--prefix=/home/meena/newlib/ninstall --with-newlib
But I am getting below error:
checking whether we are cross compiling... configure: error: in
`/home/meena/newlib/nbuild/i686-pc-linux-gnu/64/newlib':
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,
Meena Jain
Jeff Johnston wrote:
>
> On 01/24/2011 04:44 PM, Miro Kropáček wrote:
>> Hello,
>>
>> 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...
>>
>> Miro
>
> 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
mailing list