Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
protobuf-c emerge fails (solved)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
mikb
Tux's lil' helper
Tux's lil' helper


Joined: 14 Dec 2005
Posts: 124
Location: Sydney Australia

PostPosted: Wed Jul 17, 2024 1:13 am    Post subject: protobuf-c emerge fails (solved) Reply with quote

Current versions of dev-libs/protobuf-c depend on C++17. I am unable to upgrade or rebuild =dev-libs/protobuf-c-1.4.1-r1 because of a configure failure:
Code:

checking whether x86_64-pc-linux-gnu-g++ -m32 -mfpmath=sse supports C++17 features with -std=c++17... no
checking whether x86_64-pc-linux-gnu-g++ -m32 -mfpmath=sse supports C++17 features with +std=c++17... no
checking whether x86_64-pc-linux-gnu-g++ -m32 -mfpmath=sse supports C++17 features with -h std=c++17... no
checking whether x86_64-pc-linux-gnu-g++ -m32 -mfpmath=sse supports C++17 features with -std=c++1z... no
checking whether x86_64-pc-linux-gnu-g++ -m32 -mfpmath=sse supports C++17 features with +std=c++1z... no
checking whether x86_64-pc-linux-gnu-g++ -m32 -mfpmath=sse supports C++17 features with -h std=c++1z... no
configure: error: *** A compiler with support for C++17 language features is required.


Checking the config.log, it seems the compiler command for the C++17 standard check is being overridden:
Code:

configure:17902: checking whether x86_64-pc-linux-gnu-g++ -m32 -mfpmath=sse supports C++17 features with -std=c++17
configure:18697: x86_64-pc-linux-gnu-g++ -m32 -mfpmath=sse -std=c++17 -c -march=native -O3 -pipe -frecord-gcc-switches -std=gnu++11  conftest.cpp >&5


The summary at the end of the config.log has:
Code:
CXXFLAGS='-march=native -O3 -pipe -frecord-gcc-switches -std=gnu++11'

but the CXXFLAGS in emerge --info is:
Code:
CXXFLAGS="-march=native -O3 -pipe -frecord-gcc-switches -std=gnu++17"


I can't see where this is being overridden. Does anyone have any suggestions?
_________________
With sufficient thrust, pigs fly just fine (RFC 1925, apparently talking about Gentoo)


Last edited by mikb on Wed Jul 17, 2024 2:36 am; edited 1 time in total
Back to top
View user's profile Send private message
mikb
Tux's lil' helper
Tux's lil' helper


Joined: 14 Dec 2005
Posts: 124
Location: Sydney Australia

PostPosted: Wed Jul 17, 2024 1:18 am    Post subject: emerge --info Reply with quote

Code:

Portage 3.0.65 (python 3.13.0-beta-3, default/linux/amd64/23.0/desktop/plasma, gcc-14, glibc-2.39-r9, 6.10.0-gentoo-x86_64 x86_64)
=================================================================
System uname: Linux-6.10.0-gentoo-x86_64-x86_64-Intel-R-_Core-TM-_i7-1065G7_CPU_@_1.30GHz-with-glibc2.39
KiB Mem:    15935572 total,    128436 free
KiB Swap:   67108860 total,  65969660 free
Timestamp of repository gentoo: Tue, 16 Jul 2024 03:15:00 +0000
Head commit of repository gentoo: 7fcfe552947035640f0994dde181512588ab94c5
Timestamp of repository crossdev: Sun, 20 Jun 2021 21:41:33 +0000
Head commit of repository crossdev: 7c86f8ca262ff27fe4fb1965d8f8fef19f77a3bb

Timestamp of repository dlang: Mon, 15 Jul 2024 07:34:30 +0000
Head commit of repository dlang: a4f728df79d3c5f03df8b991f455abf627e5e7e0

Timestamp of repository eclipse: Sat, 20 Jan 2024 10:19:57 +0000
Head commit of repository eclipse: 292c22692558bbd73e4bc6bcb5afab1019f68c1f

