Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 823990 - dev-cpp/abseil-cpp-20210324.1 fails to compile on x86 (error: no matching function for call to ‘max(long int, int)’)
Summary: dev-cpp/abseil-cpp-20210324.1 fails to compile on x86 (error: no matching fun...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Georgy Yakovlev
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks: 793893 glibc-2.34
  Show dependency tree
 
Reported: 2021-11-16 10:15 UTC by Jakov Smolić
Modified: 2021-12-04 01:39 UTC (History)
1 user (show)

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


Attachments
build log (abseil,55.62 KB, text/plain)
2021-11-16 10:15 UTC, Jakov Smolić
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jakov Smolić archtester gentoo-dev 2021-11-16 10:15:44 UTC
-Woverlength-strings -Wpointer-arith -Wundef -Wunused-local-typedefs -Wunused-result -Wvarargs -Wvla -Wwrite-strings -DNOMINMAX -std=gnu++17 -MD -MT absl/debugging/CMakeFiles/debugging_internal.dir/internal/address_is_readable.cc.o -MF absl/debugging/CMakeFiles/debugging_internal.dir/internal/address_is_readable.cc.o.d -o absl/debugging/CMakeFiles/debugging_internal.dir/internal/address_is_readable.cc.o -c /var/tmp/portage/dev-cpp/abseil-cpp-20210324.1/work/abseil-cpp-20210324.1/absl/debugging/internal/address_is_readable.cc
[38/232] /usr/bin/i686-pc-linux-gnu-g++ -Dfailure_signal_handler_EXPORTS -I/var/tmp/portage/dev-cpp/abseil-cpp-20210324.1/work/abseil-cpp-20210324.1  -O2 -march=i686 -pipe -fPIC -Wall -Wextra -Wcast-qual -Wconversion-null -Wformat-security -Wmissing-declarations -Woverlength-strings -Wpointer-arith -Wundef -Wunused-local-typedefs -Wunused-result -Wvarargs -Wvla -Wwrite-strings -DNOMINMAX -std=gnu++17 -MD -MT absl/debugging/CMakeFiles/failure_signal_handler.dir/failure_signal_handler.cc.o -MF absl/debugging/CMakeFiles/failure_signal_handler.dir/failure_signal_handler.cc.o.d -o absl/debugging/CMakeFiles/failure_signal_handler.dir/failure_signal_handler.cc.o -c /var/tmp/portage/dev-cpp/abseil-cpp-20210324.1/work/abseil-cpp-20210324.1/absl/debugging/failure_signal_handler.cc
[31mFAILED: [0mabsl/debugging/CMakeFiles/failure_signal_handler.dir/failure_signal_handler.cc.o 
/usr/bin/i686-pc-linux-gnu-g++ -Dfailure_signal_handler_EXPORTS -I/var/tmp/portage/dev-cpp/abseil-cpp-20210324.1/work/abseil-cpp-20210324.1  -O2 -march=i686 -pipe -fPIC -Wall -Wextra -Wcast-qual -Wconversion-null -Wformat-security -Wmissing-declarations -Woverlength-strings -Wpointer-arith -Wundef -Wunused-local-typedefs -Wunused-result -Wvarargs -Wvla -Wwrite-strings -DNOMINMAX -std=gnu++17 -MD -MT absl/debugging/CMakeFiles/failure_signal_handler.dir/failure_signal_handler.cc.o -MF absl/debugging/CMakeFiles/failure_signal_handler.dir/failure_signal_handler.cc.o.d -o absl/debugging/CMakeFiles/failure_signal_handler.dir/failure_signal_handler.cc.o -c /var/tmp/portage/dev-cpp/abseil-cpp-20210324.1/work/abseil-cpp-20210324.1/absl/debugging/failure_signal_handler.cc
/var/tmp/portage/dev-cpp/abseil-cpp-20210324.1/work/abseil-cpp-20210324.1/absl/debugging/failure_signal_handler.cc: In function ‘bool absl::lts_20210324::SetupAlternateStackOnce()’:
/var/tmp/portage/dev-cpp/abseil-cpp-20210324.1/work/abseil-cpp-20210324.1/absl/debugging/failure_signal_handler.cc:139:32: error: no matching function for call to ‘max(long int, int)’
  139 |   size_t stack_size = (std::max(SIGSTKSZ, 65536) + page_mask) & ~page_mask;
      |                        ~~~~~~~~^~~~~~~~~~~~~~~~~

# emerge --info
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-metamanifest: yes
    sync-rsync-extra-opts:

ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="*"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=i686 -pipe"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--jobs 20"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY 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"
FCFLAGS="-O2 -march=i686 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -march=i686 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j40 -l40"
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"
USE="acl bzip2 cli crypt dri fortran gdbm iconv ipv6 libglvnd libtirpc ncurses nls nptl openmp pam pcre readline seccomp split-usr ssl systemd udev unicode x86 xattr zlib" ABI_X86="32" ADA_TARGET="gnat_2019" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache 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_X86="mmx mmxext sse sse2 sse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-3 php7-4" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_9" PYTHON_TARGETS="python3_9" RUBY_TARGETS="ruby26 ruby27" USERLAND="GNU" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Comment 1 Jakov Smolić archtester gentoo-dev 2021-11-16 10:15:57 UTC
Created attachment 751634 [details]
build log
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-11-16 11:20:56 UTC
This is glibc-2.34 related -- SIGSTKSZ isn't a long int anymore.
Comment 4 Larry the Git Cow gentoo-dev 2021-11-16 11:58:55 UTC
The bug has been closed via the following commit(s):

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

commit a6b7f9142590452d2779e12379b6ca856e236d92
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-11-16 11:58:36 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-11-16 11:58:36 +0000

    dev-cpp/abseil-cpp: fix 20210324.1 build with glibc-2.34
    
    Closes: https://bugs.gentoo.org/823990
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-cpp/abseil-cpp/abseil-cpp-20210324.1.ebuild            |  1 +
 .../files/abseil-cpp-20210324.1-glibc-2.34.patch           | 14 ++++++++++++++
 2 files changed, 15 insertions(+)
Comment 5 Larry the Git Cow gentoo-dev 2021-12-04 01:39:06 UTC
The bug has been referenced in the following commit(s):

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

commit fd1e844e01de833acbaceabec582fda3c563733f
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-12-04 01:38:25 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-12-04 01:38:25 +0000

    dev-cpp/abseil-cpp: backport glibc-2.34 patch to 20200923.3
    
    This version is still needed for some software, so let's
    fix it with glibc-2.34 too.
    
    Bug: https://bugs.gentoo.org/823990
    See: https://forums.gentoo.org/viewtopic-t-1146048.html
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-cpp/abseil-cpp/abseil-cpp-20200923.3.ebuild | 1 +
 1 file changed, 1 insertion(+)