[Aboriginal] Using native-build.sh for An Android native C compiler

Earlence Fernandes earlenceferns at gmail.com
Sat Jul 16 05:53:59 PDT 2011

Ok, I;ve built from source, the native compiler for armv5l. It compiles a
couple of files I need on the devices perfectly.
However, One particular file, I use netlink sockets and this is the message
I get:

/data/local/tmp/narm/bin/../include/linux/netlink.h:31: error: expected
specifier-qualifier-list before 'sa_family_t'

gb.c:310: error: 'struct sockaddr_nl' has no member named 'nl_family'
gb.c:314: error: 'struct sockaddr_nl' has no member named 'nl_pid'

(note, this is executed on a Samsung Galaxy S running Gingerbread)


On Fri, Jul 15, 2011 at 10:30 PM, Earlence Fernandes <
earlenceferns at gmail.com> wrote:

> Hello,
> I plan on using aboriginal linux scripts to build a C compiler thats
> customized for Android.
> Therefore, I think these steps would be needed:
> 1. download.sh to get GCC sources.
> 2. patch them with android specific headers and implementation
> 3. native-build.sh for ARM
> Next, I need to optimized for space, I need it as small as possible.
> Therefore, disable CPP (with the given option),
> remove pthreads, binutils etc etc -> but how do I config this?
> I basically need to be really lean and mean. C compiler, libc, libm, linux
> headers. thats it.
> What do you think?
> Cheers,
> Earlence
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.landley.net/pipermail/aboriginal-landley.net/attachments/20110716/0e5f2e39/attachment-0003.htm>

More information about the Aboriginal mailing list