Timestamp of repository emacs: Mon, 15 Jul 2024 07:34:30 +0000
Head commit of repository emacs: 3c9f7627b2d174a3c0c789b241a5b3c8fa01ac62

Timestamp of repository kde: Sat, 13 Jul 2024 22:03:52 +0000
Head commit of repository kde: beeb87ba18fb5fbc105bc340b636a7b041a1984c

Timestamp of repository mv: Mon, 15 Jul 2024 07:34:30 +0000
Head commit of repository mv: 045f7390f05ea40e0125201fd3223e22369a9f3a

Timestamp of repository openwrt: Mon, 18 Jul 2022 16:18:52 +0000
Head commit of repository openwrt: 3fa880fff33e56c021aa9d09a5519cd07725e3b6

Timestamp of repository wayland-desktop: Mon, 15 Jul 2024 21:03:58 +0000
Head commit of repository wayland-desktop: 7b7e4e639daf2a892aded65953615525584538da

Timestamp of repository without-systemd: Fri, 12 Jul 2024 07:49:28 +0000
Head commit of repository without-systemd: 0888a2bb87d43cf3afc286fb68ca84f601d40246

sh bash 5.2_p26-r8
ld GNU ld (Gentoo 2.42 p6) 2.42.0
app-misc/pax-utils:        1.3.7::gentoo
app-shells/bash:           5.2_p26-r8::gentoo
dev-build/autoconf:        2.72-r1::gentoo
dev-build/automake:        1.16.5-r2::gentoo
dev-build/cmake:           3.30.0::gentoo
dev-build/libtool:         2.4.7-r4::gentoo
dev-build/make:            4.4.1-r1::gentoo
dev-build/meson:           1.4.1::gentoo
dev-java/java-config:      2.3.4::gentoo
dev-lang/perl:             5.40.0::gentoo
dev-lang/python:           3.11.9-r1::gentoo, 3.12.4_p2::gentoo, 3.13.0_beta3_p1::gentoo
dev-lang/rust:             1.77.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::gentoo
sys-devel/clang:           15.0.7-r3::gentoo, 17.0.6::gentoo, 18.1.8::gentoo
sys-devel/gcc:             14.1.1_p20240622::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-devel/lld:             15.0.7::gentoo, 17.0.6::gentoo, 18.1.8::gentoo
sys-devel/llvm:            15.0.7-r3::gentoo, 17.0.6::gentoo, 18.1.8::gentoo
sys-kernel/linux-headers:  6.9::gentoo (virtual/os-headers)
sys-libs/glibc:            2.39-r9::gentoo
Repositories:

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

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

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

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

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

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

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

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

overlay
    location: /var/db/repos/overlay
    masters: gentoo
    priority: 0
    volatile: True

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

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

