On Wed, 16 Oct 2024, 10:45:37 +0200, Johannes Kastl wrote:
On 15.10.24 16:31 Stefan Seyfried wrote:
Hi Johannes,
Am 15.10.24 um 11:48 schrieb Johannes Kastl:
[ 48s] configure: error: in `/home/abuild/rpmbuild/BUILD/open-vm-tools-12.5.0/open-vm-tools': [ 48s] configure: error: C compiler cannot create executables [ 48s] See `config.log' for more details
You really should do that. Check config.log. It is a bit hard to dig through but it usually somewhere in the middle of the log file shows the error.
Here it is:
configure:3343: checking for gcc configure:3359: found /usr/bin/gcc configure:3370: result: gcc configure:3599: checking for C compiler version configure:3608: gcc --version >&5 gcc (SUSE Linux) 7.5.0 Copyright (C) 2017 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
configure:3619: $? = 0 configure:3608: gcc -v >&5 Using built-in specs. Reading specs from /usr/lib64/gcc/x86_64-suse-linux/7/defaults.spec COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/lib64/gcc/x86_64-suse-linux/7/lto-wrapper OFFLOAD_TARGET_NAMES=hsa:nvptx-none Target: x86_64-suse-linux Configured with: ../configure --prefix=/usr --infodir=/usr/share/info --mandir=/usr/share/man --libdir=/usr/lib64 --libexecdir=/usr/lib64 --enable-languages=c,c++,objc,fortran,obj-c++,ada,go --enable-offload-targets=hsa,nvptx-none, --without-cuda-driver --enable-checking=release --disable-werror --with-gxx-include-dir=/usr/include/c++/7 --enable-ssp --disable-libssp --disable-libvtv --disable-libcc1 --disable-plugin --with-bugurl=https://bugs.opensuse.org/ --with-pkgversion='SUSE Linux' --with-slibdir =/lib64 --with-system-zlib --enable-libstdcxx-allocator=new --disable-libstdcxx-pch --enable-version-specific-runtime-libs --with-gcc-major-version-only --enable-linker-build-id --enable-linux-futex --enable-gnu-indirect-function --program-suffix=-7 --w ithout-system-libunwind --enable-multilib --with-arch-32=x86-64 --with-tune=generic --build=x86_64-suse-linux --host=x86_64-suse-linux Thread model: posix gcc version 7.5.0 (SUSE Linux) configure:3619: $? = 0 configure:3608: gcc -V >&5 gcc: error: unrecognized command line option '-V' gcc: fatal error: no input files compilation terminated. configure:3619: $? = 1 configure:3608: gcc -qversion >&5 gcc: error: unrecognized command line option '-qversion'; did you mean '--version'? gcc: fatal error: no input files compilation terminated. configure:3619: $? = 1 configure:3639: checking whether the C compiler works configure:3661: gcc -fmessage-length=0 -grecord-gcc-switches -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -Wno-unused-local-typedefs -Wno-unused-but-set-variable -Wno-deprec ated-declarations -Wno-sizeof-pointer-memaccess -Wno-cpp -fPIE -pie -ltirpc -lgrpc -labsl_synchronization -labsl_log_internal_check_op -labsl_log_internal_nullguard -labsl_log_internal_message conftest.c >&5 /usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: cannot find -labsl_synchronization: No such file or directory /usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: cannot find -labsl_log_internal_check_op: No such file or directory /usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: cannot find -labsl_log_internal_nullguard: No such file or directory /usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: cannot find -labsl_log_internal_message: No such file or directory collect2: error: ld returned 1 exit status configure:3665: $? = 1 configure:3703: result: no configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "open-vm-tools" | #define PACKAGE_TARNAME "open-vm-tools" | #define PACKAGE_VERSION "12.5.0" | #define PACKAGE_STRING "open-vm-tools 12.5.0" | #define PACKAGE_BUGREPORT "open-vm-tools-devel@lists.sourceforge.net" | #define PACKAGE_URL "" | /* end confdefs.h. */ | | int | main () | { | | ; | return 0; | } configure:3708: error: in `/home/abuild/rpmbuild/BUILD/open-vm-tools-12.5.0/open-vm-tools': configure:3710: error: C compiler cannot create executables See `config.log' for more details
I am not a GCC expert, but my guess would be the "ld: cannot find..." errors. Not sure how to solve those?
$ rpm -qf /usr/lib64/libabsl_synchronization.so.2401.0.0 libabsl_lite_2401_0_0-20240116.2-3.1.x86_64 This is on Tumbleweed, so you should check if such a package exists for Leap 15.5. BUT, this is not a gcc specific thing as the package comes from abseil-cpp-20240116.2-3.1.src.rpm, which augments the C++ stdlib.
Kind Regards, Johannes
HTH, cheers. l8er manfred