Re: [lfs-support] can't compile gcc pass 1
On Fri, 2013-01-04 at 19:11 -0600, Bruce Dubbs wrote: matthew gruda wrote: the output of the version check script is: bash, version 4.2.24(1)-release /bin/sh - /bin/dash Fix this. Bruce (and others), I think some improvement needs to be made to the Requirements page in the book. Because I get the impression that people aren't actually reading the page - they're just running the commands in the grey box, and when they don't appear to fail, continue on to the next page. The thing about bash vs dash is practically the first thing on the page, but the number of people who miss it is just silly. I'm not sure what the fix is, but we need to make the readers understand that they actually need to use their brains, and read the instructions, not just copy-paste the commands. Simon. signature.asc Description: This is a digitally signed message part -- 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
--- Em sáb, 5/1/13, Simon Geard escreveu: De: Simon Geard Assunto: Re: [lfs-support] can't compile gcc pass 1 Para: lfs-support Data: Sábado, 5 de Janeiro de 2013, 8:40 On Fri, 2013-01-04 at 19:11 -0600, Bruce Dubbs wrote: matthew gruda wrote: the output of the version check script is: bash, version 4.2.24(1)-release /bin/sh - /bin/dash Fix this. Bruce (and others), I think some improvement needs to be made to the Requirements page in the book. Because I get the impression that people aren't actually reading the page - they're just running the commands in the grey box, and when they don't appear to fail, continue on to the next page. The thing about bash vs dash is practically the first thing on the page, but the number of people who miss it is just silly. I'm not sure what the fix is, but we need to make the readers understand that they actually need to use their brains, and read the instructions, not just copy-paste the commands. Simon 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 -- 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
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. i had the same problem. so i reworked the script. i moved the compile test after checking for gcc, and put linux at the end, as there have to be checked 2 versions the output does not only show min requirement, but the current version the book builds too. my script aborts if /bin/sh is not bash, awk not gawk or yacc not bison. if awk or yacc are scripts, i show a message to check the script. tobias #!/bin/bash PATH=/usr/bin:/bin:/usr/sbin:/sbin if [ -d /root/devlop ] then PATH=/root/devlop:$PATH fi # Simple script to list version numbers of critical development tools export LC_ALL=C echo bash = 3.2 (4.2) $( bash --version | head -n1 | cut -d -f2-4 ) /bin/sh MUST be a link to bash TMP=$( readlink -f /bin/sh ) [ ${TMP//bash} == ${TMP} ] echo !! ERROR : ${TMP} exit 99 echo /bin/sh - ${TMP} echo binutils (ld) = 2.17 (2.31.1) $( ld --version | head -n1 ) echo bison = 2.3 (2.7) $( bison --version | head -n1 ) TMP= [ -e /usr/bin/yacc ] TMP=/usr/bin/yacc [ -e /bin/yacc ] TMP=/bin/yacc [ -z ${TMP} ] echo !! ERROR : yacc not found exit 99 if [ -L ${TMP} ] ; then echo yacc should be a link to bison TMP2=$( readlink -f ${TMP} ) [ ${TMP2//bison} == ${TMP2} ] echo !! ERROR : ${TMP2} exit 99 echo ${TMP} - ${TMP2} else echo !! IMPORTANT !! check wether ${TMP} is a wapper script for bison fi echo bzip2 = 1.0.4 (1.0.6) $( bzip2 --version 21 /dev/null | head -n1 | cut -d -f1,6- ) echo coreutils (chown) = 6.9 (8.20) $( chown --version | head -n1 ) echo diffutils = 2.8.1 (3.2) $( diff --version | head -n1 ) echo findutils = 4.2.31 (4.4.2) $( find --version | head -n1 ) echo gawk = 3.1.5 (4.0.2) $( gawk --version | head -n1 ) TMP= [ -e /usr/bin/awk ] TMP=/usr/bin/awk [ -e /bin/awk ] TMP=/bin/awk [ -z ${TMP} ] echo !! ERROR : awk not found exit 99 if [ -L ${TMP} ] ; then echo awk MUST be a link to gawk TMP2=$( readlink -f ${TMP} ) [ ${TMP2//gawk} == ${TMP2} ] echo ${TMP2} !! FAILURE !! exit 99 echo ${TMP} - ${TMP2} else echo !! IMPORTANT !! check wether ${TMP} is a wapper script for gawk (GNU awk) fi echo gcc = 4.1.2 (4.7.2) $( gcc --version | head -n1 ) echo gcc compilation echo 'main(){}' dummy.c gcc -o dummy dummy.c /dev/null TMP= [ -x dummy ] TMP=ok rm -f dummy dummy.c [ -z ${TMP} ] echo !! ERROR : gcc compilation failed exit 99 echo Compilation OK echo glibc (ldd) = 2.5.1 (2.17) $( ldd --version | head -n1 ) echo grep = 2.5.1a (2.14) $( grep --version | head -n1 ) echo gzip = 1.3.12 (1.5) $( gzip --version | head -n1 ) echo m4 = 1.4.10 (1.4.16) $( m4 --version | head -n1 ) echo make = 3.81 (3.82) $( make --version | head -n1 ) echo patch = 2.5.4 (2.7.1) $( patch --version | head -n1 ) echo Perl = 5.8.8 (5.16.2) $( perl -V:version ) echo sed = 4.1.5 (4.2.2) $( sed --version | head -n1 ) echo tar = 1.18 (1.26) $( tar --version | head -n1 ) echo texinfo (makeinfo) = 4.9 (4.13a) $( makeinfo --version | head -n1 ) echo xz = 5.0.0 (5.0.4) $( xz --version | head -n1 ) echo linux kernel = 2.6.25 (3.7.1), compiled with gcc = 4.1.2 (4.7.2) $( cat /proc/version ) bash = 3.2 (4.2) bash, version 4.2.39(2)-release /bin/sh MUST be a link to bash /bin/sh - /bin/bash binutils (ld) = 2.17 (2.31.1) GNU ld (GNU Binutils) 2.23.1 bison = 2.3 (2.7) bison (GNU Bison) 2.7 !! IMPORTANT !! check wether /usr/bin/yacc is a wapper script for bison bzip2 = 1.0.4 (1.0.6) bzip2, Version 1.0.6, 6-Sept-2010. coreutils (chown) = 6.9 (8.20) chown (GNU coreutils) 8.19 diffutils = 2.8.1 (3.2) diff (GNU diffutils) 3.2 findutils = 4.2.31 (4.4.2) find (GNU findutils) 4.4.2 gawk = 3.1.5 (4.0.2) GNU Awk 4.0.1 awk MUST be a link to gawk /usr/bin/awk - /usr/bin/gawk gcc = 4.1.2 (4.7.2) gcc (GCC) 4.7.2 gcc compilation Compilation OK glibc (ldd) = 2.5.1 (2.17) ldd (GNU libc) 2.16 grep = 2.5.1a (2.14) grep (GNU grep) 2.14 gzip = 1.3.12 (1.5) gzip 1.5 m4 = 1.4.10 (1.4.16) m4 (GNU M4) 1.4.16 make = 3.81 (3.82) GNU Make 3.82 patch = 2.5.4 (2.7.1) GNU patch 2.7.1 Perl = 5.8.8 (5.16.2) version='5.16.2'; sed = 4.1.5 (4.2.2) GNU sed version 4.2.1 tar = 1.18 (1.26) tar (GNU tar) 1.26 texinfo (makeinfo) = 4.9 (4.13a) makeinfo (GNU texinfo) 4.13 xz = 5.0.0 (5.0.4) xz (XZ Utils) 5.0.4 linux kernel = 2.6.25 (3.7.1), compiled with gcc = 4.1.2 (4.7.2) Linux version 3.4.23-8-64 (root@mol-test) (gcc version 4.7.2 (GCC) ) #1 SMP Thu Dec 20 03:01:05 CET 2012 -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ:
Re: [lfs-support] can't compile gcc pass 1
Tobias Gasser wrote: 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. i had the same problem. so i reworked the script. i moved the compile test after checking for gcc, and put linux at the end, as there have to be checked 2 versions the output does not only show min requirement, but the current version the book builds too. my script aborts if /bin/sh is not bash, awk not gawk or yacc not bison. if awk or yacc are scripts, i show a message to check the script. The idea of the script was that it should be short. Generally the problem is that the symlinks are not set and occasionally makeinfo is not installed. Rarely is the problem an out-of-date executable. I'll think about changes. -- Bruce -- 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 vs dash
-Original Message- 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. my script aborts if /bin/sh is not bash, awk not gawk or yacc not bison. if awk or yacc are scripts, i show a message to check the script. The idea of the script was that it should be short. Generally the problem is that the symlinks are not set and occasionally makeinfo is not installed. Rarely is the problem an out-of-date executable. I have a suggestion. At the bottom of the list, which the average person will pay more attention to anyway, add this test: [ $(readlink /bin/sh) == dash ] echo FIX ME! or perhaps: if [ $(readlink /bin/sh) == dash ]; then echo FIX ME! fi just my two cents. richard FREE ONLINE PHOTOSHARING - Share your photos online with your friends and family! Visit http://www.inbox.com/photosharing to find out more! -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] errors
Philippe Delavalade philippe.delavalade at sfr.fr writes: Le vendredi 22 juillet à 09:39, Bill Cunningham a écrit : If you followed the book you would have configured gcc with --disable-libquadmath so you would not be seeing this error. Follow the book. I saw nowhere in the book anything about libquadmath. In the configuration of gcc, part 5.5.1 Read the book !!! beleve me it's there! i made one typo inthere! -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
[lfs-support] modprobe.d
I am working on adding cpu frequency control to BLFS. I needed to load the cpufreq_ondemand etc kernel modules. I placed a file into /etc/modprobe.d and the modules where no loaded. When I placed them into /etc/sysconfig/modules of course they loaded fine. I have a file installed by LFS-7.2 called usb.conf. What loads this module? Has everything been moved to /etc/sysconfig/modules, which make this file an orphan, which in case will need to be corrected in LFS. If that is not the case hen I have to fix something on my system. Thanks -- 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] lfs-support Digest, Vol 2764, Issue 1
On Fri, 2013-01-04 at 18:00 -0700, lfs-support-requ...@linuxfromscratch.org wrote: Send lfs-support mailing list submissions to lfs-support@linuxfromscratch.org To subscribe or unsubscribe via the World Wide Web, visit http://linuxfromscratch.org/mailman/listinfo/lfs-support or, via email, send a message with subject or body 'help' to lfs-support-requ...@linuxfromscratch.org You can reach the person managing the list at lfs-support-ow...@linuxfromscratch.org When replying, please edit your Subject line so it is more specific than Re: Contents of lfs-support digest... Today's Topics: 1. LFS USB Flash Boot Error --- the final stage... (JIA Pei) 2. Re: Step 5.7 -- ld: cannot find crt1.o (Chris J. Breisch) 3. Re: Step 5.7 -- ld: cannot find crt1.o (Baho Utot) 4. Re: LFS USB Flash Boot Error --- the final stage... (Bruce Dubbs) 5. GCC-4.7.1 Pass 1 - Undefined References (George Moore) 6. Re: Step 5.7 -- ld: cannot find crt1.o (Chris J. Breisch) 7. Re: GCC-4.7.1 Pass 1 - Undefined References (Bruce Dubbs) 8. can't compile gcc pass 1 (matthew gruda) 9. Re: LFS USB Flash Boot Error --- the final stage... (JIA Pei) -- Message: 1 Date: Fri, 4 Jan 2013 01:17:30 -0800 From: JIA Pei jp4w...@gmail.com Subject: [lfs-support] LFS USB Flash Boot Error --- the final stage... To: LFS Support List lfs-support@linuxfromscratch.org Message-ID: CADh8Q_W7sVJs1Emc+8m9KhwRML=+ff_=qoyuys25se6zkme...@mail.gmail.com Content-Type: text/plain; charset=iso-8859-1 Hi, all: Unfortunately, after rebuilding LFS on a USB flash, I still kept obtaining the following errors as shown in picture http://visionopen.com/questions/lfs_svn_20130102_usbflash_boot.jpg: Are those question marks problematic? My configuration of booting LFS is also pasted: *menuentry MyLinux distribution (on /dev/sdd1) --class gnu-linux --class gnu --class os {* * insmod gzio* * insmod part_msdos* * insmod ext2* * set root='(hd3,msdos1)'* * search --no-floppy --fs-uuid --set=root a2d0f92a-eca8-4121-a998-99c70d4df67b* * echo 'Loading MyLinux ...'* * linux /boot/vmlinuz-3.7.1-lfs-SVN-20130102 root=UUID=a2d0f92a-eca8-4121-a998-99c70d4df67b ro recovery nomodeset * * echo 'Loading MyLinux ...'* *}* 1) Some users told me that in order to use UUID, an *initrd must be built*, instead of only *vmlinuz*. However, it seems LFS manual doesn't mention * initrd* quite clearly. 2) I guess now the problem has little to do with *grub* configuration because I'm pretty sure that*/dev/sdd1* is just *(hd3,msdos1)*, which is of UUID *a2d0f92a-eca8-4121-a998-99c70d4df67b* What else am I missing ? Please do give me some hints... Thank you very much... Best Regards -- Pei JIA Email: jp4w...@gmail.com cell:+1 604-362-5816 Welcome to Vision Open http://www.visionopen.com -- next part -- An HTML attachment was scrubbed... URL: http://linuxfromscratch.org/pipermail/lfs-support/attachments/20130104/0d24e524/attachment-0001.html -- Message: 2 Date: Fri, 04 Jan 2013 10:36:41 -0500 From: Chris J. Breisch ch...@breisch.org Subject: Re: [lfs-support] Step 5.7 -- ld: cannot find crt1.o To: lfs-support@linuxfromscratch.org Message-ID: 50e6f709.3040...@breisch.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed On 1/3/2013 10:13 AM, Chris J. Breisch wrote: On 1/3/2013 9:50 AM, Baho Utot wrote: I got that package wrong before also, before I scripted my builds. In my experience this is generally related to the bash environment or the host system requirements. Try running the version-check.sh from the beginning of the book. I think at this point I'm just going to start over. Haven't really done that much yet, and since I've clearly missed something obscure somewhere, it's probably easier to wipe the slate clean than to try to figure out what it is. Wiping the slate clean and starting over did solve my issue, if you're interested. I also took a cue from you and scripted it as I went, so now I have a completed and reproducible post-Chapter 5 environment. On to Chapter 6. -- Chris J. Breischhttp://www.sports-gazer.com -- Message: 3 Date: Fri, 04 Jan 2013 11:04:47 -0500 From: Baho Utot baho-u...@columbus.rr.com Subject: Re: [lfs-support] Step 5.7 -- ld: cannot find crt1.o To: LFS Support List lfs-support@linuxfromscratch.org Message-ID: 50e6fd9f.8050...@columbus.rr.com Content-Type: text/plain; charset=ISO-8859-1; format=flowed Chris J. Breisch wrote: On 1/3/2013 10:13 AM, Chris J. Breisch wrote: On 1/3/2013 9:50 AM, Baho Utot wrote: I got that package wrong before also, before I scripted my builds. In my experience this is generally related to the bash environment or the host system
Re: [lfs-support] bash vs dash
Richard Coffee wrote: -Original Message- 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. my script aborts if /bin/sh is not bash, awk not gawk or yacc not bison. if awk or yacc are scripts, i show a message to check the script. The idea of the script was that it should be short. Generally the problem is that the symlinks are not set and occasionally makeinfo is not installed. Rarely is the problem an out-of-date executable. I have a suggestion. At the bottom of the list, which the average person will pay more attention to anyway, add this test: [ $(readlink /bin/sh) == dash ] echo FIX ME! or perhaps: if [ $(readlink /bin/sh) == dash ]; then echo FIX ME! fi I think I can touch the script up a bit. -- Bruce -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] modprobe.d
Baho Utot wrote: I am working on adding cpu frequency control to BLFS. I needed to load the cpufreq_ondemand etc kernel modules. I placed a file into /etc/modprobe.d and the modules where no loaded. When I placed them into /etc/sysconfig/modules of course they loaded fine. I have a file installed by LFS-7.2 called usb.conf. Not to my knowledge from LFS. I have no such file. There is no modprobe.d in LFS, and hasn't been since LFS 7.0. I don't recall what was present before 7.0. What loads this module? Has everything been moved to /etc/sysconfig/modules, which make this file an orphan, which in case will need to be corrected in LFS. If that is not the case hen I have to fix something on my system. I suggest reading the boot scripts and understanding what they do. Start with /etc/inittab and then /etc/init.d/rc. Modules are initiated by /etc/rc.d/rcS.d/S05modules - ../init.d/modules -- Bruce -- 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-support Digest, Vol 2764, Issue 1
Dr. George E. Moore wrote: Please don't reply to digest email without trimming. The output of the version-check-sh clearly indicate I have missing and perhaps in appropriate versions. I read this and still failed to run this script before now. My apology for not following directions. I'll make the correction and re-try the GCC-4.7.1 make. The content of the script follows: gem@precision690:~$ ./version-check.sh bash, version 4.1.5(1)-release /bin/sh - /bin/dash Needs to be bash Binutils: (GNU Binutils for Debian) 2.20.1-system.20100303 ./version-check.sh: line 8: bison: command not found yacc not found Install bison. yacc should then be set up automatically, but check that. bzip2, Version 1.0.5, 10-Dec-2007. Coreutils: 8.5 diff (GNU diffutils) 3.0 find (GNU findutils) 4.4.2 ./version-check.sh: line 17: gawk: command not found /usr/bin/awk - /usr/bin/mawk Install gawk and check the symlink gcc (Debian 4.4.5-8) 4.4.5 (Debian EGLIBC 2.11.3-4) 2.11.3 GNU grep 2.6.3 gzip 1.3.12 Linux version 2.6.32-5-686 (Debian 2.6.32-46) (da...@debian.org) (gcc version 4.3.5 (Debian 4.3.5-4) ) #1 SMP Sun Sep 23 09:49:36 UTC 2012 m4 (GNU M4) 1.4.14 GNU Make 3.81 patch 2.6 Perl version='5.10.1'; GNU sed version 4.2.1 tar (GNU tar) 1.23 Texinfo: makeinfo (GNU texinfo) 4.13 xz (XZ Utils) 5.0.0 gcc compilation OK gem@precision690:~$ The rest is OK. -- Bruce -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] modprobe.d
On 01/05/13 16:29, Bruce Dubbs wrote: Baho Utot wrote: I am working on adding cpu frequency control to BLFS. I needed to load the cpufreq_ondemand etc kernel modules. I placed a file into /etc/modprobe.d and the modules where no loaded. When I placed them into /etc/sysconfig/modules of course they loaded fine. I have a file installed by LFS-7.2 called usb.conf. Not to my knowledge from LFS. I have no such file. It is installed in the current LFS-7.2 8.3.2 Configuring Linux Module Load Order There is no modprobe.d in LFS, and hasn't been since LFS 7.0. I don't recall what was present before 7.0. What loads this module? Has everything been moved to /etc/sysconfig/modules, which make this file an orphan, which in case will need to be corrected in LFS. If that is not the case hen I have to fix something on my system. I suggest reading the boot scripts and understanding what they do. Start with /etc/inittab and then /etc/init.d/rc. Modules are initiated by /etc/rc.d/rcS.d/S05modules - ../init.d/modules -- Bruce Yes I understand where the module loading currently is located in LFS. That is why after putting a file under /etc/modprobe.d and it did not load, then putting them into /etc/sysconfig/modules and it working lead me to this. That is why I posted. The book installs usb.conf and the system does nothing with 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] modprobe.d
On 01/05/13 22:39, Baho Utot wrote: Yes I understand where the module loading currently is located in LFS. That is why after putting a file under /etc/modprobe.d and it did not load, then putting them into /etc/sysconfig/modules and it working lead me to this. That is why I posted. The book installs usb.conf and the system does nothing with it. Ahhh, that's why uhci_hcd and ohci_hcd aren't loaded on my LFS SVN-20121122. I put an extra file in /etc/modprobe.d for vmxnet3, that does work though. Groet, Thomas -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] modprobe.d
On 01/05/13 16:47, Thomas de Roo wrote: On 01/05/13 22:39, Baho Utot wrote: Yes I understand where the module loading currently is located in LFS. That is why after putting a file under /etc/modprobe.d and it did not load, then putting them into /etc/sysconfig/modules and it working lead me to this. That is why I posted. The book installs usb.conf and the system does nothing with it. Ahhh, that's why uhci_hcd and ohci_hcd aren't loaded on my LFS SVN-20121122. I put an extra file in /etc/modprobe.d for vmxnet3, that does work though. Groet, Thomas I can't explain the vmxnet3 working as any thing I place there doesn't work. FWIW I don't know much about kernel module handling. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] modprobe.d
Baho Utot wrote: On 01/05/13 16:29, Bruce Dubbs wrote: I have a file installed by LFS-7.2 called usb.conf. Not to my knowledge from LFS. I have no such file. It is installed in the current LFS-7.2 8.3.2 Configuring Linux Module Load Order OK. I don't use modules and that's been there since before LFS 7.0. This is the first it's come up. It needs to be changed, but I'll have to research what the proper. A quick look tells me it should be: cat /etc/sysconfig/modules EOF ohci_hcd uhci_hcd EOF -- Bruce -- 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
Am 05.01.2013 18:39, schrieb Bruce Dubbs: The idea of the script was that it should be short. Generally the problem is that the symlinks are not set and occasionally makeinfo is not installed. Rarely is the problem an out-of-date executable. agree. so why not check just the very important stuff? check the versions for - bash - binutils - gcc - texinfo i guess any distro matching at requested versions for these packages should have the other packages requrements too. more important than more package-versions are imho a working compiler - gcc compilation the kernel - version where as 'compiled with' should be met by the gcc version too. i am not aware of any distro shipping the kernel compiled with a older version of gcc than the kernel (ok, maybe the .point release does not match). and the links - sh - yacc - awk as some distros seem to get rid of the /usr/{bin,sbin} my script checks for /usr and /usr/bin. if one of the links fails, i STOP the script with an error. i guess with an approach like that, less novices will fail in the very beginning. just my thoughts... tobias -- 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
Tobias Gasser wrote: Am 05.01.2013 18:39, schrieb Bruce Dubbs: The idea of the script was that it should be short. Generally the problem is that the symlinks are not set and occasionally makeinfo is not installed. Rarely is the problem an out-of-date executable. agree. so why not check just the very important stuff? Try this. Note that I want the user to actually check the versions of the packages manually, not just rely on a script to do it. - -Bruce #!/bin/bash # Simple script to list version numbers of critical development tools function die { rm -f dummy.c dummy echo Error: $1 exit 1 } export LC_ALL=C bash --version | head -n1 | cut -d -f2-4 SH=`readlink -f /bin/sh` echo /bin/sh - $SH [ $SH == /bin/bash ] || die /bin/sh is not a symlink to bash echo -n Binutils: ; ld --version | head -n1 | cut -d -f3- bison --version | head -n1 if [ -e /usr/bin/yacc ]; then echo /usr/bin/yacc - `readlink -f /usr/bin/yacc`; else die yacc not found; fi bzip2 --version 21 /dev/null | head -n1 | cut -d -f1,6- echo -n Coreutils: ; chown --version | head -n1 | cut -d) -f2 diff --version | head -n1 find --version | head -n1 gawk --version | head -n1 if [ -e /usr/bin/awk ]; then AWK=`readlink -f /usr/bin/awk` echo /usr/bin/awk - $AWK [ $AWK == /usr/bin/gawk ] || die /usr/bin/awk is not a symlink to gawk else die awk not found; fi gcc --version | head -n1 echo 'main(){}' dummy.c gcc -o dummy dummy.c if [ -x dummy ] then echo gcc compilation OK rm -f dummy.c dummy else die gcc compilation failed fi ldd --version | head -n1 | cut -d -f2- # glibc version grep --version | head -n1 gzip --version | head -n1 cat /proc/version m4 --version | head -n1 make --version | head -n1 patch --version | head -n1 echo Perl `perl -V:version` sed --version | head -n1 tar --version | head -n1 echo Texinfo: `makeinfo --version | head -n1` xz --version | head -n1 echo -e \n\n*** Review all versions for currency! -- 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
--- Em sáb, 5/1/13, Bruce Dubbs escreveu: De: Bruce Dubbs Assunto: Re: [lfs-support] can't compile gcc pass 1 Para: LFS Support List Data: Sábado, 5 de Janeiro de 2013, 21:24 Tobias Gasser wrote: Am 05.01.2013 18:39, schrieb Bruce Dubbs: The idea of the script was that it should be short. Generally the problem is that the symlinks are not set and occasionally makeinfo is not installed. Rarely is the problem an out-of-date executable. agree. so why not check just the very important stuff? Try this. Note that I want the user to actually check the versions of the packages manually, not just rely on a script to do it. - -Bruce #!/bin/bash # Simple script to list version numbers of critical development tools function die { rm -f dummy.c dummy echo Error: $1 exit 1 } export LC_ALL=C bash --version | head -n1 | cut -d -f2-4 SH=`readlink -f /bin/sh` echo /bin/sh - $SH [ $SH == /bin/bash ] || die /bin/sh is not a symlink to bash echo -n Binutils: ; ld --version | head -n1 | cut -d -f3- bison --version | head -n1 if [ -e /usr/bin/yacc ]; then echo /usr/bin/yacc - `readlink -f /usr/bin/yacc`; else die yacc not found; fi bzip2 --version 21 /dev/null | head -n1 | cut -d -f1,6- echo -n Coreutils: ; chown --version | head -n1 | cut -d) -f2 diff --version | head -n1 find --version | head -n1 gawk --version | head -n1 if [ -e /usr/bin/awk ]; then AWK=`readlink -f /usr/bin/awk` echo /usr/bin/awk - $AWK [ $AWK == /usr/bin/gawk ] || die /usr/bin/awk is not a symlink to gawk else die awk not found; fi gcc --version | head -n1 echo 'main(){}' dummy.c gcc -o dummy dummy.c if [ -x dummy ] then echo gcc compilation OK rm -f dummy.c dummy else die gcc compilation failed fi ldd --version | head -n1 | cut -d -f2- # glibc version grep --version | head -n1 gzip --version | head -n1 cat /proc/version m4 --version | head -n1 make --version | head -n1 patch --version | head -n1 echo Perl `perl -V:version` sed --version | head -n1 tar --version | head -n1 echo Texinfo: `makeinfo --version | head -n1` xz --version | head -n1 echo -e \n\n*** Review all versions for currency! I like this. Output from $ cat /etc/lfs-release SVN-20120311 is: $ ../../lfs/version-check-lfs-support.sh bash, version 4.2.36(2)-release /bin/sh - /bin/bash Binutils: (GNU Binutils) 2.22 bison (GNU Bison) 2.5.1 /usr/bin/yacc - /usr/bin/yacc bzip2, Version 1.0.6, 6-Sept-2010. Coreutils: 8.15 diff (GNU diffutils) 3.2 find (GNU findutils) 4.4.2 GNU Awk 4.0.1 /usr/bin/awk - /usr/bin/gawk gcc (GCC) 4.6.3 gcc compilation OK (GNU libc) 2.14.1 grep (GNU grep) 2.13 gzip 1.5 Linux version 3.7.1 (root@NovoGamerLFS71) (gcc version 4.6.3 (GCC) ) #1 SMP Tue Dec 18 16:26:07 BRT 2012 m4 (GNU M4) 1.4.16 GNU Make 3.82 patch 2.6.1 Perl version='5.16.0'; GNU sed version 4.2.1 tar (GNU tar) 1.26 Texinfo: makeinfo (GNU texinfo) 4.13 xz (XZ Utils) 5.0.4 *** Review all versions for currency! []s, Fernando -- 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
Fernando de Oliveira wrote: I like this. Output from $ cat /etc/lfs-release SVN-20120311 Here is another version. I can't say I really like it. The original is 40 lines and this is 73. All this because users either don't have enough experience to understand what's there now or because a user (generally experienced) just skips it. After all, the book says: /bin/sh should be a symbolic or hard link to bash /usr/bin/yacc should be a link to bison or small script that executes bison /usr/bin/awk should be a link to gawk We then print out all the current values on the system. How much hand holding do we need to do? -- Bruce #!/bin/bash # Simple script to list version numbers of critical development tools function die { rm -f dummy.c dummy echo Error: $1 exit 1 } function executable { EXE=$(which $1 2/dev/null) [ -x $EXE ] || die $1 not found } export LC_ALL=C bash --version | head -n1 | cut -d -f2-4 SH=`readlink -f /bin/sh` echo /bin/sh - $SH [ $SH == /bin/bash ] || die /bin/sh is not a symlink to bash executable ld echo -n Binutils: ; ld --version | head -n1 | cut -d -f3- executable bison; bison --version | head -n1 if [ -e /usr/bin/yacc ]; then echo /usr/bin/yacc - `readlink -f /usr/bin/yacc`; else die yacc not found; fi executable bzip2 bzip2 --version 21 /dev/null | head -n1 | cut -d -f1,6- executable chown echo -n Coreutils: ; chown --version | head -n1 | cut -d) -f2 executable diff; diff --version | head -n1 executable find; find --version | head -n1 executable gawk; gawk --version | head -n1 AWK=`readlink -f /usr/bin/awk` awk=/usr/bin/awk echo $awk - $AWK [ $AWK == /usr/bin/gawk ] || die $awk is not a symlink to gawk executable gcc; gcc --version | head -n1 echo 'main(){}' dummy.c gcc -o dummy dummy.c if [ -x dummy ] then echo gcc compilation OK rm -f dummy.c dummy else die gcc compilation failed fi executable ldd; ldd --version | head -n1 | cut -d -f2- # glibc executable grep; grep --version | head -n1 executable gzip; gzip --version | head -n1 cat /proc/version; executable m4; m4 --version | head -n1 executable make; make --version | head -n1 executable patch;patch --version | head -n1 executable perl; echo Perl `perl -V:version` executable sed; sed --version | head -n1 executable tar; tar --version | head -n1 executable makeinfo; echo Texinfo: `makeinfo --version | head -n1` executable xz; xz --version | head -n1 echo -e \n\n*** Review all versions for currency! -- 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 Sat, 2013-01-05 at 11:39 -0600, Bruce Dubbs wrote: The idea of the script was that it should be short. Generally the problem is that the symlinks are not set and occasionally makeinfo is not installed. Rarely is the problem an out-of-date executable. My issue with the script isn't whether it's short or long - it's whether the reader understands that they need to read the script output, and check it against the list of requirements. As such, I'm not particularly in favour of making the script smart enough to do that checking for the reader. The reader *must* understand that doing an LFS build involves some thinking - that it's not just a bunch of stuff to copy-paste without understanding what they're doing. Simon. signature.asc Description: This is a digitally signed message part -- 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 Sat, 2013-01-05 at 22:09 -0600, Bruce Dubbs wrote: Here is another version. I can't say I really like it. The original is 40 lines and this is 73. All this because users either don't have enough experience to understand what's there now or because a user (generally experienced) just skips it. After all, the book says: /bin/sh should be a symbolic or hard link to bash /usr/bin/yacc should be a link to bison or small script that executes bison /usr/bin/awk should be a link to gawk We then print out all the current values on the system. How much hand holding do we need to do? Exactly my concern. The solution isn't to make the script smarter - it's to get the reader to actually pay attention to this stuff. The dash/bash symlink is practically the first thing on the page, yet it also seems to be the most common cause of problems on this list... Simon. signature.asc Description: This is a digitally signed message part -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page