Linux From ScratchThis Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have been working along and have finally come an error that I am unable to solve myself. I have no clue what this error means, or how to work with it. I have tried the build 3 times just to be sure I did not mess up a command somewhere, any help, or pointers would be greatly appreciated!
Code:
make[2]: Leaving directory `/sources/util-linux-ng-2.18/misc-utils'
Making all in po
make[2]: Entering directory `/sources/util-linux-ng-2.18/po'
test -z "ca.gmo cs.gmo da.gmo de.gmo es.gmo et.gmo eu.gmo fi.gmo fr.gmo hu.gmo id.gmo it.gmo ja.gmo nl.gmo pl.gmo pt_BR.gmo ru.gmo sl.gmo sv.gmo tr.gmo uk.gmo vi.gmo zh_CN.gmo" || make ca.gmo cs.gmo da.gmo de.gmo es.gmo et.gmo eu.gmo fi.gmo fr.gmo hu.gmo id.gmo it.gmo ja.gmo nl.gmo pl.gmo pt_BR.gmo ru.gmo sl.gmo sv.gmo tr.gmo uk.gmo vi.gmo zh_CN.gmo
make[3]: Entering directory `/sources/util-linux-ng-2.18/po'
rm -f cs.gmo && : -c --statistics -o cs.gmo cs.po
: --update ca.po util-linux-ng.pot
rm -f da.gmo && : -c --statistics -o da.gmo da.po
: --update de.po util-linux-ng.pot
mv: cannot stat `t-da.gmo': No such file or directory
make[3]: *** [da.gmo] Error 1
make[3]: *** Waiting for unfinished jobs....
mv: cannot stat `t-cs.gmo': No such file or directory
make[3]: *** [cs.gmo] Error 1
: --update et.po util-linux-ng.pot
rm -f es.gmo && : -c --statistics -o es.gmo es.po
mv: cannot stat `t-es.gmo': No such file or directory
make[3]: *** [es.gmo] Error 1
make[3]: Leaving directory `/sources/util-linux-ng-2.18/po'
make[2]: *** [stamp-po] Error 2
make[2]: Leaving directory `/sources/util-linux-ng-2.18/po'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/sources/util-linux-ng-2.18'
make: *** [all] Error 2
This line looks out of place: make[3]: *** Waiting for unfinished jobs....
Are you setting the CFLAGS and CXXFLAGS options or, more probable, a MAKEFLAGS="-j X" option where X is larger then 2? If so unset CFLAGS and CXXFLAGS and set MAKEFLAGS to -j 2.
Well that did help a little, I didn't realize I had set my flags to 4 (tired mistake I suppose) But I still receive an error much like the original, yet still quite different, I hope you can shed a little light on this guy, it seems to be a little bit more clean.
Did you fully remove the util-linux-ng-2.18 directory before your retry?
Also: I just noticed you had another problem and I'm not sure if that one was fixed. I really doubt if the stated solution (post #2 of that thread) works. In general: If you have to change the commands in the book (or have to add other commands) to make it work: Something is wrong!
EDDY is probably right. I very faintly remember running into a similar problems. IIRC then it was a problem with gettext package that somehow was not properly installed in my toolchain.
You should check your toolchain if this package is correctly installed.
Well I am quite unsure of exactly what to do then, I found gettext on page 83 and I figured I could install it as per the instructions? But I am unsure if this is the correct route. Could I please get some guidance in the route to take?
Well I am quite unsure of exactly what to do then, I found gettext on page 83 and I figured I could install it as per the instructions? But I am unsure if this is the correct route. Could I please get some guidance in the route to take?
Ok,
it has been a while since I had to troubleshoot a messed up toolchain. So let's take small steps. First of all, post which host system you are using. If you are using the liveCD then you will have to recreate user lfs first.
[EDIT]
It is very important that you make a backup of your toolchain first, just in case something goes wrong. After that you can recreate user lfs and then change owner of $LFS/tools to user lfs.
On second thoughts, it should be possible to simply install gettext right now. All the dependencies should be satisfied by the toolchain.
it should be ok. Correcting a corrupted toolchain is not a trivial task. So I would try to install gettext first and leave the toolchain "broken". If gettext installs on the system ok there won't be any need to have it in the toolchain, too. However, I have never tried it. Both options yield risks. Worst case scenario you will have to start building your toolchain from scratch.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.