Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 946500 - sys-devel/gcc-14.2.0: bootstrap-prefix.sh stage3 fails (on Darwin)
Summary: sys-devel/gcc-14.2.0: bootstrap-prefix.sh stage3 fails (on Darwin)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-12-15 11:08 UTC by APN-Pucky
Modified: 2024-12-29 13:33 UTC (History)
2 users (show)

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


Attachments
build_stage3_STABLE_Darwin_Mac-1734249498988.local_23.6.0_Darwin_Kernel_Version_23.6.0__Thu_Sep_12_23_34_00_PDT_2024;_root_xnu-10063.141.1.701.1~1_RELEASE_ARM64_VMAPPLE_arm64_20241215082534.log.xz (build_stage3_STABLE_Darwin_Mac-1734249498988.local_23.6.0_Darwin_Kernel_Version_23.6.0__Thu_Sep_12_23_34_00_PDT_2024;_root_xnu-10063.141.1.701.1~1_RELEASE_ARM64_VMAPPLE_arm64_20241215082534.log.xz,15.53 KB, application/x-xz)
2024-12-15 11:08 UTC, APN-Pucky
Details

Note You need to log in before you can comment on or make changes to this bug.
Description APN-Pucky 2024-12-15 11:08:04 UTC
System:

Darwin_Mac-1734249498988.local_23.6.0_Darwin_Kernel_Version_23.6.0__Thu_Sep_12_23_34_00_PDT_2024;_root_xnu-10063.141.1.701.1~1_RELEASE_ARM64_VMAPPLE_arm64 STABLE prefix
Darwin Mac-1734249498988.local 23.6.0 Darwin Kernel Version 23.6.0: Thu Sep 12 23:34:00 PDT 2024; root:xnu-10063.141.1.701.1~1/RELEASE_ARM64_VMAPPLE arm64
MD5SUM bootstrap-prefix.sh: MD5 (bootstrap-prefix.sh) = 4b4f21bb3153e6ff749248adc7b201f0

Steps to reproduce the bug:
Run the bootstrap-prefix.sh in mode STABLE (default STABLE) for stage3 (lower ones before)

Error message:
somewhere failed :(  Details might be found in the build log:
  /Users/runner/work/gentoo-prefix-tester/gentoo-prefix-tester/gentoo-prefix/var/tmp/portage/sys-devel/gcc-14.2.0/temp/build.log
I have no clue, really.  Please find friendly folks in #gentoo-prefix on
irc.gentoo.org, gentoo-alt@lists.gentoo.org mailing list, or file a bug
at bugs.gentoo.org under Gentoo/Alt, Prefix Support.  This is most
inconvenient, and it crushed my ego.  Sorry, I give up.
Should you want to give it a try, there is /Users/runner/work/gentoo-prefix-tester/gentoo-prefix-tester/gentoo-prefix/stage3.log

  CHOST:     arm64-apple-darwin23
  IDENT:     arm64-apple-darwin23

Extra info:
https://github.com/APN-Pucky/gentoo-prefix-tester/actions/runs/12336513244
Comment 1 APN-Pucky 2024-12-15 11:08:05 UTC
Created attachment 914076 [details]
build_stage3_STABLE_Darwin_Mac-1734249498988.local_23.6.0_Darwin_Kernel_Version_23.6.0__Thu_Sep_12_23_34_00_PDT_2024;_root_xnu-10063.141.1.701.1~1_RELEASE_ARM64_VMAPPLE_arm64_20241215082534.log.xz
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-12-15 11:10:23 UTC
make[3]: Entering directory '/Users/runner/work/gentoo-prefix-tester/gentoo-prefix-tester/gentoo-prefix/var/tmp/portage/sys-devel/gcc-14.2.0/work/build/libcpp'
arm64-apple-darwin23-g++ -std=c++11  -I/Users/runner/work/gentoo-prefix-tester/gentoo-prefix-tester/gentoo-prefix/var/tmp/portage/sys-devel/gcc-14.2.0/work/gcc-14.2.0/libcpp -I. -I/Users/runner/work/gentoo-prefix-tester/gentoo-prefix-tester/gentoo-prefix/var/tmp/portage/sys-devel/gcc-14.2.0/work/gcc-14.2.0/libcpp/../include -I/Users/runner/work/gentoo-prefix-tester/gentoo-prefix-tester/gentoo-prefix/var/tmp/portage/sys-devel/gcc-14.2.0/work/gcc-14.2.0/libcpp/include -I/Users/runner/work/gentoo-prefix-tester/gentoo-prefix-tester/gentoo-prefix/usr/include -pipe -O2 -W -Wall -Wno-narrowing -Wwrite-strings -Wmissing-format-attribute -pedantic -Wno-long-long  -fno-exceptions -fno-rtti -I/Users/runner/work/gentoo-prefix-tester/gentoo-prefix-tester/gentoo-prefix/var/tmp/portage/sys-devel/gcc-14.2.0/work/gcc-14.2.0/libcpp -I. -I/Users/runner/work/gentoo-prefix-tester/gentoo-prefix-tester/gentoo-prefix/var/tmp/portage/sys-devel/gcc-14.2.0/work/gcc-14.2.0/libcpp/../include -I/Users/runner/work/gentoo-prefix-tester/gentoo-prefix-tester/gentoo-prefix/var/tmp/portage/sys-devel/gcc-14.2.0/work/gcc-14.2.0/libcpp/include -I/Users/runner/work/gentoo-prefix-tester/gentoo-prefix-tester/gentoo-prefix/usr/include -fPIE  -c -o charset.o -MT charset.o -MMD -MP -MF .deps/charset.Tpo /Users/runner/work/gentoo-prefix-tester/gentoo-prefix-tester/gentoo-prefix/var/tmp/portage/sys-devel/gcc-14.2.0/work/gcc-14.2.0/libcpp/charset.cc
In file included from /Users/runner/work/gentoo-prefix-tester/gentoo-prefix-tester/gentoo-prefix/var/tmp/portage/sys-devel/gcc-14.2.0/work/gcc-14.2.0/libcpp/charset.cc:21:
/Users/runner/work/gentoo-prefix-tester/gentoo-prefix-tester/gentoo-prefix/usr/include/libintl.h:1098:14: error: expected unqualified-id before 'const'
 1098 | extern char *setlocale (int, const char *)
      |              ^~~~~~~~~
/Users/runner/work/gentoo-prefix-tester/gentoo-prefix-tester/gentoo-prefix/usr/include/libintl.h:1098:14: error: expected ')' before 'const'
/Users/runner/work/gentoo-prefix-tester/gentoo-prefix-tester/gentoo-prefix/var/tmp/portage/sys-devel/gcc-14.2.0/work/gcc-14.2.0/libcpp/system.h:275:38: note: to match this '('
  275 | # define setlocale(category, locale) (locale)
      |                                      ^
make[3]: *** [Makefile:227: charset.o] Error 1
make[3]: Leaving directory '/Users/runner/work/gentoo-prefix-tester/gentoo-prefix-tester/gentoo-prefix/var/tmp/portage/sys-devel/gcc-14.2.0/work/build/libcpp'
make[2]: *** [Makefile:8539: all-stage1-libcpp] Error 2
make[2]: *** Waiting for unfinished jobs....
Comment 3 François Bissey 2024-12-28 01:56:13 UTC
I have the same exact same error on x64-macos on mac os 13 (ventura).
Comment 4 Fabian Groffen gentoo-dev 2024-12-29 08:46:52 UTC
stage3 failure, confirmed
Comment 5 Fabian Groffen gentoo-dev 2024-12-29 11:53:20 UTC
same happens elsewhere, with dev-libs/libintl-0.23 sys-devel/gettext-0.23
Comment 6 Fabian Groffen gentoo-dev 2024-12-29 12:04:13 UTC
libcpp uses HAVE_SETLOCALE, but its configure doesn't check it ... or so it seems
Comment 7 Larry the Git Cow gentoo-dev 2024-12-29 13:33:05 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=a0ff1230984dd1d740c823eead6a091777d3d0fa

commit a0ff1230984dd1d740c823eead6a091777d3d0fa
Author:     Fabian Groffen <grobian@gentoo.org>
AuthorDate: 2024-12-29 13:32:15 +0000
Commit:     Fabian Groffen <grobian@gentoo.org>
CommitDate: 2024-12-29 13:32:15 +0000

    sys-devel/gcc-14.2.1_p20241221: fix compilation with libintl-0.23
    
    Closes: https://bugs.gentoo.org/946500
    Signed-off-by: Fabian Groffen <grobian@gentoo.org>

 .../gcc/files/gcc-14.2.0-libintl-setlocale.patch   | 25 ++++++++++++++++++++++
 sys-devel/gcc/gcc-14.2.1_p20241221.ebuild          |  3 +++
 2 files changed, 28 insertions(+)