Gentoo Archives: gentoo-genkernel

From: Fabio Erculiani <lxnay@g.o>
To: gentoo-genkernel@l.g.o
Subject: [gentoo-genkernel] e2fsprogs and libuuid and parallel make
Date: Wed, 17 Aug 2011 06:43:04
Message-Id: CAN3AtvopX-oqroj1e55BT8J4OnKP7Cn0pFqJ0PXQPatvbY8Sxg@mail.gmail.com
I am used to run genkernel using --makeopts=-jX and this seems to
trigger one parallel build issue in e2fsprogs build system which leads
to random compile failures (probably due to the deps resolution order
-- which can be non-deterministic). This is the error:

./tst_uuid.c: In function ‘test_uuid’:
./tst_uuid.c:49:2: error: ‘uuid_t’ undeclared (first use in this function)
./tst_uuid.c:49:2: note: each undeclared identifier is reported only
once for each function it appears in
./tst_uuid.c:49:9: error: expected ‘;’ before ‘uuidBits’
./tst_uuid.c:52:30: error: ‘uuidBits’ undeclared (first use in this function)
./tst_uuid.c: In function ‘main’:
./tst_uuid.c:72:2: error: ‘uuid_t’ undeclared (first use in this function)
./tst_uuid.c:72:10: error: expected ‘;’ before ‘buf’
./tst_uuid.c:81:16: error: ‘buf’ undeclared (first use in this function)
./tst_uuid.c:91:17: error: ‘UUID_VARIANT_DCE’ undeclared (first use in
this function)
./tst_uuid.c:141:9: warning: format ‘%s’ expects type ‘char *’, but
argument 4 has type ‘int’
./tst_uuid.c:142:18: error: ‘tst’ undeclared (first use in this function)
make[2]: *** [tst_uuid.o] Error 1
make[2]: *** Waiting for unfinished jobs....

Solution 1: compile e2fsprogs with -j1 and perhaps report it upstream
Solution 2: I've seen that the ebuild in portage explicitly disables
libuuid (--disable-libuuid) [1] and also libblkid.
  --disable-libuuid	  do not build private uuid library
  --disable-libblkid	  do not build private blkid library

Moreover, tst_uuid.c is a "test program for the UUID library" but
looking at the build system, it seems to be impossible to disable it.
Perhaps we should test out the generated initramfs with e2fsprogs
compiled with --disable-libuuid --disable-libblkid

[1] http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/sys-fs/e2fsprogs/e2fsprogs-1.41.14.ebuild?view=markup
-- 
Fabio Erculiani
http://lxnay.com

Replies

Subject Author
Re: [gentoo-genkernel] e2fsprogs and libuuid and parallel make Sebastian Pipping <sping@g.o>