Created attachment 895931 [details] /var/tmp/portage/sys-apps/hwloc-2.9.3-r1/work/hwloc-2.9.3-abi_x86_64.amd64/config.log maybe relevant part of config.log : ``` configure:29457: checking for XNVCTRLQueryTargetAttribute in -lXNVCtrl configure:29486: x86_64-pc-linux-gnu-gcc -o conftest -O3 -pipe -march=alderlake -mabm -mno-cldemote -mno-kl -mno-pconfig -mno-sgx -mno-widekl -mshstk --param=l1-cache-line-size=64 --param=l1-cache-size=48 --param=l2-cache-size=30720 -flto -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing -fgraphite-identity -floop-interchange -floop-strip-mine -floop-nest-optimize -ggdb3 -frecord-gcc-switches -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 conftest.c -lXNVCtrl -lXext -lX11 >&5 conftest.c:149:6: error: type of 'XNVCTRLQueryTargetAttribute' does not match original declaration [-Werror=lto-type-mismatch] 149 | char XNVCTRLQueryTargetAttribute (void); | ^ ../../../../x11-drivers/nvidia-drivers-555.42.02/work/nvidia-settings/src/../src/libXNVCtrl/NVCtrl.c:349:6: note: return value type mismatch 349 | Bool XNVCTRLQueryTargetAttribute ( | ^ ../../../../x11-drivers/nvidia-drivers-555.42.02/work/nvidia-settings/src/../src/libXNVCtrl/NVCtrl.c:349:6: note: type 'int' should match type 'char' ../../../../x11-drivers/nvidia-drivers-555.42.02/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 configure:29486: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "hwloc" | #define PACKAGE_TARNAME "hwloc" | #define PACKAGE_VERSION "2.9.3" | #define PACKAGE_STRING "hwloc 2.9.3" | #define PACKAGE_BUGREPORT "https://github.com/open-mpi/hwloc/issues" | #define PACKAGE_URL "" | #define PACKAGE "hwloc" | #define VERSION "2.9.3" | #define HAVE_STDIO_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_WCHAR_H 1 | #define STDC_HEADERS 1 | #define _ALL_SOURCE 1 | #define _DARWIN_C_SOURCE 1 | #define _GNU_SOURCE 1 | #define _HPUX_ALT_XOPEN_SOCKET_API 1 | #define _NETBSD_SOURCE 1 | #define _OPENBSD_SOURCE 1 | #define _POSIX_PTHREAD_SEMANTICS 1 | #define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1 | #define __STDC_WANT_IEC_60559_BFP_EXT__ 1 | #define __STDC_WANT_IEC_60559_DFP_EXT__ 1 | #define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1 | #define __STDC_WANT_IEC_60559_TYPES_EXT__ 1 | #define __STDC_WANT_LIB_EXT2__ 1 | #define __STDC_WANT_MATH_SPEC_FUNCS__ 1 | #define _TANDEM_SOURCE 1 | #define __EXTENSIONS__ 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HWLOC_VERSION "2.9.3" | #define HWLOC_VERSION_MAJOR 2 | #define HWLOC_VERSION_MINOR 9 | #define HWLOC_VERSION_RELEASE 3 | #define HWLOC_VERSION_GREEK "" | #define HWLOC_SYM_PREFIX hwloc_ | #define HWLOC_SYM_PREFIX_CAPS HWLOC_ | #define HWLOC_SYM_TRANSFORM 0 | #define _HPUX_SOURCE 1 | #define SIZEOF_VOID_P 8 | #define HWLOC_LINUX_SYS 1 | #define HWLOC_HAVE_LINUXIO 1 | #define HWLOC_HAVE_LINUXPCI 1 | #define HWLOC_X86_64_ARCH 1 | #define SIZEOF_UNSIGNED_LONG 8 | #define HWLOC_SIZEOF_UNSIGNED_LONG 8 | #define SIZEOF_UNSIGNED_INT 4 | #define HWLOC_SIZEOF_UNSIGNED_INT 4 | #define HWLOC_HAVE_ATTRIBUTE | #define HWLOC_HAVE_ATTRIBUTE_ALIGNED 1 | #define HWLOC_HAVE_ATTRIBUTE_ALWAYS_INLINE 1 | #define HWLOC_HAVE_ATTRIBUTE_COLD 1 | #define HWLOC_HAVE_ATTRIBUTE_CONST 1 | #define HWLOC_HAVE_ATTRIBUTE_DEPRECATED 1 | #define HWLOC_HAVE_ATTRIBUTE_CONSTRUCTOR 1 | #define HWLOC_HAVE_ATTRIBUTE_FORMAT 1 | #define HWLOC_HAVE_ATTRIBUTE_HOT 1 | #define HWLOC_HAVE_ATTRIBUTE_MALLOC 1 | #define HWLOC_HAVE_ATTRIBUTE_MAY_ALIAS 1 | #define HWLOC_HAVE_ATTRIBUTE_NO_INSTRUMENT_FUNCTION 1 | #define HWLOC_HAVE_ATTRIBUTE_NONNULL 1 | #define HWLOC_HAVE_ATTRIBUTE_NORETURN 1 | #define HWLOC_HAVE_ATTRIBUTE_PACKED 1 | #define HWLOC_HAVE_ATTRIBUTE_PURE 1 | #define HWLOC_HAVE_ATTRIBUTE_SENTINEL 1 | #define HWLOC_HAVE_ATTRIBUTE_UNUSED 1 | #define HWLOC_HAVE_ATTRIBUTE_WARN_UNUSED_RESULT 1 | #define HWLOC_HAVE_ATTRIBUTE_WEAK_ALIAS 1 | #define HWLOC_C_HAVE_VISIBILITY 1 | #define HAVE_UNISTD_H 1 | #define HAVE_DIRENT_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_CTYPE_H 1 | #define HAVE_STRCASECMP 1 | #define HWLOC_HAVE_DECL_STRCASECMP 1 | #define HAVE_STRNCASECMP 1 | #define HWLOC_HAVE_DECL_STRNCASECMP 1 | #define HAVE_STRFTIME 1 | #define HAVE_SETLOCALE 1 | #define HWLOC_HAVE_STDINT_H 1 | #define HAVE_SYS_MMAN_H 1 | #define HAVE_DECL_SCHED_GETCPU 1 | #define HWLOC_HAVE_SCHED_SETAFFINITY 1 | #define HWLOC_HAVE_CPU_SET 1 | #define HWLOC_HAVE_CPU_SET_S 1 | #define HWLOC_HAVE_SYSCALL 1 | #define HAVE_LIBUDEV_H 1 | #define HWLOC_HAVE_LIBUDEV 1 | #define HAVE_DECL_PTHREAD_SETAFFINITY_NP 1 | #define HAVE_DECL_PTHREAD_GETAFFINITY_NP 1 | #define HAVE_DECL_FABSF 1 | #define HAVE_DECL_MODFF 1 | #define HAVE_DECL__SC_NPROCESSORS_ONLN 1 | #define HAVE_DECL__SC_NPROCESSORS_CONF 1 | #define HAVE_DECL__SC_NPROC_ONLN 0 | #define HAVE_DECL__SC_NPROC_CONF 0 | #define HAVE_DECL__SC_PAGESIZE 1 | #define HAVE_DECL__SC_PAGE_SIZE 1 | #define HAVE_DECL__SC_LARGE_PAGESIZE 0 | #define HAVE_DECL_STRTOULL 1 | #define HAVE_SSIZE_T 1 | #define HAVE_DECL_SNPRINTF 1 | #define HAVE_DECL__STRDUP 0 | #define HAVE_DECL__PUTENV 0 | #define HWLOC_HAVE_CORRECT_SNPRINTF 1 | #define HAVE_DECL_GETPROGNAME 0 | #define HAVE_DECL_GETEXECNAME 0 | #define HAVE_PROGRAM_INVOCATION_NAME 1 | #define HAVE___PROGNAME 1 | #define HAVE_PTHREAD_T 1 | #define hwloc_pid_t pid_t | #define hwloc_thread_t pthread_t | #define HAVE_FFS 1 | #define HWLOC_HAVE_DECL_FFS 1 | #define HWLOC_HAVE_FFS 1 | #define HAVE_FFSL 1 | #define HWLOC_HAVE_DECL_FFSL 1 | #define HWLOC_HAVE_FFSL 1 | #define HAVE_OPENAT 1 | #define HAVE_MALLOC_H 1 | #define HAVE_GETPAGESIZE 1 | #define HAVE_MEMALIGN 1 | #define HAVE_POSIX_MEMALIGN 1 | #define HAVE_SYS_UTSNAME_H 1 | #define HAVE_UNAME 1 | #define HWLOC_HAVE_PTHREAD_MUTEX 1 | #define HAVE_DECL_RUNNING_ON_VALGRIND 0 | #define HAVE_X11_XLIB_H 1 | #define HAVE_NVCTRL_NVCTRL_H 1 | /* end confdefs.h. */ | | /* Override any GCC internal prototype to avoid an error. | Use char because int might match the return type of a GCC | builtin and then its argument prototype would still apply. | The 'extern "C"' is for builds by C++ compilers; | although this is not generally supported in C code supporting it here | has little cost and some practical benefit (sr 110532). */ | #ifdef __cplusplus | extern "C" | #endif | char XNVCTRLQueryTargetAttribute (void); | int | main (void) | { | return XNVCTRLQueryTargetAttribute (); | ; | return 0; | } configure:29496: result: no configure:29528: WARNING: Specified --enable-gl switch, but could not configure:29530: WARNING: find appropriate support configure:29532: error: Cannot continue ```
Created attachment 895932 [details] /var/tmp/portage/sys-apps/hwloc-2.9.3-r1/temp/build.log
Created attachment 895933 [details] environment // profile default/linux/amd64/17.1/desktop/plasma gcc-13.2.1_p20240210 O3 pipe march=native(verbose) lto graphite ggdb3