Re: [lfs-support] preprocessor error
On Thu, Mar 22, 2012 at 10:27:34PM +, Ken Moffat wrote: On Thu, Mar 22, 2012 at 04:05:47PM -0500, Bruce Dubbs wrote: Ken Moffat wrote: In my case (also with separate /boot partitions) I have a directory 'boot' on the boot partition (i.e. /boot/boot when everything is mounted) containing a symlink called 'grub' pointing to ../grub. I think that I created it (with /boot mounted, so from the host system) using mkdir /boot/boot ln s ../grub /boot/boot Say what? If you have a separate boot partition mounted on /mnt/lfs/boot (/boot within chroot) when you run grub-install, then everything should be installed in the correct location. Those extra commands should not be needed. [...] I realise that a separate /boot seems to be uncommon, even among LFS users, but the problem I had is mentioned only rarely, if at all, so maybe there is something else which contributed to it. Perhaps it was even a bug in 1.97 (failed to find the files in $root/grub). Update - I did an install on a new machine today, using LFS-7.1 with a separate /boot partition, and after building/installing grub-1.99 it did NOT need the symlink, so I guess it really was a grub-1.97 bug. ĸ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] preprocessor error
Ken Moffat wrote: Update - I did an install on a new machine today, using LFS-7.1 with a separate /boot partition, and after building/installing grub-1.99 it did NOT need the symlink, so I guess it really was a grub-1.97 bug. I didn't need it for 1.97. I think it more likely that you had an issue with your customization. In amy casy, I'm glad it's working for you now. -- 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] preprocessor error
Hello, i have finished the installation without any errors. Only now, grub want not start the LFS System. File not found is the message from Grub. Regards Silvio -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] preprocessor error
siefke_lis...@web.de wrote: Hello, i have finished the installation without any errors. Only now, grub want not start the LFS System. File not found is the message from Grub. This falls in the category of It doesn't work. We can't help if you don't give any details. Where is the kernel installed? A directory listing of /boot and the layout of your disk would help. Also post the contents of /boot/grub/grub.cfg. -- 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] preprocessor error
Hello, On Thu, 22 Mar 2012 10:45:34 -0500 Bruce Dubbs wrote: This falls in the category of It doesn't work. We can't help if you don't give any details. Where is the kernel installed? A directory listing of /boot and the layout of your disk would help. Also post the contents of /boot/grub/grub.cfg. oh so i mean not. Okay i try much things it want not start. I think it was i use a boot Partion. I have now start new, and first run was without any errors :) and now i make secound steps and then we see what happen. Regards Silvio -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] preprocessor error
On Thu, Mar 22, 2012 at 05:48:37PM +0100, siefke_lis...@web.de wrote: Hello, On Thu, 22 Mar 2012 10:45:34 -0500 Bruce Dubbs wrote: This falls in the category of It doesn't work. We can't help if you don't give any details. Where is the kernel installed? A directory listing of /boot and the layout of your disk would help. Also post the contents of /boot/grub/grub.cfg. oh so i mean not. Okay i try much things it want not start. I think it was i use a boot Partion. I have now start new, and first run was without any errors :) and now i make secound steps and then we see what happen. Regards Silvio When you've got to the end, it's usually best to *wait* for advice, repeating the build without understanding the problem is not a reliable way to get better results! As you guessed, separate boot partitions can give problems with grub2. In my case (also with separate /boot partitions) I have a directory 'boot' on the boot partition (i.e. /boot/boot when everything is mounted) containing a symlink called 'grub' pointing to ../grub. I think that I created it (with /boot mounted, so from the host system) using mkdir /boot/boot ln s ../grub /boot/boot I think this is necessary because grub installed its many components into /boot/grub and assumes that is where they should be when it needs them. ĸ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] preprocessor error
On Thu, 22 Mar 2012 19:35:17 + Ken Moffat wrote: When you've got to the end, it's usually best to *wait* for advice, repeating the build without understanding the problem is not a reliable way to get better results! Yes thats correct. But i has some error message in build process, and so im was worried is really all good. So i has started new. As you guessed, separate boot partitions can give problems with grub2. In my case (also with separate /boot partitions) I have a directory 'boot' on the boot partition (i.e. /boot/boot when everything is mounted) containing a symlink called 'grub' pointing to ../grub. I think that I created it (with /boot mounted, so from the host system) using mkdir /boot/boot ln s ../grub /boot/boot I has make so. mount /dev/sda3 /mnt/lfs mkdir /mnt/lfs/boot mount /dev/sda1 /mnt/lfs/boot Its free the root Partion have mounted with handbook of lfs. So was correct Path /boot/grub. That is why i not understand the message from grub, because Path was correct, Kernel was correct with name. Has not understand so i think it a build error. I think this is necessary because grub installed its many components into /boot/grub and assumes that is where they should be when it needs them. Yes Regards Silvio -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] preprocessor error
Ken Moffat wrote: As you guessed, separate boot partitions can give problems with grub2. Then I haven't done a good job at explaining. One recommendation is to have a separate small partition just for boot information. That way each build, whether LFS or some commercial distro, can access the same boot files and access can be made from any booted system. If you choose to do this, you will need to mount the separate partition, move all files in the current /boot directory (e.g. the linux kernel you just built in the previous section) to the new partition. You will then need to unmount the partition and remount it as /boot. If you do this, be sure to update /etc/fstab. ... cat /boot/grub/grub.cfg EOF # Begin /boot/grub/grub.cfg set default=0 set timeout=5 insmod ext2 set root=(hd0,2) menuentry GNU/Linux, Linux 3.2.11-lfs-SVN-20120314 { linux /boot/vmlinuz-3.2.11-lfs-SVN-20120314 root=/dev/sda2 ro } EOF If you used a separate /boot partition, remove /boot from the above linux line. You will also need to change the set root line to point to the boot partition. In my case (also with separate /boot partitions) I have a directory 'boot' on the boot partition (i.e. /boot/boot when everything is mounted) containing a symlink called 'grub' pointing to ../grub. I think that I created it (with /boot mounted, so from the host system) using mkdir /boot/boot ln s ../grub /boot/boot Say what? If you have a separate boot partition mounted on /mnt/lfs/boot (/boot within chroot) when you run grub-install, then everything should be installed in the correct location. Those extra commands should not be needed. I think this is necessary because grub installed its many components into /boot/grub and assumes that is where they should be when it needs them. Grub looks for grub/ in a couple of places, the first is $root/grub and then $root/boot/grub where the 'set root' command is used, but not the 'root=' portion of the linux line. Can you suggest better wording for the book? -- 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] preprocessor error
On Thu, Mar 22, 2012 at 04:05:47PM -0500, Bruce Dubbs wrote: Ken Moffat wrote: In my case (also with separate /boot partitions) I have a directory 'boot' on the boot partition (i.e. /boot/boot when everything is mounted) containing a symlink called 'grub' pointing to ../grub. I think that I created it (with /boot mounted, so from the host system) using mkdir /boot/boot ln s ../grub /boot/boot Say what? If you have a separate boot partition mounted on /mnt/lfs/boot (/boot within chroot) when you run grub-install, then everything should be installed in the correct location. Those extra commands should not be needed. I haven't reinstalled grub since the first version which compiled on x86_64, perhaps 1.97. At that time, either I was in chroot with /boot mounted like that, or else I had used lilo or grub1 to boot the new system - in that case, /boot would have been mounted at /boot directly. Testing bootloaders gives me too much grief (in terms of pre-planning so that I can recover if things go wrong. I remember that it took me a few retries to get it to work, and I'm sure I commented, maybe in lfs-support, at that time. For the other two boxes I've moved to grub2, I just installed the symlink as a matter of course because it worked for me. I think this is necessary because grub installed its many components into /boot/grub and assumes that is where they should be when it needs them. Grub looks for grub/ in a couple of places, the first is $root/grub and then $root/boot/grub where the 'set root' command is used, but not the 'root=' portion of the linux line. Can you suggest better wording for the book? -- Bruce Not for the moment. I realise that a separate /boot seems to be uncommon, even among LFS users, but the problem I had is mentioned only rarely, if at all, so maybe there is something else which contributed to it. Perhaps it was even a bug in 1.97 (failed to find the files in $root/grub). The wording is enough to indicate that things might not work as expected, I'm not going to suggest something different unless I get a better grip on the problem. But, I don't normally upgrade grub, so not very likely. ĸ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] preprocessor error
Hello, now in Build LFS System, GCC come the error again. checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether /sources/gcc-build/./gcc/xgcc -B/sources/gcc-build/./gcc/ -B/usr/i686-pc-linux-gnu/bin/ -B/usr/i686-pc-linux-gnu/lib/ -isystem /usr/i686-pc-linux-gnu/include -isystem /usr/i686-pc-linux-gnu/sys-includeaccepts -g... yes checking for /sources/gcc-build/./gcc/xgcc -B/sources/gcc-build/./gcc/ -B/usr/i686-pc-linux-gnu/bin/ -B/usr/i686-pc-linux-gnu/lib/ -isystem /usr/i686-pc-linux-gnu/include -isystem /usr/i686-pc-linux-gnu/sys-includeoption to accept ISO C89... unsupported checking how to run the C preprocessor... /lib/cpp configure: error: in `/sources/gcc-build/i686-pc-linux-gnu/libgcc': configure: error: C preprocessor /lib/cpp fails sanity check See `config.log' for more details. make[1]: *** [configure-target-libgcc] Error 1 make[1]: Leaving directory `/sources/gcc-build' make: *** [all] Error 2 The config.log find under http://nopaste.info/87120df9c2.html. I have deleteted the folder and start with new gcc folders. But the error message come again. Have someone a idea? -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] preprocessor error
On Wed, Mar 21, 2012 at 7:01 AM, siefke_lis...@web.de siefke_lis...@web.de wrote: Hello, now in Build LFS System, GCC come the error again. checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether /sources/gcc-build/./gcc/xgcc -B/sources/gcc-build/./gcc/ -B/usr/i686-pc-linux-gnu/bin/ -B/usr/i686-pc-linux-gnu/lib/ -isystem /usr/i686-pc-linux-gnu/include -isystem /usr/i686-pc-linux-gnu/sys-include accepts -g... yes checking for /sources/gcc-build/./gcc/xgcc -B/sources/gcc-build/./gcc/ -B/usr/i686-pc-linux-gnu/bin/ -B/usr/i686-pc-linux-gnu/lib/ -isystem /usr/i686-pc-linux-gnu/include -isystem /usr/i686-pc-linux-gnu/sys-include option to accept ISO C89... unsupported checking how to run the C preprocessor... /lib/cpp configure: error: in `/sources/gcc-build/i686-pc-linux-gnu/libgcc': configure: error: C preprocessor /lib/cpp fails sanity check See `config.log' for more details. make[1]: *** [configure-target-libgcc] Error 1 make[1]: Leaving directory `/sources/gcc-build' make: *** [all] Error 2 The config.log find under http://nopaste.info/87120df9c2.html. In your config.log, on several lines, there is the message: # /sources/gcc-4.6.2/libgcc/configure: line 1441: /lib/cpp: No such file or directory It looks like the symbolic link wasn't created correctly. (Hopefully it is as simple as that.) Double check with the installation of GCC in Ch6 of the LFS book. ~rick PS. my complements on having the foresight to provide the config.log file! -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] preprocessor error
On Wed, 21 Mar 2012 07:17:44 -0600 Rick Shelton rick.shel...@gmail.com wrote: In your config.log, on several lines, there is the message: # /sources/gcc-4.6.2/libgcc/configure: line 1441: /lib/cpp: No such file or directory It looks like the symbolic link wasn't created correctly. (Hopefully it is as simple as that.) Double check with the installation of GCC in Ch6 of the LFS book. Yes i have check the configure Arguments in 2 Phase of GCC installation, was with enable_languages=c,c++, so i set the symlink and start again. Hope it run. Regards Silvio -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] preprocessor error
On Wed, 21 Mar 2012 13:02:09 + siefke_lis...@web.de siefke_lis...@web.de wrote: Hello, now in Build LFS System, GCC come the error again. checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether /sources/gcc-build/./gcc/xgcc -B/sources/gcc-build/./gcc/ -B/usr/i686-pc-linux-gnu/bin/ -B/usr/i686-pc-linux-gnu/lib/ -isystem /usr/i686-pc-linux-gnu/include -isystem /usr/i686-pc-linux-gnu/sys-includeaccepts -g... yes checking for /sources/gcc-build/./gcc/xgcc -B/sources/gcc-build/./gcc/ -B/usr/i686-pc-linux-gnu/bin/ -B/usr/i686-pc-linux-gnu/lib/ -isystem /usr/i686-pc-linux-gnu/include -isystem /usr/i686-pc-linux-gnu/sys-includeoption to accept ISO C89... unsupported checking how to run the C preprocessor... /lib/cpp configure: error: in `/sources/gcc-build/i686-pc-linux-gnu/libgcc': configure: error: C preprocessor /lib/cpp fails sanity check See `config.log' for more details. make[1]: *** [configure-target-libgcc] Error 1 make[1]: Leaving directory `/sources/gcc-build' make: *** [all] Error 2 The config.log find under http://nopaste.info/87120df9c2.html. I have deleteted the folder and start with new gcc folders. But the error message come again. Whereabouts in the book are you? Is this in /tools or in chroot? /sources/gcc-4.6.2/libgcc/configure: line 1441: /lib/cpp: No such file or directory It looks like you're in chroot 'cos it says /sources/gcc-4.6.2, in which case, why's it looking for /lib/cpp? We don't create /lib/cpp until after we've installed gcc, while you're configuring gcc, cpp should be /tools/lib/cpp. I suspect that something has gone wrong while you were adjusting the toolchain, but I don't know what. Andy -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] preprocessor error
Hello, On Wed, 21 Mar 2012 16:38:48 + Andrew Benton wrote: Whereabouts in the book are you? Is this in /tools or in chroot? Im in chroot, im in chapter 6. /sources/gcc-4.6.2/libgcc/configure: line 1441: /lib/cpp: No such file or directory I has symlinked now the cpp to /lib/cpp but the error message is the same. root:/sources/gcc-build# ls -l /lib | grep cpp lrwxrwxrwx 1 root root 12 Mar 21 14:28 cpp - /usr/bin/cpp It looks like you're in chroot 'cos it says /sources/gcc-4.6.2, in which case, why's it looking for /lib/cpp? We don't create /lib/cpp until after we've installed gcc, while you're configuring gcc, cpp should be /tools/lib/cpp. I suspect that something has gone wrong while you were adjusting the toolchain, but I don't know what. But in /tools/lib is no cpp. root:/bin# ls -l /tools/lib | grep cpp root:/bin# Mmh and the most dialogs i make copy and paste. I should start new i think or? Regards Silvio -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] preprocessor error
Hello, so i have try to build gcc with the symlink, but the error is the same. In config log is No such file or Directory. Config Log: http://nopaste.info/46ce92a6ab.html Can me someone say which simlink i must set. Or should begin new? Regards Silvio -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] preprocessor error
On 3/21/2012 1:03 PM, siefke_lis...@web.de wrote: Hello, On Wed, 21 Mar 2012 16:38:48 + Andrew Benton wrote: Whereabouts in the book are you? Is this in /tools or in chroot? Im in chroot, im in chapter 6. /sources/gcc-4.6.2/libgcc/configure: line 1441: /lib/cpp: No such file or directory I has symlinked now the cpp to /lib/cpp but the error message is the same. root:/sources/gcc-build# ls -l /lib | grep cpp lrwxrwxrwx 1 root root 12 Mar 21 14:28 cpp - /usr/bin/cpp It looks like you're in chroot 'cos it says /sources/gcc-4.6.2, in which case, why's it looking for /lib/cpp? We don't create /lib/cpp until after we've installed gcc, while you're configuring gcc, cpp should be /tools/lib/cpp. I suspect that something has gone wrong while you were adjusting the toolchain, but I don't know what. But in /tools/lib is no cpp. root:/bin# ls -l /tools/lib | grep cpp root:/bin# Mmh and the most dialogs i make copy and paste. I should start new i think or? I think /lib/cpp is not your problem, at this stage that should not exist as you have not installed the final build of gcc yet. However looking at the log you posted, one thing I noticed was several messages about missing stdio.h, now I believe that is a glibc header, do a check under your /usr/include directory and see if you find it. If not you may need to redo glibc, I believe your early enough in chapter 6 that you could rebuild it without too many issues. Thomas -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] preprocessor error
On 3/21/2012 4:12 PM, Thomas Pegg wrote: On 3/21/2012 1:03 PM, siefke_lis...@web.de wrote: Hello, On Wed, 21 Mar 2012 16:38:48 + Andrew Benton wrote: Whereabouts in the book are you? Is this in /tools or in chroot? Im in chroot, im in chapter 6. /sources/gcc-4.6.2/libgcc/configure: line 1441: /lib/cpp: No such file or directory I has symlinked now the cpp to /lib/cpp but the error message is the same. root:/sources/gcc-build# ls -l /lib | grep cpp lrwxrwxrwx 1 root root 12 Mar 21 14:28 cpp - /usr/bin/cpp It looks like you're in chroot 'cos it says /sources/gcc-4.6.2, in which case, why's it looking for /lib/cpp? We don't create /lib/cpp until after we've installed gcc, while you're configuring gcc, cpp should be /tools/lib/cpp. I suspect that something has gone wrong while you were adjusting the toolchain, but I don't know what. But in /tools/lib is no cpp. root:/bin# ls -l /tools/lib | grep cpp root:/bin# Mmh and the most dialogs i make copy and paste. I should start new i think or? I think /lib/cpp is not your problem, at this stage that should not exist as you have not installed the final build of gcc yet. However looking at the log you posted, one thing I noticed was several messages about missing stdio.h, now I believe that is a glibc header, do a check under your /usr/include directory and see if you find it. If not you may need to redo glibc, I believe your early enough in chapter 6 that you could rebuild it without too many issues. Scratch what I said about rebuilding glibc your already past the re-adjusting toolchain phase forgot how early that was in ch 6, you would probably be better to start over. Thomas -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] preprocessor error
Hello, On Wed, 21 Mar 2012 16:12:29 -0400 Thomas Pegg wrote: I think /lib/cpp is not your problem, at this stage that should not exist as you have not installed the final build of gcc yet. However looking at the log you posted, one thing I noticed was several messages about missing stdio.h, now I believe that is a glibc header, do a check under your /usr/include directory and see if you find it. If not you may need to redo glibc, I believe your early enough in chapter 6 that you could rebuild it without too many issues. at moment run the GCC checks, i have delete the folder from gcc and gcc-build and start with fresh folders. So i read on Maillingarchive from LFS. The file stdio.h is present in system in folder /usr/include. Regards Silvio -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page