Bison build failure on uClibc ARM

Khem Raj raj.khem at gmail.com
Mon Apr 8 23:13:15 UTC 2013


On Apr 8, 2013, at 12:31 PM, Tux Mason <tuxmason at gmail.com> wrote:

> Kindly pardon the late reply.
> 
> Yes I was using the master branch. I enabled UCLIBC_HAS_ADVANCED_REALTIME
> in the .config.
> Disabling this option enables a successful build of bison but breaks other
> applications like psmisc and sysvinit which rely on posix_memalign.
> 


yes, uclibc's spawn.h is not detected right by packages using gnulib
and you end up with these errors. So your options are to feed in the cached
configuration to autconf e.g. 

http://git.openembedded.org/openembedded-core/commit/?id=c5337326005c975425b1eb2b62796e9b33f72ac3

or another option is to go and fix gnulib in the package

something like this

http://git.openembedded.org/openembedded-core-contrib/commit/?h=kraj/coreutils&id=f4bbd20381bd06824f279e19fa0d0db6bae7b53a

> Kind regards,
> Daniel
> 
> On Thu, Mar 7, 2013 at 9:13 PM, Bernhard Reutner-Fischer <
> rep.dot.nop at gmail.com> wrote:
> 
>> On 1 March 2013 14:07, Tux Mason <tuxmason at gmail.com> wrote:
>>> Hello,
>>> 
>>> Am building a uClibc toolchain for use on my odroid X2. Bison fails with
>>> the following error;
>>> 
>>> arm-zero-linux-uclibcgnueabi-gcc  -std=gnu99  -I.
>>> -I/home/lfs/tuxdev.git/toolchain-build/bison-2.7/lib  -I../intl
>>> -I/tools-arm/include  -g -O2 -MT snprintf.o -MD -MP -MF
>> .deps/snprintf.Tpo
>>> -c -o snprintf.o
>>> /home/lfs/tuxdev.git/toolchain-build/bison-2.7/lib/snprintf.c
>>> mv -f .deps/snprintf.Tpo .deps/snprintf.Po
>>> arm-zero-linux-uclibcgnueabi-gcc  -std=gnu99  -I.
>>> -I/home/lfs/tuxdev.git/toolchain-build/bison-2.7/lib  -I../intl
>>> -I/tools-arm/include  -g -O2 -MT spawn_faction_addclose.o -MD -MP -MF
>>> .deps/spawn_faction_addclose.Tpo -c -o spawn_faction_addclose.o
>>> 
>> /home/lfs/tuxdev.git/toolchain-build/bison-2.7/lib/spawn_faction_addclose.c
>>> 
>> /home/lfs/tuxdev.git/toolchain-build/bison-2.7/lib/spawn_faction_addclose.c:
>>> In function 'posix_spawn_file_actions_addclose':
>>> 
>> /home/lfs/tuxdev.git/toolchain-build/bison-2.7/lib/spawn_faction_addclose.c:50:19:
>>> error: 'posix_spawn_file_actions_t' has no member named '_used'
>> 
>>> Has anyone experienced the above failure? Any pointers will be greatly
>>> appreciated.
>> 
>> sounds like our partial spawn implementation bites, although there is a
>> _used
>> member in posix_spawn_file_actions_t on master, AFAICS.
>> 
>> Can you reproduce this on master? If so, i assume you have spawn
>> enabled in your .config?
>> 
>> thanks,
>> 
> _______________________________________________
> uClibc mailing list
> uClibc at uclibc.org
> http://lists.busybox.net/mailman/listinfo/uclibc



More information about the uClibc mailing list