* [Buildroot] Unable to build an image with systemd
@ 2017-10-30 12:57 Gorka Lertxundi
2017-10-30 14:35 ` Thomas Petazzoni
0 siblings, 1 reply; 5+ messages in thread
From: Gorka Lertxundi @ 2017-10-30 12:57 UTC (permalink / raw)
To: buildroot
Hi guys,
Yesterday I run into this issue I didn't know how to proceed, can anyone
help me?
configure: error: *** libmount support required but libraries not found
package/pkg-generic.mk:217: recipe for target
'/buildroot-src/output/build/systemd-234/.stamp_configured' failed
make: *** [/buildroot-src/output/build/systemd-234/.stamp_configured] Error
1
Cross compiling to ARM using the 2017.08.1 release which supposedly has the
systemd and libmount issue solved long time ago[1]. I don't know how it's
possible my build is outputting that all the time.
systemd uses pkg-config to check if libmount exists and, as expected, using
the host-deployed pkg-config wasn't able to find it.
root at 2f591ceac91d:/buildroot-src# /buildroot-src/output/host/bin/pkg-config
--libs blkid
-L/buildroot-src/output/host/arm-buildroot-linux-gnueabihf/sysroot/usr/lib
-lblkid
root at 2f591ceac91d:/buildroot-src# /buildroot-src/output/host/bin/pkg-config
--libs mount
Package mount was not found in the pkg-config search path.
Perhaps you should add the directory containing `mount.pc'
to the PKG_CONFIG_PATH environment variable
Package 'mount', required by 'world', not found
I manually created mount.pc in
"output/host/arm-buildroot-linux-gnueabihf/sysroot/usr/lib/pkgconfig/mount.pc"
equalling
to the its "twin" blkid.pc content (changing library references of course
;) and this fixes the libmount detection but after a while it crashes:
src/core/manager.h:22:22: fatal error: libmount.h: No such file or directory
#include <libmount.h>
^
compilation terminated.
Makefile:17010: recipe for target 'src/core/libcore_la-manager.lo' failed
make[3]: *** [src/core/libcore_la-manager.lo] Error 1
Makefile:16996: recipe for target 'src/core/libcore_la-unit-printf.lo'
failed
make[3]: *** [src/core/libcore_la-unit-printf.lo] Error 1
cc1: warning:
/buildroot-src/output/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/libmount:
No such file or directory [-Wmissing-include-dirs]
In file included from src/core/emergency-action.h:36:0,
from src/core/unit.h:32,
from src/core/job.h:115,
from src/core/transaction.h:25,
from src/core/transaction.c:27:
src/core/manager.h:22:22: fatal error: libmount.h: No such file or directory
#include <libmount.h>
^
compilation terminated.
Makefile:17017: recipe for target 'src/core/libcore_la-transaction.lo'
failed
make[3]: *** [src/core/libcore_la-transaction.lo] Error 1
Makefile:23270: recipe for target 'all-recursive' failed
make[2]: *** [all-recursive] Error 1
Makefile:10413: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/buildroot-src/output/build/systemd-234'
package/pkg-generic.mk:227: recipe for target
'/buildroot-src/output/build/systemd-234/.stamp_built' failed
make: *** [/buildroot-src/output/build/systemd-234/.stamp_built] Error 2
So something weird is going on or i'm missing something.
Thanks in advance,
[1] http://lists.busybox.net/pipermail/buildroot/2014-December/114892.html
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20171030/0b6b527e/attachment.html>
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Buildroot] Unable to build an image with systemd
2017-10-30 12:57 [Buildroot] Unable to build an image with systemd Gorka Lertxundi
@ 2017-10-30 14:35 ` Thomas Petazzoni
2017-10-30 15:14 ` Gorka Lertxundi
0 siblings, 1 reply; 5+ messages in thread
From: Thomas Petazzoni @ 2017-10-30 14:35 UTC (permalink / raw)
To: buildroot
Hello,
On Mon, 30 Oct 2017 13:57:24 +0100, Gorka Lertxundi wrote:
> Yesterday I run into this issue I didn't know how to proceed, can anyone
> help me?
>
> configure: error: *** libmount support required but libraries not found
> package/pkg-generic.mk:217: recipe for target
> '/buildroot-src/output/build/systemd-234/.stamp_configured' failed
> make: *** [/buildroot-src/output/build/systemd-234/.stamp_configured] Error
> 1
Could you please provide a simple Buildroot .config that exhibits the
issue ?
> Cross compiling to ARM using the 2017.08.1 release which supposedly has the
> systemd and libmount issue solved long time ago[1]. I don't know how it's
> possible my build is outputting that all the time.
>
> systemd uses pkg-config to check if libmount exists and, as expected, using
> the host-deployed pkg-config wasn't able to find it.
Why "as expected" ?
> I manually created mount.pc in
> "output/host/arm-buildroot-linux-gnueabihf/sysroot/usr/lib/pkgconfig/mount.pc"
Why would you do this? It should have been installed by util-linux.
When reporting bug reports, please always include a Buildroot .config
file that allows to reproduce the issue. Also, make sure that the
problem is reproducible after a full clean build, i.e when doing "make
clean all".
Thanks!
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Buildroot] Unable to build an image with systemd
2017-10-30 14:35 ` Thomas Petazzoni
@ 2017-10-30 15:14 ` Gorka Lertxundi
2017-10-30 22:11 ` Peter Korsgaard
0 siblings, 1 reply; 5+ messages in thread
From: Gorka Lertxundi @ 2017-10-30 15:14 UTC (permalink / raw)
To: buildroot
Thanks for getting me this fast.
2017-10-30 15:35 GMT+01:00 Thomas Petazzoni <
thomas.petazzoni@free-electrons.com>:
> Hello,
>
> On Mon, 30 Oct 2017 13:57:24 +0100, Gorka Lertxundi wrote:
>
> > Yesterday I run into this issue I didn't know how to proceed, can anyone
> > help me?
> >
> > configure: error: *** libmount support required but libraries not found
> > package/pkg-generic.mk:217: recipe for target
> > '/buildroot-src/output/build/systemd-234/.stamp_configured' failed
> > make: *** [/buildroot-src/output/build/systemd-234/.stamp_configured]
> Error
> > 1
>
> Could you please provide a simple Buildroot .config that exhibits the
> issue ?
>
https://gist.github.com/glerchundi/bafbb5c3b7b15c48e4058bb05d890edf
>
> > Cross compiling to ARM using the 2017.08.1 release which supposedly has
> the
> > systemd and libmount issue solved long time ago[1]. I don't know how it's
> > possible my build is outputting that all the time.
> >
> > systemd uses pkg-config to check if libmount exists and, as expected,
> using
> > the host-deployed pkg-config wasn't able to find it.
>
> Why "as expected" ?
>
As expected because that was the reason why systemd failed in ./configure.
That doesn't mean that it's the root of the problem of course, probably is
my fault...
>
> > I manually created mount.pc in
> > "output/host/arm-buildroot-linux-gnueabihf/sysroot/usr/
> lib/pkgconfig/mount.pc"
>
> Why would you do this? It should have been installed by util-linux.
>
> When reporting bug reports, please always include a Buildroot .config
> file that allows to reproduce the issue. Also, make sure that the
> problem is reproducible after a full clean build, i.e when doing "make
> clean all".
>
Yeah, sounds reasonable. Will do next time sorry about that.
I started taking the customizations from jumpnow (
https://github.com/jumpnow/buildroot) and include them one-by-one on the
original buildroot but when I changed from sysv to systemd this one failed
to build.
>
> Thanks!
>
> Thomas
> --
> Thomas Petazzoni, CTO, Free Electrons
> Embedded Linux and Kernel engineering
> http://free-electrons.com
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20171030/0cb9b0ed/attachment.html>
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Buildroot] Unable to build an image with systemd
2017-10-30 15:14 ` Gorka Lertxundi
@ 2017-10-30 22:11 ` Peter Korsgaard
2017-10-30 22:35 ` Gorka Lertxundi
0 siblings, 1 reply; 5+ messages in thread
From: Peter Korsgaard @ 2017-10-30 22:11 UTC (permalink / raw)
To: buildroot
>>>>> "Gorka" == Gorka Lertxundi <glertxundi@gmail.com> writes:
Hi,
> I started taking the customizations from jumpnow (
> https://github.com/jumpnow/buildroot) and include them one-by-one on the
> original buildroot but when I changed from sysv to systemd this one failed
> to build.
Just to be sure - You did a make clean when you changed from sysv to
systemd, right?
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Buildroot] Unable to build an image with systemd
2017-10-30 22:11 ` Peter Korsgaard
@ 2017-10-30 22:35 ` Gorka Lertxundi
0 siblings, 0 replies; 5+ messages in thread
From: Gorka Lertxundi @ 2017-10-30 22:35 UTC (permalink / raw)
To: buildroot
Peter, Thomas,
Sorry for wasting your time, I thought I already did a clean because I'm
building buildroot inside an ephemeral docker container and this shouldn't
happen (I was caching buildroot through a shared volume...). The build
didn't finish yet but it seems that systemd phase was successfully passed.
Thanks for your support.
2017-10-30 23:11 GMT+01:00 Peter Korsgaard <peter@korsgaard.com>:
> >>>>> "Gorka" == Gorka Lertxundi <glertxundi@gmail.com> writes:
>
> Hi,
>
> > I started taking the customizations from jumpnow (
> > https://github.com/jumpnow/buildroot) and include them one-by-one on
> the
> > original buildroot but when I changed from sysv to systemd this one
> failed
> > to build.
>
> Just to be sure - You did a make clean when you changed from sysv to
> systemd, right?
>
> --
> Bye, Peter Korsgaard
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20171030/9fb517d3/attachment.html>
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2017-10-30 22:35 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-10-30 12:57 [Buildroot] Unable to build an image with systemd Gorka Lertxundi
2017-10-30 14:35 ` Thomas Petazzoni
2017-10-30 15:14 ` Gorka Lertxundi
2017-10-30 22:11 ` Peter Korsgaard
2017-10-30 22:35 ` Gorka Lertxundi
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.