View previous topic :: View next topic |
Author |
Message |
Cheesyjuggler64 n00b
Joined: 16 May 2024 Posts: 18
|
Posted: Thu May 16, 2024 3:38 pm Post subject: emerge hwloc fails with gl error (solved) |
|
|
The hwloc fails and I believe I've identified the error
Code: | **** NVIDIA GL configuration
checking for X11/Xlib.h... yes
checking for XOpenDisplay in -lX11... yes
checking for NVCtrl/NVCtrl.h... yes
checking for XNVCTRLQueryTargetAttribute in -lXNVCtrl... no
configure: WARNING: Specified --enable-gl switch, but could not
configure: WARNING: find appropriate support
configure: error: Cannot continue
|
Help is appreciated
Last edited by Cheesyjuggler64 on Sat May 18, 2024 5:54 pm; edited 4 times in total |
|
Back to top |
|
|
Cheesyjuggler64 n00b
Joined: 16 May 2024 Posts: 18
|
Posted: Thu May 16, 2024 4:40 pm Post subject: |
|
|
This is the result of emerge --info '=sys-apps/hwloc-2.9.3-r1::gentoo'
Code: | Portage 3.0.64 (python 3.11.9-final-0, default/linux/amd64/23.0/hardened, gcc-13, glibc-2.39-r6, 6.8.0-31-generic x86_64)
=================================================================
System Settings
=================================================================
System uname: Linux-6.8.0-31-generic-x86_64-AMD_Ryzen_7_4800H_with_Radeon_Graphics-with-glibc2.39
KiB Mem: 15774012 total, 5193440 free
KiB Swap: 0 total, 0 free
Timestamp of repository gentoo: Thu, 16 May 2024 00:00:01 +0000
Head commit of repository gentoo: 5d990ef89a50a7062dc7cf2446542831b58188f4
Head commit of repository librewolf: 169a056a843389d850501d1ff6639b7befd59b61
sh bash 5.2_p26-r3
ld GNU ld (Gentoo 2.42 p3) 2.42.0
app-misc/pax-utils: 1.3.7::gentoo
app-shells/bash: 5.2_p26-r3::gentoo
dev-build/autoconf: 2.13-r8::gentoo, 2.72-r1::gentoo
dev-build/automake: 1.16.5-r2::gentoo
dev-build/cmake: 3.29.3::gentoo
dev-build/libtool: 2.4.7-r4::gentoo
dev-build/make: 4.4.1-r1::gentoo
dev-build/meson: 1.4.0-r1::gentoo
dev-lang/perl: 5.38.2-r5::gentoo
dev-lang/python: 3.11.9::gentoo, 3.12.3::gentoo
dev-lang/rust: 1.77.1::gentoo
sys-apps/baselayout: 2.15::gentoo
sys-apps/openrc: 0.54::gentoo
sys-apps/sandbox: 2.38::gentoo
sys-devel/binutils: 2.42-r1::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/clang: 17.0.6::gentoo, 18.1.5::gentoo
sys-devel/gcc: 13.2.1_p20240503::gentoo
sys-devel/gcc-config: 2.11::gentoo
sys-devel/llvm: 17.0.6::gentoo, 18.1.5::gentoo
sys-kernel/linux-headers: 6.9::gentoo (virtual/os-headers)
sys-libs/glibc: 2.39-r6::gentoo
Repositories:
gentoo
location: /var/db/repos/gentoo
sync-type: rsync
sync-uri: rsync://rsync.gentoo.org/gentoo-portage
priority: -1000
volatile: False
sync-rsync-verify-metamanifest: no
sync-rsync-extra-opts:
sync-rsync-verify-jobs: 1
sync-rsync-verify-max-age: 3
librewolf
location: /var/db/repos/librewolf
sync-type: git
sync-uri: https://codeberg.org/librewolf/gentoo.git
masters: gentoo
volatile: False
Binary Repositories:
gentoobinhost
priority: 1
sync-uri: https://distfiles.gentoo.org/releases/amd64/binpackages/23.0/x86-64_hardened
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O3 -pipe -march=native -flto=8 -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing -fuse-linker-plugin -fgraphite-identity -floop-nest-optimize -fdevirtualize-at-ltrans -fipa-pta -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/sandbox.d"
CXXFLAGS="-O3 -pipe -march=native -flto=8 -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing -fuse-linker-plugin -fgraphite-identity -floop-nest-optimize -fdevirtualize-at-ltrans -fipa-pta -fno-semantic-interposition -fno-plt"
DISTDIR="/var/cache/distfiles"
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="-O3 -pipe -march=native -flto=8 -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing -fuse-linker-plugin -fgraphite-identity -floop-nest-optimize -fdevirtualize-at-ltrans -fipa-pta -fno-semantic-interposition -fno-plt"
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="-O3 -pipe -march=native -flto=8 -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing -fuse-linker-plugin -fgraphite-identity -floop-nest-optimize -fdevirtualize-at-ltrans -fipa-pta -fno-semantic-interposition -fno-plt"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="C.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs"
LEX="reflex"
MAKEOPTS="-j8 -l8"
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 opt-level=3"
SHELL="/bin/bash"
USE="alsa amd64 crypt cuda dbus graphite hardened idn kmod lto man multilib ncurses nls openrc openssl pam pgo pie readline ssp test-rust threads udev unicode verify-sig vulkan wayland wifi xattr xtpax" ABI_X86="64" ADA_TARGET="gnat_2021" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt rdrand sha sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3" CURL_SSL="openssl" ELIBC="glibc" KERNEL="linux" LUA_SINGLE_TARGET="lua5-4" LUA_TARGETS="lua5-4" PHP_TARGETS="php8-1" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_11" RUBY_TARGETS="ruby31" VIDEO_CARDS="amdgpu radeonsi nvidia"
YACC="yacc-reference"
Unset: ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, 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, YFLAGS
|
|
|
Back to top |
|
|
Cheesyjuggler64 n00b
Joined: 16 May 2024 Posts: 18
|
|
Back to top |
|
|
grknight Retired Dev
Joined: 20 Feb 2015 Posts: 1736
|
Posted: Thu May 16, 2024 5:09 pm Post subject: Re: build Log |
|
|
Self inflicted via CFLAGS: Code: | configure:29991: x86_64-pc-linux-gnu-gcc -o conftest -O3 -pipe -march=native -flto=8 -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing -fuse-linker-plugin -fgraphite-identity -floop-nest-optimize -fdevirtualize-at-ltrans -fipa-pta -fno-semantic-interposition -fno-plt -I/opt/cuda/include -I/opt/cuda/include -Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs -L/opt/cuda/lib64 conftest.c -lXNVCtrl -lXext -lX11 >&5
conftest.c:154:6: error: type of 'XNVCTRLQueryTargetAttribute' does not match original declaration [-Werror=lto-type-mismatch]
154 | char XNVCTRLQueryTargetAttribute (void);
| ^
../../../../x11-drivers/nvidia-drivers-550.78/work/nvidia-settings/src/../src/libXNVCtrl/NVCtrl.c:349:6: note: return value type mismatch
../../../../x11-drivers/nvidia-drivers-550.78/work/nvidia-settings/src/../src/libXNVCtrl/NVCtrl.c:349:6: note: type 'int' should match type 'char'
../../../../x11-drivers/nvidia-drivers-550.78/work/nvidia-settings/src/../src/libXNVCtrl/NVCtrl.c:349:6: note: 'XNVCTRLQueryTargetAttribute' was previously declared here
lto1: some warnings being treated as errors
lto-wrapper: fatal error: x86_64-pc-linux-gnu-gcc returned 1 exit status
compilation terminated.
/usr/libexec/gcc/x86_64-pc-linux-gnu/ld: error: lto-wrapper failed
collect2: error: ld returned 1 exit status |
Short answer, remove the -Werror |
|
Back to top |
|
|
freke Veteran
Joined: 23 Jan 2003 Posts: 1006 Location: Somewhere in Denmark
|
|
Back to top |
|
|
Cheesyjuggler64 n00b
Joined: 16 May 2024 Posts: 18
|
Posted: Thu May 16, 2024 10:04 pm Post subject: |
|
|
So would you recommend building with recompiling the system or just turning lto for that package specifically |
|
Back to top |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 21894
|
Posted: Thu May 16, 2024 10:13 pm Post subject: |
|
|
grknight recommended that you remove the -Werror option that is breaking the configure test. Does that removal work for you? |
|
Back to top |
|
|
Cheesyjuggler64 n00b
Joined: 16 May 2024 Posts: 18
|
Posted: Fri May 17, 2024 9:28 am Post subject: Solved |
|
|
Yeah that works. Much appreciated |
|
Back to top |
|
|
|
|
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
|
|