Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > alt.os.linux > #50432
| 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-26 16:46 +0100 |
| Organization | Aioe.org NNTP Server |
| Message-ID | <plui15$uin$1@gioia.aioe.org> (permalink) |
| References | (1 earlier) <q9u*hXS2w@news.chiark.greenend.org.uk> <pkfmq2$s20$1@gioia.aioe.org> <pkfqb8$11hd$1@gioia.aioe.org> <pkrmed$1lt3$1@gioia.aioe.org> <plnagq$1m3a$1@gioia.aioe.org> |
Cross-posted to 2 groups.
On 23/08/2018 22:55, Java Jive wrote:
>
>> ARG_MAX does seem to be the nature of the problem. ...
>
> Yes, this was the cause of the problem. I've now got it to work, but
> had to rewrite much of the make file to remove the need to export all
> variables to make it happen.
However, now I'm falling over at the next hurdle. The Linux From
Scratch manual states:
Caution
At this point, it is imperative to stop and ensure that the basic
functions (compiling and linking) of the new toolchain are working as
expected. To perform a sanity check, run the following commands:
echo 'int main(){}' > dummy.c
$LFS_TGT-gcc dummy.c
readelf -l a.out | grep ': /tools'
If everything is working correctly, there should be no errors, and the
output of the last command will be of the form:
[Requesting program interpreter: /tools/lib64/ld-linux-x86-64.so.2]
Note that for 32-bit machines, the interpreter name will be
/tools/lib/ld-linux.so.2.
If the output is not shown as above or there was no output at all, then
something is wrong. Investigate and retrace the steps to find out where
the problem is and correct it. This issue must be resolved before
continuing on.
But for me the results of this test compilation are ...
/media/lfs/tools/lib/gcc/i686-lfs-linux-gnu/7.3.0/../../../../i686-lfs-linux-gnu/bin/ld:
cannot find crt1.o: No such file or directory
/media/lfs/tools/lib/gcc/i686-lfs-linux-gnu/7.3.0/../../../../i686-lfs-linux-gnu/bin/ld:
cannot find crti.o: No such file or directory
/media/lfs/tools/lib/gcc/i686-lfs-linux-gnu/7.3.0/../../../../i686-lfs-linux-gnu/bin/ld:
cannot find /media/lfs/tools/lib/libc.so.6 inside /media/lfs
/media/lfs/tools/lib/gcc/i686-lfs-linux-gnu/7.3.0/../../../../i686-lfs-linux-gnu/bin/ld:
cannot find /media/lfs/tools/lib/libc_nonshared.a inside /media/lfs
/media/lfs/tools/lib/gcc/i686-lfs-linux-gnu/7.3.0/../../../../i686-lfs-linux-gnu/bin/ld:
cannot find /media/lfs/tools/lib/ld-linux.so.2 inside /media/lfs
However, in fact all these files exist:
lfs@hostname:/media/lfs$ find . -name crt1.o
./tools/lib/crt1.o
lfs@hostname:/media/lfs$ find . -name libc.so.6
./tools/lib/libc.so.6
lfs@hostname:/media/lfs$ find . -name libc_nonshared.a
./tools/lib/libc_nonshared.a
lfs@hostname:/media/lfs$ find . -name ld-linux.so.2
./tools/lib/ld-linux.so.2
I've retraced my steps by hand on my 64-bit machine, and also tried
running the same makefile on a 32-bit machine, both with identical
results, so difference in the makefile due to the bitness of the
machine/OS is not the issue.
Anyone any ideas?
Back to alt.os.linux | Previous | Next — Previous in thread | Next in thread | Find similar
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