Re: [lfs-support] GCC-4.7.1-Pass 2 MPC configure fails
On Wed, Aug 08, 2012 at 07:01:02PM +0100, Richard Melville wrote: I realise that I'm building the dev edition, but my host is Linux Mint Cinnamon 64 bit and the host requirements appeared to fit better. Also it looked as though the dev edition was at a reasonably stable stage. I'm building a 64 bit edition on a 64 bit host (OS and hardware). The failure is:- 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/sources/gcc-build' make: *** [all] Error 2 Everything has built fine up to this stage and the sanity checks were OK. MPFR and GMP have compiled OK with the libraries installed in .libs. I've even checked to make sure that the MPFR libraries were 64 bit, and now I've run out of ideas. I'd be really grateful for any help. I've tried rebuilding GCC four times now with the same result. Richard Richard - since this is still bugging you, I've come back to your original post. I notice one thing which nobody has mentioned: *when* you get this error, look at the *appropriate* config.log file [ gcc, like binutils, runs configure in multiple directories]. Even if this error happens/happened when running 'make', the error was within one of the configure scripts - gcc builds everything several times, and each time it configures the directories within it. Whenever configure fails (I usually point this out for cannot create executables messages), the key to understanding the problem is to find the appropriate config.log file, open that up in 'view' (or 'less'), search for 'a different ABI', and then look for the error messages in the lines before that. Probably, an error from gcc or ld. Once you have the error message, there are two possibilities: 1. it will indicate an error you made, and perhaps be blindingly obvious (I've had that when I was building for multiple archs and accidentally fell through to passing some ppc-only options in my CFLAGS :) - if so, please give the list a brief summary of what went wrong so that the next person who eventually does that can fix it. or, more likely: 2. Something new, which needs to be addressed. The ABI in the message reminds me of a past problem with gmp where, if CFLAGS were set, a processor capable of running 64-bit code would default to building 64-bit even though the rest of hte build was 32-bit. But, the variability in your results suggests this is not something easy like that. Bruce and Ken -- thanks for the replies and apologies for my tardy response. The fact is that I finished the build a while ago with this problem being pretty much the only real issue. I deleted all the packages and files so I don't have anything to work with in terms of tracking down exactly what happened. I've tried rebuilding GCC a couple of times since but I've been unable to replicate the failure. I'm fairly certain that it was a bug of some sort (too many others have reported the same issue) but now I have no proof. I realise that without the logs of the failed build it's pointless discussing the issue, unless. of course, the next person to experience the problem is willing to share their log files. Anyway, thanks again for your help. Richard -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
[lfs-support] /etc/sysconfig/console
I am trying to understand how to set this file for LFS-7.2 What is the default for the following variables? That is if you don't use this file and it is not present. KEYMAP FONT From my research I think it is the following is the same as not having the file: cat /etc/sysconfig/console EOF # Begin /etc/sysconfig/console KEYMAP=en FONT=lat1-16 -m 8859-1 # End of /etc/sysconfig/console EOF Is this correct? 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] /etc/sysconfig/console
Baho Utot wrote: I am trying to understand how to set this file for LFS-7.2 What is the default for the following variables? That is if you don't use this file and it is not present. KEYMAP FONT From my research I think it is the following is the same as not having the file: cat /etc/sysconfig/console EOF # Begin /etc/sysconfig/console KEYMAP=en FONT=lat1-16 -m 8859-1 # End of /etc/sysconfig/console EOF If the file doesn't exist, then the environment variables are not set. In that cases, it depends on the default behavior of the application such as agetty or xterm. You would need to look at the code for those to determine the defaults. Note that translating a key code (say 1 for esc, etc) to a character and then translating that character to a glyph (a rectangular array or dots) is really a non-trivial task. -- 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] /etc/sysconfig/console
On 09/24/2012 12:51 PM, Bruce Dubbs wrote: Baho Utot wrote: I am trying to understand how to set this file for LFS-7.2 What is the default for the following variables? That is if you don't use this file and it is not present. KEYMAP FONT From my research I think it is the following is the same as not having the file: cat /etc/sysconfig/console EOF # Begin /etc/sysconfig/console KEYMAP=en FONT=lat1-16 -m 8859-1 # End of /etc/sysconfig/console EOF If the file doesn't exist, then the environment variables are not set. In that cases, it depends on the default behavior of the application such as agetty or xterm. You would need to look at the code for those to determine the defaults. Note that translating a key code (say 1 for esc, etc) to a character and then translating that character to a glyph (a rectangular array or dots) is really a non-trivial task. -- Bruce I have found that this will not cause an error KEYMAP=us FONT=lat1-16 -m 8859-1 and the system will boot without displaying an error. I don't know if that is the same if you don't have a console files or not. Now I am trying to set this system up for UTF-8 is the console setting the same or would it need to be changed if i set LANG=en_US.UTF-8 ? I am trying to understand all these settings and there affect on the system in 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] /etc/sysconfig/console
Baho Utot wrote: I have found that this will not cause an error KEYMAP=us FONT=lat1-16 -m 8859-1 and the system will boot without displaying an error. I don't know if that is the same if you don't have a console files or not. Now I am trying to set this system up for UTF-8 is the console setting the same or would it need to be changed if i set LANG=en_US.UTF-8 ? I am trying to understand all these settings and there affect on the system in question. KEYMAP and FONT are LFS variables used in the console init script. FONT is used in the setfont command. KEYMAP is used with the loadkeys command. See the respective man pages. -- 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] /etc/sysconfig/console
On 09/24/2012 01:52 PM, Bruce Dubbs wrote: Baho Utot wrote: I have found that this will not cause an error KEYMAP=us FONT=lat1-16 -m 8859-1 and the system will boot without displaying an error. I don't know if that is the same if you don't have a console files or not. Now I am trying to set this system up for UTF-8 is the console setting the same or would it need to be changed if i set LANG=en_US.UTF-8 ? I am trying to understand all these settings and there affect on the system in question. KEYMAP and FONT are LFS variables used in the console init script. FONT is used in the setfont command. KEYMAP is used with the loadkeys command. See the respective man pages. -- Bruce OK 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] /etc/sysconfig/console
On Mon, Sep 24, 2012 at 01:06:12PM -0400, Baho Utot wrote: Now I am trying to set this system up for UTF-8 is the console setting the same or would it need to be changed if i set LANG=en_US.UTF-8 ? This is what I'm using for British English: KEYMAP=uk-utf UNICODE=1 FONT=LatGrkCyr-8x16 LEGACY_CHARSET=iso-8859-15 I've no idea if the LEGACY_CHARSET does anything useful, but it doesn't do any harm :) I guess the only thing _required_ is UNICODE=1. After that, it depends on your font, your colourscheme (my fonts, at least the 8x16 versions, don't look nice if you use dark on a light background, they are designed for light on dark), and most importantly, what glyphs you want to be able to display. Also, your own ideas of how certain glyphs ought to appear [ e.g. 'g' could have an open loop or a curled tail ]. In my case, LatGrkCyr aims to display almost all latin, greek (not polytonic), cyrillic glyphs that a (west)-european might see. At the cost of removing bold colours to get 512 available glyphs, and using a framebuffer. For other people, the requirements will be different. FWIW, my keymap aims to let me approximate, with compose keys, the dead keys for accents, etc which are available in xorg (I can't use AltGr for the dead key, so I have to assign a Compose key, and then I use the symbol, letter so that I only have to remember one set of modifiers - e.g. ; for acute accent. Doesn't all work, but enough to be useful to me. Other people do things differently, e.g. my netbook with ubuntu is set for dead keys, and works painfully. If in doubt about fonts, take a look at ~/ken at lfs - as well as my fonts there is some example text to help identify what your fonts can and can't cover - that might also be useful when running xorg. ĸen -- das eine Mal als Tragödie, das andere Mal als Farce -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] /etc/sysconfig/console
Ken Moffat wrote: On Mon, Sep 24, 2012 at 01:06:12PM -0400, Baho Utot wrote: Now I am trying to set this system up for UTF-8 is the console setting the same or would it need to be changed if i set LANG=en_US.UTF-8 ? This is what I'm using for British English: KEYMAP=uk-utf loadkeys uk-utf UNICODE=1 echo -en '\033%G' kbd_mode -u The 'esc G' sequence is a VT100 command to Select UTF-8 character set (ISO 2022). FONT=LatGrkCyr-8x16 setfont LatGrkCyr-8x16 LEGACY_CHARSET=iso-8859-15 dumpkeys -c iso-8859-15 | loadkeys -u -- 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] Support or Video links to follow along with LFS book
Hi William, Thanks for that interesting reply and suggestion. I am not quite up to the level of script replay as it is rather beyond my capabilities at this point. I did read up on script replay at the link below. http://www.linuxinsight.com/replaying-terminal-sessions-with-scriptreplay.html BTW, I did read the LFS FAQ and turned off HTML. I am not sure what you are receiving on your end but HTML is turned off in this google gmail (at least in this particular email instance). Please let me know (anyone) if the HTML link (above) is delivered in good form as requested by the LFS FAQ titled, What about netiquette?. I do need to re-read the above link again before script replay begins to sink in. I just wanted to let you know that I do read your emails and absolutely appreciate all suggestions. Thank you Wally On Fri, Sep 21, 2012 at 4:54 PM, William Harrington berzerk...@cox.net wrote: On Sep 21, 2012, at 10:56 AM, Wally Lepore wrote: I would kindly like to know if there exists a support group or youtube video series that helps a novice walk thrrough the entire process of building a basic distro while simultaneously following every step of the way utilizing the LFS book. Something I was curious about was something even simpler and users don't even need web access or a gui with their host OS. The idea is to use script or script replay! script -t 2lfs.timing lfs.session Do all your introduction and setup and all and go through the first package maybe even up to GCC to show how to do those commands. ctrl-d and all that is saved Build some more and then when you start to work setting up chroot append to the script script -t 2lfs.timing -a lfs.session go through that and building some things... you can skip whatever is needed (because all output will be scripted as well... so building while not on a fast machine can make the script quite boring). Then when getting to another big section like configuring the system and fstab and networking.. append to the script again Then users can download the files and replay the script scriptreplay lfs.timing lfs.session tada! By the way, it'll script everything, even your typos! Hah! Sincerely, William Harrington -- 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: [lfs-support] Support or Video links to follow along with LFS book
Hi William, Something I was curious about was something even simpler and users don't even need web access or a gui with their host OS. The idea is to use script or script replay! (continued) Thanks for that interesting reply and suggestion. I am not quite up to the level of script replay as it is rather beyond my capabilities at this point. I did read up on script replay at the link below. http://www.linuxinsight.com/replaying-terminal-sessions-with-scriptreplay.html BTW, I did read the LFS FAQ and turned off HTML. I am not sure what you are receiving on your end but HTML is turned off in this google gmail (at least in this particular email instance). Please let me know (anyone) if the HTML link (above) is delivered in good form as requested by the LFS FAQ titled, What about netiquette?. I do need to re-read the above link again before script replay begins to sink in. I just wanted to let you know that I do read your emails and absolutely appreciate all suggestions. Thank you Wally On Fri, Sep 21, 2012 at 4:54 PM, William Harrington berzerk...@cox.net wrote: On Sep 21, 2012, at 10:56 AM, Wally Lepore wrote: I would kindly like to know if there exists a support group or youtube video series that helps a novice walk thrrough the entire process of building a basic distro while simultaneously following every step of the way utilizing the LFS book. Something I was curious about was something even simpler and users don't even need web access or a gui with their host OS. The idea is to use script or script replay! script -t 2lfs.timing lfs.session Do all your introduction and setup and all and go through the first package maybe even up to GCC to show how to do those commands. ctrl-d and all that is saved Build some more and then when you start to work setting up chroot append to the script script -t 2lfs.timing -a lfs.session go through that and building some things... you can skip whatever is needed (because all output will be scripted as well... so building while not on a fast machine can make the script quite boring). Then when getting to another big section like configuring the system and fstab and networking.. append to the script again Then users can download the files and replay the script scriptreplay lfs.timing lfs.session tada! By the way, it'll script everything, even your typos! Hah! Sincerely, William Harrington -- 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: [lfs-support] /etc/sysconfig/console
On Mon, Sep 24, 2012 at 02:38:51PM -0500, Bruce Dubbs wrote: Ken Moffat wrote: LEGACY_CHARSET=iso-8859-15 dumpkeys -c iso-8859-15 | loadkeys -u Thanks for explaining it: I suspect that for *my* keymap LEGACY_CHARSET probably *does* do harm. I've had problems specifying some of the non-latin1 codepoints, I'll have to try without it if I get my new buildscripts to a usable state. ĸen -- das eine Mal als Tragödie, das andere Mal als Farce -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
[lfs-support] Chapter 2.3
On chapter 2.3. Creating a File System I'M told to issue the command mkswap /dev/xyz for initialization purposes. The thing is I created and set up my three partitions before starting LFS. sda1 will be my LFS, sda2 is swap, and sda3 is my host system. So how important is this command because when I type it now I'M getting this?: No such file or directory, for sda2. I also tried hda2 and got /dev/hda2: Device or resource busy I've already completed the LFS project once but my instructor is insisting that I do it again but use my previous LFS as my host system. For future reference some of you might remember me getting stuck on the LFS project when I tried to boot it, can't remember the exact error but I got it resolved and thought I would go ahead and share for anyone else that might ever have the same problem. It was apparently coming from the grub.cfg file, where I had sda1 listed, for whatever reason my system or LFS was expecting hda1. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
[lfs-support] Host Distribution
Hi Members, I hope to begin the journey of learning to build my own LFS distro and have been reading the Essential Pre-Reading Guide for Life with LFS (over and over) as well as the LFS book itself. I'm beginning to become familiar with all the terminology and would like some advice on choosing a host distro. This first step is daunting to say the least. I have accomplished quite a bit of reading over the past few weeks, searched the LFS FAQ, scanned 3 months back on the lfs-support mailing list, have utilized google search and would like to ask for additional support before embarking on this first crucial step please. After all the research, I am still confused as to which host distro to utilize. I was going to utilize the LFS LiveCD in a virtual box but not sure if my legacy system will support a virtual machine (please see system specs below).I have more than enough hard drive space and would like to install the host distro to my hard drive (my system has two hard drives). Last month I attempted to install Ubuntu numerous times but the install failed half way through with an error message. After much research I decided to look for another distro and was amazed at the hundreds of choices. This led to a complete study of Linux and how one distro differs from another. I decided to pull-back and install nothing and simply read, study and learn. I have coded before but nothing on a profesional lebel. Currently studying C language using Code::Blocks. Also learned about learned about checksum and interesting hints in regards to downloading and burning iso files. At this point, I'd rather install a dstro that LFS members recommend as being compatible with LFS version 7.0. I would like to utilize Debian as my host distro for the LFS build as many successful distro's seem to be forked off Debian. Debian has a good package manager and separates free and non-free software quite well. However after reading Debian's installation procedure, I'm not sure If I have the technical experience to install a distro that requires users to install multiple CD's. I notice that other distro's offer their iso images that can fit on one CD (this I would prefer). I did hear that Debian offers an iso image that will -in fact- fit on one CD and is easy to install but I have not been able to locate the link. Also, If any one can recommend a different distro and why or a distro that historically has been a good match for Linux-From_Scratch I would very much appreciate it? I am very familiar with distrowatch and many other support links but considering the time and effort to install a distro I simply wanted to be sure that the distro that I finally settle with is in fact a good base. My system specs are: Motherboard: iWill DVD266R Motherboard featuring Dual Symmetric multiprocessing (SMP) x86 Pentium III Coppermine processors (1 GHz each). source: http://www.xbitlabs.com/articles/mainboards/display/iwill-dvd266-r.html RAM: 1 gig DDR memory (4 gig max). Supported DDR types PC2100/PC1600 DDR SDRAM PC133/PC100 SDRAM Peripheral Devices: Foppy Drive Hard Drives Maxtor IDE 40 gig Hard Drive (currently Running Windows 2000) Jumper on drive set to Master Western Digital E-IDE 80 gig Drive (currently empty).Jumper on drive set to Slave. Iomage 1 terabyte (external) CD-R/RW DVD-R/RW USB: 2 ports USB 1.0 Based upon the above specs., it is my understanding that any distro that is based upon the i386, i486, i586 and i686 architecture will be compatible with my legacy system. Thank you very much Wally Lepore -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] Host Distribution
Hi Members At this point, I'd rather install a dstro that LFS members recommend as being compatible with LFS stable book version 7.0. Amended please. That should read, At this point, I'd rather install a host dstro that LFS members recommend as being compatible with the LFS stable book version 7.2 (the newest stable version). source: http://www.linuxfromscratch.org/lfs/downloads/stable/ Thank you Wally Lepore On Mon, Sep 24, 2012 at 8:14 PM, Wally Lepore wallylep...@gmail.com wrote: Hi Members, I hope to begin the journey of learning to build my own LFS distro and have been reading the Essential Pre-Reading Guide for Life with LFS (over and over) as well as the LFS book itself. I'm beginning to become familiar with all the terminology and would like some advice on choosing a host distro. This first step is daunting to say the least. I have accomplished quite a bit of reading over the past few weeks, searched the LFS FAQ, scanned 3 months back on the lfs-support mailing list, have utilized google search and would like to ask for additional support before embarking on this first crucial step please. After all the research, I am still confused as to which host distro to utilize. I was going to utilize the LFS LiveCD in a virtual box but not sure if my legacy system will support a virtual machine (please see system specs below).I have more than enough hard drive space and would like to install the host distro to my hard drive (my system has two hard drives). Last month I attempted to install Ubuntu numerous times but the install failed half way through with an error message. After much research I decided to look for another distro and was amazed at the hundreds of choices. This led to a complete study of Linux and how one distro differs from another. I decided to pull-back and install nothing and simply read, study and learn. I have coded before but nothing on a profesional lebel. Currently studying C language using Code::Blocks. Also learned about learned about checksum and interesting hints in regards to downloading and burning iso files. At this point, I'd rather install a dstro that LFS members recommend as being compatible with LFS version 7.0. I would like to utilize Debian as my host distro for the LFS build as many successful distro's seem to be forked off Debian. Debian has a good package manager and separates free and non-free software quite well. However after reading Debian's installation procedure, I'm not sure If I have the technical experience to install a distro that requires users to install multiple CD's. I notice that other distro's offer their iso images that can fit on one CD (this I would prefer). I did hear that Debian offers an iso image that will -in fact- fit on one CD and is easy to install but I have not been able to locate the link. Also, If any one can recommend a different distro and why or a distro that historically has been a good match for Linux-From_Scratch I would very much appreciate it? I am very familiar with distrowatch and many other support links but considering the time and effort to install a distro I simply wanted to be sure that the distro that I finally settle with is in fact a good base. My system specs are: Motherboard: iWill DVD266R Motherboard featuring Dual Symmetric multiprocessing (SMP) x86 Pentium III Coppermine processors (1 GHz each). source: http://www.xbitlabs.com/articles/mainboards/display/iwill-dvd266-r.html RAM: 1 gig DDR memory (4 gig max). Supported DDR types PC2100/PC1600 DDR SDRAM PC133/PC100 SDRAM Peripheral Devices: Foppy Drive Hard Drives Maxtor IDE 40 gig Hard Drive (currently Running Windows 2000) Jumper on drive set to Master Western Digital E-IDE 80 gig Drive (currently empty).Jumper on drive set to Slave. Iomage 1 terabyte (external) CD-R/RW DVD-R/RW USB: 2 ports USB 1.0 Based upon the above specs., it is my understanding that any distro that is based upon the i386, i486, i586 and i686 architecture will be compatible with my legacy system. Thank you very much Wally Lepore -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] Host Distribution
On Sep 24, 2012, at 19:14 PM, Wally Lepore wrote: Hi Members, At this point, I'd rather install a dstro that LFS members recommend as being compatible with LFS version 7.0. I would like to utilize Debian as my host distro for the LFS build as many successful distro's seem to be forked off Debian. Debian has a good package manager and separates free and non-free software quite well. However after reading Debian's installation procedure, I'm not sure If I have the technical experience to install a distro that requires users to install multiple CD's. I notice that other distro's offer their iso images that can fit on one CD (this I would prefer). I did hear that Debian offers an iso image that will -in fact- fit on one CD and is easy to install but I have not been able to locate the link. Also, If any one can recommend a different distro and why or a distro that historically has been a good match for Linux-From_Scratch I would very much appreciate it? Hi Wally, This is almost asking like what kind of beer someone likes or what kind of food they like To build LFS, and with your system specs, any will do. I had a dual p3 1.4 tualatin system which built like a champ and pretty darn fast. If you choose debian, and if you want a minimal system to build LFS from, use the netinst iso for i386. Then you can install what you need to build LFS from there such as: I would also suggest slackware as a good host to build from. Install the dev set and you will be fine. Just meet the host system requirements as stated here: http:// www.linuxfromscratch.org/lfs/view/stable/prologue/hostreqs.html apt-get install bison flex m4 texinfo gawk ncurses-dev dpkg- reconfigure dash ( use bash for default shell) Other than that I use slackware. If you want a live system, the udpated livecd I have created will do just fine.. http://cross-lfs.org/~kb0iic/livecdupd/ Sincerely, William Harrington -- 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 2.3
On Sep 24, 2012, at 19:07 PM, Garrett Gaston wrote: On chapter 2.3. Creating a File System I'M told to issue the command mkswap /dev/xyz for initialization purposes. The thing is I created and set up my three partitions before starting LFS. sda1 will be my LFS, sda2 is swap, and sda3 is my host system. So how important is this command because when I type it now I'M getting this?: No such file or directory, for sda2. I also tried hda2 and got / dev/hda2: Device or resource busy I've already completed the LFS project once but my instructor is insisting that I do it again but use my previous LFS as my host system. For future reference some of you might remember me getting stuck on the LFS project when I tried to boot it, can't remember the exact error but I got it resolved and thought I would go ahead and share for anyone else that might ever have the same problem. It was apparently coming from the grub.cfg file, where I had sda1 listed, for whatever reason my system or LFS was expecting hda1. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page Hello Garrett, After creating your partitions, did your system update the block devices available? What is your host distro? Did you reboot after doing so if the device nodes weren't updated? Sincerely, William Harrington -- 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 2.3
On Mon, Sep 24, 2012 at 07:07:11PM -0500, Garrett Gaston wrote: On chapter 2.3. Creating a File System I'M told to issue the command mkswap /dev/xyz for initialization purposes. The thing is I created and set up my three partitions before starting LFS. sda1 will be my LFS, sda2 is swap, and sda3 is my host system. For people intending to keep using LFS, a separate /home is useful so that you don't lose your own data when you update. Too late for your partitioning, but perhaps someone will benefit. So how important is this command because when I type it now I'M getting this?: No such file or directory, for sda2. I also tried hda2 and got /dev/hda2: Device or resource busy You have two problems here: 1. You haven't learned that an existing swap partition is perfectly usable by all installed linux systems on that machine. 2. More seriously, you haven't understood that things change over time, and therefore I worry about your ability to configure your kernel. On x86 (i?86 and x86_64), ATA disks used to use /dev/hdX. Sometime in the 2.6.2X kernel timeframe, probably after 2.6.24, libata became the default and these drives are now at /dev/sdX. So, you appear to be running a very old host system. Once swap is available, the device is in use. Nobody has reported problems here, I think, but perhaps out explanation is deficient - if you have a lack of system memory, swap is a good idea. If you have adequate memory, you don't need swap. For 'adequate' the quantity varies, depending on what you are doing - newer versions of g++ always use more than the previous version, but I would suggest 4GB as a ballpark figure, so always use swap on non-PAE 32-bit :) I've already completed the LFS project once but my instructor is insisting that I do it again but use my previous LFS as my host system. For future reference some of you might remember me getting stuck on the LFS project when If your previous LFS build is using /dev/hda2 then it seems to be extremely old (unless you misconfigured the kernel to use the old ATA drivers) and a lot of people here think there is no point in supporting anything before the current (7.2) release. I don't particularly care *why* people build LFS, and I've known several people who built it as part of learning about linux, and then moved on to a distro where things were done for them. But if the person driving this build is your instructor, then he or she can give you guidance. If you're doing it for your own interest, then ask away - but try to learn from what you are told. And I hope this build will be enjoyable as well as informative. ĸen -- das eine Mal als Tragödie, das andere Mal als Farce -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] Host Distribution
On Mon, Sep 24, 2012 at 08:14:33PM -0400, Wally Lepore wrote: Hi Members, I hope to begin the journey of learning to build my own LFS distro and have been reading the Essential Pre-Reading Guide for Life with LFS (over and over) as well as the LFS book itself. I'm beginning to become familiar with all the terminology and would like some advice on choosing a host distro. This first step is daunting to say the least. Umm, why ? Seriously, most people came here after either starting to loathe their current distro (can you say package management? :) or else because they were using a distro and wanted to learn more. In theory, any recent distro should do. At times, fedora has been *too* new, or difficult (linker options, security features), but I haven't seen any such reports recently. Conversely, debian and its derivatives have a liking for old packages (e.g. mawk instead of gawk) and will need some additions and changes - see William's reply. But in general, all you should need to do is to check the host system requirements in the preface. The best host system is, of course, the current version of LFS - but for most people that isn't a practical option ;) ĸen -- das eine Mal als Tragödie, das andere Mal als Farce -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] Host Distribution
On 09/24/2012 09:03 PM, Ken Moffat wrote: On Mon, Sep 24, 2012 at 08:14:33PM -0400, Wally Lepore wrote: Hi Members, I hope to begin the journey of learning to build my own LFS distro and have been reading the Essential Pre-Reading Guide for Life with LFS (over and over) as well as the LFS book itself. I'm beginning to become familiar with all the terminology and would like some advice on choosing a host distro. This first step is daunting to say the least. Umm, why ? Seriously, most people came here after either starting to loathe their current distro (can you say package management? :) or else because they were using a distro and wanted to learn more. In theory, any recent distro should do. At times, fedora has been *too* new, or difficult (linker options, security features), but I haven't seen any such reports recently. Conversely, debian and its derivatives have a liking for old packages (e.g. mawk instead of gawk) and will need some additions and changes - see William's reply. I used fedora 17 to build LFS-6.8 to LFS-7.2, both i686 and x86_64. I just use the kde spin variant. If I remember correctly all you need to do is to add gcc. I can wait to finish the base build of LFS-7.2 and get on to BLFS. This distros of late are just terrible! -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] Host Distribution
On Mon, Sep 24, 2012 at 8:30 PM, William Harrington wrote: This is almost asking like what kind of beer someone likes or what kind of food they like To build LFS, and with your system specs, any will do. I had a dual p3 1.4 tualatin system which built like a champ and pretty darn fast. If you choose debian, and if you want a minimal system to build LFS from, use the netinst iso for i386. Then you can install what you need to build LFS from there such as: I would also suggest slackware as a good host to build from. Install the dev set and you will be fine. Just meet the host system requirements as stated here: http:// www.linuxfromscratch.org/lfs/view/stable/prologue/hostreqs.html apt-get install bison flex m4 texinfo gawk ncurses-dev dpkg- reconfigure dash ( use bash for default shell) Other than that I use slackware. If you want a live system, the udpated livecd I have created will do just fine.. http://cross-lfs.org/~kb0iic/livecdupd/ Hi William, Yes I understand and am aware that the distro choice is highly subjective. I did watch in the mentioned video link that during the LFS build process, LFS will turn up errors if the errors already exist in the host distro. I forget the exact wording but I'm sure you know what I am referring to. In other words, it was suggested to use a distro that is error free (if one exists). That is why the author (in the mentioned video) recommends the LFS LiveCD in that something about it being error free. Very nice on your PIII tualatin build. Is it still running? William, I can't find that Debian iso link you recommend. I was at their site and did not see the link for netinst i386. Can you please locate? I'm concerned that Slackware may be too tech heavy for me as that mentioned video link suggested. But if you highly recommend then I will install it. After all, the author did mention that, to really learn Linux use Slackware. Thanks again for your LFS LiveCD updated link. I will consider. At this point it really boils down to either installing a host distro to my hard drive or using the LiveCD. However, if you are already using Slackware, then it may be a good start for me as I will have support in the event I need help (which will almost certainly be). Thank you Wally On Mon, Sep 24, 2012 at 8:30 PM, William Harrington berzerk...@cox.net wrote: On Sep 24, 2012, at 19:14 PM, Wally Lepore wrote: Hi Members, At this point, I'd rather install a dstro that LFS members recommend as being compatible with LFS version 7.0. I would like to utilize Debian as my host distro for the LFS build as many successful distro's seem to be forked off Debian. Debian has a good package manager and separates free and non-free software quite well. However after reading Debian's installation procedure, I'm not sure If I have the technical experience to install a distro that requires users to install multiple CD's. I notice that other distro's offer their iso images that can fit on one CD (this I would prefer). I did hear that Debian offers an iso image that will -in fact- fit on one CD and is easy to install but I have not been able to locate the link. Also, If any one can recommend a different distro and why or a distro that historically has been a good match for Linux-From_Scratch I would very much appreciate it? Hi Wally, This is almost asking like what kind of beer someone likes or what kind of food they like To build LFS, and with your system specs, any will do. I had a dual p3 1.4 tualatin system which built like a champ and pretty darn fast. If you choose debian, and if you want a minimal system to build LFS from, use the netinst iso for i386. Then you can install what you need to build LFS from there such as: I would also suggest slackware as a good host to build from. Install the dev set and you will be fine. Just meet the host system requirements as stated here: http:// www.linuxfromscratch.org/lfs/view/stable/prologue/hostreqs.html apt-get install bison flex m4 texinfo gawk ncurses-dev dpkg- reconfigure dash ( use bash for default shell) Other than that I use slackware. If you want a live system, the udpated livecd I have created will do just fine.. http://cross-lfs.org/~kb0iic/livecdupd/ Sincerely, William Harrington -- 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: [lfs-support] Host Distribution
On Mon, Sep 24, 2012 at 9:03 PM, Ken Moffat wrote: Umm, why ? Seriously, most people came here after either starting to loathe their current distro (can you say package management? :) or else because they were using a distro and wanted to learn more. Conversely, debian and its derivatives have a liking for old packages (e.g. mawk instead of gawk) and will need some additions and changes - see William's reply. But in general, all you should need to do is to check the host system requirements in the preface. The best host system is, of course, the current version of LFS - but for most people that isn't a practical option ;) Hi Ken, Thank you for the suggestions. I want the challenge to create a distro. It will give me a better idea of what's behind an OS. Sure I can just install Linux Mint, Ubuntu or whatever and call it a day. But I'm approaching it from a programmers perspective. Plus I would like to help a fellow distro builder with his new version and the way to get on their dev team is to understand what's behind a distro and what makes it tick. As you know, it's all self learning with online support and mailing lists such as this. What better way to learn than to build a LFS distro. That's all. If it takes me a year to complete (or more) so be it. :) Thanks for that Debian update. That was interesting. Yes I did read Williams reply. Thank you. Yes I did read the host requirements in the preface section but remember, I'm new to all this. I have no clue how to check a distro to see if it meets the requirements. I'm going to start from scratch. One step at a time. Learn all the lingo and build exercises and read the Essential Pre-Reading for Life with LFS (again and again). Thanks again Ken Wally On Mon, Sep 24, 2012 at 9:03 PM, Ken Moffat zarniwh...@ntlworld.com wrote: On Mon, Sep 24, 2012 at 08:14:33PM -0400, Wally Lepore wrote: Hi Members, I hope to begin the journey of learning to build my own LFS distro and have been reading the Essential Pre-Reading Guide for Life with LFS (over and over) as well as the LFS book itself. I'm beginning to become familiar with all the terminology and would like some advice on choosing a host distro. This first step is daunting to say the least. Umm, why ? Seriously, most people came here after either starting to loathe their current distro (can you say package management? :) or else because they were using a distro and wanted to learn more. In theory, any recent distro should do. At times, fedora has been *too* new, or difficult (linker options, security features), but I haven't seen any such reports recently. Conversely, debian and its derivatives have a liking for old packages (e.g. mawk instead of gawk) and will need some additions and changes - see William's reply. But in general, all you should need to do is to check the host system requirements in the preface. The best host system is, of course, the current version of LFS - but for most people that isn't a practical option ;) ĸen -- das eine Mal als Tragödie, das andere Mal als Farce -- 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: [lfs-support] Host Distribution
On Mon, Sep 24, 2012 at 9:11 PM, Baho Utot wrote: Hi Baho, I can wait to finish the base build of LFS-7.2 and get on to BLFS. This distros of late are just terrible! By learning to build my own distro, I will soon discover (ok, someday discover) what makes a great distro (IMHO). :-) Regards Wally On Mon, Sep 24, 2012 at 9:11 PM, Baho Utot baho-u...@columbus.rr.com wrote: On 09/24/2012 09:03 PM, Ken Moffat wrote: On Mon, Sep 24, 2012 at 08:14:33PM -0400, Wally Lepore wrote: Hi Members, I hope to begin the journey of learning to build my own LFS distro and have been reading the Essential Pre-Reading Guide for Life with LFS (over and over) as well as the LFS book itself. I'm beginning to become familiar with all the terminology and would like some advice on choosing a host distro. This first step is daunting to say the least. Umm, why ? Seriously, most people came here after either starting to loathe their current distro (can you say package management? :) or else because they were using a distro and wanted to learn more. In theory, any recent distro should do. At times, fedora has been *too* new, or difficult (linker options, security features), but I haven't seen any such reports recently. Conversely, debian and its derivatives have a liking for old packages (e.g. mawk instead of gawk) and will need some additions and changes - see William's reply. I used fedora 17 to build LFS-6.8 to LFS-7.2, both i686 and x86_64. I just use the kde spin variant. If I remember correctly all you need to do is to add gcc. I can wait to finish the base build of LFS-7.2 and get on to BLFS. This distros of late are just terrible! -- 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: [lfs-support] Chapter 2.3 berzerkula
After creating your partitions, did your system update the block devices available? Sorry, I don't know what that means. The host portition in this case is my previous build of LFS. The computers has been restarted many time since I set up the partitions. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] Host Distribution
On Sep 24, 2012, at 20:19 PM, Wally Lepore wrote: William, I can't find that Debian iso link you recommend. I was at their site and did not see the link for netinst i386. Can you please locate? http://www.debian.org/CD/netinst/ Then: apt-get install bison flex m4 texinfo gawk ncurses-dev dpkg- reconfigure dash ( use bash for default shell) Then install telnet or openssh daemon to connect to it from a host where you view the book and can copy and paste book commands. Sincerely, William Harrington -- 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 2.3 Ken Moffat Ken
I do understand that swap can be used by all linux systems on the machine, my questions was on the importance of initialzing it and and the errors I was getting from enter the given LFS commands. I also understand that thing change over time, I was well aware that HDs use to be refered to as hdx and now sdx. The thing was, I didn't see anything reasons for my previous LFS build to be using hdx and thus was having a problem that took some time to figure out. I do still need to learn all the 32 vs 64 bit references I'll admit, (x86, i386, x8663).You're worried about be being able to configure the kernelm (well, me to actually) did you see where this is my second build? -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] Host Distribution
On Mon, Sep 24, 2012 at 10:02 PM, William Harrington wrote: http://www.debian.org/CD/netinst/ Then: apt-get install bison flex m4 texinfo gawk ncurses-dev dpkg- reconfigure dash ( use bash for default shell) Then install telnet or openssh daemon to connect to it from a host where you view the book and can copy and paste book commands. Hi William, Great. Thank you. Reading the link now. Ok, I've narrowed it down to two choices as a host distro for LFS. Debian or Slackware? Don't forget, I'm new and will have many questions as I study the book and all sources :-) Thanks so much Wally On Mon, Sep 24, 2012 at 10:02 PM, William Harrington berzerk...@cox.net wrote: On Sep 24, 2012, at 20:19 PM, Wally Lepore wrote: William, I can't find that Debian iso link you recommend. I was at their site and did not see the link for netinst i386. Can you please locate? http://www.debian.org/CD/netinst/ Then: apt-get install bison flex m4 texinfo gawk ncurses-dev dpkg- reconfigure dash ( use bash for default shell) Then install telnet or openssh daemon to connect to it from a host where you view the book and can copy and paste book commands. Sincerely, William Harrington -- 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: [lfs-support] Host Distribution
I recently completed the LFS project and I successfully used Debian as my host system. Don't remember where but I did find a Debian, one CD or maybe it was a DVD I don't remember, install disk. -- 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 2.3 Ken Moffat Ken
Ken Moffat wrote: 3. Actually, you *don't* need to figure out all the 32 vs 64 bit stuff - unless you want to. Agree. GCC works better with more registers, which is one of the main reasons for using x86_64 - the drawback is that pointers are 64-bit so take more space http://www.linuxfromscratch.org/lfs/view/stable/prologue/architecture.html That was written several years ago. We can probably reword it to recommend either a 32-bit or 64-bit Intel architecture. With disk space plentiful today, the space issue is really not that meaningful. I have not run into a package that doesn't build on a 64-bit system in quite a long while. -- 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] Host Distribution
On Mon, Sep 24, 2012 at 10:28 PM, Garrett Gaston wrote: I recently completed the LFS project and I successfully used Debian as my host system. Don't remember where but I did find a Debian, one CD or maybe it was a DVD I don't remember, install disk. On Mon, Sep 24, 2012 at 10:02 PM, William Harrington wrote: http://www.debian.org/CD/netinst/ Hi Garrett, Why did you choose Debian as your host distro? William sent me the link to the Debian one CD install (above). Regards Wally http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page On Mon, Sep 24, 2012 at 10:28 PM, Garrett Gaston garret...@hotmail.com wrote: I recently completed the LFS project and I successfully used Debian as my host system. Don't remember where but I did find a Debian, one CD or maybe it was a DVD I don't remember, install disk. -- 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