Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 927657 - dev-libs/icu-74.2: does not build with sys-devel/gcc-14.0.1_pre20240324: error: invalid initializer for array member ‘icu::UnicodeSet icu::RegexStaticSets::fPropSets [13]’
Summary: dev-libs/icu-74.2: does not build with sys-devel/gcc-14.0.1_pre20240324: erro...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
: 927859 (view as bug list)
Depends on:
Blocks: gcc-14 927814 927815 927853
  Show dependency tree
 
Reported: 2024-03-24 01:23 UTC by Kacper Słomiński
Modified: 2024-03-26 20:09 UTC (History)
3 users (show)

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


Attachments
build.log (build.log,312.89 KB, text/plain)
2024-03-26 10:44 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kacper Słomiński 2024-03-24 01:23:45 UTC
This appears to be a GCC 14 regression caused by a commit made 2 days ago. There is an upstream bug report for it. Full error:

x86_64-pc-linux-gnu-g++ -D_REENTRANT -DU_HAVE_ELF_H=1 -DU_HAVE_STRTOD_L=1 -DU_HAVE_XLOCALE_H=0 -DU_DISABLE_RENAMING=1 -I/var/tmp/portage/dev-libs/icu-74.2/work/icu/source/i18n -I/var/tmp/portage/dev-libs/icu-74.2/work/icu/source/common -DU_ATTRIBUTE_DEPRECATED= -DU_I18N_IMPLEMENTATION -O3 -march=znver2 -pipe -ggdb3 -D_GLIBCXX_ASSERTIONS -std=c++14 -W -Wall -pedantic -Wpointer-arith -Wwrite-strings -Wno-long-long -c -DPIC -fPIC -o regexst.o /var/tmp/portage/dev-libs/icu-74.2/work/icu/source/i18n/regexst.cpp
/var/tmp/portage/dev-libs/icu-74.2/work/icu/source/i18n/regexst.cpp: In constructor ‘icu::RegexStaticSets::RegexStaticSets(UErrorCode*)’:
/var/tmp/portage/dev-libs/icu-74.2/work/icu/source/i18n/regexst.cpp:75:52: error: invalid initializer for array member ‘icu::UnicodeSet icu::RegexStaticSets::fPropSets [13]’
   75 | RegexStaticSets::RegexStaticSets(UErrorCode *status) {
      |                                                    ^
/var/tmp/portage/dev-libs/icu-74.2/work/icu/source/i18n/regexst.cpp:75:52: error: invalid initializer for array member ‘icu::Regex8BitSet icu::RegexStaticSets::fPropSets8 [13]’
/var/tmp/portage/dev-libs/icu-74.2/work/icu/source/i18n/regexst.cpp:75:52: error: invalid initializer for array member ‘icu::UnicodeSet icu::RegexStaticSets::fRuleSets [3]’
make[1]: *** [/var/tmp/portage/dev-libs/icu-74.2/work/icu/source/config/mh-linux:51: regexst.o] Error 1


gcc version:

gcc version 14.0.1 20240323 (experimental) a68458187d4c889dc11b2b95f08a61adf087f69d (Gentoo 14.0.9999 p, commit 7bbfb01a32b73842f8908de028703510a0e12057)
Comment 1 Andreas Sturmlechner gentoo-dev 2024-03-26 09:55:06 UTC
*** Bug 927859 has been marked as a duplicate of this bug. ***
Comment 2 Agostino Sarubbo gentoo-dev 2024-03-26 10:44:25 UTC
Created attachment 888663 [details]
build.log

build.log
Comment 3 Larry the Git Cow gentoo-dev 2024-03-26 20:09:05 UTC
The bug has been closed via the following commit(s):

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

commit 59d1f202c03db9597af4a795560b8f6215a65b4b
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2024-03-26 20:08:39 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-03-26 20:08:39 +0000

    sys-devel/gcc: backport fix for building e.g. dev-libs/icu
    
    Closes: https://bugs.gentoo.org/927657
    Closes: https://bugs.gentoo.org/927814
    Closes: https://bugs.gentoo.org/927815
    Closes: https://bugs.gentoo.org/927853
    Signed-off-by: Sam James <sam@gentoo.org>

 .../files/gcc-14.0.1_pre20240324-PR114439.patch    | 112 +++++++++++++++++++++
 ...324.ebuild => gcc-14.0.1_pre20240324-r1.ebuild} |   1 +
 2 files changed, 113 insertions(+)