Re: [lfs-support] Compile error glibc2.33 -> binutils-2.36.1

2021-02-11 Thread Ken Moffat
On Thu, Feb 11, 2021 at 12:01:12PM -0600, Bruce Dubbs wrote:
> On 2/11/21 8:38 AM, Ken Moffat wrote:
> > On Thu, Feb 11, 2021 at 11:17:27AM +0100, Pierre Labastie wrote:
> > 
> > I've now applied that to 5.10.15-rc1 and confirmed it builds and
> > boots.  Gotta go out right now for provisions, will use my other
> > mail to inform the relevant people that this fixes builds with
> > binutils-2.36.1 when I get back.
> 
> The 5.10.15 kernel is now out, but I can confirm that the patch above has
> NOT been incorporated.
> 
> Do we know when 5.11 will be released?  We are scheduled to go into package
> freeze on Sunday, but if it is not fixed yet, I think we should wait for it.
> 
>   -- Bruce
> 
5.11 is expected on Sunday night.  We normally wait for .1 versions
(and the patch has missed 5.10.16 by the look of things (5.10.16-rc1
was released before I sent my mail), no idea if it will arrive in
5.10.18 - it looks as if it had been filed under "breaks clang, but
that is maybe broken anyway" (although Linus apparently now uses
it).

And we are expecting the (low severity) new version of OpenSSL next
Tuesday.

Broadening this, any thought on the change to adapt glibc for (at
least) older AMD K10 hardware ?

ĸen
-- 
Any attempt to brew coffee with a teapot should result in the error
code "418 I'm a teapot". The resulting entity body MAY be short and
stout. -- rfc 2324 (1st April 1998)

-- 
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] Low Level forum

2021-02-11 Thread geist1...@juno.com

Hi  Viktor Engelmann; First, IF You are the Viktor that did the series on 
building an operating "I want to say Thank You", This series is and was Great.. 
Second, and the main reason for my Sending You this email, I tried to Register 
on the LowLevel Forum, and something went Wrong and even though I type in my 
name (Marty G) and Password, it tells me that I need to Activate it, but, when 
I try to activate it, it says I can't do that or something is wrong and rejects 
my attempt to activate.. It's as though I need to activate it to make the 
activate work.. I think when I originally registered I did something wrong, and 
so my password and activation won't work ..  Would You please let someone know 
who runs this site, and have them please let me know "How I can get into the 
Forum".. I have tried another name, but it rejects that as well.. Thank You for 
Your Help.. THANK YOU Marty

Sponsored by 
https://www.newser.com/?utm_source=part_medium=uol_campaign=rss_taglines_more

'I'm Afraid He's Going to Run Again and Lose'
http://thirdpartyoffers.juno.com/TGL3131/6025a8385d1f1283856ffst04duc1
Meghan Markle Wins Invasion-of-Privacy Case
http://thirdpartyoffers.juno.com/TGL3131/6025a83881106283856ffst04duc2
Saudi Activist's Release Seen as a Nod to Biden
http://thirdpartyoffers.juno.com/TGL3131/6025a838a56ab283856ffst04duc3-- 
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] Compile error glibc2.33 -> binutils-2.36.1

2021-02-11 Thread Douglas R. Reno


On 2/11/21 2:19 PM, Ken Moffat wrote:

On Thu, Feb 11, 2021 at 12:01:12PM -0600, Bruce Dubbs wrote:

On 2/11/21 8:38 AM, Ken Moffat wrote:

On Thu, Feb 11, 2021 at 11:17:27AM +0100, Pierre Labastie wrote:

I've now applied that to 5.10.15-rc1 and confirmed it builds and
boots.  Gotta go out right now for provisions, will use my other
mail to inform the relevant people that this fixes builds with
binutils-2.36.1 when I get back.

The 5.10.15 kernel is now out, but I can confirm that the patch above has
NOT been incorporated.

