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
1 I am used to run genkernel using --makeopts=-jX and this seems to
2 trigger one parallel build issue in e2fsprogs build system which leads
3 to random compile failures (probably due to the deps resolution order
4 -- which can be non-deterministic). This is the error:
5
6 ./tst_uuid.c: In function ‘test_uuid’:
7 ./tst_uuid.c:49:2: error: ‘uuid_t’ undeclared (first use in this function)
8 ./tst_uuid.c:49:2: note: each undeclared identifier is reported only
9 once for each function it appears in
10 ./tst_uuid.c:49:9: error: expected ‘;’ before ‘uuidBits’
11 ./tst_uuid.c:52:30: error: ‘uuidBits’ undeclared (first use in this function)
12 ./tst_uuid.c: In function ‘main’:
13 ./tst_uuid.c:72:2: error: ‘uuid_t’ undeclared (first use in this function)
14 ./tst_uuid.c:72:10: error: expected ‘;’ before ‘buf’
15 ./tst_uuid.c:81:16: error: ‘buf’ undeclared (first use in this function)
16 ./tst_uuid.c:91:17: error: ‘UUID_VARIANT_DCE’ undeclared (first use in
17 this function)
18 ./tst_uuid.c:141:9: warning: format ‘%s’ expects type ‘char *’, but
19 argument 4 has type ‘int’
20 ./tst_uuid.c:142:18: error: ‘tst’ undeclared (first use in this function)
21 make[2]: *** [tst_uuid.o] Error 1
22 make[2]: *** Waiting for unfinished jobs....
23
24 Solution 1: compile e2fsprogs with -j1 and perhaps report it upstream
25 Solution 2: I've seen that the ebuild in portage explicitly disables
26 libuuid (--disable-libuuid) [1] and also libblkid.
27 --disable-libuuid do not build private uuid library
28 --disable-libblkid do not build private blkid library
29
30 Moreover, tst_uuid.c is a "test program for the UUID library" but
31 looking at the build system, it seems to be impossible to disable it.
32 Perhaps we should test out the generated initramfs with e2fsprogs
33 compiled with --disable-libuuid --disable-libblkid
34
35 [1] http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/sys-fs/e2fsprogs/e2fsprogs-1.41.14.ebuild?view=markup
36 --
37 Fabio Erculiani
38 http://lxnay.com

Replies

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