Created attachment 881803 [details] build.log net-proxy/squid-6.5 -> cf_gen.cc fails to compile. Did someone broke it or it's because of compiler got too smart? -- # emerge -pqv '=net-proxy/squid-6.5::gentoo' [ebuild U ] net-proxy/squid-6.5 [4.9] USE="htcp kerberos ldap pam snmp ssl wccp wccpv2 -caps -ecap -esi -gnutls -logrotate -mysql -nis -perl -postgres -qos -radius -samba -sasl (-selinux) -sqlite -ssl-crtd -systemd% -test -tproxy -valgrind% (-ipf-transparent%) (-ipv6%*) (-kqueue%) (-libressl%) (-pf-transparent%)" * IMPORTANT: 19 news items need reading for repository 'gentoo'. * Use eselect news read to view new items. -- # emerge --info '=net-proxy/squid-6.5::gentoo' !!! Your current profile is deprecated and not supported anymore. !!! Use eselect profile to update your profile. !!! Please upgrade to the following profile if possible: default/linux/amd64/17.1 To upgrade do the following steps: The amd64 17.1 profiles switch to a more standard 'no SYMLINK_LIB' multilib layout, and require an explicit migration. The migration is performed using the app-portage/unsymlink-lib tool. Read the Gentoo news item [2] for more information! The following steps can be used to upgrade your system: <...>unsymlink-lib - I know, I will, soon after... Portage 3.0.59 (python 3.11.7-final-0, default/linux/amd64/17.0, gcc-9.2.0, glibc-2.38-r9, 4.19.97-gentoo x86_64) ================================================================= System Settings ================================================================= System uname: Linux-4.19.97-gentoo-x86_64-Intel-R-_Xeon-R-_CPU_E5-2670_v3_@_2.30GHz-with-glibc2.38 KiB Mem: 4027776 total, 176784 free KiB Swap: 1048572 total, 974588 free Timestamp of repository gentoo: Tue, 09 Jan 2024 02:00:01 +0000 Head commit of repository gentoo: 81b4d68cb47299f3ead454add4d6c5dfa564f9fe sh bash 5.1_p16-r6 ld GNU ld (Gentoo 2.32 p2) 2.32.0 app-misc/pax-utils: 1.3.5::gentoo app-shells/bash: 5.1_p16-r6::gentoo dev-lang/perl: 5.38.2-r1::gentoo dev-lang/python: 2.7.17::gentoo, 3.6.9::gentoo, 3.7.5-r1::gentoo, 3.11.7::gentoo, 3.12.1::gentoo dev-util/cmake: 3.27.9::gentoo dev-util/meson: 1.3.0-r2::gentoo sys-apps/baselayout: 2.14-r1::gentoo sys-apps/openrc: 0.48::gentoo sys-apps/sandbox: 2.38::gentoo sys-devel/autoconf: 2.69-r4::gentoo, 2.71-r6::gentoo sys-devel/automake: 1.15.1-r2::gentoo, 1.16.5-r1::gentoo sys-devel/binutils: 2.32-r1::gentoo, 2.41-r3::gentoo sys-devel/binutils-config: 5.5::gentoo sys-devel/gcc: 9.2.0-r2::gentoo, 13.2.1_p20230826::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.1::gentoo (virtual/os-headers) sys-libs/glibc: 2.38-r9::gentoo Repositories: gentoo location: /usr/portage sync-type: rsync sync-uri: rsync://rsync.gentoo.org/gentoo-portage priority: -1000 volatile: True sync-rsync-extra-opts: sync-rsync-verify-metamanifest: yes sync-rsync-verify-jobs: 1 sync-rsync-verify-max-age: 3 ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="*" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=core2 -O2" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/bind" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-march=core2 -O2" DISTDIR="/var/cache/distfiles" EMERGE_DEFAULT_OPTS="--autounmask=n --quiet-build=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="-O2 -pipe" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync 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="-O2 -pipe" GENTOO_MIRRORS="rsync://mirror.bytemark.co.uk/gentoo/ ftp://mirror.bytemark.co.uk/gentoo/" LANG="ru_RU.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LEX="flex" LINGUAS="ru en" MAKEOPTS="-j1" 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 amd64 bzip2 cli crypt dlz dri fortran gd gdbm iconv ipv6 kerberos ldap libtirpc mmx multilib nls nptl openmp openssl pam pcre readline seccomp slang snmp split-usr sse sse2 ssl test-rust truetype tty-helpers unicode utf8 winbind xattr zlib" ABI_X86="64" 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_X86="mmx mmxext sse sse2" 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" GRUB_PLATFORMS="pc" INPUT_DEVICES="libinput" KERNEL="linux" L10N="ru en" 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="amdgpu fbdev intel nouveau radeon radeonsi vesa 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, 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
The problem was caused by old gcc selected by default: # eselect gcc list [1] x86_64-pc-linux-gnu-9.2.0 * [2] x86_64-pc-linux-gnu-13 So, after selecting new gcc the net-proxy/squid got compiled/emerged with no problems. I'm not changing the bug report status because dwfreed from https://web.libera.chat/#gentoo-proxy-maint said: "still a bug in squid, because it's not passing --std=c++17 for that specific compile" "it still uses CXXFLAGS it's just missing the --std=c++17 , which it uses in every other call to cxx"
I've mentioned it at https://github.com/squid-cache/squid/pull/1212#discussion_r1479475609.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0fb3dca4144e8a027305eaecad841c1da353e382 commit 0fb3dca4144e8a027305eaecad841c1da353e382 Author: Sam James <sam@gentoo.org> AuthorDate: 2024-10-21 08:34:36 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2024-10-21 09:16:01 +0000 net-proxy/squid: add 6.12 * Fix respecting $AR * Add -std=gnu++17 for older GCC which doesn't yet default to gnu++17 Closes: https://bugs.gentoo.org/911945 Closes: https://bugs.gentoo.org/921688 Signed-off-by: Sam James <sam@gentoo.org> net-proxy/squid/Manifest | 2 + net-proxy/squid/files/squid-6.12-ar.patch | 29 +++ net-proxy/squid/squid-6.12.ebuild | 417 ++++++++++++++++++++++++++++++ 3 files changed, 448 insertions(+)