Re: LFS (Version SVN-20100529) - 5.19. File-5.04
On 06/14/2010 06:43 AM, Face wrote: On Mon, Jun 14, 2010 at 1:25 PM, littlebatdashing.m...@gmail.com wrote: It seems you have missed something, I remember we should always use non-root user (lfs) to compile LFS in chapter 5 at least. See: http://www.linuxfromscratch.org/lfs/view/6.6/chapter04/addinguser.html -- littlebatdashing.m...@gmail.com when i add lfs user i get permissions problems If you are getting permission errors with the lfs user, it means you've missed something. You need to rm -rf $LFS/tools/* and start back at the beginning of Chapter 4. When it says to become the lfs user, you do that, and you do *not* use root until it explicitly says to. If you do get permissions errors, you must go back to see what the problem is (or, of course, ask for help here), not just force root. My guess is that you've probably missed something else on page 5.3 - you must keep in mind everything mentioned in the IMPORTANT boxes on that page through the whole LFS book. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: How to skip two settings
On 06/16/2010 05:34 AM, Parmenides wrote: Hi, When system starting, there are two settings, namely 'regional settings' and 'edit settings', at which the process of starting will pause and I have to press enter key twice to finish them. Is there any configurations by which I can skip them automatically every time. An LFS system does not ask you anything (except to login) when you boot. This sounds like you're using the livecd, in which case you cannot change the startup procedure without rebuilding a new CD. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: How to skip two settings
On 06/16/2010 01:11 PM, Parmenides wrote: 2010/6/16 Chris Staubch...@beaker67.com: On 06/16/2010 05:34 AM, Parmenides wrote: Yes, this is the effect of a live CD indeed. But, I have clone the live CD onto a partition of hard disk, and tried to altenate some default settings of it. Well, the LiveCD simply isn't made for the purpose of being installed to a hard drive. If you want a Linux system on your hard drive you should just use it to build an LFS system. On the other hand, if you were installing the LiveCD to the hard drive in order to get around the time-consuming task of building LFS, you're much better off simply downloading and installing Ubuntu, Fedora, or some other distro. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: some issues with grub
On 07/07/2010 01:56 PM, Bruce Dubbs wrote: Dr.-Ing. Edgar Alwers wrote: 2.) the configuration file example given talks about Be careful not to change the 'exec tail' line above. . But the example does not contain a exec tail line. However, this line is important. May be something is missing in the example ? I'll double check. -- Bruce Nothing is missing - that is exactly what the actual file looks like. The comment about exec tail comes from /etc/grub.d/40_custom, in which the command does exist - grub.cfg just copies the comment lines from each config file and doesn't include the actual tail command. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] 2nd Pass binutils install fails (LFS-dev)
On 12/05/2011 01:27 AM, str1chn1n3 wrote: Hello All, It's unclear whether the email list is restricted to just the stable version-- if so, just say the word and I'll abandon DEV for STABLE. If not, I could use a hand figuring out the cause of an install failure. The details: 1) Building to a blank system, using Debian Live CD (debian-live-6.0.3-i386-rescue), which includes all necessary build tools. 2) As stated, I'm following LFS-DEV (SVN-20111201) to the letter with a couple minor deviations. 3) Deviations to the book are limited to: Adding lfs user to sudoers file with 'ALL=(ALL) NOPASSWD: ALL'. If you are following the book, this is not necessary. Using indirect $SPECS file creation in _5.8. Adjusting the Toolchain_ by doing $LFS_TGT-gcc -dumpspecs | sed \ -e 's@/lib\(64\)\?/ld@/tools@g' \ -e /^\*cpp:$/{n;s,$, -isystem /tools/include,} ./specs sudo mv ./specs /mnt/lfs/tools/bin/../lib/gcc/i686-lfs-linux-gnu/4.6.2 Mostly not a problem, but no need for sudo here. instead of the direct method $LFS_TGT-gcc -dumpspecs | sed \ -e 's@/lib\(64\)\?/ld@/tools@g' \ -e /^\*cpp:$/{n;s,$, -isystem /tools/include,} $SPECS used in the book. 4) So far all steps have executed without a hitch, until reaching the install step of _5.9.1. Installation of Binutils_. Then the following is reported: The relevant lines are: libtool: install: i686-lfs-linux-gnu-ranlib /tools/lib/libbfd.a ./libtool: line 1118: i686-lfs-linux-gnu-ranlib: command not found which isn't apparent to me... /mnt/lfs/tools lists: -rwxr-xr-x 1 root root 3397 Dec 4 21:00 catchsegv* -rwxr-xr-x 1 root root 65419 Dec 4 20:59 gencat* -rwxr-xr-x 1 root root 41023 Dec 4 20:59 getconf* -rwxr-xr-x 1 root root 61553 Dec 4 21:00 getent* -rwxr-xr-x 1 root root 2899544 Dec 4 15:53 i686-lfs-linux-gnu-addr2line* -rwxr-xr-x 2 root root 3022263 Dec 4 15:53 i686-lfs-linux-gnu-ar* -rwxr-xr-x 2 root root 4299504 Dec 4 15:53 i686-lfs-linux-gnu-as* -rwxr-xr-x 1 root root 2860805 Dec 4 15:53 i686-lfs-linux-gnu-c++filt* -rwxr-xr-x 1 root root 686890 Dec 4 20:21 i686-lfs-linux-gnu-cpp* -rwxr-xr-x 1 root root 60396 Dec 4 15:53 i686-lfs-linux-gnu-elfedit* -rwxr-xr-x 2 root root 674867 Dec 4 20:21 i686-lfs-linux-gnu-gcc* -rwxr-xr-x 2 root root 674867 Dec 4 20:21 i686-lfs-linux-gnu-gcc-4.6.2* -rwxr-xr-x 1 root root 86749 Dec 4 20:21 i686-lfs-linux-gnu-gcov* -rwxr-xr-x 1 root root 3300225 Dec 4 15:53 i686-lfs-linux-gnu-gprof* -rwxr-xr-x 4 root root 4089777 Dec 4 15:53 i686-lfs-linux-gnu-ld* -rwxr-xr-x 4 root root 4089777 Dec 4 15:53 i686-lfs-linux-gnu-ld.bfd* -rwxr-xr-x 2 root root 2920079 Dec 4 15:53 i686-lfs-linux-gnu-nm* -rwxr-xr-x 2 root root 3443090 Dec 4 15:53 i686-lfs-linux-gnu-objcopy* -rwxr-xr-x 2 root root 4036461 Dec 4 15:53 i686-lfs-linux-gnu-objdump* -rwxr-xr-x 2 root root 3022258 Dec 4 15:53 i686-lfs-linux-gnu-ranlib* -rwxr-xr-x 1 root root 627697 Dec 4 15:53 i686-lfs-linux-gnu-readelf* -rwxr-xr-x 1 root root 2914676 Dec 4 15:53 i686-lfs-linux-gnu-size* -rwxr-xr-x 1 root root 2888697 Dec 4 15:53 i686-lfs-linux-gnu-strings* -rwxr-xr-x 2 root root 3443089 Dec 4 15:53 i686-lfs-linux-gnu-strip* -rwxr-xr-x 1 root root 199282 Dec 4 20:59 iconv* -rwxr-xr-x 1 root root 5788 Dec 4 21:00 ldd* -rwxr-xr-x 1 root root 16567 Dec 4 21:00 lddlibc4* -rwxr-xr-x 1 root root 99174 Dec 4 20:59 locale* -rwxr-xr-x 1 root root 976129 Dec 4 20:59 localedef* -rwxr-xr-x 1 root root 6485 Dec 4 20:59 mtrace* -rwxr-xr-x 1 root root 23718 Dec 4 21:00 pcprofiledump* -rwxr-xr-x 1 root root 217377 Dec 4 21:00 rpcgen* -rwxr-xr-x 1 root root 4265 Dec 4 21:00 sotruss* -rwxr-xr-x 1 root root 62867 Dec 4 21:00 sprof* -rwxr-xr-x 1 root root 7133 Dec 4 20:59 tzselect* -rwxr-xr-x 1 root root 5374 Dec 4 21:00 xtrace* Looks like you've been installing stuff as the root user, which I suspect is the reason for adding the lfs user to sudoers. This is most likely the cause of your problems. rm -rf /tools/*, go back to the beginning of Chapter 5, and do the entire chapter as the lfs user, without using root until the book says to. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] 2nd Pass binutils install fails (LFS-dev)
Whenever I attempt to install as user lfs sans sudo, I get 'Permission denied' for the target directory. That's why lfs is sudoed. Any thoughts why this might be happening? (Btw, that's the reason for the indirect toolchain adjustment.) That means you've missed something earlier in the book. Most likely, you've forgotten to chown $LFS/tools to the lfs user. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] help LFS 6.0 Ch 5.7.1 glibc-2.14.1 configure: error: gcc must provide the cpuid.h header
On 12/15/2011 02:18 AM, Henk Teijema wrote: Guess I overlooked The LiveCD cannot be used to build LFS 7.0 or later. So what liveCD should I use then? Met vriendelijke groet, Henk Just download any fairly recent distro...Fedora, Ubuntu, etc...and if needed install whatever additional packages are necessary to meet the Host System Requirements. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] Ch6 coreutils
On 10/11/2012 03:42 PM, Garrett Gaston wrote: I got this: ./bld: line 16: /usr/bin/mv: No such file or directory when I ran my script for coreutils. I navigated to the /usr/bin directory of the chroot enironment and there is no mv file or directory. Any ideas? Also, if you want to see my script it's here http://pastebin.com/5h9JvgHs If you look closely at those commands, /usr/bin/mv is moved to /bin. The main problem is that you forgot to disable hashing in your scripts, so it's remembering the old location in /usr/bin and complaining about it not being there. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] bash 6.33
On 10/11/2012 09:14 PM, Garrett Gaston wrote: I ran my script( http://pastebin.com/95jDZ7ds ) for chapter 6.33 Bash-4.2 and the prompt ended up just being bash and thus never seeing my FLAG file or GOOD being echoed to the screen. Was my script still successful? I'M thinking that it was and that it just entered bash as part of the last line and thus didn't create my FLAG file print GOOD? I think it's about time you actually learn what these commands do before attempting to script all this... In this case, that line that starts with exec is the cause of the issue. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] glibc-2.16.0 build issue LFS-BOOK-7.2
On 10/22/2012 02:04 PM, Gaurav Goel wrote: Hi, I'm following the LFS-BOOK-7.2. While building glibc in section 6.9 I'm getting following errors: -- root:/sources# bash version-check.sh cat: /proc/version: No such file or directory I don't know if this has anything to do with this specific problem, but it does indicate that something went wrong. This probably means that /proc isn't mounted in the chroot - does ls /proc give you anything? How can i fix this issue. Any help would be appreciated! Thanks, Gaurav -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] How to know how many packages are installed?
On 10/31/2012 04:04 AM, gmspro wrote: Is there any way to know how many packages are installed? Is it possible to know if a package is installed or not? Thanks. See the page in the LFS book on Package Management - http://www.linuxfromscratch.org/lfs/view/stable/chapter06/pkgmgt.html -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] Not set up to use the correct startfiles at the 6.17 sanity check
On 11/05/2012 09:10 PM, Harry Prevor wrote: This is my second LFS build, but it's been a while. This time I'm trying to build with Package Users as described in this hint: http://www.linuxfromscratch.org/hints/downloads/files/more_control_and_pkg_man.txt For the sanity check at 6.17 http://www.linuxfromscratch.org/lfs/view/stable/chapter06/gcc.html, I get the correct program interpreter ([Requesting program interpreter: /lib64/ld-linux-x86-64.so.2]), but grep -o '/usr/lib.*/crt[1in].*succeeded' dummy.log yeilds no output, which means I'm apparently not set up to use the correct startfiles. My dummy.log is located here: http://sprunge.us/dcfi I see a number of suspect lines in there. In particular, a bunch that look like: COMPILER_PATH=/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.7.1/:/bin/../lib/gcc/ LIBRARY_PATH=/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.7.1/:/bin/../lib/gcc/:/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.7.1/../../../../lib64/:/lib/../lib64/:/usr/lib/../lib64/:/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.7.1/../../../:/lib/:/usr/lib/ And similarly... attempt to open /bin/../lib/gcc/x86_64-unknown-linux-gnu/4.7.1/crtend.o succeeded I see numerous similar lines in your output - basically, it appears to be looking in /bin and /lib for gcc files, rather than /usr/{bin,lib}. Does ls /lib/gcc give any output? Also, did you deviate from the book's instructions in any way other than adding Package User commands? Even if you did not do so deliberately, you might want to go back through your command history to verify what you actually typed vs. what's in the book. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] What Is The LFS Partition?
On 11/06/2012 03:21 PM, Feuerbacher, Alan wrote: Bruce wrote: Why does one have to create a directory with that name before executing the mount command? The system has to know where to attach the data structures in the file tree. You could create a script to do a 'mkdir -p mountpoint; mount...', but that's overkill. Now I'm confused again. I thought that creating a directory actually writes data into a place on a hard disk that the kernel allocates for the directory. Something about inodes, if I remember right. But if that's so, and a filesystem is not yet mounted, where does that data get written? It looks like the cart is before the horse. Specifically, if you want to do mount /dev/sda5 /mnt/lfs, but you have to create the directory /mnt/lfs BEFORE you do the mount, then where does the inode information about /mnt/lfs get written? I'm sure I'm missing some details. I don't see why there is any confusion here. Before you mount to a directory, the mount point is...just a directory. I don't understand the question about directory inodes with mounting - a created directory does of course take up some space on the disk, same as any other file. I think you are just seeing additional complications where there is none. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] Not set up to use the correct startfiles at the 6.17 sanity check
On 11/06/2012 08:13 PM, Harry Prevor wrote: On 11/5/12, Chris Staub ch...@beaker67.com wrote: I see numerous similar lines in your output - basically, it appears to be looking in /bin and /lib for gcc files, rather than /usr/{bin,lib}. To be honest, I'm not really sure why that is. Does ls /lib/gcc give any output? After recompiling as root it does (not sure whether it did before but I believe it would have): x86_64-unknown-linux-gnu That directory should not exist. This would seem to indicate some mistyped directory option, but your dummy.log contents say that GCC was configured with --prefix=/usr and --libexecdir=/usr/lib, which are both correct. Installing GCC into /usr certainly shouldn't create any directories or files in /bin or /lib. Do you have logs of your GCC installation? -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] Not set up to use the correct startfiles at the 6.17 sanity check
On 11/06/2012 09:11 PM, Harry Prevor wrote: On 11/6/12, Chris Staub ch...@beaker67.com wrote: Installing GCC into /usr certainly shouldn't create any directories or files in /bin or /lib. Do you have logs of your GCC installation? Only of the installation as root, as all the previous files were deleted. Here is my config.log: http://sprunge.us/QUHB I can provide any other files from the installation if requested. configure:3785: found /bin/gcc Looks like you didn't remove the previous GCC installation. Either that, or that was there even before you tried building GCC in chapter 6, which would point to some issue while making symlinks/files early in Chapter 6. If /bin/gcc is owned by the gcc user (most likely), rm it, and everything else owned by that user (perhaps with the uninstall_package script). Then try the sanity check again. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] Not set up to use the correct startfiles at the 6.17 sanity check
On 11/06/2012 09:19 PM, Chris Staub wrote: On 11/06/2012 09:11 PM, Harry Prevor wrote: Only of the installation as root, as all the previous files were deleted. Here is my config.log: http://sprunge.us/QUHB I can provide any other files from the installation if requested. configure:3785: found /bin/gcc Looks like you didn't remove the previous GCC installation. Either that, or that was there even before you tried building GCC in chapter 6, which would point to some issue while making symlinks/files early in Chapter 6. If /bin/gcc is owned by the gcc user (most likely), rm it, and everything else owned by that user (perhaps with the uninstall_package script). Then try the sanity check again. I just took another look, and saw this... configure:8047: found /bin/ar configure:8058: result: ar configure:8172: checking for as configure:8188: found /bin/as configure:8199: result: as configure:8313: checking for dlltool configure:8343: result: no configure:8454: checking for ld configure:8470: found /bin/ld configure:8481: result: ld configure:8595: checking for lipo configure:8625: result: no configure:8736: checking for nm configure:8752: found /bin/nm configure:8763: result: nm configure:8877: checking for ranlib configure:8893: found /bin/ranlib configure:8904: result: ranlib configure:9013: checking for strip configure:9029: found /bin/strip configure:9040: result: strip Apparently Binutils was also installed into /bin. I'd rm all of Binutils and GCC and reinstall both, and of course double-check command history for Binutils as well. Out of curiosity, are lib{gmp,mpfr,mpc} also in /lib, or /usr/lib? -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] libmpfr error while compiling GCC.
On 11/09/2012 12:30 PM, Prabhu wrote: Hi, I'm trying to compile GCC, I done with untaring (MPFR,GMP and MPC ) and moving the files to its respected folders, and even configuration part also done. but while making the Gcc its throwing me an error message says that Please clarify what exactly you did. Specifically, what is meant by moving the files to its respected folders as LFS never says to move anything for MPFR - only to unpack and rename the directory. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] libmpfr error while compiling GCC.
On 11/10/2012 01:49 AM, Prabhu wrote: Hi, I'm trying to compile GCC, I done with untaring (MPFR,GMP and MPC ) and moving the files to its respected folders, and even configuration part also done. but while making the Gcc its throwing me an error message says that *checking for MPFR... no* *configure: error: libmpfr not found or uses a different ABI (including static vs shared).* *make[1]: *** [configure-mpc] Error 1* *make[1]: Leaving directory `/mnt/test/sources/gcc-build'* *make: *** [all] Error 2* please let me know where I failed. I tried almost 4 times from the starting, its keep on failing me in same stage. With Regards... PRABHU :) Please specify what you mean. Give every command you typed, in order, for the GCC installation. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] libmpfr error while compiling GCC.
On 11/10/2012 07:14 AM, Prabhu wrote: (5.5.1 Installation of cross GCC) I successfully compiled Binutilities, then I untared the GCC. In GCC folder I done the following steps *tar -Jxf ../mpfr-3.1.1.tar.xz mv -v mpfr-3.1.1 mpfr tar -Jxf ../gmp-5.0.5.tar.xz mv -v gmp-5.0.5 gmp tar -zxf ../mpc-1.0.tar.gz mv -v mpc-1.0 mpc* Now the final step is to compile GCC by *make *command, at this point of time it got compiled for 10 mins and then it was showing an error message that * *checking for MPFR... no* *configure: error: libmpfr not found or uses a different ABI (including static vs shared).* *make[1]: *** [configure-mpc] Error 1* *make[1]: Leaving directory `/mnt/test/sources/gcc-build'* *make: *** [all] Error 2* please let me know where I failed. I tried almost 4 times from the starting, its keep on failing me in same stage. With Regards... PRABHU :) Everything you did looks correct, or at least done in the right order - you did unpack mpfr in the gcc source dir, so that should work fine. However, everything you pasted seems as if you just copied from the book into the email - perhaps there's something you're doing when actually inputting the command. Can you verify by checking your exact commands from your command history? Pasting the contents of gcc-build/mpc/config.log may also help. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] LFS 7.2 Section 6.4 Chroot Error
On 11/10/2012 10:05 AM, yan wrote: I also get a problem at this point chroot $LFS /tools/bin/env -i HOME=/root TERM=$TERM PS1='\u:\w\$ ' PATH=/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin /tools/bin/bash --login +h /tools/bin/env: /tools/bin/bash: Permission denied root@cpu:/home/yan/lfs# ll /tools/bin/env -rwxrwxr-x 1 lfs lfs 102693 Oct 28 12:24 /tools/bin/env* root@cpu:/home/yan/lfs# readelf -e /tools/bin/env | grep interpreter [Requesting program interpreter: /tools/lib/ld-linux.so.2] I don't have any idea to solve it Type ls -la /tools/bin/bash -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] LFS 7.2 Section 6.4 Chroot Error
On 11/10/2012 09:22 PM, yan wrote: On Sat 10 Nov 2012 11:09:08 PM CST, Chris Staub wrote: On 11/10/2012 10:05 AM, yan wrote: I also get a problem at this point chroot $LFS /tools/bin/env -i HOME=/root TERM=$TERM PS1='\u:\w\$ ' PATH=/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin /tools/bin/bash --login +h /tools/bin/env: /tools/bin/bash: Permission denied root@cpu:/home/yan/lfs# ll /tools/bin/env -rwxrwxr-x 1 lfs lfs 102693 Oct 28 12:24 /tools/bin/env* root@cpu:/home/yan/lfs# readelf -e /tools/bin/env | grep interpreter [Requesting program interpreter: /tools/lib/ld-linux.so.2] I don't have any idea to solve it Type ls -la /tools/bin/bash thank you for the prompt it's ok when i add +x permission for all file in directory /tools/bin/ It is not ok, since that should never be necessary. You could continue on if you want to, but note that since you still don't know why it actually failed, there's no telling if you will have more problems later on. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] GCC-4.7.1 - Pass 2 Error unrecognized command line option '-V' unrecognized command line option '-qversion'
On 11/12/2012 10:25 AM, lei huang wrote: Linux 2.6.18-308.16.1.el5 #1 SMP Tue Oct 2 22:01:37 EDT 2012 i686 i686 i386 GNU/Linux config.log FATAL: kernel too old help!!! There's the problem - your host system doesn't have a recent enough kernel. You will need to upgrade the kernel to at least the minimum version specified on the Host System Requirements page. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] Use a newer kernel than specified?
On 11/14/2012 04:59 AM, Smith, Mitchell wrote: Hi, The package list specifies using linux kernel: Linux-3.5.2 Obviously the later releases would contain multiple fixes and security improvements. Any reason why using the latest 3.5.X release (Currently 3.5.7) would cause any issues Thanks -- *Mitchell From the package download page in the book: The Linux kernel is updated relatively often, many times due to discoveries of security vulnerabilities. The latest available 3.5.x kernel version should be used, unless the errata page says otherwise. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] LFS network configuration for internet access
On 11/16/2012 01:07 AM, Oshadha Gunawardena wrote: Hi all, Since I have completed building complete LFS system now I want to configure it's network in order to access internet. I have read through robbat2 take new kernel, copy old config to .config robbat2 make oldconfig robbat2 answer the questions it asks robbat2 if the kernel versions are similar, there will be fairly few questions robbat2 after that, if you were NOT presented with the choice you wanted robbat2 go and turn it on ls /sys/class/net cd to the kernel source dir and try again look at the output carefully What's your question? -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] LFS-7.2 host system tar version
On 11/23/2012 07:33 PM, nettxzl wrote: (Sorry if this comes through twice. My first attempt seems to have vanished.) Hi, I was starting the gcc-4.7.1 (Pass 1) build in Chap. 5 and I was trying to unpack the files compressed with xz following the command given there: tar -Jxf ../mpfr-3.1.1.tar.xz but I got this error message: tar: invalid option -- J I guessed my host system tar is too old, but it is tar-1.19 and this is newer than the minimum version, tar-1.18, stated in the host system requirements. It's not a problem because I can unpack the files in two steps: first with xz, then with tar. But I think you may want to update the tar version in the host system requirements. I just confirmed this with a built-from-source vanilla tar 1.20, which is also newer than the current Host System Requirments state - indeed it does not support xz archives, and the book should certainly be updated to specify a newer minimum version. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] -z option ...no issue
On 11/26/2012 12:19 AM, Bruce Dubbs wrote: 王杰清 wrote: hi, when i install glibc following lfs.7.2 book, i meet with the error configure: error : linker with -z support required is my gcc wrong in my host? should i reinstall it ,or how can i fix it . Any advice is pleasure; Have you checked the host system requirements? -- Bruce Host System, at least in regards to compiler/linker, should be irrelevant by the time you're at Glibc. What's the output of env as the lfs user? Also, ls -l /tools/bin. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] next step wireless
On 11/27/2012 05:15 PM, Dave wrote: Dr.-Ing. Edgar Alwers wrote: On Tuesday 27 November 2012 11:09:33 Dave wrote: I only have WiFi with WEP encryption here, can the WICD pkg and DHCP alone handle this connect? You will need some other packages, like wpa_supplicant, but the answer is yes. It is late here, and I am tired, but I can come back to the issue if you need advice. I am working with WICD and DHCP. If you're just using WEP, then you don't really need anything other than wireless_tools. Of course you also want dhcpcd if you're connecting via dhcp, but that's actually separate from the wireless settings. Just install wireless_tools (see BLFS) and type iwconfig [wlan0] essid [SSIDof_your_router] enc [encryption_key] before bringing up your network connection - and maybe add that to your network startup script. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] /dev/pts and /dev/shm not mounted on boot
On 12/02/2012 01:02 AM, d...@fluidnetwork.com wrote: Hello all, Just built two systems, one of HLFS-development and one LFS-7.2. Not sure what I did wrong, but neither system would successfully mount /dev/pts or /dev/shm on bootup - both were complaining about nonexistant mount points. After searching the web for a few hours, I came across one lonely half suggestion for a fix... and it works. In the file /etc/rc.d/init.d/mountfs I added the following at line 38 ( belowboot_mesg Mounting remaining file systems ) mkdir /dev/{pts,shm} It worked. DJ That should not be needed. I believe this points to a problem with Udev, as it should create /dev/pts when it starts. Did you deviate from the book's instructions in any way? -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] error when i build webkitgtk-1.10.1
On 12/02/2012 11:22 AM, Francisco Jesús Navarro Cortés wrote: Hello. i try build with make-3.82 and make-3.82-upstream_fixes-3.patch the source webkitgtk-1.10.1 but get this error: ./.libs/libwebkit2gtk-3.0.so http://libwebkit2gtk-3.0.so: undefined reference to `glCullFace' ./.libs/libwebkit2gtk-3.0.so http://libwebkit2gtk-3.0.so: undefined reference to `glGetTexParameterfv' collect2: error: ld returned 1 exit status make[1]: *** [Programs/WebKitWebProcess] Error 1 make[1]: se sale del directorio `/sources/webkitgtk-1.10.1' make: *** [all] Error 2 I sorry for my bad english. Thanks. Looks like it's not finding GL stuff from Mesa. What do you get if you do ls -l /usr/include/GL? -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] Permission error in Binutil while make install (LFS7.2)
On 12/08/2012 03:49 PM, Prabhu wrote: Hi I'm getting permission error while make install the binutil package, but I could successfully able to create folder in all the 3 dir (source,tools,usr) with the user lfs. I rollback and reperformed the chapter 4.1 to 4.4, but I'm still facing the issue. *lfs@logun-HP-Pavilion-dv6-Notebook-PC:/mnt/lfs/sources/binutils-build$ make install make[1]: Entering directory `/mnt/lfs/sources/binutils-build' /bin/sh ../binutils-2.22/mkinstalldirs /tools--with-sysroot=/mnt/lfs--with-lib-path=/tools/lib--target=i686-lfs-linux-gnu /tools--with-sysroot=/mnt/lfs--with-lib-path=/tools/lib--target=i686-lfs-linux-gnu mkdir -p -- /tools--with-sysroot=/mnt/lfs--with-lib-path=/tools/lib--target=i686-lfs-linux-gnu /tools--with-sysroot=/mnt/lfs--with-lib-path=/tools/lib--target=i686-lfs-linux-gnu mkdir: cannot create directory `/tools--with-sysroot=': Permission denied mkdir: cannot create directory `/tools--with-sysroot=': Permission denied That is the problem - it is trying to create a /tools--with-sysroot= directory. Apparently you've mistyped the configure command and left out spaces. Just try again making sure to enter the commands correctly. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] Installation of Bash 5.15 Error on make
On 12/15/2012 02:58 AM, Alexander Spitzer wrote: Hello all, I am on section 5.15.1 (installing bash) on LFS version 7.2 and I am receiving an error after running make: $ make -j yacc -d ./parse.y make: execvp: yacc: Permission denied make: *** [y.tab.c] Error 127 I have encountered this before and I attempted to get around by sudo, but that turned out to be a bad idea as the bash binaries were linked to libraries on the host system. After doing a fresh start I am once again confronted by this error. I suspect this has something to do with the yacc link. readlink -f /usr/bin/yacc - /usr/bin/yacc And here is /usr/bin/yacc: #! /bin/sh exec '/usr/bin/bison' -y $@ Is this not a script executing bison as specified in the host requirements? If not, how should /usr/bin/yacc look? Is there anything else that may be causing the permission denied error? Thanks, Alex I doubt that's a problem at all. Looks like it's having issues running the script at all, which wouldn't have anything to do with Bison itself. Do ls -l /usr/bin/yacc -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] Installation of Bash 5.15 Error on make
On 12/15/2012 03:03 AM, Alexander Spitzer wrote: An additional piece of information that might be important: The patch asked for in the book is bash-4.2-fixes-8.patch while the one I have from the website and that one that I applied is bash-4.2-fixes-10.patch Could that be the cause of the problem? That is extremely unlikely, though since you are saying you are doing something differently than what's in the book, I need to ask how else (no matter how trivial it might seem) you are deviating from the book's instructions. Also, you're saying the book mentions a fixes-8 patch as stated in the 7.2 book - that specific patch is in fact available - it's even linked right in the book. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] Installation of Bash 5.15 Error on make
On 12/15/2012 03:11 AM, Alexander Spitzer wrote: Hi Chris, Thanks for your reply. ls -l /usr/bin/yacc gives: -rw-r--r-- 1 root root 41 Dec 13 19:13 /usr/bin/yacc That explains it, that script is not executable. chmod a+x /usr/bin/yacc and it should work. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] Binutils patch, why?
On 12/16/2012 06:55 AM, JIA Pei wrote: Hi, all: 1) From http://www.linuxfromscratch.org/lfs/view/stable/chapter05/binutils-pass1.html , binutils pass 1 requires a patch, why? What is this patch for? *patch -Np1 -i ../binutils-2.22-build_fix-1.patch* It tells you in the book. Try reading it. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] Is it a must to separate Binutils and GCC into Pass 1 and Pass 2?
On 12/17/2012 06:00 AM, JIA Pei wrote: Hi, all; Sorry to bug all of you again. I've successfully built Binutils 2.23.1 GCC 4.7,2 Linux-kernel 3.6.10 Glib 2.16.0 However, is it a must for me to proceed to the pass 2 of binutils and gcc? Whatever is in the book is there for a reason. I'm now following Pass 2 of Binutils http://www.linuxfromscratch.org/lfs/view/stable/chapter05/binutils-pass2.html the following step /CC=$LFS_TGT-gcc\/ /AR=$LFS_TGT-ar \/ /RANLIB=$LFS_TGT-ranlib \/ /../binutils-2.22/configure \/ /--prefix=/tools\/ /--disable-nls \/ /--with-lib-path=/tools/lib/ brings me error messages: /lfs@peijia-GA-870A-UD3:/mnt/lfs/sources/binutils-build$ CC=$LFS_TGT-gcc \/ / AR=$LFS_TGT-ar \/ / RANLIB=$LFS_TGT-ranlib \/ / ../binutils-2.23.1/configure \/ / --prefix=/tools\/ / --disable-nls \/ / --with-lib-path=/tools/lib/ /checking build system type... i686-pc-linux-gnu/ /checking host system type... i686-pc-linux-gnu/ /checking target system type... i686-pc-linux-gnu/ /checking for a BSD-compatible install... /usr/bin/install -c/ /checking whether ln works... yes/ /checking whether ln -s works... yes/ /checking for a sed that does not truncate output... /bin/sed/ /checking for gawk... gawk/ /checking for gcc... i686-lfs-linux-gnu-gcc/ /checking for C compiler default output file name... a.out/ /*checking whether the C compiler works... configure: error: in `/mnt/lfs/sources/binutils-build':*/ /*configure: error: cannot run C compiled programs.*/ /If you meant to cross compile, use `--host'./ /See `config.log' for more details./ So, my question now is: is Pass 2 of binutils a must?? You are clearly having great difficulty. For one thing, you claim you are following the stable book but you are using versions from the latest development, and obviously that is not working well, and of course that doesn't take into account whatever other deviations from the book that you might be doing that you haven't mentioned. Solution: rm -rf $LFS/tools, go back to page 1, actually *read* every word in each page of the book, not just the commands (as most of your questions so far have in fact been answered right in the book itself), and do exactly as instructed, including the correct package versions. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] Is it a must to separate Binutils and GCC into Pass 1 and Pass 2?
On 12/18/2012 07:51 AM, JIA Pei wrote: Hi, Simon: The reason why I'm doing that (use binutils-2.23.1 instead of binutils-2.22) is I don't want to 100% strictly follow LFS book, so that I might be able to understand how to build my own Linux deeper. And, even now, I've got no idea why we need to patch binutils ?? Because without patching binutils, I'm still able to pass BinUtils Pass 1 The book itself quite clearly explains what the patch does. If you *really* want to learn then start by, for example, reading the patch itself to see how exactly it works. However, since you still felt to need to ask, for example, if Binutils/GCC Pass 2 was necessary, despite the fact that the build process is thoroughly explained, it appears you aren't really making much of an effort to read the information that's already there. If you really do want to learn start off by - as I've said to you at least twice before - actually reading all the text in the book. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] Glibc installation in target machine fails
On 12/18/2012 08:25 AM, Prabhu wrote: Hi, Since its a check, I ignored it and I performed with the next step that's *make install* even this fails and throw me an error as * *ERROR*: make[2]: *** No rule to make target `/usr/--disable-profile--enable-add-ons--enable-kernel=2.6.25/lib/libBrokenLocale.so', needed by `install-lib-nosubdir'. Stop. make[2]: Leaving directory `/sources/glibc-2.16.0/locale' make[1]: *** [locale/subdir_install] Error 2 make[1]: Leaving directory `/sources/glibc-2.16.0' make: *** [install] Error 2* could someone assist me resolve this. -- With Regards... PRABHU :) Looks like it thinks it was given an odd prefix. There was probably a typo on the configure command. Can you check your command history and paste the exact configure command you gave? -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] Is it a must to separate Binutils and GCC into Pass 1 and Pass 2?
On 12/18/2012 09:23 PM, JIA Pei wrote: Now, fail to build check-0.9.9 ... The error message is: //mnt/lfs/tools/bin/../lib/gcc/i686-pc-linux-gnu/4.7.2/../../../../i686-pc-linux-gnu/bin/ld: note: 'pthread_create@@GLIBC_2.1' is defined in DSO /tools/lib/libpthread.so.0 so try adding it to the linker command line/ //tools/lib/libpthread.so.0: could not read symbols: Invalid operation/ /collect2: error: ld returned 1 exit status/ /make[2]: *** [check_thread_stress] Error 1/ /make[2]: Leaving directory `/mnt/lfs/sources/check-0.9.9/tests'/ /make[1]: *** [all-recursive] Error 1/ /make[1]: Leaving directory `/mnt/lfs/sources/check-0.9.9'/ /make: *** [all] Error 2/ I tried to re-configure it as mentioned in http://comments.gmane.org/gmane.linux.lfs.support/35698 namely: *$ CFLAGS=-L/tools/lib -lpthread* *$ ./configure --prefix=/tools* Problem continues, namely, the above error message is still there... How to solve this problem though? You want to learn, you figure out yourself how to fix it. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] Is it a must to separate Binutils and GCC into Pass 1 and Pass 2?
On 12/18/2012 09:07 PM, JIA Pei wrote: Thank you so much Bruce... I proceed to expect 5.45 now But, I got two test fails as follows. Is this normal? If you had read the book like you're expected to, you would already know the answer to this. If you can't be bothered to read it, quit wasting time here and figure it all out yourself. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] make install gcc 4.7.2 fail...
On 12/20/2012 06:33 PM, JIA Pei wrote: However, I *failed to make install gcc 4.7.2* The error message obtained is: /* tar -cf - .; exit 0) | (cd /usr/lib/gcc/i686-pc-linux-gnu/4.7.2/include; tar xpf - ) /bin/sh: line 1: tar: command not found /bin/sh: line 1: tar: command not found make[2]: *** [install-headers-tar] Error 127 make[2]: Leaving directory `/sources/gcc-build/gcc' make[1]: *** [install-gcc] Error 2 make[1]: Leaving directory `/sources/gcc-build' make: *** [install] Error 2*/ This is understandable for me because after *chroot* , I don't have the command tar under /usr/bin any longer. And according to the installation sequence listed at http://www.linuxfromscratch.org/lfs/view/development/index.html, *Tar-1.26* is far way behind *GCC-4.7.2* . I can't help but notice the lack of surprise at tar not being found in /tools. Did you happen to skip it? Also, if tar didn't work in chroot, how have you been able to unpack the tarballs for GCC and every other package in Chapter 6? -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] Is it normal that I obtained a lot of error messages while building glibc-2.16.0?
On 12/22/2012 06:30 AM, JIA Pei wrote: Hi, all: I noticed on http://www.linuxfromscratch.org/lfs/view/development/chapter06/glibc.html , I may meet some building errors while building glibc. I obtained the following errors. I just wonder if as mentioned on the above page, can I just ignore all the following error messages?? Thanks First explain exactly what you are doing. Your previous question implied that you did not install tar into /tools, for starters. Is that accurate, and what else are you doing differently? -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] make install gcc 4.7.2 fail...
On 12/22/2012 03:37 PM, JIA Pei wrote: Hi, Christ: I recalled it now... This problem is probably caused by the SD card automatic disconnection from the computer during *Installing Basic System Software --- probably happened after make at page *http://www.linuxfromscratch.org/lfs/view/development/chapter06/gcc.html. In such a case, I've got no idea*what are the required steps I need to re-run before re-mount the SD Card*. Apparently, it's not just simple remount the SD card by a command line, it has something to do with chroot, and environment re-configuration I guess --- Do I require to re-run http://www.linuxfromscratch.org/lfs/view/development/chapter06/kernfs.html? Looking forwarding to your reply The book tells you. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] LFS 7.2 section 6.52 kmod-9
On 12/26/2012 02:44 AM, Israel Silberg wrote: Hi all, I'm building LFS 7.2, and during the running of the configure section of the kmod-9 I got the following: checking for liblzma... no configure: error: Package requirements (liblzma = 4.99) were not met: No package 'liblzma' found Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. Alternatively, you may set the environment variables liblzma_CFLAGS and liblzma_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details. How can I fix it? during the compilation of xz I didn't get any error messages. Thanks, Israel Paste the contents of config.log. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] LFS 7.2 section 6.52 kmod-9
You should have liblzma.so in /tools/lib and lzma.h in /tools/include. -- Bruce -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page Hi Bruce, Yes bith files are in their described place but they are not under /usr/lib (shouldn't they be since xz is already complied in chapter 6? Israel liblzma should be in /lib, not /usr/lib. Also, can you copy the contents of config.log? -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] LFS 7.2 section 6.52 kmod-9
On 12/26/2012 05:25 PM, Baho Utot wrote: On 12/26/2012 02:10 PM, Chris Staub wrote: liblzma should be in /lib, not /usr/lib. Also, can you copy the contents of config.log? From 6.46. Xz-5.0.4 ./configure --prefix=/usr --libdir=/lib --docdir=/usr/share/doc/xz-5.0.4 the prefix puts it into /usr/lib usr/lib/ usr/lib/liblzma.a usr/lib/liblzma.so usr/lib/liblzma.so.5 usr/lib/liblzma.so.5.0.4 usr/lib/pkgconfig/ usr/lib/pkgconfig/liblzma.pc Note the --libdir=/lib. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] How to upgrade a single package?
On 01/03/2013 04:13 AM, JIA Pei wrote: Hi, all: sorry for my naive question again. I now noticed coreutils has been upgraded from 8.19 to 8.20 . I'd love to upgrade it without rebuilding everything from scratch, but just this single package. I can always chroot into the environment required by chapter 6, but how can I re-enter chapter 5 to prepare the tools coreutils using version 8.20 rather than version 8.19 ? You can't even get a basic LFS system built right, you don't have any hope of successfully upgrading anything. Further, you've asked one question (how to upgrade a package) that's answered in the FAQ, and another (how to re-enter chroot) that's answered in the book itself. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] can't compile gcc pass 1
On 01/05/2013 07:35 AM, Fernando de Oliveira wrote: I have recurrently written about this, here. My error with this page, even after having built one or two versions of LFS, was that the last line: gcc compilation OK that made me ignore the other lines, when some of these lines were telling me that I had requirements to fix. I thought: all right, host can compile, so the other lines are just additional information or recommendations, may be. My suggestion in a previous post was to move that line to an earlier place in the script. Chris gave better suggestions than mine. But as the SVN version has been modified, Bruce does not think that anything is necessary, I have modified the book, let us wait until new release on March. Having read that before my original post, I told him that we could at least create a ticket to remember about that on March, but he still thinks it to be unnecessary. Perhaps he is right, if the complaints to come from the stable, not the SVN, and the issues will continue to appear in this list so as to keep us aware of the problem. However, if the new version does not work as expected there will be six more months until the eventual needed fix be introduced, and go into the following release. []s, Fernando I've implemented my idea at Cross-LFS; you can see the page here - http://cross-lfs.org/view/svn/x86/prologue/hostreqs.html - I've also added slightly more explicit descriptive text. Also, I find it funny how often the sh - dash issue is pointed out as an issue, yet to my knowledge it hasn't caused any actual problems for some time now. Makes me wonder if it's only there to verify whether users are really reading the book, rather than for any real, practical purposes. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] sed 'no such file' problem - LFS 7.1, Section 6.13, Binutils-2.22
On 01/06/2013 06:15 PM, Ahmed ELtayeb wrote: just cd binutils-2.22 and everything will be fine Valentine Michael Smith siasl1952 at gmail.com writes: I removed the outdated standards.info file, and then tried the sed command:sed -i.bak '/^INFO/s/standards.info //' etc/Makefile.inI got back:sed: can't read etc/Makefile.in: No such file or directoryI checked, and sure enough there was no such file.It seems someone else on the mailing list had the same problem back in March, 2012 with LFS 6.8, but I can't find an answer to it.Thanks. Re-read page 5.3 carefully. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] Boot LFS from usb
On 01/07/2013 07:18 PM, Baho Utot wrote: I am trying to put LFS on a thumbdrive to use a rescue/fixit system. When I boot it can not find the usb drive and filesystem. I have the correct filesystem built into the kernel, not as a module I am miising something in my kernel config. This system boots fine from a hard drive, just won't boot when I put it on a thumb drive Any one known what needs to be set in the kernel to allow booting from thumb drive? You don't need to set anything in the kernel - it just takes some time for it all to be loaded from USB, so you only need a delay. Add rootdelay=10 to the kernel line in your bootloader config (feel free to adjust the number, could try lower if you want to see if it will work with less delay, or higher if needed). -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] Issues with compiling GCC-4.8.1 (LFS 7.4)
On 11/02/2013 08:14 AM, Bernard Hurley wrote: Hi there! I have been trying to compile GCC-4.8.1 in section 5.5 of LFS 7.4. The first problem was that the compiler didn't seem to understand (a parameter to configure on p.37): --disable-libstdc++-v3 In case anyone else has the problem, I found after running configure --help that the solution seems to be to replace it with: --disable-libstdcxx --disable-libstdc++-v3 works just fine, so you must have mistyped something. The second problem is a bit more intractible. Having made the apbove adjustment to configure, when I run make it bombs out with: snip === configure: creating ./config.status config.status: creating Makefile config.status: creating auto-target.h config.status: linking ../.././libgcc/enable-execute-stack-empty.c to enable-execute-stack.c config.status: linking ../.././libgcc/unwind-generic.h to unwind.h config.status: linking ../.././libgcc/config/i386/linux-unwind.h to md-unwind-support.h config.status: linking ../.././libgcc/config/i386/sfp-machine.h to sfp-machine.h config.status: linking ../.././libgcc/gthr-single.h to gthr-default.h config.status: executing default commands make[2]: Entering directory `/mnt/lfs/gcc-build/gcc-4.8.1/x86_64-lfs_7_4-linux-gnu/libgcc' Makefile:162: ../.././gcc/libgcc.mvars: No such file or directory make[2]: *** No rule to make target `../.././gcc/libgcc.mvars'. Stop. make[2]: Leaving directory `/mnt/lfs/gcc-build/gcc-4.8.1/x86_64-lfs_7_4-linux-gnu/libgcc' make[1]: *** [all-target-libgcc] Error 2 make[1]: Leaving directory `/mnt/lfs/gcc-build/gcc-4.8.1' make: *** [all] Error 2 snip === One problem I'm seeing in this output is that you are running this from $LFS/gcc-build, and have apparently unpacked GCC's source inside that dir, which is not what you're supposed to be doing. Go back and read page 5.3 very carefully. I have the following environment variables set: LFS=/mnt/lfs LFS_TGT=x86_64-lfs_7_4-linux-gnu PATH=/tools/bin:/bin:/usr/bin Apparently you've modified $LFS_TGT from what the book says to use. Granted, this particular change should not be a problem, but it does indicate that you've deviated from the book's instructions. In what other ways have you done things differently from the book? There appears to be somthing wrong with the sed command on page 37: sed -i '/k prot/agcc_cv_libc_provides_ssp=yes' gcc/configure as the output from 'grep k prot gcc/configure' (before running sed) is: # Test for stack protector support in target C library. # all versions of Bionic support stack protector There is nothing wrong with that sed command - you are just misunderstanding what it actually does. Try changing the -i to -i.bak and then doing a diff -au gcc/configure{.bak,} to see the differences. Another thing that seems strange is the configure option (again on page 37): --with-mpfr-lib=$(pwd)/mpfr/src/.libs There is no file mpfr/src/.libs, in fact there is nothing called .libs in the whole of mpfr's source tree. Are you saying that you are getting an error of some kind about this? That directory should be created during compile, so it shouldn't matter that it doesn't exist when you unpack the source. If you've read so far you are truly one of my heros! I hope to be able to contribute to the community myself once I have built LFS. Kind regards, Bernard. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] Issues with compiling GCC-4.8.1 (LFS 7.4)
On 11/02/2013 12:52 PM, Chris Staub wrote: The second problem is a bit more intractible. Having made the apbove adjustment to configure, when I run make it bombs out with: snip === configure: creating ./config.status config.status: creating Makefile config.status: creating auto-target.h config.status: linking ../.././libgcc/enable-execute-stack-empty.c to enable-execute-stack.c config.status: linking ../.././libgcc/unwind-generic.h to unwind.h config.status: linking ../.././libgcc/config/i386/linux-unwind.h to md-unwind-support.h config.status: linking ../.././libgcc/config/i386/sfp-machine.h to sfp-machine.h config.status: linking ../.././libgcc/gthr-single.h to gthr-default.h config.status: executing default commands make[2]: Entering directory `/mnt/lfs/gcc-build/gcc-4.8.1/x86_64-lfs_7_4-linux-gnu/libgcc' Makefile:162: ../.././gcc/libgcc.mvars: No such file or directory make[2]: *** No rule to make target `../.././gcc/libgcc.mvars'. Stop. make[2]: Leaving directory `/mnt/lfs/gcc-build/gcc-4.8.1/x86_64-lfs_7_4-linux-gnu/libgcc' make[1]: *** [all-target-libgcc] Error 2 make[1]: Leaving directory `/mnt/lfs/gcc-build/gcc-4.8.1' make: *** [all] Error 2 snip === One problem I'm seeing in this output is that you are running this from $LFS/gcc-build, and have apparently unpacked GCC's source inside that dir, which is not what you're supposed to be doing. Go back and read page 5.3 very carefully. Further, if you've managed to create $LFS/gcc-build, it means you either chowned $LFS to the lfs user, or temporarily became root to create $LFS/gcc-build, neither of which the LFS book says to do. In general, if you get some kind of permissions error, you should stop and double-check that you're doing what you're supposed to, rather than forcing root. If the book is correctly followed, you should be able to do all of Chapter 5 entirely as the lfs user. Also, if you did chown $LFS, you should chown it back to root. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] lfs 7.4 / Section 6 - Building the LFS System as sudo?
On 11/29/2013 01:56 PM, frozen tuesday wrote: Hello all -- Thanks to the help I have received here or elsewhere, I have made it as far as section III in the online instructions: Building the LFS System. I am using Linux Mint 15 as my host computer which only allows me to sudo before commands. I cannot log in as root (to my knowledge). The instructions at the end of section 5 state: The commands in the remainder of this book must be performed while logged in as user |root| and no longer as user |lfs|. Also, double check that |$LFS| is set in |root|'s environment. Is it sufficient to sudo before every command in the rest of the book, or do I need to find a way to log in as the user root? Thanks. You stay root anyway as long as you're in the chroot. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] lfs 7.4 / Section 6 - Building the LFS System as sudo?
On 12/01/2013 06:27 PM, frozen tuesday wrote: Is it sufficient to sudo before every command in the rest of the book, or do I need to find a way to log in as the user root? Thanks. You stay root anyway as long as you're in the chroot. I see the chroot is coming up in 6.4 but before that here are some commands that need to be entered in the 6.2 section. Do I enter those as sudo or as lfs? Thanks. The book tells you. See the Changing Ownership page again. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] GCC-4.8.1 Pass1 C++
On 01/11/14 03:35, William Darryl Jackson wrote: Greetings: Having rebuilt from scratch, and being certain all steps were followed accurately - in the proper folder and environment; GCC 'make' is still giving me the following error: configure: error: C++ compiler missing or inoperational make[1]: *** [configure-libcpp] Error 1 make[1]: Leaving directory `/mnt/lfs/sources/gcc-build' make: *** [all] Error 2 Again, Binutils installed correctly. Any assistance would be greatly appreciated. William Paste the contents of libcpp/config.log. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] folder permissions
On 01/11/14 14:25, William Darryl Jackson wrote: Yes, mount /dev/sdb2 on /media/lfs type ext4 (rw,nosuid,nodev,relatime,user_xattr,barrier=1,data=ordered,uhelper=udisks) The echo $LFS, is constantly slipping in and out of /mnt/lfs. I have to keep doing the 'export'. Right now it returns nothing. The only time it did not slip-out, unmount itself was when I kept the same terminal open from start to finish. However, close that terminal - reboot, changes everything. I am thinking this might be Debian, if so going to internal drive would not help. Thanks. William Your output says there is something mounted on /media/lfs, yet you keep saying you are assigning LFS=/mnt/lfs. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] Chapter 5.7 glibc-2.1{7,8}
On 01/11/14 14:38, Frans de Boer wrote: Dear reader, I am having problems lately making the tool chain on my x86_64 machine. I finally traced it back to chapter 5.7, where glibc aborts with the next messages: Makerules:755: *** mixed implicit and normal rules. Stop. make[1]: Leaving directory `/mnt/lfs/sources/glibc-2.17' make: *** [all] Error 2 These messages are only on my 64-bit machine. Using a i686 machine yields no problem and I can build LFS. I use standard scripts which are an exact copy of the book. The same scripts only fail on my AMD phenom II machine. They can't be an exact copy because the book does not say to create glibc-2.17/build. Is there anything else you have changed? -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] folder permissions
On 01/11/14 14:47, William Darryl Jackson wrote: On 01/11/2014 02:33 PM, Chris Staub wrote: On 01/11/14 14:25, William Darryl Jackson wrote: Yes, Your output says there is something mounted on /media/lfs, yet you keep saying you are assigning LFS=/mnt/lfs. I was trying to follow the instructions precisely. I agree this seems to be the cause of the problem. This is an external drive that auto mounts to the (user) media folder, and (root) dev folder. The only reason it says media/lfs is because I added a label in gparted. Debian is using uuid identifiers - which is causing me problems. Would it help if I replaced LFS=/mnt/lfs with something else? Also, I have 2 partitions on that external drive. They both mount showing 500GB, when the drive is only 500GB. Thanks. Sorry, but if you really need to ask this, LFS is just too advanced for you. I suggest going here - http://www.linuxfromscratch.org/lfs/view/7.4/prologue/prerequisites.html - for starters, and learning about how to actually use Linux, especially on the command line, before attempting something like LFS. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] Two suspected bugs
On 01/16/14 13:00, parmenides wrote: Hi, I am build the LFS 7.4 following the book, and find two suspected bugs: (2) In chapter 5, 5.7. Glibc-2.18 I got the following warning: configure: WARNING: *** These auxiliary programs are missing or incompatible versions: autoconf *** some features will be disabled. *** Check the INSTALL file for required versions. I seems that there should be some requirements of autoconf. No, Autoconf is not needed. That is just warning, not an error. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] Gcc-4.8.1 Section 5.5.1 - libmpfr
On 01/16/14 18:07, William Darryl Jackson wrote: On 01/16/2014 04:23 PM, Pierre Labastie wrote: Le 16/01/2014 22:15, William Darryl Jackson a écrit : You are correct - Pierre, I came to that same conclusion. So I very carefully repeated the steps on page 36 to ensure those folders were being built correctly (owner/group=lfs) then (delete contents of gcc-build; reconfigure, and make) -No change; this error must be pointing to something else with my system. My Internet searches indicate that others have had similar problems, but I saw no resolution. What if any is the host interaction at this point? Gotta find somewhere else to look. Thanks, William Type history as the lfs user, and paste every command you have run for building GCC, starting with unpacking its source tarball. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] CLFS
On 02/19/14 05:46, loki wrote: Heya, just wanted to ask what happened to CLFS? On the address http://www.cross-lfs.org/ I'm getting a Domain for Sale. Regards, Daniel Nothing happened to it, it's where it's always been, at trac.cross-lfs.org. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page