Re: [lfs-support] binutils-2.20 and grub
Hallo On 02/03/2018 04:42 PM, Bruce Dubbs wrote: configure needs the following switch on 32 bit systems: --enable-64-bit-bfd >>> >>> Thomas, Have you tested you built grub? jhalfs logfile tells me that grub was built, and after grub-install I could boot the machine from the svn LFS partition. So I'd say that grub was built successfully. Tschau...Thomas -- "Do you wanna be a legend or a footprint on the sands of time?" -- http://lists.linuxfromscratch.org/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page Do not top post on this list. A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? http://en.wikipedia.org/wiki/Posting_style
Re: [lfs-support] binutils-2.20 and grub
Thomas Trepl wrote: Am Freitag, den 02.02.2018, 15:03 -0600 schrieb Bruce Dubbs: Thomas Seeling wrote: Hallo, I rebuilt LFS from SVN with kernel 4.15 gcc 7.3 on i686. # head -n7 /proc/cpuinfo processor : 0 vendor_id : GenuineIntel cpu family : 15 model : 4 model name : Intel(R) Pentium(R) 4 CPU 3.20GHz stepping: 9 microcode : 0x3 PTI offers mitigation against Meltdown, retpoline against Spectre v2. Basic LFS compiles fine with book settings, apart from grub where a minimal change was required in the final build of binutils 2.30. I admit I simply hacked the script 082-binutils in lfs-commands to achieve that. configure needs the following switch on 32 bit systems: --enable-64-bit-bfd Thomas, Have you tested you built grub? When I investigate the enable-64-bit-bfd option, the comment I see is "64-bit support (on hosts with narrower word sizes)" I am thinking about adding this unconditionally, but am a bit concerned that grub will try to run 64- bit code on a 32-bit system (and crash). I'm not sure that adding the option to a normal 64-bit build will hurt anyting, but I'll test that. Yes, got that hint from Pierre. It works pretty fine with this switch. Indeed, it seems to be a bit strange that 64bit code is generated on a 32bit system. Unfortunatly I'm not that deep in grub to see whether that code will ever be executed (or at least tried to). Would be cool if that switch could make it into the book as it wouldn't no longer require the build scripts to be patched every time. I'm just finishing building a new i686-system with thew new binutils, glibc and such. Will see whether grub still works (but i assume it as it allways did). I have added enable-64-bit-bfd into Chapter 6 binutils. May test build on a 64-bit system did not complain. I do not think it makes a difference on 54-bit systems, however we need to watch out for issues that may arise. -- Bruce -- http://lists.linuxfromscratch.org/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page Do not top post on this list. A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? http://en.wikipedia.org/wiki/Posting_style
Re: [lfs-support] binutils-2.20 and grub
Am Freitag, den 02.02.2018, 15:03 -0600 schrieb Bruce Dubbs: > Thomas Seeling wrote: > > Hallo, > > > > > > I rebuilt LFS from SVN with kernel 4.15 gcc 7.3 on i686. > > > > # head -n7 /proc/cpuinfo > > processor : 0 > > vendor_id : GenuineIntel > > cpu family : 15 > > model : 4 > > model name : Intel(R) Pentium(R) 4 CPU 3.20GHz > > stepping: 9 > > microcode : 0x3 > > > > > PTI offers mitigation against Meltdown, retpoline against Spectre > > > v2. > > > > Basic LFS compiles fine with book settings, apart from grub where a > > minimal change was required in the final build of binutils 2.30. I > > admit > > I simply hacked the script 082-binutils in lfs-commands to achieve > > that. > > > > configure needs the following switch on 32 bit systems: > > --enable-64-bit-bfd > > Thomas, Have you tested you built grub? When I investigate the > enable-64-bit-bfd option, the comment I see is "64-bit support (on > hosts > with narrower word sizes)" I am thinking about adding this > unconditionally, but am a bit concerned that grub will try to run 64- > bit > code on a 32-bit system (and crash). I'm not sure that adding the > option > to a normal 64-bit build will hurt anyting, but I'll test that. > > Yes, got that hint from Pierre. It works pretty fine with this switch. Indeed, it seems to be a bit strange that 64bit code is generated on a 32bit system. Unfortunatly I'm not that deep in grub to see whether that code will ever be executed (or at least tried to). Would be cool if that switch could make it into the book as it wouldn't no longer require the build scripts to be patched every time. I'm just finishing building a new i686-system with thew new binutils, glibc and such. Will see whether grub still works (but i assume it as it allways did). Thank you all! -- Thomas -- http://lists.linuxfromscratch.org/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page Do not top post on this list. A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? http://en.wikipedia.org/wiki/Posting_style
Re: [lfs-support] binutils-2.20 and grub
Thomas Seeling wrote: Hallo, I rebuilt LFS from SVN with kernel 4.15 gcc 7.3 on i686. # head -n7 /proc/cpuinfo processor : 0 vendor_id : GenuineIntel cpu family : 15 model : 4 model name : Intel(R) Pentium(R) 4 CPU 3.20GHz stepping: 9 microcode : 0x3 PTI offers mitigation against Meltdown, retpoline against Spectre v2. Basic LFS compiles fine with book settings, apart from grub where a minimal change was required in the final build of binutils 2.30. I admit I simply hacked the script 082-binutils in lfs-commands to achieve that. configure needs the following switch on 32 bit systems: --enable-64-bit-bfd Thomas, Have you tested you built grub? When I investigate the enable-64-bit-bfd option, the comment I see is "64-bit support (on hosts with narrower word sizes)" I am thinking about adding this unconditionally, but am a bit concerned that grub will try to run 64-bit code on a 32-bit system (and crash). I'm not sure that adding the option to a normal 64-bit build will hurt anyting, but I'll test that. -- Bruce -- http://lists.linuxfromscratch.org/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page Do not top post on this list. A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? http://en.wikipedia.org/wiki/Posting_style