Error compiling Linux-3.14.21 kernel for CLFS Version GIT-20150207-x86_64-Multilib
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.
had time to compile one more time, i'll need to link x86_64-unknown-linux-gnu-objcopy as well. I can do that myself though, I should be good now unless there's another problem besides missing symlinks.
I found out the issue. What I did opted was 'to boot'. So I had '/cross-tools/bin' in the PATH first. So no need for these symlinks.
And you are using 'to chroot' option which doesn't builds a kernel assuming the system kernel would boot properly. In your case it won't probably. So it's better to isolate as much and use build tools from cross-gcc and cross-binutils.
Sorry I did CLFS a year or so ago. So I was not well versed. So much trouble.
Ok, thanks for the help. I'll try making it outside of the chroot. This is a pain, but then again, it'd be a pain as well to only have a 64bit system that couldn't do 32bit stuff, since a lot of new gaming stuff is designed for standard "32bit ubuntu" etc. Would building a 64bit only system be that much of a pain or are 32bit programs on 64bit only not a problem? I think it'd only be a problem if I don't have access to the source code, like say for instance, steam, I think they only ship binaries. And also, if I were to start over, do you recommend the boot method over chroot method? I only did the chroot method so I could have the book on my second monitor, but I could always do boot. I just wouldn't be able to copy-paste so it'd just take longer. But hey, whatever works.
Edit: Yep, kernel compiling fine outside of the chroot.
Edit2: Well, it did give me a bit of an error (warnings I assume, since it says warning) close to the beginning:
Code:
In file included from scripts/sortextable.c:190:0:
scripts/sortextable.c: In function 'main':
scripts/sortextable.h:176:3: warning: 'relocs_size' may be used uninitialized in this function [-Wmaybe-uninitialized]
memset(relocs, 0, relocs_size);
^
scripts/sortextable.h:106:6: note: 'relocs_size' was declared here
int relocs_size;
^
In file included from scripts/sortextable.c:188:0:
scripts/sortextable.h:176:3: warning: 'relocs_size' may be used uninitialized in this function [-Wmaybe-uninitialized]
memset(relocs, 0, relocs_size);
^
scripts/sortextable.h:106:6: note: 'relocs_size' was declared here
int relocs_size;
^
But other than that, it compiled fine and finished. I'm gonna try installing and see what happens.
Also, I found out why gnutls wasn't working properly. I had built nettle from the lfs page, so when I installed it, it automatically did it as 64bit. But GnuTLS was expecting 32bit since I was on the lfs page, so it wasn't searching inside lib64. I went to the cblfs page, and it has nettle and gnutls, and both pages have the instructions for compiling for both 32bit and 64 bit. Silly me.
Last edited by Xenanthropy; 03-30-2015 at 07:38 PM.
Reason: added more info
Ok, good. Honestly I might just start over with a fully 64-bit system, i've run into quite a bit of problems with installing various programs (openssl/gnutls, wget, pam-library, curl, nettle, to name a few) I'm just assuming i've messed something up somewhere that I didn't catch, and it's just messed my whole build up. Besides, i'm sure the fully 64bit system would be faster to make anyway.
Oh I haven't tried compiling LFS since I gave up on that instance that I was compiling. I think I probably fixed the problem, i'm not really sure though, I just decided it'd be easier to just compile a 64-bit only system, since apparently you can still build and compile 32-bit programs. Which makes me confused as to why you'd need multilib. I have no clue, unless i'm misinterpreting something.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.