Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > alt.os.linux > #50307

Re: Linux From Scratch - Builds by hand, but not from same commands in make file

From Java Jive <java@evij.com.invalid>
Newsgroups alt.os.linux, uk.comp.os.linux
Subject Re: Linux From Scratch - Builds by hand, but not from same commands in make file
Date 2018-08-13 11:43 +0100
Organization Aioe.org NNTP Server
Message-ID <pkrnc4$1nfe$1@gioia.aioe.org> (permalink)
References <pkelrk$11p5$1@gioia.aioe.org> <j15rmdpt05dajma4s9t97dufq3jn12k4ab@4ax.com>

Cross-posted to 2 groups.

Show all headers | View raw


Thanks for your suggestions, but see below ...

On 10/08/2018 15:28, Roger wrote:
>
> On Wed, 8 Aug 2018 12:57:35 +0100, Java Jive
> <java@evij.com.invalid> wrote:
>> 
>> installation of glibc v2.27 into the toolchain.  Both manually and via
>> make file, glibc appears to configure and compile without error, but ...
>> 	make install
>> ... works manually from the command-line, but not from within the make file.
> 
> I'm a Makefile newbie but as you haven't had any other help...
> 
> Pedantic point regarding "tar -xaf ...". The "a" isn't used
> when extracting so "tar -xf ..." is all that's necessary. You
> can see that use in 5.5 gcc pass 1 when untarring gmp, mpfr,
> and mpc.

IME, having used Linux on a variety of machines including embedded 
devices as well as PCs, that is often not the case  -  if one doesn't 
specify -a one often then has to specify -j or -J or -z specifically, 
the nice thing about -a being that it works with all the most commonly 
used compression algorithms, so the same command can be used regardless 
of the compression algorithm used.

> Assuming the .pdf has the same text as the .html you haven't
> followed the book exactly. In 5.3 we are reminded:
> 
>      do not put sources in /mnt/lfs/tools/
>      extract sources using tar
>      cd to the created subdirectory
> 
> then in the case of glibc make a build subdirectory, cd into it
> and run configure.

The important thing is to build in a different directory from the 
sources, either in a sub-directory, or elsewhere, the most obvious and 
therefore probably the most common other choice being a parallel 
directory, which is what I use.

> You make a build directory before extracting the source code
> (which isn't necessarily wrong *) but I don't see where you cd
> into that directory. Sorry if I've misread the makefile and that
> doesn't help.

Look up shell commands pushd/popd.

> * the INSTALL file within the sources does mention the source
> code in /src/gnu/glibc-VERSION and the build directory in
> /src/gnu/glibc-build so perhaps that is what you are doing
> (except not /src/gnu, or course), in which case making the
> build directory before untarring is okay.

Yes.

>> make[3]: execvp: /usr/bin/install: Argument list too long
> 
> That suggests to me that some circularity has been created.

No, I don't think so, see my earlier post today for what I think is 
going on.

Back to alt.os.linux | Previous | NextPrevious in thread | Find similar


Thread

Linux From Scratch - Builds by hand, but not from same commands in make file Java Jive <java@evij.com.invalid> - 2018-08-08 12:57 +0100
  Re: Linux From Scratch - Builds by hand, but not from same commands in make file Theo <theom+news@chiark.greenend.org.uk> - 2018-08-08 19:06 +0100
    Re: Linux From Scratch - Builds by hand, but not from same commands in make file Java Jive <java@evij.com.invalid> - 2018-08-08 22:19 +0100
      Re: Linux From Scratch - Builds by hand, but not from same commands in make file Java Jive <java@evij.com.invalid> - 2018-08-08 23:20 +0100
        Re: Linux From Scratch - Builds by hand, but not from same commands in make file Java Jive <java@evij.com.invalid> - 2018-08-13 11:27 +0100
          Re: Linux From Scratch - Builds by hand, but not from same commands in make file Java Jive <java@evij.com.invalid> - 2018-08-23 22:55 +0100
            Re: Linux From Scratch - Builds by hand, but not from same commands in make file Java Jive <java@evij.com.invalid> - 2018-08-26 16:46 +0100
              Re: Linux From Scratch - Builds by hand, but not from same commands in make file Java Jive <java@evij.com.invalid> - 2018-08-26 20:18 +0100
  Re: Linux From Scratch - Builds by hand, but not from same commands in make file Roger <invalid@invalid.invalid> - 2018-08-10 15:28 +0100
    Re: Linux From Scratch - Builds by hand, but not from same commands in make file Java Jive <java@evij.com.invalid> - 2018-08-13 11:43 +0100

csiph-web