Skip to contentSkip to conversation

glibc: depends on host-bison

Buildroot Ryan Coe 2 participants 2 messages Feb 7, 2018 – Feb 8, 2018

lore
Share & tools
lore

Ryan Coe

author
#0 lore raw

Fixes the following build error:

checking for bison... no
checking if ./buildroot/output/host/bin/arm-rpi1-linux-gnueabihf-gcc is sufficient to build libc... yes checking for arm-rpi1-linux-gnueabihf-nm... ./buildroot/output/host/bin/arm-rpi1-linux-gnueabihf-nm checking for python3... python3
configure: error:
*** These critical programs are missing or too old: bison
*** Check the INSTALL file for required versions.
package/pkg-generic.mk:237: recipe for target './buildroot/output/build/glibc-glibc-2.27/.stamp_configured' failed
make: *** [./buildroot/output/build/glibc-glibc-2.27/.stamp_configured] Error 1

---
 package/glibc/glibc.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
package/glibc/glibc.mk +1 -1
index b674191b22..00e114566c 100644
@@ -28,7 +28,7 @@ GLIBC_ADD_TOOLCHAIN_DEPENDENCY = NO
 
 # Before glibc is configured, we must have the first stage
 # cross-compiler and the kernel headers
-GLIBC_DEPENDENCIES = host-gcc-initial linux-headers host-gawk
+GLIBC_DEPENDENCIES = host-gcc-initial linux-headers host-bison host-gawk
 
 GLIBC_SUBDIR = build
 
Signature · 1 line
2.15.1
#1 lore raw

Hello,

Quoted 12 lines · Ryan Coe

Fixes the following build error:

checking for bison... no
checking if ./buildroot/output/host/bin/arm-rpi1-linux-gnueabihf-gcc is sufficient to build libc... yes checking for arm-rpi1-linux-gnueabihf-nm... ./buildroot/output/host/bin/arm-rpi1-linux-gnueabihf-nm checking for python3... python3
configure: error:
*** These critical programs are missing or too old: bison
*** Check the INSTALL file for required versions.
package/pkg-generic.mk:237: recipe for target './buildroot/output/build/glibc-glibc-2.27/.stamp_configured' failed
make: *** [./buildroot/output/build/glibc-glibc-2.27/.stamp_configured] Error 1

Quoted 1 line

I've improved the commit log a bit:

- To indicate which glibc upstream commit changed to making bison a hard requirement. This allows to confirm it isn't an "accident" but really an intentional move from glibc upstream.

- By replacing the error log by a reference to an autobuilder failure.

Thanks a lot for this fix, applied to next!

Best regards,

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin (formerly Free Electrons)
Embedded Linux and Kernel engineering
http://bootlin.com