Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 937148 - sys-libs/compiler-rt-sanitizers-19.1.0_rc1 fails to compile: error: address of overloaded function 'openat' does not match required type 'unsigned long'
Summary: sys-libs/compiler-rt-sanitizers-19.1.0_rc1 fails to compile: error: address o...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: LLVM support project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-08-02 16:55 UTC by Miroslav Šulc
Modified: 2024-08-02 18:41 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,585.84 KB, text/plain)
2024-08-02 16:55 UTC, Miroslav Šulc
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Miroslav Šulc gentoo-dev 2024-08-02 16:55:51 UTC
Created attachment 898818 [details]
build.log

[487/1170] /usr/lib/llvm/19/bin/x86_64-pc-linux-gnu-clang++  -I/var/tmp/portage/sys-libs/compiler-rt-sanitizers-19.1.0_rc1/work/compiler-rt/lib/rtsan/..  -march=alderlake -mno-cldemote -mno-kl -mno-pconfig -mno-sgx -mno-widekl -mshstk -O2 -pipe -frecord-gcc-switches -Wall -Wno-unused-parameter -std=c++17 -m64 -fPIC -fno-builtin -fno-exceptions -fomit-frame-pointer -funwind-tables -fno-stack-protector -fno-sanitize=safe-stack -fvisibility=hidden -fno-lto -Wthread-safety -Wthread-safety-reference -Wthread-safety-beta -O3 -gline-tables-only -Wno-gnu -Wno-variadic-macros -Wno-c99-extensions -ftrivial-auto-var-init=pattern -DSANITIZER_COMMON_NO_REDEFINE_BUILTINS -MD -MT lib/rtsan/CMakeFiles/RTRtsan.x86_64.dir/rtsan_interceptors.cpp.o -MF lib/rtsan/CMakeFiles/RTRtsan.x86_64.dir/rtsan_interceptors.cpp.o.d -o lib/rtsan/CMakeFiles/RTRtsan.x86_64.dir/rtsan_interceptors.cpp.o -c /var/tmp/portage/sys-libs/compiler-rt-sanitizers-19.1.0_rc1/work/compiler-rt/lib/rtsan/rtsan_interceptors.cpp
FAILED: lib/rtsan/CMakeFiles/RTRtsan.x86_64.dir/rtsan_interceptors.cpp.o 
/usr/lib/llvm/19/bin/x86_64-pc-linux-gnu-clang++  -I/var/tmp/portage/sys-libs/compiler-rt-sanitizers-19.1.0_rc1/work/compiler-rt/lib/rtsan/..  -march=alderlake -mno-cldemote -mno-kl -mno-pconfig -mno-sgx -mno-widekl -mshstk -O2 -pipe -frecord-gcc-switches -Wall -Wno-unused-parameter -std=c++17 -m64 -fPIC -fno-builtin -fno-exceptions -fomit-frame-pointer -funwind-tables -fno-stack-protector -fno-sanitize=safe-stack -fvisibility=hidden -fno-lto -Wthread-safety -Wthread-safety-reference -Wthread-safety-beta -O3 -gline-tables-only -Wno-gnu -Wno-variadic-macros -Wno-c99-extensions -ftrivial-auto-var-init=pattern -DSANITIZER_COMMON_NO_REDEFINE_BUILTINS -MD -MT lib/rtsan/CMakeFiles/RTRtsan.x86_64.dir/rtsan_interceptors.cpp.o -MF lib/rtsan/CMakeFiles/RTRtsan.x86_64.dir/rtsan_interceptors.cpp.o.d -o lib/rtsan/CMakeFiles/RTRtsan.x86_64.dir/rtsan_interceptors.cpp.o -c /var/tmp/portage/sys-libs/compiler-rt-sanitizers-19.1.0_rc1/work/compiler-rt/lib/rtsan/rtsan_interceptors.cpp
/var/tmp/portage/sys-libs/compiler-rt-sanitizers-19.1.0_rc1/work/compiler-rt/lib/rtsan/rtsan_interceptors.cpp:388:22: error: address of overloaded function 'openat' does not match required type 'unsigned long'
  388 |   INTERCEPT_FUNCTION(openat);
      |                      ^~~~~~
/var/tmp/portage/sys-libs/compiler-rt-sanitizers-19.1.0_rc1/work/compiler-rt/lib/rtsan/../interception/interception.h:371:71: note: expanded from macro 'INTERCEPT_FUNCTION'
  371 | # define INTERCEPT_FUNCTION(func) INTERCEPT_FUNCTION_LINUX_OR_FREEBSD(func)
      |                                                                       ^~~~
/var/tmp/portage/sys-libs/compiler-rt-sanitizers-19.1.0_rc1/work/compiler-rt/lib/rtsan/../interception/interception_linux.h:35:33: note: expanded from macro 'INTERCEPT_FUNCTION_LINUX_OR_FREEBSD'
   35 |       (::__interception::uptr)&(func),            \
      |                                 ^~~~
