Discussion:
[lfs-support] chapter 6.55 v.8.3 fatal error while building e2fsprogs
Terence Waterhouse
2018-09-13 13:37:41 UTC
Permalink
Hello everyone,

This is my second attempt to build LFS and everything went more than smoothly. All the builds and test suites gave all the desired results.

Now while building e2fsprogs in section 6.55 I get a fatal error. Here's the relevant code : 

///////////////////
...
making all in lib/support
make[2]: Entering directory '/sources/e2fsprogs-1.44.3/build/lib/support'
    SUBST ../../lib/dirpaths.h
    CC ../../../lib/support/cstring.c
    CC ../../../lib/support/mkquota.c
    CC ../../../lib/support/plausible.c
../../../lib/support/plausible.c:38:10: fatal error: blkid/blkid.h: No such file or directory
 #include "blkid/blkid.h"
          ^~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [Makefile:386: plausible.o] Error 1
make[2]: Leaving directory '/sources/e2fsprogs-1.44.3/build/lib/support'
make[1]: *** [Makefile:419: all-libs-recursive] Error 1
make[1]: Leaving directory '/sources/e2fsprogs-1.44.3/build'
make: *** [Makefile:341: all] Error 2 

////////////////////////

This surprised me a lot in view of the ease of development up to that point. Here are a few remarks :
-- file blkid.h exists in /mnt/lfs/tools/include/blkid but not in the expected path.
-- several 'flavours' of blkid.h are present in /mnt/lfs/sources/e2fsprogs-1.44.3/lib/blkid (blkid.h.in; blkidP.h etc...)
but not blkid.h itself.
-- I copied the file into the target directory and this got me past the failure but gave another for uuidd.h, so I back-pedalled
to the original version.

I have of course searched extensively to no avail. It looks like it might be a path problem, but I can't imagine where it came from.
Can anyone help on this one ?

many thanks in advance.

Terence Waterhouse





 

 

 
--
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

http://en.wiki
Pierre Labastie
2018-09-13 14:05:11 UTC
Permalink
Post by Terence Waterhouse
Hello everyone,
This is my second attempt to build LFS and everything went more than smoothly. All the builds and test suites gave all the desired results.
///////////////////
...
making all in lib/support
make[2]: Entering directory '/sources/e2fsprogs-1.44.3/build/lib/support'
    SUBST ../../lib/dirpaths.h
    CC ../../../lib/support/cstring.c
    CC ../../../lib/support/mkquota.c
    CC ../../../lib/support/plausible.c
../../../lib/support/plausible.c:38:10: fatal error: blkid/blkid.h: No such file or directory
 #include "blkid/blkid.h"
          ^~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [Makefile:386: plausible.o] Error 1
make[2]: Leaving directory '/sources/e2fsprogs-1.44.3/build/lib/support'
make[1]: *** [Makefile:419: all-libs-recursive] Error 1
make[1]: Leaving directory '/sources/e2fsprogs-1.44.3/build'
make: *** [Makefile:341: all] Error 2
Looks like something in 6.6 - Creating Essential files and Symlinks has
been overlooked. Check that all the commands~:
------------

ln -svf /tools/include/blkid /usr/include
ln -svf /tools/include/libmount /usr/include
ln -svf /tools/include/uuid /usr/include
install -vdm755 /usr/lib/pkgconfig
for pc in blkid mount uuid
do
Post by Terence Waterhouse
/usr/lib/pkgconfig/${pc}.pc
done

----------
have been executed correctly. I think blkid, uuid, etc are not used before e2fsprogs, so that's why there was no failure before.
I'd say also that you do not need to start again chapter 6. Just run those commands now, specially the "ln -sfv" ones, and
try again to build e2fsprogs (don't forget to remove the whole build tree and to untar again e2fsprogs).

Regards
Pierre
--
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

http://en.wik
Terence Waterhouse
2018-09-13 17:17:23 UTC
Permalink
Bonsoir Pierre !

I just got back from shopping to find your mail. It was exactly that. A masterly reply! I did as you said and the build went like a dream. No tests failed, so I'm back in business.
I must say that I thought (and hoped !) it may be something on those lines but I would never have found it, I fear, without help. Nonetheless, I marked that long list of commands as needing care, especially when tired. . . and thought that I had done them correctly, but I really must have skipped the last ln commands, there is no other answer.

Many thanks for your time,
Bonsoir et mille mercis

Terence

 

 

 

 
Message du 13/09/18 16:05
De : "Pierre Labastie"
Objet : Re: [lfs-support] chapter 6.55 v.8.3 fatal error while building e2fsprogs
--
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

http://en.wikiped
Terence Waterhouse
2018-09-13 17:19:39 UTC
Permalink
Message du 13/09/18 19:17
De : "Terence Waterhouse"
A : "LFS Support List"
Objet : Re: [lfs-support] chapter 6.55 v.8.3 fatal error while building e2fsprogs
Sorry for the top posting in the last mail, I shall end up getting the hang of it.
Loading...