Installed sets: @system
ABI="amd64"
ABI_X86="64 32"
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
ACCEPT_PROPERTIES="*"
ACCEPT_RESTRICT="*"
ADA_TARGET="gcc_12"
ANT_HOME="/usr/share/ant"
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"
ARCH="amd64"
AUTOCLEAN="no"
BINPKG_COMPRESS="zstd"
BINPKG_FORMAT="xpak"
BINPKG_GPG_SIGNING_BASE_COMMAND="/usr/bin/flock /run/lock/portage-binpkg-gpg.lock /usr/bin/gpg --sign --armor [PORTAGE_CONFIG]"
BINPKG_GPG_SIGNING_DIGEST="SHA512"
BINPKG_GPG_VERIFY_BASE_COMMAND="/usr/bin/gpg --verify --batch --no-tty --no-auto-check-trustdb --status-fd 2 [PORTAGE_CONFIG] [SIGNATURE]"
BINPKG_GPG_VERIFY_GPG_HOME="/etc/portage/gnupg"
BOOTSTRAP_USE="unicode pkg-config split-usr xml python_targets_python3_12 python_single_target_python3_12 gil multilib zstd cet"
BROOT=""
CALLIGRA_FEATURES="karbon sheets stage words flow"
CASROOT="/usr"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O3 -pipe -frecord-gcc-switches"
CFLAGS_amd64="-m64"
CFLAGS_x32="-mx32"
CFLAGS_x86="-m32 -mfpmath=sse"
CHOST="x86_64-pc-linux-gnu"
CHOST_amd64="x86_64-pc-linux-gnu"
CHOST_x32="x86_64-pc-linux-gnux32"
CHOST_x86="i686-pc-linux-gnu"
CLEAN_DELAY="5"
COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog"
COLLISION_IGNORE="/boot/dtbs/* /lib/modules/*"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0"
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/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CPU_FLAGS_X86="aes avx avx2 avx512_bitalg avx512_vbmi2 avx512_vnni avx512_vpopcntdq avx512bw avx512cd avx512dq avx512f avx512ifma avx512vbmi avx512vl f16c fma3 mmx mmxext pclmul popcnt rdrand sha sse sse2 sse3 sse4_1 sse4_2 ssse3 vpclmulqdq"
CSF_GraphicShr="/usr/lib64/opencascade/libTKOpenGl.so"
CSF_IGESDefaults="/usr/share/opencascade/resources/XSTEPResource"
CSF_MDTVTexturesDirectory="/usr/share/opencascade/resources/Textures"
CSF_MIGRATION_TYPES="/usr/share/opencascade/resources/StdResource/MigrationSheet.txt"
CSF_PluginDefaults="/usr/share/opencascade/resources/StdResource"
CSF_SHMessage="/usr/share/opencascade/resources/SHMessage"
CSF_STEPDefaults="/usr/share/opencascade/resources/XSTEPResource"
CSF_ShadersDirectory="/usr/share/opencascade/resources/Shaders"
CSF_StandardDefaults="/usr/share/opencascade/resources/StdResource"
CSF_StandardLiteDefaults="/usr/share/opencascade/resources/StdResource"
CSF_UnitsDefinition="/usr/share/opencascade/resources/UnitsAPI/Units.dat"
CSF_XCAFDefaults="/usr/share/opencascade/resources/StdResource"
CSF_XSMessage="/usr/share/opencascade/resources/XSMessage"
CSF_XmlOcafResource="/usr/share/opencascade/resources/XmlOcafResource"
CXXFLAGS="-march=native -O3 -pipe -frecord-gcc-switches -std=gnu++17"
DEFAULT_ABI="amd64"
DISPLAY=":0"
DISTDIR="/var/cache/portage/distfiles"
DOTNET_ROOT="/opt/dotnet-sdk-bin-8.0"
EDITOR="nano"
ELIBC="glibc"
EMERGE_DEFAULT_OPTS="--buildpkg --verbose --verbose-conflicts --backtrack=100 --jobs=17"
EMERGE_WARNING_DELAY="10"
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"
EPREFIX=""
EROOT="/"
ESYSROOT="/"
ETCKEEPER_CONF_DIR="/etc/etckeeper"
FCFLAGS="-march=native -O3 -pipe -frecord-gcc-switches -std=legacy"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg buildpkg-live candy clean-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync merge-wait mount-sandbox multilib-strict network-sandbox network-sandbox-proxy news parallel-fetch parallel-install pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms split-elog split-log splitdebug strict strict-keepdir unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync warn-on-large-env xattr"
FETCHCOMMAND="wget -t 3 -T 60 --passive-ftp -O "${DISTDIR}/${FILE}" "${URI}""
FETCHCOMMAND_RSYNC="rsync -LtvP "${URI}" "${DISTDIR}/${FILE}""
FETCHCOMMAND_SFTP="bash -c "x=\${2#sftp://} ; host=\${x%%/*} ; port=\${host##*:} ; host=\${host%:*} ; [[ \${host} = \${port} ]] && port= ; eval \"declare -a ssh_opts=(\${3})\" ; exec sftp \${port:+-P \${port}} \"\${ssh_opts[@]}\" \"\${host}:/\${x#*/}\" \"\$1\"" sftp "${DISTDIR}/${FILE}" "${URI}" "${PORTAGE_SSH_OPTS}""
FETCHCOMMAND_SSH="bash -c "x=\${2#ssh://} ; host=\${x%%/*} ; port=\${host##*:} ; host=\${host%:*} ; [[ \${host} = \${port} ]] && port= ; exec rsync --rsh=\"ssh \${port:+-p\${port}} \${3}\" -avP \"\${host}:/\${x#*/}\" \"\$1\"" rsync "${DISTDIR}/${FILE}" "${URI}" "${PORTAGE_SSH_OPTS}""
FFLAGS="-march=native -O3 -pipe -frecord-gcc-switches -std=legacy"
FLTK_DOCDIR="/usr/share/doc/fltk-1.3.8/html"
GCC_SPECS=""
GCPAN_OVERLAY="perl-gcpan"
GENTOO_MIRRORS=" http://ftp.swin.edu.au/gentoo ftp://ftp.swin.edu.au/gentoo rsync://mirror.aarnet.edu.au/pub/gentoo/ http://mirror.aarnet.edu.au/pub/gentoo/ "
GPG_VERIFY_GROUP_DROP="nogroup"
GPG_VERIFY_USER_DROP="nobody"
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="efi-64"
GSETTINGS_BACKEND="dconf"
HOME="/root"
INFOPATH="/usr/share/gcc-data/x86_64-pc-linux-gnu/14/info:/usr/share/binutils-data/x86_64-pc-linux-gnu/2.42/info:/usr/share/autoconf-2.72/info:/usr/share/autoconf-2.13/info:/usr/share/automake-1.16.5/info:/usr/share/info:/usr/share/info/emacs-29"
INPUT_DEVICES="libinput wacom"
IUSE_IMPLICIT="abi_x86_64 prefix prefix-guest prefix-stack"
JAVAC="/etc/java-config-2/current-system-vm/bin/javac"
JAVA_HOME="/etc/java-config-2/current-system-vm"
JDK_HOME="/etc/java-config-2/current-system-vm"
KERNEL="linux"
L10N="en-AU en-GB en-US"
LADSPA_PATH="/usr/lib64/ladspa"
LANG="en_AU.utf8"
LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text"
LC_MESSAGES="C"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs"
LDFLAGS_amd64="-m elf_x86_64"
LDFLAGS_x32="-m elf32_x86_64"
LDFLAGS_x86="-m elf_i386"
LESS="-sFRiMX --shift 5"
LESSOPEN="|lesspipe.sh %s"
LEX="flex"
LIBDIR_amd64="lib64"
LIBDIR_x32="libx32"
LIBDIR_x86="lib"
LIBGUESTFS_PATH="/usr/share/guestfs/appliance/"
LOGNAME="root"
LS_COLORS="rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:su=37;41:sg=30;43:ca=00:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.7z=01;31:*.ace=01;31:*.alz=01;31:*.apk=01;31:*.arc=01;31:*.arj=01;31:*.bz=01;31:*.bz2=01;31:*.cab=01;31:*.cpio=01;31:*.crate=01;31:*.deb=01;31:*.drpm=01;31:*.dwm=01;31:*.dz=01;31:*.ear=01;31:*.egg=01;31:*.esd=01;31:*.gz=01;31:*.jar=01;31:*.lha=01;31:*.lrz=01;31:*.lz=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.lzo=01;31:*.pyz=01;31:*.rar=01;31:*.rpm=01;31:*.rz=01;31:*.sar=01;31:*.swm=01;31:*.t7z=01;31:*.tar=01;31:*.taz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tgz=01;31:*.tlz=01;31:*.txz=01;31:*.tz=01;31:*.tzo=01;31:*.tzst=01;31:*.udeb=01;31:*.war=01;31:*.whl=01;31:*.wim=01;31:*.xz=01;31:*.z=01;31:*.zip=01;31:*.zoo=01;31:*.zst=01;31:*.avif=01;35:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.webp=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.cfg=00;32:*.conf=00;32:*.diff=00;32:*.doc=00;32:*.ini=00;32:*.log=00;32:*.patch=00;32:*.pdf=00;32:*.ps=00;32:*.tex=00;32:*.txt=00;32:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:*~=00;90:*#=00;90:*.bak=00;90:*.crdownload=00;90:*.dpkg-dist=00;90:*.dpkg-new=00;90:*.dpkg-old=00;90:*.dpkg-tmp=00;90:*.old=00;90:*.orig=00;90:*.part=00;90:*.rej=00;90:*.rpmnew=00;90:*.rpmorig=00;90:*.rpmsave=00;90:*.swp=00;90:*.tmp=00;90:*.ucf-dist=00;90:*.ucf-new=00;90:*.ucf-old=00;90:"
LUA_SINGLE_TARGET="lua5-1"
LUA_TARGETS="lua5-1"
LV2_PATH="/usr/lib64/lv2"
MAKEOPTS="-j17"
MANPAGER="manpager"
MANPATH="/etc/java-config-2/current-system-vm/man:/usr/share/gcc-data/x86_64-pc-linux-gnu/14/man:/usr/share/binutils-data/x86_64-pc-linux-gnu/2.42/man:/etc/java-config-2/current-system-vm/man/:/usr/local/share/man:/usr/share/man:/usr/lib/rust/man:/usr/lib/llvm/18/share/man:/usr/lib/llvm/17/share/man:/usr/lib/llvm/15/share/man"
MOZ_GMP_PATH="/usr/lib64/nsbrowser/plugins/gmp-gmpopenh264/system-installed"
MULTILIB_ABIS="amd64 x86"
MULTILIB_STRICT_DENY="64-bit.*shared object"
MULTILIB_STRICT_DIRS="/lib32 /lib /usr/lib32 /usr/lib /usr/kde/*/lib32 /usr/kde/*/lib /usr/qt/*/lib32 /usr/qt/*/lib /usr/X11R6/lib32 /usr/X11R6/lib"
MULTILIB_STRICT_EXEMPT="(perl5|gcc|binutils|eclipse-3|debug|portage|udev|systemd|clang|python-exec|llvm)"
NPM_CONFIG_GLOBALCONFIG="/etc/npm/npmrc"
OFFICE_IMPLEMENTATION="libreoffice"
PAGER="/usr/bin/less"
PATH="/usr/local/sbin:/usr/local/bin:/usr/bin:/opt/bin:/usr/lib/llvm/18/bin:/usr/lib/llvm/17/bin:/usr/lib/llvm/15/bin:/usr/lib64/opencascade/bin"
PAX_MARKINGS="XT"
PHP_TARGETS="php8-0"
PKGDIR="/var/cache/portage/packages"
PORTAGE_ARCHLIST="alpha amd64 amd64-linux arm arm-linux arm64 arm64-linux arm64-macos hppa ia64 loong m68k mips ppc ppc-macos ppc64 ppc64-linux riscv riscv-linux s390 sparc x64-macos x64-solaris x86 x86-linux x86-macos"
PORTAGE_BIN_PATH="/usr/lib/portage/python3.13"
PORTAGE_COMPRESS_EXCLUDE_SUFFIXES="css gif htm[l]? jp[e]?g js pdf png"
PORTAGE_CONFIGROOT="/"
PORTAGE_DEBUG="0"
PORTAGE_DEPCACHEDIR="/var/cache/edb/dep"
PORTAGE_ELOG_CLASSES="log warn error"
PORTAGE_ELOG_MAILFROM="portage@localhost"
PORTAGE_ELOG_MAILSUBJECT="[portage] ebuild log for ${PACKAGE} on ${HOST}"
PORTAGE_ELOG_MAILURI="root"
PORTAGE_ELOG_SYSTEM="save_summary:log,warn,error,qa echo"
PORTAGE_FETCH_CHECKSUM_TRY_MIRRORS="5"
PORTAGE_FETCH_RESUME_MIN_SIZE="350K"
PORTAGE_GID="250"
PORTAGE_GPG_SIGNING_COMMAND="gpg --sign --digest-algo SHA256 --clearsign --yes --default-key "${PORTAGE_GPG_KEY}" --homedir "${PORTAGE_GPG_DIR}" "${FILE}""
PORTAGE_INST_GID="0"
PORTAGE_INST_UID="0"
PORTAGE_INTERNAL_CALLER="1"
PORTAGE_IONICE_COMMAND="ionice -c 3 -p ${PID}"
PORTAGE_LOGDIR_CLEAN="find "${PORTAGE_LOGDIR}" -type f ! -name "summary.log*" -mtime +7 -delete"
PORTAGE_NICENESS="3"
PORTAGE_OVERRIDE_EPREFIX=""
PORTAGE_PYM_PATH="/usr/lib/python3.13/site-packages"
PORTAGE_PYTHONPATH="/usr/lib/python3.13/site-packages"
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_RSYNC_RETRIES="-1"
PORTAGE_SYNC_STALE="30"
PORTAGE_TMPDIR="/var/tmp"
PORTAGE_TRUST_HELPER="/usr/bin/getuto"
PORTAGE_VERBOSE="1"
PORTAGE_WORKDIR_MODE="0700"
PORTAGE_XATTR_EXCLUDE="btrfs.* security.evm security.ima        security.selinux system.nfs4_acl user.apache_handler    user.Beagle.* user.dublincore.* user.mime_encoding user.xdg.*"
PORT_LOGDIR="/var/log/portage"
POSTGRES_TARGETS="postgres15"
PROFILE_ONLY_VARIABLES="ARCH ELIBC IUSE_IMPLICIT KERNEL USE_EXPAND_IMPLICIT USE_EXPAND_UNPREFIXED USE_EXPAND_VALUES_ARCH USE_EXPAND_VALUES_ELIBC USE_EXPAND_VALUES_KERNEL"
PWD="/root"
PYTHONDONTWRITEBYTECODE="1"
PYTHON_SINGLE_TARGET="python3_12"
PYTHON_TARGETS="python3_11 python3_12 python3_13"
QT_API="pyqt5"
QT_GRAPHICSSYSTEM="native"
QT_QPA_PLATFORMTHEME="qt5ct"
RESUMECOMMAND="wget -c -t 3 -T 60 --passive-ftp -O "${DISTDIR}/${FILE}" "${URI}""
RESUMECOMMAND_RSYNC="rsync -LtvP "${URI}" "${DISTDIR}/${FILE}""
RESUMECOMMAND_SSH="bash -c "x=\${2#ssh://} ; host=\${x%%/*} ; port=\${host##*:} ; host=\${host%:*} ; [[ \${host} = \${port} ]] && port= ; exec rsync --rsh=\"ssh \${port:+-p\${port}} \${3}\" -avP \"\${host}:/\${x#*/}\" \"\$1\"" rsync "${DISTDIR}/${FILE}" "${URI}" "${PORTAGE_SSH_OPTS}""
ROOT="/"
ROOTPATH="/usr/local/sbin:/usr/local/bin:/usr/bin:/opt/bin:/usr/lib/llvm/18/bin:/usr/lib/llvm/17/bin:/usr/lib/llvm/15/bin"
RPMDIR="/var/cache/rpm"
RUBY_SINGLE_TARGET="ruby32"
RUBY_TARGETS="ruby32 ruby33"
SHELL="/bin/bash"
SHELL_SETS_TITLE="0"
SHLVL="1"
SYMLINK_LIB="no"
SYNCTHING_USER="mikb"
SYSROOT="/"
TERM="xterm-256color"
TEXINPUTS="/usr/lib64/ocaml/ocamldoc:"
TWISTED_DISABLE_WRITING_OF_PLUGIN_CACHE="1"
UNINSTALL_IGNORE="/boot/dtbs/* /lib/modules/* /var/run /var/lock /bin /lib /lib32 /lib64 /libx32 /sbin /usr/sbin /usr/lib/modules/*"
USE="X a52 aac aalib accessibility acl acpi activities ads aim alsa amd64 apache2 attica audiofile avahi bash-completion bcmath bidi bluetooth branding bzip2 cairo caps cdda cddb cdr cet cjk colord crypt css cups curl cvs dbus declarative designer dga dri dri3 dts dvd dvdr egl elogind emacs encode evdev exif fbcon ffmpeg fftw flac fontconfig foomatic-db fortran freetds ftp fuse gcj gd gdbm geoip geolocation gif gimp git gles2 gles3 google gphoto2 gpm gsl gsm gssapi gstreamer gtk gui handbook hardened hdf5 iconv icq icu imagemagick imap initramfs inotify ipod iproute2 ipv6 jack java javascript jbig jingle jpeg kaccounts kde kerberos kf6compat kontact kwallet lame latex lcms libcaca libnotify libtirpc lm_sensors lto lua lzma lzo mad maildir mbox mmap mng modules-sign mp3 mp4 mpeg mpi msn mssql mtp multilib multimedia musepack musicbrainz mysql mysqli nas ncurses networkmanager nftables nls nntp nsplugin odbc ofx ogg openexr opengl openh264 openmp pam pango pax-kernel pcre pda pdf perl phonon php pipewire pkcs11 plasma plymouth png policykit postscript ppds pulseaudio python qml qt5 quicktime raw rdp readline rss samba sasl savedconfig scanner screencast sdl seccomp semantic-desktop share sharedmem skey slp snmp sound speech speex spell ssl startup-notification subversion svg symlink syslog sysvipc tcl test-rust theora threads tiff tk truetype udev udisks unicode upower usb v4l vaapi vcd vhosts vim-syntax vorbis vulkan wayland webengine widgets wifi wmf wxwidgets x264 xattr xcb xface xft xine xml xmpp xpm xv xvid yahoo zeroconf zlib zstd" ABI_X86="64 32" ADA_TARGET="gcc_12" 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 stage words flow" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 avx512_bitalg avx512_vbmi2 avx512_vnni avx512_vpopcntdq avx512bw avx512cd avx512dq avx512f avx512ifma avx512vbmi avx512vl 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" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="libinput wacom" KERNEL="linux" L10N="en-AU en-GB en-US" 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-0" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_12" PYTHON_TARGETS="python3_11 python3_12 python3_13" RUBY_TARGETS="ruby32 ruby33" VIDEO_CARDS="i965 intel nvidia vesa fbdev" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto logmark ipmark dhcpmac delude chaos account"
USER="root"
USERLAND="GNU"
USE_EXPAND="ABI_MIPS ABI_S390 ABI_X86 ADA_TARGET ALSA_CARDS AMDGPU_TARGETS APACHE2_MODULES APACHE2_MPMS CALLIGRA_FEATURES CAMERAS COLLECTD_PLUGINS CPU_FLAGS_ARM CPU_FLAGS_PPC CPU_FLAGS_X86 CURL_QUIC CURL_SSL ELIBC FFTOOLS GPSD_PROTOCOLS GRUB_PLATFORMS INPUT_DEVICES KERNEL L10N LCD_DEVICES LIBREOFFICE_EXTENSIONS LLVM_SLOT LLVM_TARGETS LUA_SINGLE_TARGET LUA_TARGETS MONKEYD_PLUGINS NGINX_MODULES_HTTP NGINX_MODULES_MAIL NGINX_MODULES_STREAM OFFICE_IMPLEMENTATION OPENMPI_FABRICS OPENMPI_OFED_FEATURES OPENMPI_RM PERL_FEATURES PHP_TARGETS POSTGRES_TARGETS PYTHON_SINGLE_TARGET PYTHON_TARGETS QEMU_SOFTMMU_TARGETS QEMU_USER_TARGETS RUBY_TARGETS SANE_BACKENDS UWSGI_PLUGINS VIDEO_CARDS VOICEMAIL_STORAGE XTABLES_ADDONS"
USE_EXPAND_HIDDEN="ABI_MIPS ABI_S390 CPU_FLAGS_ARM CPU_FLAGS_PPC ELIBC KERNEL"
USE_EXPAND_IMPLICIT="ARCH ELIBC KERNEL"
USE_EXPAND_UNPREFIXED="ARCH"
USE_EXPAND_VALUES_ARCH="alpha amd64 amd64-linux arm arm64 arm64-macos hppa ia64 loong m68k mips ppc ppc64 ppc64-linux ppc-macos riscv s390 sparc x64-macos x64-solaris x86 x86-linux"
USE_EXPAND_VALUES_ELIBC="bionic Darwin glibc mingw musl SunOS"
USE_EXPAND_VALUES_KERNEL="Darwin linux SunOS"
USE_ORDER="env:pkg:conf:defaults:pkginternal:features:repo:env.d"
VBOX_APP_HOME="/usr/lib64/virtualbox"
VBOX_INSTALL_PATH="/usr/lib64/virtualbox"
VBOX_SDK_PATH="/usr/lib64/virtualbox/sdk"
VIDEO_CARDS="i965 intel nvidia vesa fbdev"
XAUTHORITY="/root/.xauthkrquhJ"
XDG_CONFIG_DIRS="/etc/xdg"
XDG_DATA_DIRS="/root/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share"
XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto logmark ipmark dhcpmac delude chaos account"
ac_cv_c_undeclared_builtin_options="none needed"
enable_year2038="no"
gl_cv_compiler_check_decl_option="-Werror=implicit-function-declaration"
gl_cv_func_getcwd_path_max="yes"


_________________
With sufficient thrust, pigs fly just fine (RFC 1925, apparently talking about Gentoo)
Back to top
View user's profile Send private message
mikb
Tux's lil' helper
Tux's lil' helper


Joined: 14 Dec 2005
Posts: 124
Location: Sydney Australia

PostPosted: Wed Jul 17, 2024 1:34 am    Post subject: config.log extract Reply with quote

The entire config.log is too big to post here, but this is the first time the log references --std=gnu++11:
Code:

configure:14539: checking whether the x86_64-pc-linux-gnu-g++ -m32 -mfpmath=sse linker (x86_64-pc-linux-gnu-ld -m elf_i386) supports shared libraries
configure:15619: result: yes
configure:15655: x86_64-pc-linux-gnu-g++ -m32 -mfpmath=sse -c -march=native -O3 -pipe -frecord-gcc-switches -std=gnu++11  conftest.cpp >&5

_________________
With sufficient thrust, pigs fly just fine (RFC 1925, apparently talking about Gentoo)
Back to top
View user's profile Send private message
Ionen
Developer
Developer


Joined: 06 Dec 2018
Posts: 2760

PostPosted: Wed Jul 17, 2024 2:13 am    Post subject: Reply with quote

Code:
CXXFLAGS="-march=native -O3 -pipe -frecord-gcc-switches -std=gnu++17"
Please don't pass -std globally, it tend to mess with things (e.g. if something needs c++20, or is broken with newer std and then yours overrides the flag it's trying to pass). gnu++17 is either way the default with current GCC.

That aside, I don't see anything in the ebuild or protobuf-c that would override that (it builds fine with these CXXFLAGS for me).

Do you have anything in /etc/portage/package.env or /etc/portage/bashrc?
Back to top
View user's profile Send private message
mikb
Tux's lil' helper
Tux's lil' helper


Joined: 14 Dec 2005
Posts: 124
Location: Sydney Australia

PostPosted: Wed Jul 17, 2024 2:35 am    Post subject: Reply with quote

Ionen wrote:
Code:
CXXFLAGS="-march=native -O3 -pipe -frecord-gcc-switches -std=gnu++17"
Please don't pass -std globally, it tend to mess with things (e.g. if something needs c++20, or is broken with newer std and then yours overrides the flag it's trying to pass). gnu++17 is either way the default with current GCC.


I appreciate the advice, and have adjusted my make.conf appropriately.

Quote:
Do you have anything in /etc/portage/package.env or /etc/portage/bashrc?


Thank you, package.env was the problem. At some time in the past, it must have been necessary to emerge dev-libs/protobuf and dev-libs/protobuf-c using -std=gnu++11, and I had forgotten about it.
_________________
With sufficient thrust, pigs fly just fine (RFC 1925, apparently talking about Gentoo)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum