LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 09-16-2018, 11:57 AM   #1
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 9,257

Rep: Reputation: 973Reputation: 973Reputation: 973Reputation: 973Reputation: 973Reputation: 973Reputation: 973Reputation: 973
Odd behaviour from 1st compile.


Starting Chapter 5 - binutils-pass 1 onwards I am getting weird behaviour. In the make compiles halt on
Code:
checking how to print strings...
If I interrupt with Ctrl_C, it throws me an error with zlib; If I hit returm, It prompts for a password :-/. I have tried the lfs user's password, and it appears to loop. If I enter no password, I get a 2nd password prompt; Hit return again, and it proceeds as if nothing had happened:-//. No warning, no error :-o.
Code:
lfs:~$ cat .bash_profile
exec env -i HOME=$HOME TERM=$TERM PS1='\u:\w\$ ' /bin/bash
lfs:~$ cat .bashrc
set +h
umask 022
LFS=/media/hd0
LC_ALL=POSIX
LFS_TGT=$(uname -m)-lfs-linux-gnu
PATH=/tools/bin:/bin:/usr/bin
export LFS LC_ALL LFS_TGT PATH
I'm building on Slackware64-current, and my version throws the odd wartning about headers on a compile (usually sysdeps.h), but they never interfered with anything.

EDIT: These errors come from configure scripts. Binutils and gcc run a few each.

Last edited by business_kid; 09-16-2018 at 11:59 AM.
 
Old 09-16-2018, 02:09 PM   #2
arch-linq
LQ Newbie
 
Registered: Sep 2018
Location: Midwest, USA
Distribution: Arch,LFS,Kaos
Posts: 13

Rep: Reputation: Disabled
I would run the version-ck.sh and run echo $LFS Then remount the target partition mount -v -t ext4 /dev/<xxx> $LFS Using this LFS=/media/hd0 is not standard and can introduce issues.

Last edited by arch-linq; 09-16-2018 at 02:11 PM.
 
Old 09-16-2018, 02:22 PM   #3
arch-linq
LQ Newbie
 
Registered: Sep 2018
Location: Midwest, USA
Distribution: Arch,LFS,Kaos
Posts: 13

Rep: Reputation: Disabled
1st compile reply

I'd start over with Sections 2 and 4. Not using export LFS=/mnt/lfs may have tripped something up in those.
 
Old 09-17-2018, 06:40 AM   #4
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 9,257

Original Poster
Rep: Reputation: 973Reputation: 973Reputation: 973Reputation: 973Reputation: 973Reputation: 973Reputation: 973Reputation: 973
Thanks for the reply.

I think I can call this solved. It's a gremlin from my base system (too many updates, no recent clean install) but it's harmless. I went on, & things are fine. It was big in binutils & gcc, but they have several configure scripts in both of them. The 'make test' stage in things is coming out as clean as you would expect for chapter 5. I'm on bison now in Ch. 5-17.1 and all is smooth. The definitive test is the make test on gcc in chapter 6. I'll scrub it all if that looks poorly.

On this box, building a kernel throws a bucketload of warnings, but the kernel comes out just fine.
 
Old 09-18-2018, 03:05 PM   #5
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 9,257

Original Poster
Rep: Reputation: 973Reputation: 973Reputation: 973Reputation: 973Reputation: 973Reputation: 973Reputation: 973Reputation: 973
Yep, it's solved all right.

On chapter 6 now, passing with flying colors on Binutils, Glibc & Gcc, in fact on everything. The problem vanished in the chroot. It was satisfying to have binutils not stop with stupid nonsense; it has a lot of small compiles with individual configure scripts, and was the first thing in chapter 5 and the major offender, prompting the query.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
gmp: odd behaviour. stf92 Slackware 4 11-13-2013 01:47 PM
Odd behaviour of tty richard64 Fedora 1 10-20-2006 06:20 AM
spamassassin odd behaviour fedora_user Linux - Software 8 04-12-2006 05:22 PM
odd behaviour of wvdial NNP Linux - General 4 08-05-2005 02:58 PM
Odd behaviour on desktop... user00265 Slackware 19 02-26-2005 06:06 PM

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

All times are GMT -5. The time now is 12:00 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration