Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] libstdc++, unable to determine endianness
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
shimbob
Tux's lil' helper
Tux's lil' helper


Joined: 13 Sep 2003
Posts: 136

PostPosted: Tue Mar 26, 2024 4:48 am    Post subject: [solved] libstdc++, unable to determine endianness Reply with quote

Only one package of 948 isn't happy about the change to profile 23.0, sys-libstdc++-v3 fails with:
Code:
[etc]
checking for sys/times.h... yes
checking for sys/stat.h... (cached) yes
checking for direct.h... no
checking for malloc.h... (cached) yes
checking for langinfo.h... yes
checking for thread.h... no
checking for pthread.h... yes
checking for CHAR_BIT... yes
checking byte ordering... unknown
configure: error: *** unable to determine endianness


Just me having this issue?

emerge --info:
Code:
rezk /var/tmp/portage # emerge --info
Portage 3.0.61 (python 3.11.8-final-0, default/linux/amd64/23.0/split-usr/desktop, gcc-12, glibc-2.38-r10, 6.7.9-xanmod1 x86_64)
=================================================================
System uname: Linux-6.7.9-xanmod1-x86_64-AMD_Ryzen_9_3900X_12-Core_Processor-with-glibc2.38
KiB Mem:    16308792 total,   6706360 free
KiB Swap:   20971516 total,  18644616 free
Timestamp of repository gentoo: Mon, 25 Mar 2024 08:15:00 +0000
Head commit of repository gentoo: 401e7a888b51f80faf7691e60f2e1a1612b28972
Timestamp of repository bobwya: Sun, 24 Mar 2024 09:48:48 +0000
Head commit of repository bobwya: b1718116951f005d8ef403ca1b407b244d38a544

Timestamp of repository farmboy0: Sun, 24 Mar 2024 09:48:25 +0000
Head commit of repository farmboy0: 86cd81131fec596a04795c593f3d3c967691eaf7

Timestamp of repository gentoo-zh: Mon, 25 Mar 2024 05:34:54 +0000
Head commit of repository gentoo-zh: 83615ef19ecbf8bd034f1b83d9ddd45117a048a4

Timestamp of repository guru: Mon, 25 Mar 2024 23:33:26 +0000
Head commit of repository guru: d62fc7d95539bbd045f490eb818e55e6aa47090b

Timestamp of repository mv: Sun, 24 Mar 2024 09:48:27 +0000
Head commit of repository mv: afc42f677cc62f22d3a26bb04ae417521c78f8e4

Timestamp of repository nelson-graca: Tue, 19 Mar 2024 01:20:23 +0000
Head commit of repository nelson-graca: f397361af8272d6a6c33f527d8e50f61ccb1f2cc

Timestamp of repository phoenix591: Sun, 24 Mar 2024 09:48:43 +0000
Head commit of repository phoenix591: d7db05f72ca8444cd26dbb564e2265b3ae06463f

Timestamp of repository src_prepare-overlay: Sun, 24 Mar 2024 22:03:32 +0000
Head commit of repository src_prepare-overlay: 1b9833222e0780aadff883a9e019adcb1a0049fb

Timestamp of repository steam-overlay: Sun, 24 Mar 2024 09:48:29 +0000
Head commit of repository steam-overlay: 4db06d32f72ef46e43a840483a96d71f239c3bfd

sh bash 5.1_p16-r6
ld GNU ld (Gentoo 2.41 p5) 2.41.0
app-misc/pax-utils:        1.3.7::gentoo
app-shells/bash:           5.1_p16-r6::gentoo
dev-build/autoconf:        2.13-r8::gentoo, 2.71-r6::gentoo
dev-build/automake:        1.16.5-r2::gentoo
dev-build/cmake:           3.28.3::gentoo
dev-build/libtool:         2.4.7-r3::gentoo
dev-build/make:            4.4.1-r1::gentoo
dev-build/meson:           1.3.2::gentoo
dev-java/java-config:      2.3.3-r1::gentoo
dev-lang/perl:             5.38.2-r2::gentoo
dev-lang/python:           3.11.8_p1::gentoo
dev-lang/rust:             1.75.0-r1::gentoo
sys-apps/baselayout:       2.14-r2::gentoo
sys-apps/openrc:           0.53::gentoo
sys-apps/sandbox:          2.38::gentoo
sys-devel/binutils:        2.41-r5::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/clang:           17.0.6::gentoo
sys-devel/gcc:             12.3.1_p20240209::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-devel/lld:             17.0.6::gentoo
sys-devel/llvm:            17.0.6::gentoo
sys-kernel/linux-headers:  6.6::gentoo (virtual/os-headers)
sys-libs/glibc:            2.38-r10::gentoo
Repositories:

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

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

farmboy0
    location: /var/db/repos/farmboy0
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/farmboy0.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

guru
    location: /var/db/repos/guru
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/guru.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

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

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

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

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

crossdev
    location: /var/db/repos/portage-crossdev
    masters: gentoo
    priority: 10
    volatile: False

Installed sets: @apps, @base, @steam, @x
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -O3 -pipe -march=native -flto=auto -fuse-linker-plugin -fgraphite-identity -floop-nest-optimize -fdevirtualize-at-ltrans -fno-semantic-interposition -fno-plt"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
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"
CXXFLAGS="-O2 -pipe -O3 -pipe -march=native -fPIC"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--jobs 3 --load-average 16"
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 -O3 -pipe -march=native"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg 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"
FFLAGS="-O2 -pipe -O3 -pipe -march=native"
GENTOO_MIRRORS="https://mirror.servaxnet.com/gentoo/ http://gentoo-mirror.flux.utah.edu/"
LANG="C.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LEX="flex"
MAKEOPTS="-j16"
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"
RUSTFLAGS="-C target-cpu=native -C link-arg=-Wl,-z,pack-relative-relocs -C opt-level=3"
SHELL="/bin/bash"
USE="acpi alsa amd64 amr automount bdplus bzip2 cacule cairo corefonts cpudetection custom-cflags cxx dbus dri dvdr egl elogind encode exif f2fs faad fat gallium gif glamor gles2 gmp graphite gui hwaccel infinality joystick jpeg libkms libtirpc lto lzma magic minimal mmx mmxext mp3 mp4 mtp nfsv4 nonfsv4 offensive opengl optimization pam pcre16 png ppds qemu savedconfig scanner session smp sound split-usr sse sse2 sse3 ssl ssse3 steamfonts suid svg system-png test-rust threads thunar tiff trayicon truetype udev udf udisks upower vaapi vdpau verify-sig vulkan webgl win64 wxwidgets x264 x265 xcb xft zlib" ABI_X86="64" ALSA_CARDS="hda-intel" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt sha sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3" ELIBC="glibc" INPUT_DEVICES="evdev joystick" KERNEL="linux" L10N="en en-US" LLVM_TARGETS="AMDGPU" PHP_TARGETS="php7-4" QEMU_USER_TARGETS="x86_64" VIDEO_CARDS="amdgpu radeonsi"
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, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, RANLIB, READELF, SIZE, STRINGS, STRIP, YACC, YFLAGS



Last edited by shimbob on Tue Mar 26, 2024 11:40 pm; edited 1 time in total
Back to top
View user's profile Send private message
shimbob
Tux's lil' helper
Tux's lil' helper


Joined: 13 Sep 2003
Posts: 136

PostPosted: Tue Mar 26, 2024 4:52 am    Post subject: Reply with quote

As a test, setting -march-znver2 didn't fix it
Back to top
View user's profile Send private message
grknight
Retired Dev
Retired Dev


Joined: 20 Feb 2015
Posts: 1660

PostPosted: Tue Mar 26, 2024 1:05 pm    Post subject: Reply with quote

According to Bug 923112, this is an LTO problem.
Back to top
View user's profile Send private message
shimbob
Tux's lil' helper
Tux's lil' helper


Joined: 13 Sep 2003
Posts: 136

PostPosted: Tue Mar 26, 2024 11:40 pm    Post subject: Reply with quote

Oh, good to know, thanks! Indeed without LTO flags it's compiled.
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