Do we know when 5.11 will be released?  We are scheduled to go into package
freeze on Sunday, but if it is not fixed yet, I think we should wait for it.

   -- Bruce


5.11 is expected on Sunday night.  We normally wait for .1 versions
(and the patch has missed 5.10.16 by the look of things (5.10.16-rc1
was released before I sent my mail), no idea if it will arrive in
5.10.18 - it looks as if it had been filed under "breaks clang, but
that is maybe broken anyway" (although Linus apparently now uses
it).

And we are expecting the (low severity) new version of OpenSSL next
Tuesday.

Broadening this, any thought on the change to adapt glibc for (at
least) older AMD K10 hardware ?


On the glibc change, we should definitely proceed I think. I can 
reproduce it on Sandy Bridge Intel as well, and my SysV box is affected too.


This is a tough one, hopefully Bruce has more insight. We could just do 
-rc1 with Linux 5.11 (no point version), but not sure if that's the best 
way to approach things either


- Doug

--
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] Compile error glibc2.33 -> binutils-2.36.1

2021-02-11 Thread Ken Moffat
On Thu, Feb 11, 2021 at 11:17:27AM +0100, Pierre Labastie wrote:
> On Thu, 2021-02-11 at 12:28 +0800, Xi Ruoyao wrote:
> > On 2021-02-10 21:57 -0500, Jean-Marc Pigeon wrote:
> > > Bonjour Xi (hello the list),
> > > 
> > > On Thu, 2021-02-11 at 10:51 +0800, Xi Ruoyao wrote:
> > > > On 2021-02-10 22:47 +0100, Pierre Labastie wrote:
> > > > > On Wed, 2021-02-10 at 21:03 +, Ken Moffat wrote:
> > > > > > On Wed, Feb 10, 2021 at 08:49:56PM +, Ken Moffat wrote:

