Dear Colleagues,
When i try to compile Linux-3.19 API Headers in section 6.7.1 using the make
command, i found the bellow
error:
root:/sources/7.7/linux-3.19# make mrproper
make: gcc: Command not found
./scripts/gcc-version.sh: line 25: /tools/bin/gcc: No such file or directory
./scripts/gcc-version.sh: line 26: /tools/bin/gcc: No such file or directory
./scripts/gcc-version.sh: line 25: /tools/bin/gcc: No such file or directory
./scripts/gcc-version.sh: line 26: /tools/bin/gcc: No such file or directory
./scripts/gcc-version.sh: line 25: /tools/bin/gcc: No such file or directory
./scripts/gcc-version.sh: line 26: /tools/bin/gcc: No such file or directory
The following two commands are running in the chroot environment:-
root:/sources/7.7/linux-3.19# echo $PATH
/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin
root:/sources/7.7/linux-3.19# ls -l /tools/bin/gcc
-rwxr-xr-x 3 root root 2013452 Aug 25 18:56 /tools/bin/gcc
The following command is running outside chroot environment:-
[root@lfs glibc-build]# readelf -l a.out | grep ': /tools'
[Requesting program interpreter: /tools/lib/ld-linux.so.2]
The version of the book being used:- LFS-Book 7.7
Host system:- Red Hat Enterprise Linux Server release 6.7 for 32bit
I also attached a file of the history.
How to solve this issue please?.
Best Regards,
Mostafa YasinLinux system engineer root:/sources/7.7/linux-3.19# history
1 mkdir -pv /{bin,boot,etc/{opt,sysconfig},home,lib/firmware,mnt,opt}
2 mkdir -pv /{media/{floppy,cdrom},sbin,srv,var}
3 install -dv -m 0750 /root
4 install -dv -m 1777 /tmp /var/tmp
5 mkdir -pv /usr/{,local/}{bin,include,lib,sbin,src}
6 mkdir -pv /usr/{,local/}share/{color,dict,doc,info,locale,man}
7 mkdir -v /usr/{,local/}share/{misc,terminfo,zoneinfo}
8 mkdir -v /usr/libexec
9 mkdir -pv /usr/{,local/}share/man/man{1..8}
10 case $(uname -m) in x86_64) ln -sv lib /lib64; ln -sv lib /usr/lib64; ln
-sv lib /usr/local/lib64 ;; esac
11 mkdir -v /var/{log,mail,spool}
12 ln -sv /run /var/run
13 ln -sv /run/lock /var/lock
14 mkdir -pv /var/{opt,cache,lib/{color,misc,locate},local}
15 ln -sv /tools/bin/{bash,cat,echo,pwd,stty} /bin
16 ln -sv /tools/bin/perl /usr/bin
17 ln -sv /tools/lib/libgcc_s.so{,.1} /usr/lib
18 ln -sv /tools/lib/libstdc++.so{,.6} /usr/lib
19 sed 's/tools/usr/' /tools/lib/libstdc++.la > /usr/lib/libstdc++.la
20 ln -sv bash /bin/sh
21 ln -sv /proc/self/mounts /etc/mtab
22 cat > /etc/passwd << "EOF"
23 root:x:0:0:root:/root:/bin/bash
24 bin:x:1:1:bin:/dev/null:/bin/false
25 daemon:x:6:6:Daemon User:/dev/null:/bin/false
26 messagebus:x:18:18:D-Bus Message Daemon User:/var/run/dbus:/bin/false
27 nobody:x:99:99:Unprivileged User:/dev/null:/bin/false
28 EOF
29 cat > /etc/group << "EOF"
30 root:x:0:
31 bin:x:1:daemon
32 sys:x:2:
33 kmem:x:3:
34 tape:x:4:
35 tty:x:5:
36 daemon:x:6:
37 floppy:x:7:
38 disk:x:8:
39 lp:x:9:
40 dialout:x:10:
41 audio:x:11:
42 video:x:12:
43 utmp:x:13:
44 usb:x:14:
45 cdrom:x:15:
46 adm:x:16:
47 messagebus:x:18:
48 systemd-journal:x:23:
49 input:x:24:
50 mail:x:34:
51 nogroup:x:99:
52 users:x:999:
53 EOF
54 exec /tools/bin/bash --login +h
55 touch /var/log/{btmp,lastlog,wtmp}
56 chgrp -v utmp /var/log/lastlog
57 chmod -v 664 /var/log/lastlog
58 chmod -v 600 /var/log/btmp
59 cd sources/7.7/
60 tar -xf linux-3.19
61 rm -rf linux-3.19
62 tar -xf linux-3.19.tar
63 cd linux-3.19
64 make mrproper
65 ls -l /tools/bin/gcc
66 ls -lh /tools/bin/gcc
67 echo $PATH
68 ls -l /tools/bin/
69 echo $PATH
70 ls -l /tools/bin/gcc
71 echo $PATH
72 history --
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page
Do not top post on this list.
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?
http://en.wikipedia.org/wiki/Posting_style