LinuxQuestions.org
Visit Jeremy's Blog.
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 11-15-2017, 05:27 AM   #1
huligan
LQ Newbie
 
Registered: Nov 2017
Posts: 3

Rep: Reputation: Disabled
Question Wrong or outdated parameters of the configure scripts


Hi,

I've noticed some of the configure scripts parameters that I should use according to the LFS systemd book are not supported by those configure scripts or I don't understand something. For example according to chapter 5.4.1 of the LFS systemd book I should use --with-sysroot=$LFS parameter to build binutils 2.29. However if I read the configure script of binutils 2.29 there is no such a parameter. But there is --with-build-sysroot
Code:
  --with-build-sysroot=SYSROOT
                          use sysroot as the system root during the build
Was the --with-sysroot parameter changed to --with-build-sysroot or it's still supported by some other script the configure script includes?

Same issue with --with-sysroot parameter in chapter 5.5.1 of the book where gcc 7.2.0 is compiled. It also instructs to use --with-local-prefix that I also can't find in the configure script of gcc 7.2.0

There could be other configure parameters mentioned in the book but not found in the configure scripts themselves.

Could someone explain all this mystic? Thanks.
 
Old 11-15-2017, 02:13 PM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,260

Rep: Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321
The builds are checked against the book. You have to use the paths they specify, but the lfs book should should build the exact programs specified. If it doesn't, report a bug in the book.

If you're building LFS, however you obviously love learning, or suffering :-P. Often both go toghether. There's a little suffering in that for you if something is buggy/broken. But it might be something like 2.1.24-P4 versus 2.1.24-P5 in the version number.
 
Old 11-15-2017, 03:37 PM   #3
huligan
LQ Newbie
 
Registered: Nov 2017
Posts: 3

Original Poster
Rep: Reputation: Disabled
I just want to understand what I'm running. The --with-sysroot seems as it doesn't exist and being just ignored by the configure script. If this is not true, please explain how does it work.

Last edited by huligan; 11-15-2017 at 04:18 PM.
 
Old 11-16-2017, 03:33 AM   #4
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,260

Rep: Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321
If you want to understand what you're running look at the output of
Code:
./configure --help |less
--with-build-sysroot is at first slightly ambiguous; But there's also --prefix, which sets install root. For something like glibc, which has to drop files in /lib(64) --prefix has to be your new system's root. That helps. Now we can guess

--with-build-sysroot= root of tree from where you pick up the libs and includes neccessary for compilation
--prefix = --with-install-sysroot = install destination.

So in ch. 5, the build sysroot would be the base system, and in chapter 6 it would be the chapter 5 system. Do the provided details back that up?
 
Old 11-16-2017, 04:12 AM   #5
huligan
LQ Newbie
 
Registered: Nov 2017
Posts: 3

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by business_kid View Post
If you want to understand what you're running look at the output of
Code:
./configure --help |less
--with-build-sysroot is at first slightly ambiguous; But there's also --prefix, which sets install root. For something like glibc, which has to drop files in /lib(64) --prefix has to be your new system's root. That helps. Now we can guess

--with-build-sysroot= root of tree from where you pick up the libs and includes neccessary for compilation
--prefix = --with-install-sysroot = install destination.

So in ch. 5, the build sysroot would be the base system, and in chapter 6 it would be the chapter 5 system. Do the provided details back that up?
My question was not about '--with-build-sysroot' (that also isn't mentioned in the 5.x chapters of LFS) but about '--with-sysroot' (mentioned in the LFS book). I had read the out put of './configure --help' and also read the source code of the ./configure script itself but was unable to find anything related to the '--with-sysroot' (without -build-) parameter. I know what '--with-build-sysroot' does (adds --sysroot=<path> to the gcc flags). But what '--with-sysroot' does and where it's implemented?
 
  


Reply



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
[SOLVED] How to access Grub parameters using Shell Scripts? HBSorensen Programming 10 04-13-2010 06:49 AM
My wireless lan security parameters are wrong need help. dickb Linux - Software 1 12-24-2009 05:49 AM
shell script (sending parameters to scripts) qrshat Programming 4 12-05-2007 12:15 PM
fcrontab parameters wrong JZL240I-U Linux - Software 3 01-18-2007 01:21 AM
pass parameters to shell scripts ? qwijibow Linux - Newbie 2 08-07-2003 07:27 AM

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

All times are GMT -5. The time now is 02:26 PM.

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