> > > > > 
> > > > > I managed to compile objtool with -g, to recompile apic.c to
> > > > > apic.o
> > > > > (because it gets erased when objtool fails), and to run the
> > > > > objtool
> > > > > command on it under gdb. The segfault is esay to understand:
> > > > > 
> > > > > Program received signal SIGSEGV, Segmentation fault.
> > > > > 0x00412f71 in elf_rebuild_rela_reloc_section
> > > > > (sec=0xe22b10,
> > > > > nr=16)
> > > > >     at elf.c:883
> > > > > 883 relocs[idx].r_info = GELF_R_INFO(reloc-
> > > > > > sym-
> > > > > > idx, reloc->type);
> > > > > 
> > > > > and the reloc struct is:
> > > > > (gdb) p *reloc
> > > > > $2 = {list = {next = 0xe23240, prev = 0xe23160}, hash = {next =
> > > > > 0x0, 
> > > > >     pprev = 0xe23250}, {rela = {r_offset = 0, r_info = 0,
> > > > > r_addend
> > > > > =
> > > > > 0}, 
> > > > >     rel = {r_offset = 0, r_info = 0}}, sec = 0xe22b10, sym =
> > > > > 0x0,
> > > > > offset = 48, 
> > > > >   type = 2, addend = 467, idx = 0, jump_table_start = false}
> > > > > 
> > > > > So reloc->sym is zero, and reloc->sym->idx is a null
> > > > > dereference...
> > > > > 
> > > > > Now to understand why reloc->sym is zero is more complicated...
> > > > 
> > > > I can reproduce it too with Ken's config and just "make
> > > > arch/x86/kernel/apic/apic.o".
> > > > 
> > > > I seen a strange warning in build:
> > > > 
> > > > > Warning: Kernel ABI header at 'tools/arch/x86/lib/insn.c'
> > > > > differs
> > > > > from latest
> > > > > version at 'arch/x86/lib/insn.c'
> > > > 
> > > > Not sure if it causes the segfault.  I'll try 5.10.15 and if it's
> > > > not
> > > > fixed I'll
> > > > report it as a kernel bug.
> > > do you confirm it is binutil-2.36.1 related or 
> > > is it a kernel only problem?
> > 
> > I can't confirm or disconfirm.  It's beyond my knowledge.  But I
> > decided to
> > report it to the kernel bugzilla.  If kernel dev thinks it's a
> > binutils bug they
> > can report to binutils anyway.
> > 
> > And, this issue seems "fixed" in 5.11-rc7 so I think the kernel dev
> > may have
> > some idea of it.
> 
> Looks like
> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=44f6a7c0755d8dd453c70557e11687bb080a6f21
> 
> 
> fixes it (at least with Ken's configuration). I've applied this patch
> to 5.10.13 tree (I had also to download the skl_dmc_ver1_27.bin
> firmware to /lib/frimware/i915 to allow the build with Ken's config).
> 
> Pierre
> 
Pierre, thanks for finding the patch.  After I'd gone to bed it
occurred to me that I would need to download earlier 5.11-rc kernels
to find which one fixed it, and then do a reverse bisect to find
which commit fixed it (the logic of that always makes me even more
confused than normal), so many thanks for saving me that confusion!

I've now applied that to 5.10.15-rc1 and confirmed it builds and
boots.  Gotta go out right now for provisions, will use my other
mail to inform the relevant people that this fixes builds with
binutils-2.36.1 when I get back.

Cheers.

ĸen
-- 
Any attempt to brew coffee with a teapot should result in the error
code "418 I'm a teapot". The resulting entity body MAY be short and
stout. -- rfc 2324 (1st April 1998)

-- 
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] Compile error glibc2.33 -> binutils-2.36.1

2021-02-11 Thread Bruce Dubbs

On 2/11/21 8:38 AM, Ken Moffat wrote:

On Thu, Feb 11, 2021 at 11:17:27AM +0100, Pierre Labastie wrote:

On Thu, 2021-02-11 at 12:28 +0800, Xi Ruoyao wrote:

On 2021-02-10 21:57 -0500, Jean-Marc Pigeon wrote:


[snip]


And, this issue seems "fixed" in 5.11-rc7 so I think the kernel dev
may have
some idea of it.


Looks like
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=44f6a7c0755d8dd453c70557e11687bb080a6f21


fixes it (at least with Ken's configuration). I've applied this patch
to 5.10.13 tree (I had also to download the skl_dmc_ver1_27.bin
firmware to /lib/frimware/i915 to allow the build with Ken's config).

Pierre


Pierre, thanks for finding the patch.  After I'd gone to bed it
occurred to me that I would need to download earlier 5.11-rc kernels
to find which one fixed it, and then do a reverse bisect to find
which commit fixed it (the logic of that always makes me even more
confused than normal), so many thanks for saving me that confusion!

I've now applied that to 5.10.15-rc1 and confirmed it builds and
boots.  Gotta go out right now for provisions, will use my other
mail to inform the relevant people that this fixes builds with
binutils-2.36.1 when I get back.


The 5.10.15 kernel is now out, but I can confirm that the patch above 
has NOT been incorporated.


Do we know when 5.11 will be released?  We are scheduled to go into 
package freeze on Sunday, but if it is not fixed yet, I think we should 
wait for it.


  -- 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] Compile error glibc2.33 -> binutils-2.36.1

2021-02-11 Thread Pierre Labastie
On Thu, 2021-02-11 at 12:28 +0800, Xi Ruoyao wrote:
> On 2021-02-10 21:57 -0500, Jean-Marc Pigeon wrote:
> > Bonjour Xi (hello the list),
> > 
> > On Thu, 2021-02-11 at 10:51 +0800, Xi Ruoyao wrote:
> > > On 2021-02-10 22:47 +0100, Pierre Labastie wrote:
> > > > On Wed, 2021-02-10 at 21:03 +, Ken Moffat wrote:
> > > > > On Wed, Feb 10, 2021 at 08:49:56PM +, Ken Moffat wrote:
> > > > > > > 
> > > > > > > Looks like I need to change the Frame pointer unwinder to
> > > > > > > the
> > > > > > > ORC unwinder to have the same config as you.
> > > > > > > 
> > > > > > 
> > > > > > The benefits of the ORC unwinder are mentioned at
> > > > > > https://www.kernel.org/doc/html/latest/x86/orc-unwinder.html
> > > > > > 
> > > > > > It has been around for quite some time, but I probably
> > > > > > picked
> > > > > > it
> > > > > > up when it first appeared (test an -rc kernel, pick up new
> > > > > > options
> > > > > > which might be useful).  I guess that old configs from
> > > > > > before
> > > > > > its
> > > > > > introduction still default to the old unwinder.
> > > > > > 
> > > > > In fact it caused trouble about 3 years ago, there are links
> > > > > to
> > > > > the
> > > > > -dev archive from around January 2018 when elfutils was still
> > > > > in
> > > > > BLFS, and at that time LFS had to use the frame pointer.  So
> > > > > when
> > > > > libelf arrived in LFS I started to use it (or use it again,
> > > > > not
> > > > > sure
> > > > > which).
> > > > > 
> > > > 
> > > > I managed to compile objtool with -g, to recompile apic.c to
> > > > apic.o
> > > > (because it gets erased when objtool fails), and to run the
> > > > objtool
> > > > command on it under gdb. The segfault is esay to understand:
> > > > 
> > > > Program received signal SIGSEGV, Segmentation fault.
> > > > 0x00412f71 in elf_rebuild_rela_reloc_section
> > > > (sec=0xe22b10,
> > > > nr=16)
> > > >     at elf.c:883
> > > > 883 relocs[idx].r_info = GELF_R_INFO(reloc-
> > > > > sym-
> > > > > idx, reloc->type);
> > > > 
> > > > and the reloc struct is:
> > > > (gdb) p *reloc
> > > > $2 = {list = {next = 0xe23240, prev = 0xe23160}, hash = {next =
> > > > 0x0, 
> > > >     pprev = 0xe23250}, {rela = {r_offset = 0, r_info = 0,
> > > > r_addend
> > > > =
> > > > 0}, 
> > > >     rel = {r_offset = 0, r_info = 0}}, sec = 0xe22b10, sym =
> > > > 0x0,
> > > > offset = 48, 
> > > >   type = 2, addend = 467, idx = 0, jump_table_start = false}
> > > > 
> > > > So reloc->sym is zero, and reloc->sym->idx is a null
> > > > dereference...
> > > > 
> > > > Now to understand why reloc->sym is zero is more complicated...
> > > 
> > > I can reproduce it too with Ken's config and just "make
> > > arch/x86/kernel/apic/apic.o".
> > > 
> > > I seen a strange warning in build:
> > > 
> > > > Warning: Kernel ABI header at 'tools/arch/x86/lib/insn.c'
> > > > differs
> > > > from latest
> > > > version at 'arch/x86/lib/insn.c'
> > > 
> > > Not sure if it causes the segfault.  I'll try 5.10.15 and if it's
> > > not
> > > fixed I'll
> > > report it as a kernel bug.
> > do you confirm it is binutil-2.36.1 related or 
> > is it a kernel only problem?
> 
> I can't confirm or disconfirm.  It's beyond my knowledge.  But I
> decided to
> report it to the kernel bugzilla.  If kernel dev thinks it's a
> binutils bug they
> can report to binutils anyway.
> 
> And, this issue seems "fixed" in 5.11-rc7 so I think the kernel dev
> may have
> some idea of it.

Looks like
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=44f6a7c0755d8dd453c70557e11687bb080a6f21


fixes it (at least with Ken's configuration). I've applied this patch
to 5.10.13 tree (I had also to download the skl_dmc_ver1_27.bin
firmware to /lib/frimware/i915 to allow the build with Ken's config).

Pierre


-- 
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