Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 872788 - sys-devel/gcc-11.3.0 ICE on m68k-unknown-linux-musl compiling net-misc/openssh-9.0_p1-r2
Summary: sys-devel/gcc-11.3.0 ICE on m68k-unknown-linux-musl compiling net-misc/openss...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: m68k Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-09-25 08:12 UTC by Barnabás Virágh
Modified: 2022-11-21 16:37 UTC (History)
1 user (show)

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


Attachments
Build.log - for openssh (build.log,80.92 KB, text/plain)
2022-09-25 08:15 UTC, Barnabás Virágh
Details
environment - file from the build temp folder (environment,121.34 KB, text/plain)
2022-09-25 08:16 UTC, Barnabás Virágh
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Barnabás Virágh 2022-09-25 08:12:02 UTC
While gcc-10.4.0 succeeds compiling net-misc/openssh-9.0_p1-r2, gcc-11.3.0 fails with Internal Compiler Error (under user mode qemu-m68k 7.0).

Reproducible: Always

Steps to Reproduce:
1. linux32 chroot /path/to/m68-unkown-linux-musl/gentoo-root
2. emerge -1 net-misc/openssh

Actual Results:  
emerge fails with attached build.log & environment

Expected Results:  
Builds correctly, just like with gcc 10.4.0.

Workaround:
* keep gcc 10.4.0
* create portage environment to (/etc/portage/env/gcc10.conf):
 FEATURES="${FEATURES} -distcc"
 CC="/usr/m68k-unknown-linux-musl/gcc-bin/10.4.0/gcc"
 CXX="/usr/m68k-unknown-linux-musl/gcc-bin/10.4.0/g++"
 AR="/usr/m68k-unknown-linux-musl/gcc-bin/10.4.0/gcc-ar"
 NM="/usr/m68k-unknown-linux-musl/gcc-bin/10.4.0/gcc-nm"
 RANLIB="/usr/m68k-unknown-linux-musl/gcc-bin/10.4.0/gcc-ranlib"
* set package environment to (/etc/portage/package.env/openssh):
 net-misc/openssh gcc10.conf
Comment 1 Barnabás Virágh 2022-09-25 08:15:54 UTC
Created attachment 814057 [details]
Build.log - for openssh
Comment 2 Barnabás Virágh 2022-09-25 08:16:16 UTC
Created attachment 814060 [details]
environment - file from the build temp folder
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-10-12 23:42:30 UTC
Could you follow https://wiki.gentoo.org/wiki/Gcc-ICE-reporting-guide?
Comment 4 Barnabás Virágh 2022-10-13 14:27:57 UTC
(In reply to Sam James from comment #3)
> Could you follow https://wiki.gentoo.org/wiki/Gcc-ICE-reporting-guide?

Thanks for pointing out, didn't know this kind of bug has it's special reporting HOWTO. :) Will do it soon.
Comment 5 James Le Cuirot gentoo-dev 2022-10-13 21:36:51 UTC
Why not gcc 12.2.0? It builds fine for me with your flags. I normally build for 68030 anyway. I'm using glibc rather than musl, but I doubt that matters here. I have found more recent gcc versions have fixed one or two issues I was having.

I did have some trouble with openssh, so I switched to dropbear, which is more appropriate for my real hardware anyway. That was a long time ago though, it's probably fine now.
Comment 6 Barnabás Virágh 2022-11-21 16:37:31 UTC
I was about to do a proper ICE reporting, and now, with net-misc/openssh-9.0_p1-r6 I couldn't reproduce the ICE anymore.