On Fri, 2013-01-04 at 18:00 -0700, [email protected] wrote: > Send lfs-support mailing list submissions to > [email protected] > > 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 > [email protected] > > You can reach the person managing the list at > [email protected] > > 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 <[email protected]> > Subject: [lfs-support] LFS USB Flash Boot Error --- the final stage... > To: LFS Support List <[email protected]> > 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: [email protected] > 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" <[email protected]> > Subject: Re: [lfs-support] Step 5.7 -- ld: cannot find crt1.o > To: [email protected] > Message-ID: <[email protected]> > 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. Breisch<http://www.sports-gazer.com> > > > ------------------------------ > > Message: 3 > Date: Fri, 04 Jan 2013 11:04:47 -0500 > From: Baho Utot <[email protected]> > Subject: Re: [lfs-support] Step 5.7 -- ld: cannot find crt1.o > To: LFS Support List <[email protected]> > Message-ID: <[email protected]> > 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 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. > > > Good for you, Good deal > > If you are interested I have this: https://github.com/baho-utot/LFS-pacman > May hold some good info for you. > The BLFS is not complete but I am working on it. > > > > > > ------------------------------ > > Message: 4 > Date: Fri, 04 Jan 2013 10:51:22 -0600 > From: Bruce Dubbs <[email protected]> > Subject: Re: [lfs-support] LFS USB Flash Boot Error --- the final > stage... > To: LFS Support List <[email protected]> > Message-ID: <[email protected]> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > JIA Pei wrote: > > > > > 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. > > Where in the book do you see a search line and use of uuid on the linux > line? > > > What else am I missing? > > You keep changing things from the book without knowing what you are > doing and then asking what went wrong. Do you see a problem with this? > > # set root tells GRUB where to look for kernels > set root=(hd3,1) > > # The linux command line tells the kernel the location of the root fs > linux /boot/vmlinuz-3.7.1-lfs-SVN-20130102 root=/dev/sdd1 ro > > > You may want to review the section 'About initramfs' after you get the > base system up. > > -- Bruce > > > > -- Bruce > > > ------------------------------ > > Message: 5 > Date: Fri, 4 Jan 2013 13:05:16 -0500 > From: George Moore <[email protected]> > Subject: [lfs-support] GCC-4.7.1 Pass 1 - Undefined References > To: [email protected] > Message-ID: <[email protected]> > Content-Type: text/plain; charset="us-ascii" > > > I'm sure that this has been addressed in prior topics; however I'm unable to > find it in any archive. > > During the "make" of GCC-4.7.1 I receive the following output: > > ****************************************** > make[2]: Entering directory `/mnt/lfs/sources/gcc-build/gcc' > gcc -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -W -Wall -Wwrite-strings > -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes > -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros > -Wno-overlength-strings -Wold-style-definition -Wc++-compat -DHAVE_CONFIG_H > -o cc1 c-lang.o c-family/stub-objc.o attribs.o c-errors.o c-decl.o c-typeck.o > c-convert.o c-aux-info.o c-objc-common.o c-parser.o tree-mudflap.o > c-family/c-common.o c-family/c-cppbuiltin.o c-family/c-dump.o > c-family/c-format.o c-family/c-gimplify.o c-family/c-lex.o c-family/c-omp.o > c-family/c-opts.o c-family/c-pch.o c-family/c-ppoutput.o c-family/c-pragma.o > c-family/c-pretty-print.o c-family/c-semantics.o c-family/c-ada-spec.o > i386-c.o default-c.o \ > cc1-checksum.o main.o libbackend.a libcommon-target.a libcommon.a > ../libcpp/libcpp.a ../libdecnumber/libdecnumber.a libcommon.a > ../libcpp/libcpp.a ../libiberty/libiberty.a ../libdecnumber/libdecnumber.a > -L/mnt/lfs/sources/gcc-build/./gmp/.libs > -L/mnt/lfs/sources/gcc-build/mpfr/src/.libs > -L/mnt/lfs/sources/gcc-build/./mpc/src/.libs -lmpc -lmpfr -lgmp -rdynamic > -ldl -L../zlib -lz > c-family/c-cppbuiltin.o: In function `c_cpp_builtins': > /mnt/lfs/sources/gcc-build/gcc/../../gcc-4.7.1/gcc/c-family/c-cppbuiltin.c:918: > undefined reference to `GNU_USER_TARGET_OS_CPP_BUILTINS' > collect2: ld returned 1 exit status > make[2]: *** [cc1] Error 1 > make[2]: Leaving directory `/mnt/lfs/sources/gcc-build/gcc' > make[1]: *** [all-gcc] Error 2 > make[1]: Leaving directory `/mnt/lfs/sources/gcc-build' > make: *** [all] Error 2 > ******************************************* > I've gone over the procedures in LFS-BOOK-7.2 several time but have been > unable to resolve this problem. I would appreciate someone pointing me in the > right direction for a solution. Resolving the problem for "c-cppbuiltin.c" > produces other "GNU_USER_xxx. undefined . > > Thanks for your > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: > http://linuxfromscratch.org/pipermail/lfs-support/attachments/20130104/1b7a9af1/attachment-0001.html > > > ------------------------------ > > Message: 6 > Date: Fri, 04 Jan 2013 13:08:58 -0500 > From: "Chris J. Breisch" <[email protected]> > Subject: Re: [lfs-support] Step 5.7 -- ld: cannot find crt1.o > To: [email protected] > Message-ID: <[email protected]> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > On 1/4/2013 11:04 AM, Baho Utot wrote: > > > > If you are interested I have this: https://github.com/baho-utot/LFS-pacman > > May hold some good info for you. > > The BLFS is not complete but I am working on it. > > > Thanks. I will check it out. But later. I want to get through at least > one build completely on my own first. Actually, the point of this is > that I'm really interested in CLFS, but I figure going through the LFS > process first will make things quite a bit less painful when I attempt > the cross version. > > -- > > Chris J. Breisch<http://www.sports-gazer.com> > > > ------------------------------ > > Message: 7 > Date: Fri, 04 Jan 2013 13:14:35 -0600 > From: Bruce Dubbs <[email protected]> > Subject: Re: [lfs-support] GCC-4.7.1 Pass 1 - Undefined References > To: LFS Support List <[email protected]> > Message-ID: <[email protected]> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > George Moore wrote: > > > During the "make" of GCC-4.7.1 I receive the following output: > > > > ****************************************** > > make[2]: Entering directory `/mnt/lfs/sources/gcc-build/gcc' > > > gcc -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -W -Wall > > -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes > > -Wmissing-format-attribute -pedantic -Wno-long-long > > -Wno-variadic-macros -Wno-overlength-strings -Wold-style-definition > > -Wc++-compat -DHAVE_CONFIG_H -o cc1 c-lang.o c-family/stub-objc.o > > attribs.o c-errors.o c-decl.o c-typeck.o c-convert.o c-aux-info.o > > c-objc-common.o c-parser.o tree-mudflap.o c-family/c-common.o > > c-family/c-cppbuiltin.o c-family/c-dump.o c-family/c-format.o > > c-family/c-gimplify.o c-family/c-lex.o c-family/c-omp.o > > c-family/c-opts.o c-family/c-pch.o c-family/c-ppoutput.o > > c-family/c-pragma.o c-family/c-pretty-print.o c-family/c-semantics.o > > c-family/c-ada-spec.o i386-c.o default-c.o \ > > > > cc1-checksum.o main.o libbackend.a libcommon-target.a libcommon.a > > ../libcpp/libcpp.a ../libdecnumber/libdecnumber.a libcommon.a > > ../libcpp/libcpp.a ../libiberty/libiberty.a > > ../libdecnumber/libdecnumber.a > > -L/mnt/lfs/sources/gcc-build/./gmp/.libs > > -L/mnt/lfs/sources/gcc-build/mpfr/src/.libs > > -L/mnt/lfs/sources/gcc-build/./mpc/src/.libs -lmpc -lmpfr -lgmp > > -rdynamic -ldl -L../zlib -lz > > > c-family/c-cppbuiltin.o: In function `c_cpp_builtins': > > > /mnt/lfs/sources/gcc-build/gcc/../../gcc-4.7.1/gcc/c-family/c-cppbuiltin.c:918: > > undefined reference to `GNU_USER_TARGET_OS_CPP_BUILTINS' > > collect2: ld returned 1 exit status > > OK, let's go to the beginning. What is the output of the script in > "Host System Requirements'? > > -- Bruce > > 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 Binutils: (GNU Binutils for Debian) 2.20.1-system.20100303 ./version-check.sh: line 8: bison: command not found yacc not found 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 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) ([email protected]) (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:~$ > > ------------------------------ > > Message: 8 > Date: Fri, 4 Jan 2013 19:49:00 -0500 > From: matthew gruda <[email protected]> > Subject: [lfs-support] can't compile gcc pass 1 > To: [email protected] > Message-ID: > <CAC7=LQc1wKN-v2Z3BG=ldiesqgurboe7mlncktosepou9+s...@mail.gmail.com> > Content-Type: text/plain; charset="iso-8859-1" > > When I try to compile gcc from 5.5 I get this after running make: > > checking for complex.h... yes > checking for library containing creal... -lm > checking whether creal, cimag and I can be used... yes > checking for an ANSI C-conforming const... yes > checking for size_t... yes > checking for gettimeofday... yes > checking for localeconv... yes > checking for setlocale... yes > checking for dup... yes > checking for dup2... yes > checking for __gmpz_init in -lgmp... yes > 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/lfs/src/gcc-build' > make: *** [all] Error 2 > > the output of the version check script is: > > bash, version 4.2.24(1)-release > /bin/sh -> /bin/dash > Binutils: (GNU Binutils for Ubuntu) 2.22 > bison (GNU Bison) 2.5 > /usr/bin/yacc -> /usr/bin/bison.yacc > bzip2, Version 1.0.6, 6-Sept-2010. > Coreutils: 8.13 > diff (GNU diffutils) 3.2 > find (GNU findutils) 4.4.2 > GNU Awk 3.1.8 > /usr/bin/awk -> /usr/bin/gawk > gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3 > (Ubuntu EGLIBC 2.15-0ubuntu10.3) 2.15 > grep (GNU grep) 2.10 > gzip 1.4 > Linux version 3.7.0-030700-generic (root@gomeisa) (gcc version 4.6.3 > (Ubuntu/Linaro 4.6.3-1ubuntu5) ) #201212102335 SMP Tue Dec 11 04:36:24 UTC > 2012 > m4 (GNU M4) 1.4.16 > GNU Make 3.81 > patch 2.6.1 > Perl version='5.14.2'; > GNU sed version 4.2.1 > tar (GNU tar) 1.26 > version-check.sh: line 30: makeinfo: command not found > Texinfo: > xz (XZ Utils) 5.1.0alpha > gcc compilation OK > > im running ubuntu 12.04 and i have not deviated from the book > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: > http://linuxfromscratch.org/pipermail/lfs-support/attachments/20130104/2efc56ee/attachment-0001.html > > > ------------------------------ > > Message: 9 > Date: Fri, 4 Jan 2013 17:00:01 -0800 > From: JIA Pei <[email protected]> > Subject: Re: [lfs-support] LFS USB Flash Boot Error --- the final > stage... > To: LFS Support List <[email protected]> > Message-ID: > <CADh8Q_VLxgJFrKUCiT2anTwikX2bzThx7ucWn8iofR8a_t6R=a...@mail.gmail.com> > Content-Type: text/plain; charset="iso-8859-1" > > Hi, Bruce: > > > Thank you for your reply. I've already tested what you suggested, the > current /boot/grub/grub.cfg is like: > > > *menuentry "MyLinux (SVN-20130102) (on /dev/sdd1)" --class gnu-linux > --class gnu --class os {* > * insmod part_msdos* > * insmod ext2* > * set root='(hd3,msdos1)'* > * search --no-floppy --fs-uuid --set=root > a2d0f92a-eca8-4121-a998-99c70d4df67b* > * linux /boot/vmlinuz-3.7.1-lfs-SVN-20130102 root=/dev/sdd1 root-delay=10 ro > * > *}* > > > I tested the following too > > *menuentry "MyLinux (SVN-20130102) (on /dev/sdd1)" --class gnu-linux > --class gnu --class os {* > * insmod part_msdos* > * insmod ext2* > * set root='(hd3,1)'* > * search --no-floppy --fs-uuid --set=root > a2d0f92a-eca8-4121-a998-99c70d4df67b* > * linux /boot/vmlinuz-3.7.1-lfs-SVN-20130102 root=/dev/sdd1 root-delay=10 ro > * > *}* > * > * > * > * > Still the same, it doesn't work for me. And, I think *set > root='(hd3,msdos1)'* is more reasonable because at grub terminal, I got > http://visionopen.com/questions/lfs_svn_20130102_usbflash_grubls.jpg > I guess *(hd3, msdos1)* should be ok. > And I still kept obtaining > http://www.visionopen.com/questions/lfs_svn_20130102_usbflash_boot.jpg . > > > Now, I changed the settings to > *menuentry "MyLinux (SVN-20130102) (on /dev/sdd1)" --class gnu-linux > --class gnu --class os {* > * insmod part_msdos* > * insmod ext2* > * set root='(hd3,1)'* > * linux /boot/vmlinuz-3.7.1-lfs-SVN-20130102 root=/dev/sdd1 rootfstype=ext4 > root-delay=10 ro* > *}* > > because I formatted the system to ext4 . > Now, I continuously get this error > *No filesystem could mount root, tried: ext3 ext4 fuseblk* > *Kernel panic - not syncing: VFS: Unable to mount root fs on > unknown-block(8,1)* > http://visionopen.com/questions/lfs_svn_20130102_usbflash_vfs.jpg* > * > * > * > * > * > Gentoo users say they solve the problem by unticking some items during the > configuration of kernel (please refer to > http://forums-web1.gentoo.org/viewtopic-t-916776-start-0.html ), which > doesn't make sense to me. > 1) I see ext4 has been enabled (more ticks) for my kernel configuration > 2) If more ticks only bring problems, why the default kernel setting > intends to use a problematic configuration? > > > In sum: > 1) adding *rootfstype=ext4* doesn't work for me as shown above > 2) I did tick a lot of items during Kernel configuration > > > > Please, do help... > > > cheers > > > > * > * > > > On Fri, Jan 4, 2013 at 8:51 AM, Bruce Dubbs <[email protected]> wrote: > > > JIA Pei wrote: > > > > > > > > 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. > > > > Where in the book do you see a search line and use of uuid on the linux > > line? > > > > > What else am I missing? > > > > You keep changing things from the book without knowing what you are > > doing and then asking what went wrong. Do you see a problem with this? > > > > # set root tells GRUB where to look for kernels > > set root=(hd3,1) > > > > # The linux command line tells the kernel the location of the root fs > > linux /boot/vmlinuz-3.7.1-lfs-SVN-20130102 root=/dev/sdd1 ro > > > > > > You may want to review the section 'About initramfs' after you get the > > base system up. > > > > -- Bruce > > > > > > > > -- Bruce > > -- > > http://linuxfromscratch.org/mailman/listinfo/lfs-support > > FAQ: http://www.linuxfromscratch.org/lfs/faq.html > > Unsubscribe: See the above information page > > > > > > -- > > Pei JIA > > Email: [email protected] > 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/24035590/attachment.html > > > ------------------------------ > -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
