Ok, I;ve built from source, the native compiler for armv5l. It compiles a couple of files I need on the devices perfectly.<br>However, One particular file, I use netlink sockets and this is the message I get:<br><br>/data/local/tmp/narm/bin/../include/linux/netlink.h:31: error: expected specifier-qualifier-list before 'sa_family_t'<br>

<br>gb.c:310: error: 'struct sockaddr_nl' has no member named 'nl_family'<br>gb.c:314: error: 'struct sockaddr_nl' has no member named 'nl_pid'<br><br>(note, this is executed on a Samsung Galaxy S running Gingerbread)<br>

<br>-Earlence<br><br><div class="gmail_quote">On Fri, Jul 15, 2011 at 10:30 PM, Earlence Fernandes <span dir="ltr"><<a href="mailto:earlenceferns@gmail.com">earlenceferns@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

Hello,<br><br>I plan on using aboriginal linux scripts to build a C compiler thats customized for Android.<br>Therefore, I think these steps would be needed:<br><br>1. download.sh to get GCC sources.<br>2. patch them with android specific headers and implementation<br>


3. native-build.sh for ARM<br><br>Next, I need to optimized for space, I need it as small as possible. Therefore, disable CPP (with the given option),<br>remove pthreads, binutils etc etc -> but how do I config this?<br>


I basically need to be really lean and mean. C compiler, libc, libm, linux headers. thats it.<br><br>What do you think?<br><br>Cheers,<br><font color="#888888">Earlence<br>
</font></blockquote></div><br>