Description:
Here is what happens on opensuse.
yantitarenko5@localhost:~/mysql-server/build> cmake ..
-- Running cmake version 3.28.3
-- Found Git: /usr/bin/git (found version "2.43.0")
-- CMAKE_MODULE_PATH is /home/yantitarenko5/mysql-server/cmake
-- MySQL 9.3.0
-- The C compiler identification is GNU 10.4.0
-- The CXX compiler identification is Clang 17.0.6
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/gcc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - failed
-- Check for working CXX compiler: /usr/bin/clang++
-- Check for working CXX compiler: /usr/bin/clang++ - broken
CMake Error at /usr/share/cmake/Modules/CMakeTestCXXCompiler.cmake:60 (message):
The C++ compiler
"/usr/bin/clang++"
is not able to compile a simple test program.
It fails with the following output:
Change Dir: '/home/yantitarenko5/mysql-server/build/CMakeFiles/CMakeScratch/TryCompile-7AGr02'
Run Build Command(s): /usr/bin/cmake -E env VERBOSE=1 /usr/bin/gmake -f Makefile cmTC_7ab56/fast
/usr/bin/gmake -f CMakeFiles/cmTC_7ab56.dir/build.make CMakeFiles/cmTC_7ab56.dir/build
gmake[1]: вход в каталог «/home/yantitarenko5/mysql-server/build/CMakeFiles/CMakeScratch/TryCompile-7AGr02»
Building CXX object CMakeFiles/cmTC_7ab56.dir/testCXXCompiler.cxx.o
/usr/bin/clang++ -MD -MT CMakeFiles/cmTC_7ab56.dir/testCXXCompiler.cxx.o -MF CMakeFiles/cmTC_7ab56.dir/testCXXCompiler.cxx.o.d -o CMakeFiles/cmTC_7ab56.dir/testCXXCompiler.cxx.o -c /home/yantitarenko5/mysql-server/build/CMakeFiles/CMakeScratch/TryCompile-7AGr02/testCXXCompiler.cxx
Linking CXX executable cmTC_7ab56
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_7ab56.dir/link.txt --verbose=1
/usr/bin/clang++ CMakeFiles/cmTC_7ab56.dir/testCXXCompiler.cxx.o -o cmTC_7ab56
/usr/bin/ld: невозможно найти -lstdc++: Нет такого файла или каталога
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
gmake[1]: *** [CMakeFiles/cmTC_7ab56.dir/build.make:100: cmTC_7ab56] Ошибка 1
gmake[1]: выход из каталога «/home/yantitarenko5/mysql-server/build/CMakeFiles/CMakeScratch/TryCompile-7AGr02»
gmake: *** [Makefile:127: cmTC_7ab56/fast] Ошибка 2
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:517 (PROJECT)
-- Configuring incomplete, errors occurred!
yantitarenko5@localhost:~/mysql-server/build> cat /etc/*-release
NAME="openSUSE Leap"
VERSION="15.6"
ID="opensuse-leap"
ID_LIKE="suse opensuse"
VERSION_ID="15.6"
PRETTY_NAME="openSUSE Leap 15.6"
ANSI_COLOR="0;32"
CPE_NAME="cpe:/o:opensuse:leap:15.6"
BUG_REPORT_URL="https://bugs.opensuse.org"
HOME_URL="https://www.opensuse.org/"
DOCUMENTATION_URL="https://en.opensuse.org/Portal:Leap"
LOGO="distributor-logo-Leap"
I am unable to figure out which library is missing.
How to repeat:
Install OpenSUSE Leap 15.6 on > cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 23
model name : Intel(R) Core(TM)2 Duo CPU E7400 @ 2.80GHz
stepping : 10
microcode : 0xa0b
cpu MHz : 2800.088
cache size : 3072 KB
physical id : 0
siblings : 2
core id : 0
cpu cores : 2
apicid : 0
initial apicid : 0
fpu : yes
fpu_exception : yes
cpuid level : 13
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ht tm pbe syscall nx lm constant_tsc arch_perfmon pebs bts rep_good nopl cpuid aperfmperf pni dtes64 monitor ds_cpl est tm2 ssse3 cx16 xtpr pdcm sse4_1 xsave lahf_lm pti dtherm
bugs : cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf mds swapgs itlb_multihit mmio_unknown
bogomips : 5600.17
clflush size : 64
cache_alignment : 64
address sizes : 36 bits physical, 48 bits virtual
power management: