Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 933423 - sys-devel/gcc: ICEs when building net-fs/samba-4.20.1: internal compiler error: in fld_incomplete_type_of, at ipa-free-lang-data.cc:257 (LTO) with >=sys-libs/glibc-2.39-r7
Summary: sys-devel/gcc: ICEs when building net-fs/samba-4.20.1: internal compiler erro...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard: 12 fixed, not kw'd as 12.4 is out soo...
Keywords:
: 934244 (view as bug list)
Depends on: 935822 935824
Blocks: lto
  Show dependency tree
 
Reported: 2024-06-02 14:05 UTC by Nowa Ammerlaan
Modified: 2024-07-21 17:30 UTC (History)
11 users (show)

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


Attachments
build log (build.log.gz,102.22 KB, application/gzip)
2024-06-02 14:05 UTC, Nowa Ammerlaan
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nowa Ammerlaan gentoo-dev 2024-06-02 14:05:05 UTC
Fails with gcc-14 + lto, issue disappears when disabling lto:

[1635/3409] Compiling libcli/auth/smbencrypt.c
15:59:38 runner ['x86_64-pc-linux-gnu-gcc', '-m32', '-mfpmath=sse', '-D_SAMBA_BUILD_=4', '-DHAVE_CONFIG_H=1', '-O3', '-pipe', '-march=skylake', '-mtune=skylake', '-flto=8', '-MMD', '-D_GNU_SOURCE=1', '-D_XOPEN_SOURCE_EXTENDED=1', '-DHAVE_CONFIG_H=1', '-fPIC', '-D__STDC_WANT_LIB_EXT1__=1', '-D_REENTRANT', '-fstack-protector-strong', '-fstack-clash-protection', '-DSTATIC_LIBCLI_AUTH_MODULES=NULL', '-DSTATIC_LIBCLI_AUTH_MODULES_PROTO=extern void __LIBCLI_AUTH_dummy_module_proto(void)', '-Ilibcli/auth', '-I../../libcli/auth', '-Iinclude/public', '-I../../include/public', '-Isource4', '-I../../source4', '-Ilib', '-I../../lib', '-Isource4/lib', '-I../../source4/lib', '-Isource4/include', '-I../../source4/include', '-Iinclude', '-I../../include', '-Ilib/replace', '-I../../lib/replace', '-I.', '-I../..', '-Ilibrpc', '-I../../librpc', '-Ilibcli/security', '-I../../libcli/security', '-Isource3', '-I../../source3', '-Isource3/include', '-I../../source3/include', '-Isource3/lib', '-I../../source3/lib', '-Ithird_party/heimdal/lib/com_err', '-I../../third_party/heimdal/lib/com_err', '-Ithird_party/heimdal/lib/base', '-I../../third_party/heimdal/lib/base', '-Ithird_party/heimdal/lib/krb5', '-I../../third_party/heimdal/lib/krb5', '-Ithird_party/heimdal/lib/gssapi/gssapi', '-I../../third_party/heimdal/lib/gssapi/gssapi', '-Ithird_party/heimdal_build/include', '-I../../third_party/heimdal_build/include', '-Ibin/default/third_party/heimdal/lib/asn1', '-Ithird_party/heimdal/lib/asn1', '-Isource3/librpc', '-I../../source3/librpc', '-Ithird_party/heimdal/lib/hx509', '-I../../third_party/heimdal/lib/hx509', '-Ithird_party/heimdal_build', '-I../../third_party/heimdal_build', '-Ithird_party/heimdal/lib/asn1', '-I../../third_party/heimdal/lib/asn1', '-Ithird_party/heimdal/include', '-I../../third_party/heimdal/include', '-Ilib/util/charset', '-I../../lib/util/charset', '-Ilibcli/util', '-I../../libcli/util', '-Ithird_party/heimdal/lib/gssapi/spnego', '-I../../third_party/heimdal/lib/gssapi/spnego', '-Ithird_party/heimdal/lib/gssapi/krb5', '-I../../third_party/heimdal/lib/gssapi/krb5', '-Ithird_party/heimdal/lib/gssapi/mech', '-I../../third_party/heimdal/lib/gssapi/mech', '-Ithird_party/heimdal/lib/ntlm', '-I../../third_party/heimdal/lib/ntlm', '-Ithird_party/heimdal/lib/wind', '-I../../third_party/heimdal/lib/wind', '-Ilib/crypto', '-I../../lib/crypto', '-Ithird_party/heimdal/lib/hcrypto/libtommath', '-I../../third_party/heimdal/lib/hcrypto/libtommath', '-Ilib/param', '-I../../lib/param', '-Ithird_party/heimdal/lib/roken', '-I../../third_party/heimdal/lib/roken', '-Ilib/util/lib/util/debug-classes', '-I../../lib/util/lib/util/debug-classes', '-Ilib/util/tmp/portage/net-fs/samba-4.20.1/work/samba-4.20.1-abi_x86_32.x86/third_party/gpfs', '-I../../lib/util/tmp/portage/net-fs/samba-4.20.1/work/samba-4.20.1-abi_x86_32.x86/third_party/gpfs', '-Ilibcli/lsarpc', '-I../../libcli/lsarpc', '-Ithird_party/heimdal/lib/gssapi', '-I../../third_party/heimdal/lib/gssapi', '-Ithird_party/heimdal/lib/hcrypto', '-I../../third_party/heimdal/lib/hcrypto', '-Ithird_party/heimdal/lib', '-I../../third_party/heimdal/lib', '-Ilib/krb5_wrap', '-I../../lib/krb5_wrap', '-Ilib/compression', '-I../../lib/compression', '-Ilibcli/nbt', '-I../../libcli/nbt', '-Ilib/dbwrap', '-I../../lib/dbwrap', '-Ithird_party/heimdal/lib/ipc', '-I../../third_party/heimdal/lib/ipc', '-Idynconfig', '-I../../dynconfig', '-I/usr/include/p11-kit-1', '../../libcli/auth/smbencrypt.c', '-c', '-o/tmp/portage/net-fs/samba-4.20.1/work/samba-4.20.1-abi_x86_32.x86/bin/default/libcli/auth/smbencrypt.c.7.o', '-I/usr/include/et']
during IPA pass: *free_lang_data
../../source4/libcli/resolve/resolve.c:340:1: internal compiler error: in fld_incomplete_type_of, at ipa-free-lang-data.cc:257
340 | }
| ^
0x55fc3e8d44bf internal_error(char const*, ...)
???:0
0x55fc3ccef7ad fancy_abort(char const*, int, char const*)
???:0
Please submit a full bug report, with preprocessed source (by using -freport-bug).
Please include the complete backtrace with any bug report.
See <https://bugs.gentoo.org/> for instructions.

Waf: Leaving directory `/tmp/portage/net-fs/samba-4.20.1/work/samba-4.20.1-abi_x86_32.x86/bin/default'
Build failed
-> task in 'LIBCLI_RESOLVE' failed with exit status 1:
{task 139981667015872: c resolve.c -> resolve.c.10.o}
['x86_64-pc-linux-gnu-gcc', '-m32', '-mfpmath=sse', '-D_SAMBA_BUILD_=4', '-DHAVE_CONFIG_H=1', '-O3', '-pipe', '-march=skylake', '-mtune=skylake', '-flto=8', '-MMD', '-D_GNU_SOURCE=1', '-D_XOPEN_SOURCE_EXTENDED=1', '-DHAVE_CONFIG_H=1', '-fPIC', '-D__STDC_WANT_LIB_EXT1__=1', '-D_REENTRANT', '-fstack-protector-strong', '-fstack-clash-protection', '-DSTATIC_LIBCLI_RESOLVE_MODULES=NULL', '-DSTATIC_LIBCLI_RESOLVE_MODULES_PROTO=extern void __LIBCLI_RESOLVE_dummy_module_proto(void)', '-Isource4/libcli', '-I../../source4/libcli', '-Iinclude/public', '-I../../include/public', '-Isource4', '-I../../source4', '-Ilib', '-I../../lib', '-Isource4/lib', '-I../../source4/lib', '-Isource4/include', '-I../../source4/include', '-Iinclude', '-I../../include', '-Ilib/replace', '-I../../lib/replace', '-I.', '-I../..', '-Ilibcli/security', '-I../../libcli/security', '-Ilibcli/util', '-I../../libcli/util', '-Ilibrpc', '-I../../librpc', '-Ilib/util/charset', '-I../../lib/util/charset', '-Isource4/lib/events', '-I../../source4/lib/events', '-Ilibcli/nbt', '-I../../libcli/nbt', '-Isource4/lib/socket', '-I../../source4/lib/socket', '-Ilib/tsocket', '-I../../lib/tsocket', '-Ilib/util/tmp/portage/net-fs/samba-4.20.1/work/samba-4.20.1-abi_x86_32.x86/third_party/gpfs', '-I../../lib/util/tmp/portage/net-fs/samba-4.20.1/work/samba-4.20.1-abi_x86_32.x86/third_party/gpfs', '-Ilib/util/lib/util/debug-classes', '-I../../lib/util/lib/util/debug-classes', '-Ilib/socket', '-I../../lib/socket', '-Ilib/crypto', '-I../../lib/crypto', '-Idynconfig', '-I../../dynconfig', '-I/usr/include/p11-kit-1', '../../source4/libcli/resolve/resolve.c', '-c', '-o/tmp/portage/net-fs/samba-4.20.1/work/samba-4.20.1-abi_x86_32.x86/bin/default/source4/libcli/resolve/resolve.c.10.o', '-I/usr/include/et']
Comment 1 Nowa Ammerlaan gentoo-dev 2024-06-02 14:05:26 UTC
Created attachment 894953 [details]
build log
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-06-03 00:19:24 UTC
An ICE is always a GCC bug, so retitling.

Anyway, matoro hit this the other day, then another user did, and then I finally put 2+2 together. >=sys-libs/glibc-2.39-r7 contains https://sourceware.org/git/?p=glibc.git;a=commit;h=26e7005728f0eea2972474e6be2905c467661237.

This then exposes an existing GCC bug which I reported not long ago when doing something entirely different (https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114493).
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-06-07 16:45:21 UTC
I'll keyword the next gcc snapshots with the fix in.
Comment 4 Larry the Git Cow gentoo-dev 2024-06-09 05:30:22 UTC
The bug has been referenced in the following commit(s):

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

commit 9f31c13fd9ad9e87a32d18e382a1ff907af29436
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2024-06-09 05:27:21 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-06-09 05:27:41 +0000

    sys-devel/gcc: add 14.1.1_p20240608
    
    I plan to keyword this shortly for the linked bug.
    
    Bug: https://bugs.gentoo.org/933423
    Signed-off-by: Sam James <sam@gentoo.org>

 sys-devel/gcc/Manifest                    |  2 ++
 sys-devel/gcc/gcc-14.1.1_p20240608.ebuild | 56 +++++++++++++++++++++++++++++++
 2 files changed, 58 insertions(+)
Comment 5 Larry the Git Cow gentoo-dev 2024-06-10 02:10:29 UTC
The bug has been referenced in the following commit(s):

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

commit 11c667b3b345ffc8f0a6c40bb7b43bf21f794476
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2024-06-10 02:09:32 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-06-10 02:09:32 +0000

    sys-devel/gcc: add 15.0.0_pre20240609
    
    Closes: https://bugs.gentoo.org/933832
    Bug: https://bugs.gentoo.org/933423
    Signed-off-by: Sam James <sam@gentoo.org>

 sys-devel/gcc/Manifest                      |  2 ++
 sys-devel/gcc/gcc-15.0.0_pre20240609.ebuild | 53 +++++++++++++++++++++++++++++
 2 files changed, 55 insertions(+)
Comment 6 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-06-14 06:13:34 UTC
(In reply to Sam James from comment #3)
> I'll keyword the next gcc snapshots with the fix in.

I'm going to do this weekend's snapshots instead, as 13 has the fix then, and 14 this week had some other useful bits.
Comment 7 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-06-14 10:50:35 UTC
*** Bug 934244 has been marked as a duplicate of this bug. ***
Comment 8 Larry the Git Cow gentoo-dev 2024-06-15 01:19:37 UTC
The bug has been referenced in the following commit(s):

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

commit 81794a493b2e6caa06456ec6ab245e3251eff5ec
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2024-06-15 01:18:59 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-06-15 01:18:59 +0000

    sys-devel/gcc: keyword 13.3.1_p20240614
    
    Bug: https://bugs.gentoo.org/933423
    Signed-off-by: Sam James <sam@gentoo.org>

 sys-devel/gcc/gcc-13.3.1_p20240614.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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

commit 7ded4c8c77e58ddeed024b93fc6e13fc146c1ce0
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2024-06-15 01:18:27 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-06-15 01:18:27 +0000

    sys-devel/gcc: add 13.3.1_p20240614
    
    Bug: https://bugs.gentoo.org/933423
    Signed-off-by: Sam James <sam@gentoo.org>

 sys-devel/gcc/Manifest                    |  1 +
 sys-devel/gcc/gcc-13.3.1_p20240614.ebuild | 66 +++++++++++++++++++++++++++++++
 2 files changed, 67 insertions(+)

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

commit 2f6edc478bd374bb78197f6ef532fde4d63ba632
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2024-06-15 01:15:51 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-06-15 01:15:51 +0000

    sys-devel/gcc: add 12.3.1_p20240613
    
    Notes:
    * 12.4 RC1 was released the same day but may as well just use the snapshot,
    the same thing anyway.
    
    * This has the fix for bug #933423 but given 12.4 will be here soon,
    not keywording this one.
    
    Bug: https://bugs.gentoo.org/933423
    Signed-off-by: Sam James <sam@gentoo.org>

 sys-devel/gcc/Manifest                    |  1 +
 sys-devel/gcc/gcc-12.3.1_p20240613.ebuild | 65 +++++++++++++++++++++++++++++++
 2 files changed, 66 insertions(+)
Comment 9 Larry the Git Cow gentoo-dev 2024-06-15 22:58:29 UTC
The bug has been referenced in the following commit(s):

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

commit 25e345b3cb83a88331ff0702c6cb6b411ab8430f
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2024-06-15 22:57:35 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-06-15 22:57:35 +0000

    sys-devel/gcc: keyword 14.1.1_p20240615
    
    Bug: https://bugs.gentoo.org/933423
    Signed-off-by: Sam James <sam@gentoo.org>

 sys-devel/gcc/gcc-14.1.1_p20240615.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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

commit fe79f59d71d65f70dc05658f4c405af2a8521606
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2024-06-15 22:56:17 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-06-15 22:56:17 +0000

    sys-devel/gcc: add 14.1.1_p20240615
    
    Bug: https://bugs.gentoo.org/933423
    Signed-off-by: Sam James <sam@gentoo.org>

 sys-devel/gcc/Manifest                    |  1 +
 sys-devel/gcc/gcc-14.1.1_p20240615.ebuild | 56 +++++++++++++++++++++++++++++++
 2 files changed, 57 insertions(+)
Comment 10 Larry the Git Cow gentoo-dev 2024-06-20 09:57:51 UTC
The bug has been referenced in the following commit(s):

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

commit f8462160739e559a9f24ed5a92a3c0f75fdbf37c
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2024-06-20 09:57:12 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-06-20 09:57:19 +0000

    sys-devel/gcc: keyword 12.4.0
    
    Bug: https://bugs.gentoo.org/933423
    Signed-off-by: Sam James <sam@gentoo.org>

 sys-devel/gcc/gcc-12.4.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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

commit 5154c06953d5ad327a3a2f2c42d6e9b42e1d5e0f
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2024-06-20 09:56:52 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-06-20 09:57:18 +0000

    sys-devel/gcc: add 12.4.0
    
    Bug: https://bugs.gentoo.org/933423
    Signed-off-by: Sam James <sam@gentoo.org>

 sys-devel/gcc/Manifest          |  1 +
 sys-devel/gcc/gcc-12.4.0.ebuild | 65 +++++++++++++++++++++++++++++++++++++++++
 2 files changed, 66 insertions(+)