/var/tmp/portage/sys-libs/compiler-rt-sanitizers-19.1.0_rc1/work/compiler-rt/lib/rtsan/rtsan_interceptors.cpp:72:18: note: candidate function
   72 | INTERCEPTOR(int, openat, int fd, const char *path, int oflag, ...) {
      |                  ^
/usr/include/bits/fcntl2.h:195:1: note: candidate address cannot be taken because parameter 2 has pass_object_size attribute
  195 | openat (int __fd, __fortify_clang_overload_arg (const char *, ,__path),
      | ^
/usr/include/bits/fcntl2.h:185:1: note: candidate address cannot be taken because parameter 2 has pass_object_size attribute
  185 | openat (int __fd, __fortify_clang_overload_arg (const char *, ,__path),
      | ^
/usr/include/bits/fcntl2.h:181:1: note: candidate function
  181 | openat (int __fd, const char *__path, int __oflag, mode_t __mode, ...)
      | ^
1 error generated.


# emerge --info '=sys-libs/compiler-rt-sanitizers-19.1.0_rc1::gentoo'
Portage 3.0.65 (python 3.13.0-candidate-1, default/linux/amd64/23.0/split-usr/hardened, gcc-14, glibc-2.40, 6.9.12-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-6.9.12-gentoo-x86_64-13th_Gen_Intel-R-_Core-TM-_i9-13980HX-with-glibc2.40
KiB Mem:    65451764 total,   5837124 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Fri, 02 Aug 2024 16:18:53 +0000
Head commit of repository gentoo: d6ad2cfd5722cc3c8eabb75a2acc7e626c627fdb

Timestamp of repository flavour: Thu, 01 Aug 2024 07:49:13 +0000
Head commit of repository flavour: 57ba364e4da25c366d7c80a090941d184ffbfbc6

Timestamp of repository fordfrog: Thu, 01 Aug 2024 07:49:13 +0000
Head commit of repository fordfrog: d225de51cb38e8dcc7229005588b51d762e09a0f

Timestamp of repository gentoo-zh: Fri, 02 Aug 2024 14:49:02 +0000
Head commit of repository gentoo-zh: 1371a7cc1bba0a80b327119e7d7f76743bb8bd0e

Head commit of repository librewolf: 185dd61c2662891a3eaad52a16875d741fcd39da

Timestamp of repository pf4public: Fri, 02 Aug 2024 16:18:48 +0000
Head commit of repository pf4public: 03b9a292427035f563e97d2a0e75a9f29ee1ac59

sh bash 5.2_p32
ld GNU ld (Gentoo 2.42 p6) 2.42.0
ccache version 4.10.1 [disabled]
app-misc/pax-utils:        1.3.7::gentoo
app-shells/bash:           5.2_p32::gentoo
dev-build/autoconf:        2.72-r1::gentoo
dev-build/automake:        1.17-r1::gentoo
dev-build/cmake:           3.30.1::gentoo
dev-build/libtool:         2.4.7-r4::gentoo
dev-build/make:            4.4.1-r1::gentoo
dev-build/meson:           1.5.1::gentoo
dev-java/java-config:      2.3.4::gentoo
dev-lang/perl:             5.40.0::gentoo
dev-lang/python:           3.10.14_p1-r1::gentoo, 3.11.9_p1::gentoo, 3.12.4_p3::gentoo, 3.13.0_rc1_p1::gentoo
dev-lang/rust-bin:         1.79.0::gentoo
dev-util/ccache:           4.10.1::gentoo
sys-apps/baselayout:       2.15::gentoo
sys-apps/openrc:           0.54.2::gentoo
sys-apps/sandbox:          2.39::gentoo
sys-devel/binutils:        2.42-r2::gentoo
sys-devel/binutils-config: 5.5.2::gentoo
sys-devel/clang:           17.0.6::gentoo, 18.1.8::gentoo, 19.1.0_rc1::gentoo
sys-devel/gcc:             13.3.1_p20240614::gentoo, 14.2.0::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-devel/lld:             19.1.0_rc1::gentoo
sys-devel/llvm:            17.0.6-r2::gentoo, 18.1.8-r2::gentoo, 19.1.0_rc1::gentoo
sys-kernel/linux-headers:  6.9::gentoo (virtual/os-headers)
sys-libs/glibc:            2.40::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/gentoo.git
    priority: -1000
    volatile: False

flavour
    location: /var/db/repos/flavour
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/flavour.git
    masters: gentoo
    volatile: False

fordfrog
    location: /var/db/repos/fordfrog
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/fordfrog.git
    masters: gentoo
    volatile: False

gentoo-zh
    location: /var/db/repos/gentoo-zh
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/gentoo-zh.git
    masters: gentoo
    volatile: False

librewolf
    location: /var/db/repos/librewolf
    sync-type: git
    sync-uri: https://codeberg.org/librewolf/gentoo.git
    masters: gentoo
    volatile: False

pf4public
    location: /var/db/repos/pf4public
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/pf4public.git
    masters: gentoo
    volatile: False

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA android AnyDesk-TOS NVIDIA-SDK PUEL-11"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=alderlake -mabm -mno-cldemote -mno-kl -mno-pconfig -mno-sgx -mno-widekl -mshstk --param=l1-cache-line-size=64 --param=l1-cache-size=48 --param=l2-cache-size=36864 -O2 -pipe -frecord-gcc-switches"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.9/conf"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=alderlake -mabm -mno-cldemote -mno-kl -mno-pconfig -mno-sgx -mno-widekl -mshstk --param=l1-cache-line-size=64 --param=l1-cache-size=48 --param=l2-cache-size=36864 -O2 -pipe -frecord-gcc-switches"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--misspell-suggestions n"
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="-march=alderlake -mabm -mno-cldemote -mno-kl -mno-pconfig -mno-sgx -mno-widekl -mshstk --param=l1-cache-line-size=64 --param=l1-cache-size=48 --param=l2-cache-size=36864 -O2 -pipe -frecord-gcc-switches"
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 merge-wait multilib-strict network-sandbox news parallel-fetch pid-sandbox 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="-march=alderlake -mabm -mno-cldemote -mno-kl -mno-pconfig -mno-sgx -mno-widekl -mshstk --param=l1-cache-line-size=64 --param=l1-cache-size=48 --param=l2-cache-size=36864 -O2 -pipe -frecord-gcc-switches"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="cs_CZ.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs"
LEX="flex"
LINGUAS="cs cs_CZ en en_US en_UK"
MAKEOPTS="-j33"
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="X a52 aac aacplus acl alsa amd64 aubio bluetooth btrfs bzip2 cdda cddb cdr cet color-management colord crypt cuda cups dbus dia dssi dvb dvd elogind exif ffmpeg flac gdbm gegl gif gles gles1 gles2 gles3 gphoto2 gsm gtk gtk3 hardened hddtemp http2 iconv icu id3tag ipv6 jack jack-dbus jacksession javafx jpeg keyring kwallet ladspa lastfm latex lcms libass libnotify libproxy libsamplerate libtirpc lilypond lm-sensors lto lv2 mad modplug mp3 mpeg mpi mtp multilib musepack ncurses nls ntfs nvme ocr ogg opencl openexr opengl openmp optix opus osc pam pcre pdf pic pie pipewire png policykit pulseaudio qt5 qt6 raw readline rubberband samba scanner screencast seccomp sf2 sndfile soundio speex spell split-usr ssl ssp startup-notification svg svg2 taglib test-rust theora tiff timidity tk tray truetype udev unicode usb vaapi vamp vdpau verify-sig visio vorbis vpx vst vulkan wavpack wayland webp widevine wmf x264 x265 xattr xfce xinerama xmp xtpax xv xvid zlib" ABI_X86="32 64" ADA_TARGET="gcc_12" APACHE2_MODULES="alias auth_basic authn_core authn_file authz_core authz_host authz_user cgi cgid deflate dir expires filter headers http2 include info log_config mime mime_magic negotiation proxy proxy_ajp rewrite setenvif socache_shmcb status unixd vhost_alias" APACHE2_MPMS="event" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt rdrand sha sse sse2 sse3 sse4_1 sse4_2 ssse3 vpclmulqdq" ELIBC="glibc" 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="evdev libinput wacom" KERNEL="linux" L10N="cs cs-CZ en en-US en-UK" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LLVM_TARGETS="NVPTX" LUA_SINGLE_TARGET="luajit lua5-4" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PERL_FEATURES="ithreads" PHP_TARGETS="php8-2" POSTGRES_TARGETS="postgres16" PYTHON_SINGLE_TARGET="python3_12" PYTHON_TARGETS="python3_11 python3_12 python3_13" RUBY_TARGETS="ruby31 ruby32 ruby33" SANE_BACKENDS="genesys" VIDEO_CARDS="fbdev intel nvidia vesa" 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, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS


# emerge -pqv '=sys-libs/compiler-rt-sanitizers-19.1.0_rc1::gentoo'
[ebuild     U ] sys-libs/compiler-rt-sanitizers-19.1.0_rc1 [19.0.0_pre20240720] USE="asan cfi clang ctx-profile debug dfsan gwp-asan hwasan libfuzzer lsan memprof msan profile safestack scudo tsan ubsan verify-sig%* xray -orc (-shadowcallstack) -test" ABI_X86="32 (64)"
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2024-08-02 18:04:16 UTC
I'm waiting for one more fix to land before doing the backports.
Comment 2 Larry the Git Cow gentoo-dev 2024-08-02 18:41:24 UTC
The bug has been closed via the following commit(s):

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

commit 8489ef345a7118006ac8f7618e952903a35eb86c
Author:     Michał Górny <mgorny@gentoo.org>
AuthorDate: 2024-08-02 18:24:32 +0000
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: 2024-08-02 18:41:20 +0000

    sys-libs/compiler-rt-sanitizers: Backport >=sys-libs/glibc-2.40 fixes
    
    Closes: https://bugs.gentoo.org/937148
    Signed-off-by: Michał Górny <mgorny@gentoo.org>

 sys-libs/compiler-rt-sanitizers/Manifest                                 | 1 +
 sys-libs/compiler-rt-sanitizers/compiler-rt-sanitizers-19.1.0_rc1.ebuild | 1 +
 2 files changed, 2 insertions(+)