LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This 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


Reply
  Search this Thread
Old 03-30-2015, 01:43 PM   #31
Xenanthropy
Member
 
Registered: Mar 2015
Posts: 34

Original Poster
Rep: Reputation: Disabled

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.
 
Old 03-30-2015, 01:55 PM   #32
veerain
Senior Member
 
Registered: Mar 2005
Location: Earth bound to Helios
Distribution: Custom
Posts: 2,524

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
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.
 
1 members found this post helpful.
Old 03-30-2015, 01:56 PM   #33
veerain
Senior Member
 
Registered: Mar 2005
Location: Earth bound to Helios
Distribution: Custom
Posts: 2,524

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
And it's wrong to use gcc and binutils toolchain from /tools. They are to be used only after booting with the new kernel.
 
1 members found this post helpful.
Old 03-30-2015, 02:19 PM   #34
veerain
Senior Member
 
Registered: Mar 2005
Location: Earth bound to Helios
Distribution: Custom
Posts: 2,524

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
And you should build the kernel without chrooting. So that /cross-tools/bin is still first in PATH.
 
1 members found this post helpful.
Old 03-30-2015, 06:56 PM   #35
Xenanthropy
Member
 
Registered: Mar 2015
Posts: 34

Original Poster
Rep: Reputation: Disabled
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
 
Old 03-31-2015, 12:26 AM   #36
veerain
Senior Member
 
Registered: Mar 2005
Location: Earth bound to Helios
Distribution: Custom
Posts: 2,524

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
Quote:
-Wmaybe-uninitialized
These error messages are benign.
 
Old 03-31-2015, 01:19 AM   #37
Xenanthropy
Member
 
Registered: Mar 2015
Posts: 34

Original Poster
Rep: Reputation: Disabled
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.
 
Old 04-12-2015, 10:03 PM   #38
sr_ls_boy
Member
 
Registered: Apr 2015
Posts: 105

Rep: Reputation: Disabled
Are you still having trouble with the have() command not being found in bash?
 
Old 04-13-2015, 01:49 AM   #39
Xenanthropy
Member
 
Registered: Mar 2015
Posts: 34

Original Poster
Rep: Reputation: Disabled
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.
 
  


Reply

Tags
clfs, compile, error, kernel, make



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
CLFS Version GIT-20131214-x86_64-Multilib Make not compiling EPLychon Linux From Scratch 0 12-16-2013 01:44 AM
Problem on compiling mesa git on Slackware64 Multilib rvdboom Slackware 3 01-22-2013 01:47 PM
CLFS 1.2 Multilib x86_64 on Ubuntu 11.04 - 10.8.*EGLIBC-2.13 64-Bit Make Test Error samuraixp Linux From Scratch 1 03-27-2012 01:19 AM
Compile error with Version GIT-20110130-x86_64-Multilib twinsen Linux From Scratch 1 02-04-2011 10:01 AM
CLFS SVN-20080921-x86_64-Multilib Part 10 binutils chokes on install ChrisMP1 Linux From Scratch 0 09-23-2008 08:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 03:33 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration