mounts
Hi, I'm building using liveCD6.3 and I'm currently on section '6.14 Sed-4.1.5' .I've been loggin in using openssh and building remotely(without rebooting). Each time I log in I need to run export LFS=/mnt/lfs, mkdir -pv $LFS and then enter the chroot environment again. I've just run the mount command and got the following results: /dev/mapper/lfs-cd on / type ext2 (rw) proc on /proc type proc (rw) sysfs on /sys type sysfs (rw) devpts on /dev/pts type devpts (rw,gid=4,mode=620) /dev/hda1 on /mnt/lfs type ext3 (rw) proc on /mnt/lfs/proc type proc (rw) sysfs on /mnt/lfs/sys type sysfs (rw) shm on /mnt/lfs/dev/shm type tmpfs (rw) In section 6.2.2 and 6.2.3 the following commands were run: mount -v --bind /dev $LFS/dev mount -vt devpts devpts $LFS/dev/pts mount -vt tmpfs shm $LFS/dev/shm mount -vt proc proc $LFS/proc mount -vt sysfs sysfs $LFS/sys Do my mounts look OK? It appears to me that devpts should be mounted on /mnt/lfs/dev/pts but instead its mounted on /dev/pts. Do the other mounts look OK? /dev doesn't look quite right to me either but I'm not sure? Thanks Richard -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Adjusting the toolchain: specs file
Hi, I'm using lfs6.3 livecd an in section 5.7 Adjusting the toolchain, the 'gcc -dumpspecs .' command doesn't appear to run properly. I've tried finding the specs file to verify that its been edited correctly but I can't find it. From other posts I think the specs file should be found at /usr/lib/gcc/i486-pc-linux-gnu/4.1.2/ but theres no file called specs at that location? I've also tried find on both the host an $LFS but not found it? Everything seemed to work ok up to this point but there seems to be something wrong? Can anyone shed any light on this? Thanks Richard -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: unrecognised option `-mtune=pentiumpro`
Hi, in 5.7 Adjusting the Toolchain when I run: gcc -dumpspecs | sed '[EMAIL PROTECTED]/lib/ld-linux.so.2@/tools@g' \ `dirname $(gcc -print-libgcc-file-name)`/specs I got the message gcc:unrecognised option `-mtune=pentiumpro` I copied and paste the command from the manual so I know I entered it correctly. Cant find anything relevant in the archives. This was the only output to screen and as I read somewhere sed should output every line processed to the console, so I would have expected some other output if the command did anything. Does it look like the command failed? When I ran it again it didn't even give the error message? Where is the specs file that I'm meant to check for the changes? Thanks Richard (sorry for resending but added a more meaningful title!) -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page What distro are you building from? I recommend using the LFS liveCD. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page I'm building from LiveCD 6.3 -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
6.12 Readjusting the toolchain
Hi, having the following problem that I dont undertsand? System: using LFS LiveCD 6.0 Dell optiplex P3 with 64mb RAM When I try to run sed -i 's@ /tools/lib/ld-linux.so.2@ /lib/[EMAIL PROTECTED]' \ $(gcc --print-file specs) I get the error sed: can't read /tools/lib/gcc/i686-pc-linux-gnu/3.4.1/specs: No such file or directory I ignored the previous command make -C ld INSTALL=/tools/bin/install install as instructed by the book as I had accidentally deleted binutils source and build directories, also, I used the command above instead of the one in the book: sed -i 's@ /tools/lib/ld-linux.so.2@ /lib/[EMAIL PROTECTED]' \ `gcc --print-file specs` because I can't find the accent-grave on my keyboard Can anyone advise me please? RC -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: 6.12 Readjusting the toolchain
- Original Message From: Alan Lord [EMAIL PROTECTED] To: lfs-support@linuxfromscratch.org Sent: Friday, February 16, 2007 10:58:02 AM Subject: Re: 6.12 Readjusting the toolchain Richard Caldwell wrote: Hi, having the following problem that I dont undertsand? System: using LFS LiveCD 6.0 Dell optiplex P3 with 64mb RAM When I try to run sed -i 's@ /tools/lib/ld-linux.so.2@ /lib/[EMAIL PROTECTED]' \ $(gcc --print-file specs) I get the error sed: can't read /tools/lib/gcc/i686-pc-linux-gnu/3.4.1/specs: No such file or directory I ignored the previous command make -C ld INSTALL=/tools/bin/install install as instructed by the book as I had accidentally deleted binutils source and build directories, also, I used the command above instead of the one in the book: sed -i 's@ /tools/lib/ld-linux.so.2@ /lib/[EMAIL PROTECTED]' \ `gcc --print-file specs` because I can't find the accent-grave on my keyboard Can anyone advise me please? RC Hi, First off, you don't say what version of LFS are you are trying to build. Second - your host linux seems a bit old - Why don't you use the latest LFS live CD rather than 6.0? Thirdly, you can cut paste between ttys using GPM (the mouse driver which is installed and running on the live CD). Just do ALT-F1, ALT-F2 etc to switch between multiple login screens; you can have a lynx or (links) page open with the book in one, and then cut and paste to your other screen the commands you need. The backtick on my keyboard (A UK kbd) is the leftmost key on the top row. It shares itself ` with ¬ (shifted) and ¦ (ALT Gr) I hope these suggestions help a bit and if I am teaching you to suck eggs please ignore ;-) Cheers Al Hi Al, I'm a complete novice so any help is useful.I didn't know I could run more than one tty useing ALT + F. I ve got the book open on the 2nd tty. How do I cut paste. I've tried starting GPM by typing 'GPM' and got the message 08o.oops(): [gpm.c(933)]: Please use -m /dev/mouse -t protocol What do I hgave to do to cut paste? Alternatively, how do I set my keyboard up correctly? My top left key gives me ' instead of ` and shifts to ~, and ALT GR doesn't give me anything? Thanks Richard -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: 6.12 Readjusting the toolchain
- Original Message From: Alan Lord [EMAIL PROTECTED] To: lfs-support@linuxfromscratch.org Sent: Friday, February 16, 2007 11:55:12 AM Subject: Re: 6.12 Readjusting the toolchain Hi Al, I'm a complete novice so any help is useful.I didn't know I could run more than one tty useing ALT + F. I ve got the book open on the 2nd tty. How do I cut paste. I've tried starting GPM by typing 'GPM' and got the message 08o.oops(): [gpm.c(933)]: Please use -m /dev/mouse -t protocol What do I hgave to do to cut paste? Alternatively, how do I set my keyboard up correctly? My top left key gives me ' instead of ` and shifts to ~, and ALT GR doesn't give me anything? Thanks Richard No problem. on the more recent live CDs GPM runs automatically. You select the text you want as usual (holding down the right mouse button or shifting and use the arrow keys). To paste into your other tty you normally click the middle button in linux (If you don't have a middle button then click both at once!) If you just move the mouse about - do you have a white block cursor that moves around too? When you booted into the live CD didn't it ask you for your keyboard layout? The newer ones do... Are you using a UK keyboard (I guess by the time you must be in europe somewhere, or perhaps Australasia?) Hi, cd didn't ask for keyboard layout. I don't have any cursor. the mouse driver doesn't appear to be loaded. Mouse does nothing(I'm in Ireland). How do I get that working? -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Glibc-2.3.4-20040701 make check error
Hi, I'm having th following problem when running make check after running make on glibc-2.3.4-20040701 using LFS LiveCD 6.0 on a Dell optiplex P3 with 64mb RAM --- scripts/check-c++-types.sh: line 44: 28733 broken pipecat EOF #include sys/types.h #include sys/stat.h #include sys/resource.h #include unistd.h void foo ($t) { } EOF g++: /dev/fd/63: No such file or directory g++: warning: '-x c++' after last input file has no effect g++: no input files make[1]: *** [/glibc-build/c++-types-check.out] Error 1 make[1]: Leaving directory '/glibc-2.3.4-20040701' make: *** [check] Error 2 --- I have previously run 'make' followed by 'make check', and had errors, but every time I ran make check I got different errors, so I deleted the glibc-build directory and started again. Can anyone shed any light on this? Thanks RC -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: Glibc-2.3.4-20040701 make check error
Hi, just ran 'make check' again and it appears to have run correctly!!! problem solved hopefully!! Weird RC - Original Message From: Richard Caldwell [EMAIL PROTECTED] To: lfs-support@linuxfromscratch.org Sent: Saturday, February 3, 2007 7:45:26 AM Subject: Glibc-2.3.4-20040701 make check error Hi, I'm having th following problem when running make check after running make on glibc-2.3.4-20040701 using LFS LiveCD 6.0 on a Dell optiplex P3 with 64mb RAM --- scripts/check-c++-types.sh: line 44: 28733 broken pipecat EOF #include sys/types.h #include sys/stat.h #include sys/resource.h #include unistd.h void foo ($t) { } EOF g++: /dev/fd/63: No such file or directory g++: warning: '-x c++' after last input file has no effect g++: no input files make[1]: *** [/glibc-build/c++-types-check.out] Error 1 make[1]: Leaving directory '/glibc-2.3.4-20040701' make: *** [check] Error 2 --- I have previously run 'make' followed by 'make check', and had errors, but every time I ran make check I got different errors, so I deleted the glibc-build directory and started again. Can anyone shed any light on this? Thanks RC -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Bash-3.0 symlink
Hi, book version 6.0 chapter 5.29. After installing bash3.0 the following command is issued: ln -s bash /tools/bin/sh but immediately after this the bash-3.0 directory is removed! What's the point in this symlink.? As I understand, it creates a link called '/tools/bin/sh' that points to bash in the current directory which is subsequently removed. After the bash directory is removed, what does the link point to? RC -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: Can't change ownership back to root
Thanks, that was the ticket -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Tuesday, October 10, 2006 10:29 AM To: LFS Support List Subject: Re: Can't change ownership back to root I have got to chapter 5.32 on the LFS and trying to change ownership back to root but when I exec command chown -R root:root $LFS/tools I just get operation not permitted on all of the files and dir. I think this my have to do with a reboot that had to be done during the build process but every thing that I did after the reboot worked fine. I am using the LiveCD for the host and the drive that is mounted has nothing but the LFS partition. Can any one help? Thanks Rick Do it as root, not as the lfs user. Hi, I'm using the LiveCd myself. there's no need to set up the user LFS with the live CD as you can't mess up the host OS as it's not writeable(as I understand it!). Check the following hint: http://archives.linuxfromscratch.org/mail-archives/livecd/2005-August/001264.html RC -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
GCC-3.4.1 - Pass 2 expect problem
Hi, using LiveCD, version 6.0 of book I've encountered the following problem in section 5.13 of book, checking if the host system PTYs are set up correctly. I ran command: expect -c spawn ls the system responds with: spawn ls I've tried running this from several directories as it was indicated in the archives that this was the source of a similar problem(if it is a problem!) The book tells what an 'error' response might be but it doesn't clarify what the correct response is? Is this response OK? guessing not? Thanks RC -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Problems installing Expect-5.42.1
Hi, I'm having the following problem: Book version 6.0, using LiveCD, using the setenv.sh file from the Building LFS from Live CD Hint. When I tried to install Expect-5.42.1 I had an error when I ran the line ./configure --prefix=/tools --with-tcl=/tools/lib --with-x=no I don't remember the specifics but from searching the archives found a similar error which suggested adding --with-tcl=$LFS/sources.tcl8.4.7/unix as ./configure was missing a file. This appeared to work but I'm now having an error when I run make SCRIPTS= INSTALL The error is: /mnt/lfs/tools/bin ../lib/gcc/i686-pc-linux-gnu/3.4.1/ ../ ../ ../ ../ i686-pc-linux-gnu/bin/ld: cannot find ltcl8.4 collect2: ld returned 1 exit status make: *** [expect_installed] Error 1 Any help welcome please? Is this maybe related to my earlier error or does anyone know if the setenv.sh file from the hint is suitable for LFS version 6.0 as it says that it's for version 6.2 but I'm not sure what the differences are or if that's the problem? -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: Problems installing Expect-5.42.1
5.42.1 Richard Caldwell schrieb: --with-tcl=$LFS/sources.tcl8.4.7/unix Are you sure, that it is sources.tcl8.4.7 not sources/tcl8.4.7? -- M.f.G. george aka Joerg Hahn Typo I think! Restarted so I haven't got my history to check(using LiveCD) but I've started again with installation of tcl. hopefully I'll get it sorted! Thanks. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: Problems installing Expect-5.42.1
When I tried to install Expect-5.42.1 I had an error when I ran the line ./configure --prefix=/tools --with-tcl=/tools/lib --with-x=no I don't remember the specifics but from searching the archives found a similar error which suggested adding --with-tcl=$LFS/sources.tcl8.4.7/unix as ./configure was missing a file. This appeared to work but I'm now having an error when I run make SCRIPTS= INSTALL The error is: /mnt/lfs/tools/bin ../lib/gcc/i686-pc-linux-gnu/3.4.1/ ../ ../ ../ ../ i686-pc-linux-gnu/bin/ld: cannot find ltcl8.4 collect2: ld returned 1 exit status make: *** [expect_installed] Error 1 Expect is heavily dependent on the Tcl package in the previous section. (In fact Expect is written in the Tcl language.) Gcc/ld can't find the Tcl library, and it sounds like something went wrong with your Tcl install. Check the contents of /tools/lib. You should find a file libtcl8.4.so there and also a subdir tcl8.4 containing a whole bunch of *.tcl files. There should also be about 10 tcl*.h files in /tools/include If you don't find all those files, then go back, be sure to remove your source/build directories for Tcl and Expect, and restart from the beginning of section 5.10. Tcl-8.4.7. If all those installed tcl files look okay, we'll have to dig deeper. In that case it could be something to do with your setenv.sh file but I can't say until I've read that hint. Thanks Brandon. That worked, and for some weird reason I didn't have to ad the --with-tcl... line to ./configure as I had previously done. I must have done something incorrectly the first time. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: Problems installing Expect-5.42.1
Just realised, there was a line in my setenv.sh which read: echo export LC_ALL PATH ~/.bashrc which I copied directly from the hint. However in section 4.4 Setting Up The Environment my book says export LFS LC_ALL PATH I modified setenv.sh to reflect this and used echo export LFS LC_ALL PATH ~/.bashrc Not sure what this is doing but could it have been the source of my problems? -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: keyboard problem
On Thu, Oct 05, 2006 at 04:07:40PM -0700, Richard Caldwell wrote: Hi, I'm having the following problem with my keyboard and I can find a solution in the archives. Installing LFS from LIveCD 6.0 In chapter 5 adjusting the toolchain I can't find the ` character on my keyboard.(I'm on a different machine typing this). There's a few other mixed up characters such as @ appears over 2 but that's not a problem. problem is that the character immediately before dirname on the first line of the command below can't be found. I think it's called an acute accent and it's not over the key above my tab key as I'd expect it. It's a _grave_ accent, more commonly referred to as a back-tick in this context. My first thought was that you have somehow got a US keyboard layout to match your mail's timezone, but ` is one of the characters in the same position as in the UK (@ and swap, # replaces the pound sterling, \ and | are on our # ~ key). I'm not familiar with the Live CD, but did you get the opportunity to select a locale or keyboard ? If you didn't, which character appears when you use the key above 'tab' ? In American layouts that key produces ` and shifts to ~, I think. Hi Ken, I got around it wiht the fix suggested by Dan N. using $(xxx) instead. It's weird, the character above tab is ' and shifts to ~ . I didn't get any opportunity to select keyboard or locale on boot. On my keyboard when I depress 2 I get @ and when I depress [SHIFT] + @ I get , also # replaces £ as you suggest. How do you check your keyboard/locale configuration and change it? Next time I reboot I'll try a differenet keyboard as a matter of interest. Thanks RC -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
keyboard problem
Hi, I'm having the following problem with my keyboard and I can find a solution in the archives. Installing LFS from LIveCD 6.0 In chapter 5 adjusting the toolchain I can't find the ` character on my keyboard.(I'm on a different machine typing this). There's a few other mixed up characters such as @ appears over 2 but that's not a problem. problem is that the character immediately before dirname on the first line of the command below can't be found. I think it's called an acute accent and it's not over the key above my tab key as I'd expect it. SPECFILE=`dirname $(gcc -print-libgcc-file-name)`/specs gcc -dumpspecs $SPECFILE sed '[EMAIL PROTECTED]/lib/ld-linux.so.2@/tools@g' $SPECFILE tempspecfile mv -vf tempspecfile $SPECFILE unset SPECFILE I'd appreciate if anyone can explain how to resolve this. I think it must just be a keyboard configuration issue but I can't find the solution? Thanks RC -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: keyboard problem
In chapter 5 adjusting the toolchain I can't find the ` character on my keyboard.(I'm on a different machine typing this). There's a few other mixed up characters such as @ appears over 2 but that's not a problem. problem is that the character immediately before dirname on the first line of the command below can't be found. I think it's called an acute accent and it's not over the key above my tab key as I'd expect it. That's really strange. I'd like to see this keyboard. Anyway, the fix is simple. In bash, $(cmd) and `cmd` both do command substitution. See `man bash' for more details. Just substitute the $( and ) for ` and `. Thanks. I'll try that. RC -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: GCC-3.4.1-Pass1 problem
Original Message From: Brandon Peirce [EMAIL PROTECTED] To: lfs-support@linuxfromscratch.org Sent: Wednesday, October 4, 2006 3:57:38 PM Subject: Re: GCC-3.4.1-Pass1 problem Richard Caldwell wrote: Chris Staub wrote: That host system is too new to build that old version of LFS. You need to either find an older distro to use as a host, or build the latest stable LFS version. I see that the latest book version online is 6.2, so I wouldn't have thought that 6.0 was 'very' old. It took me so long to download all of the files that I don't want to have to go through that again! Can you recommend a suitable host? I see suse 9.2 professional available on amazon for £6.96. Would that be a suitable distro? Richard, it sounds like you have a problem of a slow Internet connection :-( Probably your best bet would be to try to get hold of the LFS 6.2 live CD. Not only is it a bootable host distro suitable for building LFS, but also contains all the source packages and patches need to build 6.2--nothing further to download. The only problem is the Live CD itself is only available via download AFAIK (~500MB). Can't you get a mate, colleague, cousin,... with a faster Internet to download and burn it on a CD for you? Brandon. Got sorted thanks you. Had the live CD with the book and I'm now using it(I didn't realise what it was!). I'm further ahead than I previously was already in a fraction of the time. Not a single problem.(Kind of regret not doing it the other way as I felt I was learning a lot trying to troubleshoot problems!) Thanks Richard -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: GCC-3.4.1-Pass1 problem
- Original Message From: Chris Staub [EMAIL PROTECTED] To: LFS Support List lfs-support@linuxfromscratch.org Sent: Monday, October 2, 2006 3:31:27 AM Subject: Re: GCC-3.4.1-Pass1 problem Richard Caldwell wrote: Hi, I'm creating my first LFS system with a Suse10.1 host system using book version 6.0. I'm getting the following error when I run make BOOT_LDFLAGS=-static bootstrap * /tools/i686-pc-linux-gnu/bin/ld:/usr/lib/libc.so: file format not recognized; treating as linker script /tools/i686-pc-linux-gnu/bin/ld:/usr/lib/libc.so:5: syntax error collect2: ld returned 1 exit status make[3]: *** [libgcc_s.so] Error 1 make[3]: Leaving directory `/mnt/lfs/gcc-build/gcc' make[2]: *** [libgcc.a] Error 2 make[2]: Leaving directory `/mnt/lfs/gcc-build/gcc' make[1]: *** [stage1_build] Error 2 make[1]: Leaving directory `/mnt/lfs/gcc-build/gcc' make: *** [bootstrap] Error 2 [EMAIL PROTECTED]:/mnt/lfs/gcc-build *** when I ran the previous command ../configure.. I got an error telling me to set the variable CC to a working compiler, which I then set using: export cc=/usr/bin/cc but I don't know if this is relevant. Any help much appreciated. Thanks. That host system is too new to build that old version of LFS. You need to either find an older distro to use as a host, or build the latest stable LFS version. I see that the latest book version online is 6.2, so I wouldn't have thought that 6.0 was 'very' old. It took me so long to download all of the files that I don't want to have to go through that again! Can you recommend a suitable host? I see suse 9.2 professional available on amazon for £6.96. Would that be a suitable distro? Thanks -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: GCC-3.4.1-Pass1 problem
Original Message From: [EMAIL PROTECTED] [EMAIL PROTECTED] To: LFS Support List lfs-support@linuxfromscratch.org Sent: Monday, October 2, 2006 1:10:02 AM Subject: Re: GCC-3.4.1-Pass1 problem Did you apply the patches? On 10/1/06, Richard Caldwell [EMAIL PROTECTED] wrote: Hi, I'm creating my first LFS system with a Suse10.1 host system using book version 6.0. I'm getting the following error when I run make BOOT_LDFLAGS=-static bootstrap * /tools/i686-pc-linux-gnu/bin/ld:/usr/lib/libc.so: file format not recognized; treating as linker script /tools/i686-pc-linux-gnu/bin/ld:/usr/lib/libc.so:5: syntax error collect2: ld returned 1 exit status make[3]: *** [libgcc_s.so] Error 1 make[3]: Leaving directory `/mnt/lfs/gcc-build/gcc' make[2]: *** [libgcc.a] Error 2 make[2]: Leaving directory `/mnt/lfs/gcc-build/gcc' make[1]: *** [stage1_build] Error 2 make[1]: Leaving directory `/mnt/lfs/gcc-build/gcc' make: *** [bootstrap] Error 2 [EMAIL PROTECTED]:/mnt/lfs/gcc-build *** when I ran the previous command ../configure.. I got an error telling me to set the variable CC to a working compiler, which I then set using: export cc=/usr/bin/cc but I don't know if this is relevant. Any help much appreciated. Thanks. Followed book step by step (to the letter I think!) and didn't come across instructions to install a patch. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
GCC-3.4.1-Pass1 problem
Hi, I'm creating my first LFS system with a Suse10.1 host system using book version 6.0. I'm getting the following error when I run make BOOT_LDFLAGS=-static bootstrap * /tools/i686-pc-linux-gnu/bin/ld:/usr/lib/libc.so: file format not recognized; treating as linker script /tools/i686-pc-linux-gnu/bin/ld:/usr/lib/libc.so:5: syntax error collect2: ld returned 1 exit status make[3]: *** [libgcc_s.so] Error 1 make[3]: Leaving directory `/mnt/lfs/gcc-build/gcc' make[2]: *** [libgcc.a] Error 2 make[2]: Leaving directory `/mnt/lfs/gcc-build/gcc' make[1]: *** [stage1_build] Error 2 make[1]: Leaving directory `/mnt/lfs/gcc-build/gcc' make: *** [bootstrap] Error 2 [EMAIL PROTECTED]:/mnt/lfs/gcc-build *** when I ran the previous command ../configure.. I got an error telling me to set the variable CC to a working compiler, which I then set using: export cc=/usr/bin/cc but I don't know if this is relevant. Any help much appreciated. Thanks. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Binutils-2.15.91.0.2 - Pass 1
Hi, I'm creating my first LFS system on Suse10.1 with book version 6.0(2nd edition). When running 'make install' for binutils-2.15.91.0.2 in chapter 5 I get the following error(s): /usr/bin/install: cannot create regular file '/tools/lib/llibbfd.la' : Permission denied make[3]: ***[install_libbfd] Error 1 make[3]: Leaving directory '/mnt/lfs/binutils-build/bfd' make[2]: ***[install-am] Error 2 make[2]: Leaving directory '/mnt/lfs/binutils-build/bfd' make[1]: ***[install_recursive] Error 1 make[2]: Leaving directory '/mnt/lfs/binutils-build/bfd' make: [install-bfd] Error 2 Looks like a problem accessing /tools on the host system with write permissions for user lfs To rectify this I've run: chown -R lfs /tools as root.(because someone else had a similar problem and this was recommended) Have I made a mistake? The book doesn't mention this step? Is it wrong, or was there something else I should have done to rectify the problem? Any help much appreciated Thanks RC -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: Binutils-2.15.91.0.2 - Pass 1
- Original Message From: [EMAIL PROTECTED] [EMAIL PROTECTED] To: LFS Support List lfs-support@linuxfromscratch.org Sent: Thursday, September 28, 2006 6:09:51 PM Subject: Re: Binutils-2.15.91.0.2 - Pass 1 Hi, I'm creating my first LFS system on Suse10.1 with book version 6.0(2nd edition). When running 'make install' for binutils-2.15.91.0.2 in chapter 5 I get the following error(s): /usr/bin/install: cannot create regular file '/tools/lib/llibbfd.la' : Permission denied make[3]: ***[install_libbfd] Error 1 make[3]: Leaving directory '/mnt/lfs/binutils-build/bfd' make[2]: ***[install-am] Error 2 make[2]: Leaving directory '/mnt/lfs/binutils-build/bfd' make[1]: ***[install_recursive] Error 1 make[2]: Leaving directory '/mnt/lfs/binutils-build/bfd' make: [install-bfd] Error 2 Looks like a problem accessing /tools on the host system with write permissions for user lfs To rectify this I've run: chown -R lfs /tools as root.(because someone else had a similar problem and this was recommended) Have I made a mistake? The book doesn't mention this step? Is it wrong, or was there something else I should have done to rectify the problem? Any help much appreciated Thanks RC -- Who owns /tools/lib? And does this directory have write permission? ls -l shows the following: drwxr-xr-x 3 lfs root 288 2006-09-28 16:19 lib but I didn't check this before I ran chown. I just assumed it was owned by root -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: Binutils-2.15.91.0.2 - Pass 1
- Original Message From: Chris Staub [EMAIL PROTECTED] To: LFS Support List lfs-support@linuxfromscratch.org Sent: Thursday, September 28, 2006 6:08:46 PM Subject: Re: Binutils-2.15.91.0.2 - Pass 1 Richard Caldwell wrote: Hi, I'm creating my first LFS system on Suse10.1 with book version 6.0(2nd edition). When running 'make install' for binutils-2.15.91.0.2 in chapter 5 I get the following error(s): /usr/bin/install: cannot create regular file '/tools/lib/llibbfd.la' : Permission denied make[3]: ***[install_libbfd] Error 1 make[3]: Leaving directory '/mnt/lfs/binutils-build/bfd' make[2]: ***[install-am] Error 2 make[2]: Leaving directory '/mnt/lfs/binutils-build/bfd' make[1]: ***[install_recursive] Error 1 make[2]: Leaving directory '/mnt/lfs/binutils-build/bfd' make: [install-bfd] Error 2 Looks like a problem accessing /tools on the host system with write permissions for user lfs To rectify this I've run: chown -R lfs /tools as root.(because someone else had a similar problem and this was recommended) Have I made a mistake? The book doesn't mention this step? Is it wrong, or was there something else I should have done to rectify the problem? Any help much appreciated Thanks RC The book does tell you to chown $LFS/tools. Please read page 4.3. Thanks Chris. Your right. My mistake. Sorry for wasting time... -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page