* [Buildroot] GNU Bison package
@ 2018-01-04 8:34 Doha Ehab
2018-01-04 10:16 ` Thomas Petazzoni
0 siblings, 1 reply; 2+ messages in thread
From: Doha Ehab @ 2018-01-04 8:34 UTC (permalink / raw)
To: buildroot
Hello,
I have generated uclibc toolchain using buildroot-2017.02-rc3. I am trying
to use it to cross compile Gnu GCC for Android. I have checked flex and
gettext from target packages-> development tools but I cannot find bison
library and I always get this error:
/home/Desktop/gcc_5/missing bison -y --name-prefix=__gettext --output
plural.c ../.././intl/plural.y
/home/Desktop/gcc_5/missing: 81: /home/Desktop/gcc_5/missing: bison: not
found
WARNING: 'bison' is missing on your system.
You should only need it if you modified a '.y' file.
You may want to install the GNU Bison package:
<http://www.gnu.org/software/bison/>
Makefile:136: recipe for target 'plural.c' failed
make[2]: *** [plural.c] Error 127
make[2]: Leaving directory
'/home/Desktop/gcc_5/host-aarch64-buildroot-linux-uclibc/intl'
Makefile:5345: recipe for target 'all-intl' failed
make[1]: *** [all-intl] Error 2
make[1]: Leaving directory '/home/Desktop/gcc_5'
Makefile:855: recipe for target 'all' failed
make: *** [all] Error 2
My configuration options:
./configure --prefix=/home/Desktop/gcc_5/build/
CC=/home/Desktop/buildroot-2017.02-rc3/output/host/usr/bin/aarch64-linux-gcc
CXX=/home/Desktop/buildroot-2017.02-rc3/output/host/usr/bin/aarch64-linux-g++
CFLAGS="-I/home/Desktop/buildroot-2017.02-rc3/output/host/usr/include/
-fPIC -static -lgmp -lmpfr -lmpc"
LDFLAGS="-L/home/Desktop/buildroot-2017.02-rc3/output/host/usr/lib"
--host=aarch64-buildroot-linux-uclibc --disable-shared --disable-f77
--disable-fc --disable-fortran
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20180104/dbba4c2b/attachment.html>
^ permalink raw reply [flat|nested] 2+ messages in thread* [Buildroot] GNU Bison package
2018-01-04 8:34 [Buildroot] GNU Bison package Doha Ehab
@ 2018-01-04 10:16 ` Thomas Petazzoni
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2018-01-04 10:16 UTC (permalink / raw)
To: buildroot
Hello,
On Thu, 4 Jan 2018 10:34:05 +0200, Doha Ehab wrote:
> I have generated uclibc toolchain using buildroot-2017.02-rc3.
Why use a release candidate ? If you're using 2017.02, please use the
latest 2017.02.x release, currently 2017.02.9.
> I am trying to use it to cross compile Gnu GCC for Android.
We do not support building gcc for the target, so I'm not sure how
Buildroot will help you with this.
> I have checked flex and gettext from target packages-> development
> tools but I cannot find bison library and I always get this error:
>
> /home/Desktop/gcc_5/missing bison -y --name-prefix=__gettext --output
> plural.c ../.././intl/plural.y
> /home/Desktop/gcc_5/missing: 81: /home/Desktop/gcc_5/missing: bison:
> not found
> WARNING: 'bison' is missing on your system.
> You should only need it if you modified a '.y' file.
> You may want to install the GNU Bison package:
> <http://www.gnu.org/software/bison/>
> Makefile:136: recipe for target 'plural.c' failed
> make[2]: *** [plural.c] Error 127
> make[2]: Leaving directory
> '/home/Desktop/gcc_5/host-aarch64-buildroot-linux-uclibc/intl'
> Makefile:5345: recipe for target 'all-intl' failed
> make[1]: *** [all-intl] Error 2
> make[1]: Leaving directory '/home/Desktop/gcc_5'
> Makefile:855: recipe for target 'all' failed
> make: *** [all] Error 2
There is not enough context here to help you. When does this happens?
During the build of which package ? Does this happens during a complete
rebuild (i.e "make clean all") ?
Or perhaps this happens when you try to manually build gcc outside of
Buildroot ? If so, I'd say you're on your own, and if bison is missing,
well, just build host-bison, and add output/host/usr/bin to your PATH.
Best regards,
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-01-04 10:16 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-01-04 8:34 [Buildroot] GNU Bison package Doha Ehab
2018-01-04 10:16 ` Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox