Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 920630 - sys-devel/gcc[sanitize] fails to compile on armv6 with error: invalid use of incomplete type 'struct __sanitizer::stat64' with sys-libs/musl-1.2.4
Summary: sys-devel/gcc[sanitize] fails to compile on armv6 with error: invalid use of ...
Status: CONFIRMED
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:
Depends on:
Blocks: musl-1.2.4
  Show dependency tree
 
Reported: 2023-12-24 05:02 UTC by immolo
Modified: 2024-03-28 09:19 UTC (History)
5 users (show)

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


Attachments
build log (gcc.log.xz,139.92 KB, application/x-xz)
2023-12-24 05:05 UTC, immolo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description immolo 2023-12-24 05:02:36 UTC
Testing fortify-headers support in Gentoo I have found an issue with compiling gcc with the sanitize USE flag enabled but allows a successful compile when it is set to -sanitize.

This issue does occur on amd64 systems so it is likely to be a 32bit system only issue.

To reproduce:

1. Setup a armv6 hardened musl stage3
2. Apply ACCEPT_KEYWORDS="~arm"
3. add patch https://git.alpinelinux.org/aports/tree/main/gcc/0016-add-fortify-headers-paths.patch
4. USE="sanitize" emerge -va1 sys-devel/gcc

Error:

/bin/sh ../libtool  --tag=CXX   --mode=compile /var/tmp/portage/sys-devel/gcc-13.2.1_p20231014/work/build/./gcc/xgcc -shared-libgcc -B/var/tmp/portage/sys-devel/gcc-13.2.1_p20231014/work/build/./gcc -nostdinc++ -L/var/tmp/portage/sys-devel/gcc-13.2.1_p20231014/work/build/armv6j-unknown-linux-musleabihf/libstdc++-v3/src -L/var/tmp/portage/sys-devel/gcc-13.2.1_p20231014/work/build/armv6j-unknown-linux-musleabihf/libstdc++-v3/src/.libs -L/var/tmp/portage/sys-devel/gcc-13.2.1_p20231014/work/build/armv6j-unknown-linux-musleabihf/libstdc++-v3/libsupc++/.libs -B/usr/armv6j-unknown-linux-musleabihf/bin/ -B/usr/armv6j-unknown-linux-musleabihf/lib/ -isystem /usr/armv6j-unknown-linux-musleabihf/include -isystem /usr/armv6j-unknown-linux-musleabihf/sys-include   -fchecking=1 -D_GNU_SOURCE -D_DEBUG -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS  -DHAVE_RPC_XDR_H=0 -DHAVE_TIRPC_RPC_XDR_H=0 -I. -I/var/tmp/portage/sys-devel/gcc-13.2.1_p20231014/work/gcc-13-20231014/libsanitizer/sanitizer_common -I..  -I /var/tmp/portage/sys-devel/gcc-13.2.1_p20231014/work/gcc-13-20231014/libsanitizer/include -I /var/tmp/portage/sys-devel/gcc-13.2.1_p20231014/work/gcc-13-20231014/libsanitizer -isystem /var/tmp/portage/sys-devel/gcc-13.2.1_p20231014/work/gcc-13-20231014/libsanitizer/include/system  -Wall -W -Wno-unused-parameter -Wwrite-strings -pedantic -Wno-long-long -fPIC -fno-builtin -fno-exceptions -fno-rtti -fomit-frame-pointer -funwind-tables -fvisibility=hidden -Wno-variadic-macros -I../../libstdc++-v3/include     -I../../libstdc++-v3/include/armv6j-unknown-linux-musleabihf     -I/var/tmp/portage/sys-devel/gcc-13.2.1_p20231014/work/gcc-13-20231014/libsanitizer/../libstdc++-v3/libsupc++ -std=gnu++14  -DSANITIZER_LIBBACKTRACE -DSANITIZER_CP_DEMANGLE -I /var/tmp/portage/sys-devel/gcc-13.2.1_p20231014/work/gcc-13-20231014/libsanitizer/../libbacktrace -I ../libbacktrace -I /var/tmp/portage/sys-devel/gcc-13.2.1_p20231014/work/gcc-13-20231014/libsanitizer/../include -include /var/tmp/portage/sys-devel/gcc-13.2.1_p20231014/work/gcc-13-20231014/libsanitizer/libbacktrace/backtrace-rename.h -g -pipe -mcpu=arm1176jzf-s -mfpu=vfp -mfloat-abi=hard -O2 -D_GNU_SOURCE -c -o sanitizer_linux.lo /var/tmp/portage/sys-devel/gcc-13.2.1_p20231014/work/gcc-13-20231014/libsanitizer/sanitizer_common/sanitizer_linux.cpp
libtool: compile:  /var/tmp/portage/sys-devel/gcc-13.2.1_p20231014/work/build/./gcc/xgcc -shared-libgcc -B/var/tmp/portage/sys-devel/gcc-13.2.1_p20231014/work/build/./gcc -nostdinc++ -L/var/tmp/portage/sys-devel/gcc-13.2.1_p20231014/work/build/armv6j-unknown-linux-musleabihf/libstdc++-v3/src -L/var/tmp/portage/sys-devel/gcc-13.2.1_p20231014/work/build/armv6j-unknown-linux-musleabihf/libstdc++-v3/src/.libs -L/var/tmp/portage/sys-devel/gcc-13.2.1_p20231014/work/build/armv6j-unknown-linux-musleabihf/libstdc++-v3/libsupc++/.libs -B/usr/armv6j-unknown-linux-musleabihf/bin/ -B/usr/armv6j-unknown-linux-musleabihf/lib/ -isystem /usr/armv6j-unknown-linux-musleabihf/include -isystem /usr/armv6j-unknown-linux-musleabihf/sys-include -fchecking=1 -D_GNU_SOURCE -D_DEBUG -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -DHAVE_RPC_XDR_H=0 -DHAVE_TIRPC_RPC_XDR_H=0 -I. -I/var/tmp/portage/sys-devel/gcc-13.2.1_p20231014/work/gcc-13-20231014/libsanitizer/sanitizer_common -I.. -I /var/tmp/portage/sys-devel/gcc-13.2.1_p20231014/work/gcc-13-20231014/libsanitizer/include -I /var/tmp/portage/sys-devel/gcc-13.2.1_p20231014/work/gcc-13-20231014/libsanitizer -isystem /var/tmp/portage/sys-devel/gcc-13.2.1_p20231014/work/gcc-13-20231014/libsanitizer/include/system -Wall -W -Wno-unused-parameter -Wwrite-strings -pedantic -Wno-long-long -fPIC -fno-builtin -fno-exceptions -fno-rtti -fomit-frame-pointer -funwind-tables -fvisibility=hidden -Wno-variadic-macros -I../../libstdc++-v3/include -I../../libstdc++-v3/include/armv6j-unknown-linux-musleabihf -I/var/tmp/portage/sys-devel/gcc-13.2.1_p20231014/work/gcc-13-20231014/libsanitizer/../libstdc++-v3/libsupc++ -std=gnu++14 -DSANITIZER_LIBBACKTRACE -DSANITIZER_CP_DEMANGLE -I /var/tmp/portage/sys-devel/gcc-13.2.1_p20231014/work/gcc-13-20231014/libsanitizer/../libbacktrace -I ../libbacktrace -I /var/tmp/portage/sys-devel/gcc-13.2.1_p20231014/work/gcc-13-20231014/libsanitizer/../include -include /var/tmp/portage/sys-devel/gcc-13.2.1_p20231014/work/gcc-13-20231014/libsanitizer/libbacktrace/backtrace-rename.h -g -pipe -mcpu=arm1176jzf-s -mfpu=vfp -mfloat-abi=hard -O2 -D_GNU_SOURCE -c /var/tmp/portage/sys-devel/gcc-13.2.1_p20231014/work/gcc-13-20231014/libsanitizer/sanitizer_common/sanitizer_linux.cpp  -fPIC -DPIC -o .libs/sanitizer_linux.o
/var/tmp/portage/sys-devel/gcc-13.2.1_p20231014/work/gcc-13-20231014/libsanitizer/sanitizer_common/sanitizer_linux.cpp: In function 'void __sanitizer::stat64_to_stat(stat64*, stat*)':
/var/tmp/portage/sys-devel/gcc-13.2.1_p20231014/work/gcc-13-20231014/libsanitizer/sanitizer_common/sanitizer_linux.cpp:283:19: error: invalid use of incomplete type 'struct __sanitizer::stat64'
  283 |   out->st_dev = in->st_dev;
      |                   ^~
/var/tmp/portage/sys-devel/gcc-13.2.1_p20231014/work/gcc-13-20231014/libsanitizer/sanitizer_common/sanitizer_linux.cpp:281:35: note: forward declaration of 'struct __sanitizer::stat64'
  281 | static void stat64_to_stat(struct stat64 *in, struct stat *out) {
      |                                   ^~~~~~
/var/tmp/portage/sys-devel/gcc-13.2.1_p20231014/work/gcc-13-20231014/libsanitizer/sanitizer_common/sanitizer_linux.cpp:284:19: error: invalid use of incomplete type 'struct __sanitizer::stat64'
  284 |   out->st_ino = in->st_ino;
      |                   ^~
/var/tmp/portage/sys-devel/gcc-13.2.1_p20231014/work/gcc-13-20231014/libsanitizer/sanitizer_common/sanitizer_linux.cpp:281:35: note: forward declaration of 'struct __sanitizer::stat64'
  281 | static void stat64_to_stat(struct stat64 *in, struct stat *out) {
      |                                   ^~~~~~
/var/tmp/portage/sys-devel/gcc-13.2.1_p20231014/work/gcc-13-20231014/libsanitizer/sanitizer_common/sanitizer_linux.cpp:285:20: error: invalid use of incomplete type 'struct __sanitizer::stat64'
  285 |   out->st_mode = in->st_mode;
      |                    ^~
/var/tmp/portage/sys-devel/gcc-13.2.1_p20231014/work/gcc-13-20231014/libsanitizer/sanitizer_common/sanitizer_linux.cpp:281:35: note: forward declaration of 'struct __sanitizer::stat64'
  281 | static void stat64_to_stat(struct stat64 *in, struct stat *out) {
      |                                   ^~~~~~
/var/tmp/portage/sys-devel/gcc-13.2.1_p20231014/work/gcc-13-20231014/libsanitizer/sanitizer_common/sanitizer_linux.cpp:286:21: error: invalid use of incomplete type 'struct __sanitizer::stat64'
  286 |   out->st_nlink = in->st_nlink;
      |                     ^~
/var/tmp/portage/sys-devel/gcc-13.2.1_p20231014/work/gcc-13-20231014/libsanitizer/sanitizer_common/sanitizer_linux.cpp:281:35: note: forward declaration of 'struct __sanitizer::stat64'
  281 | static void stat64_to_stat(struct stat64 *in, struct stat *out) {
      |                                   ^~~~~~
/var/tmp/portage/sys-devel/gcc-13.2.1_p20231014/work/gcc-13-20231014/libsanitizer/sanitizer_common/sanitizer_linux.cpp:287:19: error: invalid use of incomplete type 'struct __sanitizer::stat64'
  287 |   out->st_uid = in->st_uid;
      |                   ^~
/var/tmp/portage/sys-devel/gcc-13.2.1_p20231014/work/gcc-13-20231014/libsanitizer/sanitizer_common/sanitizer_linux.cpp:281:35: note: forward declaration of 'struct __sanitizer::stat64'
  281 | static void stat64_to_stat(struct stat64 *in, struct stat *out) {
      |                                   ^~~~~~
/var/tmp/portage/sys-devel/gcc-13.2.1_p20231014/work/gcc-13-20231014/libsanitizer/sanitizer_common/sanitizer_linux.cpp:288:19: error: invalid use of incomplete type 'struct __sanitizer::stat64'
  288 |   out->st_gid = in->st_gid;
      |                   ^~
/var/tmp/portage/sys-devel/gcc-13.2.1_p20231014/work/gcc-13-20231014/libsanitizer/sanitizer_common/sanitizer_linux.cpp:281:35: note: forward declaration of 'struct __sanitizer::stat64'
  281 | static void stat64_to_stat(struct stat64 *in, struct stat *out) {
      |                                   ^~~~~~
/var/tmp/portage/sys-devel/gcc-13.2.1_p20231014/work/gcc-13-20231014/libsanitizer/sanitizer_common/sanitizer_linux.cpp:289:20: error: invalid use of incomplete type 'struct __sanitizer::stat64'
  289 |   out->st_rdev = in->st_rdev;
      |                    ^~
/var/tmp/portage/sys-devel/gcc-13.2.1_p20231014/work/gcc-13-20231014/libsanitizer/sanitizer_common/sanitizer_linux.cpp:281:35: note: forward declaration of 'struct __sanitizer::stat64'
  281 | static void stat64_to_stat(struct stat64 *in, struct stat *out) {
      |                                   ^~~~~~
/var/tmp/portage/sys-devel/gcc-13.2.1_p20231014/work/gcc-13-20231014/libsanitizer/sanitizer_common/sanitizer_linux.cpp:290:20: error: invalid use of incomplete type 'struct __sanitizer::stat64'
  290 |   out->st_size = in->st_size;
      |                    ^~
/var/tmp/portage/sys-devel/gcc-13.2.1_p20231014/work/gcc-13-20231014/libsanitizer/sanitizer_common/sanitizer_linux.cpp:281:35: note: forward declaration of 'struct __sanitizer::stat64'
  281 | static void stat64_to_stat(struct stat64 *in, struct stat *out) {
      |                                   ^~~~~~
/var/tmp/portage/sys-devel/gcc-13.2.1_p20231014/work/gcc-13-20231014/libsanitizer/sanitizer_common/sanitizer_linux.cpp:291:23: error: invalid use of incomplete type 'struct __sanitizer::stat64'
  291 |   out->st_blksize = in->st_blksize;
      |                       ^~
/var/tmp/portage/sys-devel/gcc-13.2.1_p20231014/work/gcc-13-20231014/libsanitizer/sanitizer_common/sanitizer_linux.cpp:281:35: note: forward declaration of 'struct __sanitizer::stat64'
  281 | static void stat64_to_stat(struct stat64 *in, struct stat *out) {
      |                                   ^~~~~~
/var/tmp/portage/sys-devel/gcc-13.2.1_p20231014/work/gcc-13-20231014/libsanitizer/sanitizer_common/sanitizer_linux.cpp:292:22: error: invalid use of incomplete type 'struct __sanitizer::stat64'
  292 |   out->st_blocks = in->st_blocks;
      |                      ^~
/var/tmp/portage/sys-devel/gcc-13.2.1_p20231014/work/gcc-13-20231014/libsanitizer/sanitizer_common/sanitizer_linux.cpp:281:35: note: forward declaration of 'struct __sanitizer::stat64'
  281 | static void stat64_to_stat(struct stat64 *in, struct stat *out) {
      |                                   ^~~~~~
/var/tmp/portage/sys-devel/gcc-13.2.1_p20231014/work/gcc-13-20231014/libsanitizer/sanitizer_common/sanitizer_linux.cpp:293:21: error: invalid use of incomplete type 'struct __sanitizer::stat64'
  293 |   out->st_atime = in->st_atime;
      |                     ^~
/var/tmp/portage/sys-devel/gcc-13.2.1_p20231014/work/gcc-13-20231014/libsanitizer/sanitizer_common/sanitizer_linux.cpp:281:35: note: forward declaration of 'struct __sanitizer::stat64'
  281 | static void stat64_to_stat(struct stat64 *in, struct stat *out) {
      |                                   ^~~~~~
/var/tmp/portage/sys-devel/gcc-13.2.1_p20231014/work/gcc-13-20231014/libsanitizer/sanitizer_common/sanitizer_linux.cpp:294:21: error: invalid use of incomplete type 'struct __sanitizer::stat64'
  294 |   out->st_mtime = in->st_mtime;
      |                     ^~
/var/tmp/portage/sys-devel/gcc-13.2.1_p20231014/work/gcc-13-20231014/libsanitizer/sanitizer_common/sanitizer_linux.cpp:281:35: note: forward declaration of 'struct __sanitizer::stat64'
  281 | static void stat64_to_stat(struct stat64 *in, struct stat *out) {
      |                                   ^~~~~~
/var/tmp/portage/sys-devel/gcc-13.2.1_p20231014/work/gcc-13-20231014/libsanitizer/sanitizer_common/sanitizer_linux.cpp:295:21: error: invalid use of incomplete type 'struct __sanitizer::stat64'
  295 |   out->st_ctime = in->st_ctime;
      |                     ^~
/var/tmp/portage/sys-devel/gcc-13.2.1_p20231014/work/gcc-13-20231014/libsanitizer/sanitizer_common/sanitizer_linux.cpp:281:35: note: forward declaration of 'struct __sanitizer::stat64'
  281 | static void stat64_to_stat(struct stat64 *in, struct stat *out) {
      |                                   ^~~~~~
/var/tmp/portage/sys-devel/gcc-13.2.1_p20231014/work/gcc-13-20231014/libsanitizer/sanitizer_common/sanitizer_linux.cpp: In function '__sanitizer::uptr __sanitizer::internal_stat(const char*, void*)':
/var/tmp/portage/sys-devel/gcc-13.2.1_p20231014/work/gcc-13-20231014/libsanitizer/sanitizer_common/sanitizer_linux.cpp:387:17: error: aggregate '__sanitizer::stat64 buf64' has incomplete type and cannot be defined
  387 |   struct stat64 buf64;
      |                 ^~~~~
/var/tmp/portage/sys-devel/gcc-13.2.1_p20231014/work/gcc-13-20231014/libsanitizer/sanitizer_common/sanitizer_linux.cpp: In function '__sanitizer::uptr __sanitizer::internal_lstat(const char*, void*)':
/var/tmp/portage/sys-devel/gcc-13.2.1_p20231014/work/gcc-13-20231014/libsanitizer/sanitizer_common/sanitizer_linux.cpp:419:17: error: aggregate '__sanitizer::stat64 buf64' has incomplete type and cannot be defined
  419 |   struct stat64 buf64;
      |                 ^~~~~
/var/tmp/portage/sys-devel/gcc-13.2.1_p20231014/work/gcc-13-20231014/libsanitizer/sanitizer_common/sanitizer_linux.cpp: In function '__sanitizer::uptr __sanitizer::internal_fstat(fd_t, void*)':
/var/tmp/portage/sys-devel/gcc-13.2.1_p20231014/work/gcc-13-20231014/libsanitizer/sanitizer_common/sanitizer_linux.cpp:451:17: error: aggregate '__sanitizer::stat64 buf64' has incomplete type and cannot be defined
  451 |   struct stat64 buf64;
      |                 ^~~~~
/var/tmp/portage/sys-devel/gcc-13.2.1_p20231014/work/gcc-13-20231014/libsanitizer/sanitizer_common/sanitizer_linux.cpp: At global scope:
/var/tmp/portage/sys-devel/gcc-13.2.1_p20231014/work/gcc-13-20231014/libsanitizer/sanitizer_common/sanitizer_linux.cpp:281:13: warning: 'void __sanitizer::stat64_to_stat(stat64*, stat*)' defined but not used [-Wunused-function]
  281 | static void stat64_to_stat(struct stat64 *in, struct stat *out) {
      |             ^~~~~~~~~~~~~~
make[4]: *** [Makefile:618: sanitizer_linux.lo] Error 1
make[4]: Leaving directory '/var/tmp/portage/sys-devel/gcc-13.2.1_p20231014/work/build/armv6j-unknown-linux-musleabihf/libsanitizer/sanitizer_common'
Comment 1 immolo 2023-12-24 05:05:05 UTC
# emerge --info
Portage 3.0.58 (python 3.11.7-final-0, default/linux/arm/23.0/armv6j_hf/musl/hardened, gcc-13, musl-1.2.4-r1, 6.1.11-gentoo-dist armv7l)
=================================================================
System uname: Linux-6.1.11-gentoo-dist-armv7l-ARMv8_Processor_rev_0_-v8l-with-libc
KiB Mem:    65768708 total,  29153756 free
KiB Swap:    8392700 total,   8391932 free
Timestamp of repository gentoo: Sat, 23 Dec 2023 18:30:01 +0000
Head commit of repository gentoo: 64c1501bf9edc0a5daa4d4759275a0a9725be8bd
sh bash 5.2_p21-r1
ld GNU ld (Gentoo 2.40 p5) 2.40.0
app-misc/pax-utils:        1.3.7::gentoo
app-shells/bash:           5.2_p21-r1::gentoo
dev-lang/perl:             5.38.2::gentoo
dev-lang/python:           3.11.7::gentoo, 3.12.1::gentoo
dev-util/cmake:            3.28.1::gentoo
dev-util/meson:            1.3.0-r2::gentoo
sys-apps/baselayout:       2.14-r1::gentoo
sys-apps/openrc:           0.52.1::gentoo
sys-apps/sandbox:          2.38::gentoo
sys-devel/autoconf:        2.71-r7::gentoo
sys-devel/automake:        1.16.5-r1::gentoo
sys-devel/binutils:        2.40-r5::gentoo, 2.41-r2::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/gcc:             13.2.1_p20231014::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-devel/libtool:         2.4.7-r1::gentoo
sys-devel/make:            4.4.1-r1::gentoo
sys-kernel/linux-headers:  6.6::gentoo (virtual/os-headers)
sys-libs/musl:             1.2.4-r1::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    volatile: False
    sync-rsync-extra-opts:
    sync-rsync-verify-max-age: 3
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-metamanifest: yes

Binary Repositories:

gentoobinhost
    priority: 1
    sync-uri: https://gentoo.osuosl.org/releases/arm/binpackages/17.0/armv6j_hardfp_musl

ACCEPT_KEYWORDS="arm ~arm"
ACCEPT_LICENSE="*"
CBUILD="armv6j-unknown-linux-musleabihf"
CFLAGS="-Os -pipe -mcpu=arm1176jzf-s -mfpu=vfp -mfloat-abi=hard"
CHOST="armv6j-unknown-linux-musleabihf"
CONFIG_PROTECT="/boot/cmdline.txt /boot/config.txt /etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/sandbox.d"
CXXFLAGS="-Os -pipe -mcpu=arm1176jzf-s -mfpu=vfp -mfloat-abi=hard"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--jobs 16 --load-average 32"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME"
FCFLAGS="-Os -pipe -mcpu=arm1176jzf-s -mfpu=vfp -mfloat-abi=hard"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync news parallel-fetch pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-Os -pipe -mcpu=arm1176jzf-s -mfpu=vfp -mfloat-abi=hard"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
INSTALL_MASK="charset.alias /usr/share/locale/locale.alias"
LANG="C.UTF8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LEX="flex"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
SHELL="/bin/bash"
USE="acl arm bzip2 crypt hardened iconv ipv6 lto lzma ncurses nls nptl pam pcre pgo pic pie readline seccomp ssl ssp test-rust unicode xattr xtpax zlib zstd" ADA_TARGET="gnat_2021" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_anon authn_dbm authn_file authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter headers include info log_config logio mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_ARM="edsp thumb v4 v5 v6" ELIBC="musl" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 ntrip navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-1" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_11" RUBY_TARGETS="ruby31" VIDEO_CARDS="exynos fbdev omap dummy" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, LC_ALL, LD, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, MAKEOPTS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
Comment 2 immolo 2023-12-24 05:05:38 UTC
Created attachment 880265 [details]
build log
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-03-08 01:16:53 UTC
Are you sure this isn't a musl-1.2.4 thing, and not fortify-headers?
Comment 4 immolo 2024-03-08 11:59:46 UTC
As discussed in IRC this was originally a confirmed fortify-headers issue only but in the last few weeks it has started to happen on all musl systems. I've not managed to find any reason to update this bug with more information yet.
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-03-08 12:00:37 UTC
Let's just call this a regular musl bug then. It's the same thing it appears.
Comment 6 Larry the Git Cow gentoo-dev 2024-03-20 13:49:57 UTC
The bug has been referenced in the following commit(s):

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

commit a5c6702799cf22355505f76290a931bd52bee3b4
Author:     Andreas K. Hüttel <dilfridge@gentoo.org>
AuthorDate: 2024-03-20 13:45:53 +0000
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: 2024-03-20 13:49:09 +0000

    profiles, musl, arm & x86, 23.0: package.use.stable.mask gcc[sanitize]
    
    Minimum intervention to get stages to build
    
    Bug: https://bugs.gentoo.org/920630
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 .../default/linux/arm/23.0/armv6j_hf/musl/package.use.stable.mask   | 6 ++++++
 .../default/linux/arm/23.0/armv7a_hf/musl/package.use.stable.mask   | 6 ++++++
 profiles/default/linux/arm/23.0/musl/package.use.stable.mask        | 6 ++++++
 .../linux/arm/23.0/split-usr/armv6j_hf/musl/package.use.stable.mask | 6 ++++++
 .../linux/arm/23.0/split-usr/armv7a_hf/musl/package.use.stable.mask | 6 ++++++
 .../default/linux/arm/23.0/split-usr/musl/package.use.stable.mask   | 6 ++++++
 profiles/default/linux/x86/23.0/i486/musl/package.use.stable.mask   | 6 ++++++
 .../linux/x86/23.0/i486/split-usr/musl/package.use.stable.mask      | 6 ++++++
 profiles/default/linux/x86/23.0/i686/musl/package.use.stable.mask   | 6 ++++++
 .../linux/x86/23.0/i686/split-usr/musl/package.use.stable.mask      | 6 ++++++
 10 files changed, 60 insertions(+)