Skip to contentSkip to conversation

systemd: blkid support requested but libraries not found

Buildroot Christian Stewart 2 participants 6 messages Dec 20, 2017 – Dec 23, 2017

lore
Share & tools
lore
#0 lore raw

Hi all,

I came across this error while debugging something else.

Defconfig:

BR2_arm=y
BR2_cortex_a7=y
BR2_CCACHE=y
BR2_ARM_FPU_NEON_VFPV4=y
BR2_OPTIMIZE_2=y
BR2_TOOLCHAIN_BUILDROOT_GLIBC=y
BR2_BINUTILS_VERSION_2_27_X=y
BR2_TOOLCHAIN_BUILDROOT_CXX=y
BR2_GCC_ENABLE_LTO=y
BR2_INIT_SYSTEMD=y
BR2_SYSTEM_BIN_SH_BASH=y

Error:

checking for blkid... no
configure: error: *** blkid support requested but libraries not found
make: *** [package/pkg-generic.mk:227: /home/paralin/Documents/buildroot/output/build/systemd-234/.stamp_configured] Error 1

Perhaps there is a missing dependency on blkid somewhere? Or is this indicative of a bigger problem?

Thanks,
Christian Stewart

#1 lore raw

Hi Christian,

Quoted 16 lines · Christian Stewart

I came across this error while debugging something else.

Defconfig:

BR2_arm=y
BR2_cortex_a7=y
BR2_CCACHE=y
BR2_ARM_FPU_NEON_VFPV4=y
BR2_OPTIMIZE_2=y
BR2_TOOLCHAIN_BUILDROOT_GLIBC=y
BR2_BINUTILS_VERSION_2_27_X=y
BR2_TOOLCHAIN_BUILDROOT_CXX=y
BR2_GCC_ENABLE_LTO=y
BR2_INIT_SYSTEMD=y
BR2_SYSTEM_BIN_SH_BASH=y

Quoted 8 lines

Error:

checking for blkid... no
configure: error: *** blkid support requested but libraries not found
make: *** [package/pkg-generic.mk:227: /home/paralin/Documents/buildroot/output/build/systemd-234/.stamp_configured] Error 1

Perhaps there is a missing dependency on blkid somewhere? Or is this indicative of a bigger problem?

Have you run a clean rebuild, 'make clean all'?

It looks like you selected BR2_INIT_SYSTEMD when util-linux has already been built. Buildroot will not rebuild util-linux in this case. You need to start the build from scratch.

baruch

Signature · 3 lines
     http://baruch.siach.name/blog/                  ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -
#2 lore raw

Hi Baruch,

Quoted 5 lines · Baruch Siach

Have you run a clean rebuild, 'make clean all'?

It looks like you selected BR2_INIT_SYSTEMD when util-linux has already been built. Buildroot will not rebuild util-linux in this case. You need to start the build from scratch.

Yes, I have been doing the following sequence to reproduce:

make clean
make defconfig BR2_DEFCONFIG=$(pwd)/defconfig
make systemd

The defconfig I have narrowed it down to so far is:

BR2_arm=y
BR2_cortex_a7=y
BR2_CCACHE=y
BR2_ARM_FPU_NEON_VFPV4=y
BR2_OPTIMIZE_2=y
BR2_BINUTILS_VERSION_2_27_X=y
BR2_GCC_ENABLE_LTO=y
BR2_INIT_SYSTEMD=y
BR2_SYSTEM_BIN_SH_BASH=y
BR2_TOOLCHAIN_EXTERNAL=y
BR2_TOOLCHAIN_EXTERNAL_LINARO_ARM=y

Testing a newer version of binutils now to see if that helps.

Thanks,
Christian Stewart

#3 lore raw

Hi Baruch, all,

Quoted 10 lines · Christian Stewart
Quoted 3 lines · Baruch Siach

It looks like you selected BR2_INIT_SYSTEMD when util-linux has already been built. Buildroot will not rebuild util-linux in this case. You need to start the build from scratch.

Yes, I have been doing the following sequence to reproduce:

make clean
make defconfig BR2_DEFCONFIG=$(pwd)/defconfig
make systemd

It seems that systemd does not select the following automatically:

BR2_PACKAGE_UTIL_LINUX=y
BR2_PACKAGE_UTIL_LINUX_LIBBLKID=y

This results, with the defconfig in my previous mail, in util-linux not being built and systemd build failing.

I don't think this is the intended behavior?...

Best,
Christian

#4 lore raw

Hi Christian,

Quoted 14 lines · Christian Stewart
Quoted 10 lines · Christian Stewart
Quoted 3 lines · Baruch Siach

It looks like you selected BR2_INIT_SYSTEMD when util-linux has already been built. Buildroot will not rebuild util-linux in this case. You need to start the build from scratch.

Yes, I have been doing the following sequence to reproduce:

make clean
make defconfig BR2_DEFCONFIG=$(pwd)/defconfig
make systemd

It seems that systemd does not select the following automatically:

Quoted 7 lines

BR2_PACKAGE_UTIL_LINUX=y
BR2_PACKAGE_UTIL_LINUX_LIBBLKID=y

This results, with the defconfig in my previous mail, in util-linux not being built and systemd build failing.

I don't think this is the intended behavior?...

Current BR2_PACKAGE_SYSTEMD selects BR2_PACKAGE_UTIL_LINUX_LIBBLKID unconditionally as of commit f21cbabb2f21e. Is BR2_PACKAGE_UTIL_LINUX_LIBBLKID selected in your full .config? If not, which version of Buildroot are you using?

baruch

Signature · 3 lines
     http://baruch.siach.name/blog/                  ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -
#5 lore raw

Hi Baruch,

Quoted 4 lines · Baruch Siach

Current BR2_PACKAGE_SYSTEMD selects BR2_PACKAGE_UTIL_LINUX_LIBBLKID unconditionally as of commit f21cbabb2f21e. Is BR2_PACKAGE_UTIL_LINUX_LIBBLKID selected in your full .config? If not, which version of Buildroot are you using?

I went back after a day or so, and re-did the build:

make clean
make

.. and it passed, strangely enough, with the defconfig I gave you a couple messages ago. Weird!

I try using my full .config, however, and the build fails:

Quoted 4 lines

CCLD busctl
CCLD systemd-socket-activate
/lib/libpam.so: file not recognized: File format not recognized
collect2: error: ld returned 1 exit status

This is the same error I reported in another thread -

systemd: build failure against pam on arm

I'm still stuck, there. But that's another issue.

Thanks for the help.

Best,
Christian