Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 896034 - sys-devel/gcc-12.2.1_p20230211: ICEs in verify_flow_info (error: EDGE_CROSSING missing across section boundary) when building >=sys-kernel/gentoo-sources-6.1.8 or >=sys-kernel/gentoo-kernel-6.1.8
Summary: sys-devel/gcc-12.2.1_p20230211: ICEs in verify_flow_info (error: EDGE_CROSSIN...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: ARM64 Linux
: Normal major (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard: Plan is to keyword 12.2.1_p20230225
Keywords:
Depends on:
Blocks:
 
Reported: 2023-02-23 14:14 UTC by burningserenity
Modified: 2023-03-06 04:24 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description burningserenity 2023-02-23 14:14:21 UTC
Linux versions 6.1.9 and higher will fail to compile by GCC 12.2.1. It fails on compiling the ACPI drivers with KEDGE_CROSSING missing across section boundary.

Reproducible: Always

Steps to Reproduce:
1. Have GCC 12.2.1_p20230211 installed
2. Attempt to compile either gentoo-kernel version > 6.1.8 or vanilla Linux 6.2
3. Wait
Actual Results:  
Make exits with code 2 due to this error:
```
[01m[K/var/tmp/portage/sys-kernel/gentoo-kernel-6.1.12/work/linux-6.1/drivers/acpi/sleep.c:85:1:[m[K [01;31m[Kerror: [m[KEDGE_CROSSING missing across section boundary
   85 | [01;31m[K}[m[K
      | [01;31m[K^[m[K
during RTL pass: bbpart
[01m[K/var/tmp/portage/sys-kernel/gentoo-kernel-6.1.12/work/linux-6.1/drivers/acpi/sleep.c:85:1:[m[K [01;31m[Kinternal compiler error: [m[Kverify_flow_info failed
0x1e3f297 internal_error(char const*, ...)
   ???:0
0x9de0fe verify_flow_info()
   ???:0 
```

Expected Results:  
Linux compiles successfully

See [here](https://forums.gentoo.org/viewtopic-p-8778332.html#8778332) and [here](https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108596) for additional context.
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-02-23 14:17:18 UTC
If it's that exact bug, 12.2.1_p20230211 should be fine, as it was fixed several weeks ago.

Please include:
- emerge --info
- full build.log
- kernel config
- ideally preprocessed sources if you can
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-02-24 17:28:48 UTC
(In reply to burningserenity from comment #2)
> emerge --info: https://gist.github.com/02e6236f8fa13cc63379750550737c1a
> 
> build log: https://gist.github.com/58a31462e138782ea1ac9e7b206ae86b
> 
> kernel config: https://gist.github.com/112f89c3baa8d6b57e80d4b94b913223
> 
> source used:
> https://u.pcloud.link/publink/show?code=XZIu7PVZHquOv1Kt5qpXHtV4oUvwzjeApvpk

Please attach the relevant files so they don't get lost, but you can skip the source one.

Anyway, you're using 12.2.1_p20230121-r1, not 12.2.1_p20230211, which explains why you hit the issue.
Comment 4 burningserenity 2023-02-24 20:03:01 UTC
Okay so this won't be an issue once the 12.2.1_p20230211 package is stable. Thanks for clearing this up. Is there a way I can upgrade specifically gcc without changing to an experimental profile?
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-02-24 23:51:55 UTC
(In reply to burningserenity from comment #4)
> Okay so this won't be an issue once the 12.2.1_p20230211 package is stable.
> Thanks for clearing this up. Is there a way I can upgrade specifically gcc
> without changing to an experimental profile?

No problem.

Try putting (without quotes): "<sys-devel/gcc-12.2.1_p20230226 **" in package.accept_keywords. You'll then pick up tomorrow's snapshot which is what I plan to then keyword (and stable eventually) once it's in tree.
Comment 6 burningserenity 2023-02-25 03:20:42 UTC
Okay Iā€™m all set now; Linux compiles again.
Comment 7 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-02-25 03:24:01 UTC
Thanks for confirming!
Comment 8 Larry the Git Cow gentoo-dev 2023-03-06 04:24:22 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dcbf37d021cc6af736b3d55de57b92d94da81d53

commit dcbf37d021cc6af736b3d55de57b92d94da81d53
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-03-06 04:23:45 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-03-06 04:23:45 +0000

    sys-devel/gcc: keyword 12.2.1_p20230304
    
    - Fixes arm64 miscompile of an orc test
    - Fixes ICE when building 6.1.x kernel (with -O3?)
    
    Bug: https://bugs.gentoo.org/886973
    Closes: https://bugs.gentoo.org/896034
    Signed-off-by: Sam James <sam@gentoo.org>

 sys-devel/gcc/gcc-12.2.1_p20230304.ebuild | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)