ZeidMahmoud
New Member
everytime I try to install any software on my slackware 15 it says It can't complier .
"""
checking build system type... x86_64-pc-linux-gnuchecking host system type... x86_64-pc-linux-gnuchecking target system type... x86_64-pc-linux-gnuchecking for a BSD-compatible install... /bin/ginstall -cchecking whether build environment is sane... yeschecking for a thread-safe mkdir -p... /bin/mkdir -pchecking for gawk... gawkchecking whether make sets $(MAKE)... yeschecking whether make supports nested variables... yeschecking whether make supports nested variables... (cached) yeschecking whether make supports the include directive... yes (GNU style)checking for gcc... gccchecking whether the C compiler works... noconfigure: error: in /root/Downloads/aria2':configure: error: C compiler cannot create executablesSee config.log' for more detailsroot@darkstar ~/D/aria2 (master) [77]#
"""
root@darkstar ~ (master)# gcc --version
gcc (GCC) 14.2.0
Copyright (C) 2024 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.
root@darkstar ~ (master)#
""""
root@darkstar ~/D/aria2 (master) [SIGINT]# ;gcc -vReading specs from /usr/lib64/gcc/x86_64-slackware-linux/14.2.0/specsCOLLECT_GCC=gccCOLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-slackware-linux/14.2.0/lto-wrapperTarget: x86_64-slackware-linuxConfigured with: ../configure --prefix=/usr --libdir=/usr/lib64 --mandir=/usr/man --infodir=/usr/info --enable-shared --enable-bootstrap --enable-languages=ada,c,c++,d,fortran,go,lto,m2,objc,obj-c++,rust --enable-threads=posix --enable-checking=release --with-system-zlib --enable-libstdcxx-dual-abi --with-default-libstdcxx-abi=new --disable-libstdcxx-pch --disable-libunwind-exceptions --enable-__cxa_atexit --disable-libssp --enable-gnu-indirect-function --enable-gnu-unique-object --enable-plugin --enable-lto --disable-install-libiberty --disable-werror --with-gnu-ld --with-isl --verbose --with-arch-directory=amd64 --disable-gtktest --enable-clocale=gnu --with-arch=x86-64 --enable-multilib --target=x86_64-slackware-linux --build=x86_64-slackware-linux --host=x86_64-slackware-linuxThread model: posixSupported LTO compression algorithms: zlib zstdgcc version 14.2.0 (GCC)root@darkstar ~/D/aria2 (master)#
"""""
CMake Error at /usr/share/cmake-3.31/Modules/CMakeTestCCompiler.cmake:67 (message): The C compiler "/usr/bin/cc" is not able to compile a simple test program. It fails with the following output: Change Dir: '/tmp/SBo/transmission-4.0.6/build/CMakeFiles/CMakeScratch/TryCompile-iKcyAF' Run Build Command(s): /usr/bin/cmake -E env VERBOSE=1 /usr/bin/gmake -f Makefile cmTC_de344/fast /usr/bin/gmake -f CMakeFiles/cmTC_de344.dir/build.make CMakeFiles/cmTC_de344.dir/build gmake[1]: Entering directory '/tmp/SBo/transmission-4.0.6/build/CMakeFiles/CMakeScratch/TryCompile-iKcyAF' Building C object CMakeFiles/cmTC_de344.dir/testCCompiler.c.o /usr/bin/cc -O2 -fPIC -o CMakeFiles/cmTC_de344.dir/testCCompiler.c.o -c /tmp/SBo/transmission-4.0.6/build/CMakeFiles/CMakeScratch/TryCompile-iKcyAF/testCCompiler.c Linking C executable cmTC_de344 /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_de344.dir/link.txt --verbose=1 /usr/bin/ld: /lib64/libc.so.6: unknown type [0x13] section .relr.dyn' /usr/bin/ld: skipping incompatible /lib64/libc.so.6 when searching for /lib64/libc.so.6 /usr/bin/ld: cannot find /lib64/libc.so.6 /usr/bin/ld: /lib64/libc.so.6: unknown type [0x13] section .relr.dyn' /usr/bin/ld: skipping incompatible /lib64/libc.so.6 when searching for /lib64/libc.so.6 /usr/bin/ld: /lib64/ld-linux-x86-64.so.2: unknown type [0x13] section .relr.dyn' /usr/bin/ld: skipping incompatible /lib64/ld-linux-x86-64.so.2 when searching for /lib64/ld-linux-x86-64.so.2 /usr/bin/ld: cannot find /lib64/ld-linux-x86-64.so.2 /usr/bin/ld: /lib64/ld-linux-x86-64.so.2: unknown type [0x13] section .relr.dyn' /usr/bin/ld: skipping incompatible /lib64/ld-linux-x86-64.so.2 when searching for /lib64/ld-linux-x86-64.so.2 collect2: error: ld returned 1 exit status /usr/bin/cc -O2 -fPIC CMakeFiles/cmTC_de344.dir/testCCompiler.c.o -o cmTC_de344 gmake[1]: [CMakeFiles/cmTC_de344.dir/build.make:102: cmTC_de344] Error 1 gmake[1]: Leaving directory '/tmp/SBo/transmission-4.0.6/build/CMakeFiles/CMakeScratch/TryCompile-iKcyAF' gmake: [Makefile:133: cmTC_de344/fast] Error 2 CMake will not be able to correctly generate this project.Call Stack (most recent call first): CMakeLists.txt:18 (project)-- Configuring incomplete, errors occurred!transmission:Would you like to continue processing the rest of thequeue or would you like to abort? If this failedpackage is a dependency of another package in the queuethen it may not make sense to continue.(Y)es to continue, (N)o to abort, (R)etry the build?:
""""
I TRIED TO MAKE SIMPLE software to test the complier and this is the result :
root@darkstar /t/t/build# gcc test.c -o test/usr/bin/ld: /lib64/libc.so.6: unknown type [0x13] section .relr.dyn'/usr/bin/ld: skipping incompatible /lib64/libc.so.6 when searching for /lib64/libc.so.6/usr/bin/ld: cannot find /lib64/libc.so.6/usr/bin/ld: /lib64/libc.so.6: unknown type [0x13] section .relr.dyn'/usr/bin/ld: skipping incompatible /lib64/libc.so.6 when searching for /lib64/libc.so.6/usr/bin/ld: /lib64/ld-linux-x86-64.so.2: unknown type [0x13] section .relr.dyn'/usr/bin/ld: skipping incompatible /lib64/ld-linux-x86-64.so.2 when searching for /lib64/ld-linux-x86-64.so.2/usr/bin/ld: cannot find /lib64/ld-linux-x86-64.so.2/usr/bin/ld: /lib64/ld-linux-x86-64.so.2: unknown type [0x13] section .relr.dyn'/usr/bin/ld: skipping incompatible /lib64/ld-linux-x86-64.so.2 when searching for /lib64/ld-linux-x86-64.so.2collect2: error: ld returned 1 exit statusroot@darkstar /t/t/build [1]# ll
""""
root@darkstar /t/t/build# readelf -h /lib64/libc-2.40.so readelf -h /lib64/ld-2.40.soELF Header: Magic: 7f 45 4c 46 02 01 01 03 00 00 00 00 00 00 00 00 Class: ELF64 Data: 2's complement, little endian Version: 1 (current) OS/ABI: UNIX - GNU ABI Version: 0 Type: DYN (Shared object file) Machine: Advanced Micro Devices X86-64 Version: 0x1 Entry point address: 0x29f20 Start of program headers: 64 (bytes into file) Start of section headers: 2409448 (bytes into file) Flags: 0x0 Size of this header: 64 (bytes) Size of program headers: 56 (bytes) Number of program headers: 14 Size of section headers: 64 (bytes) Number of section headers: 63 Section header string table index: 62ELF Header: Magic: 7f 45 4c 46 02 01 01 03 00 00 00 00 00 00 00 00 Class: ELF64 Data: 2's complement, little endian Version: 1 (current) OS/ABI: UNIX - GNU ABI Version: 0 Type: DYN (Shared object file) Machine: Advanced Micro Devices X86-64 Version: 0x1 Entry point address: 0x1f000 Start of program headers: 64 (bytes into file) Start of section headers: 259664 (bytes into file) Flags: 0x0 Size of this header: 64 (bytes) Size of program headers: 56 (bytes) Number of program headers: 10 Size of section headers: 64 (bytes) Number of section headers: 22 Section header string table index: 21root@darkstar /t/t/build#
""""
root@darkstar /t/t/build# upgradepkg --reinstall /var/log/packages/glibc-*Cannot install glibc-2.40-x86_64-5: invalid package extensionCannot install glibc-i18n-2.40-x86_64-5: invalid package extensionCannot install glibc-profile-2.40-x86_64-5: invalid package extensionCannot install glibc-zoneinfo-2024b-noarch-1: invalid package extensionroot@darkstar /t/t/build# uname -a cat /etc/slackware-versionLinux darkstar.example.net 5.15.19 #1 SMP PREEMPT Wed Feb 2 01:50:51 CST 2022 x86_64 Intel(R) Core(TM) i5 CPU M 430 @ 2.27GHz GenuineIntel GNU/LinuxSlackware 15.0root@darkstar /t/t/build#
==========
This is the output of the info of the complier
"""
checking build system type... x86_64-pc-linux-gnuchecking host system type... x86_64-pc-linux-gnuchecking target system type... x86_64-pc-linux-gnuchecking for a BSD-compatible install... /bin/ginstall -cchecking whether build environment is sane... yeschecking for a thread-safe mkdir -p... /bin/mkdir -pchecking for gawk... gawkchecking whether make sets $(MAKE)... yeschecking whether make supports nested variables... yeschecking whether make supports nested variables... (cached) yeschecking whether make supports the include directive... yes (GNU style)checking for gcc... gccchecking whether the C compiler works... noconfigure: error: in /root/Downloads/aria2':configure: error: C compiler cannot create executablesSee config.log' for more detailsroot@darkstar ~/D/aria2 (master) [77]#
"""
root@darkstar ~ (master)# gcc --version
gcc (GCC) 14.2.0
Copyright (C) 2024 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.
root@darkstar ~ (master)#
""""
root@darkstar ~/D/aria2 (master) [SIGINT]# ;gcc -vReading specs from /usr/lib64/gcc/x86_64-slackware-linux/14.2.0/specsCOLLECT_GCC=gccCOLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-slackware-linux/14.2.0/lto-wrapperTarget: x86_64-slackware-linuxConfigured with: ../configure --prefix=/usr --libdir=/usr/lib64 --mandir=/usr/man --infodir=/usr/info --enable-shared --enable-bootstrap --enable-languages=ada,c,c++,d,fortran,go,lto,m2,objc,obj-c++,rust --enable-threads=posix --enable-checking=release --with-system-zlib --enable-libstdcxx-dual-abi --with-default-libstdcxx-abi=new --disable-libstdcxx-pch --disable-libunwind-exceptions --enable-__cxa_atexit --disable-libssp --enable-gnu-indirect-function --enable-gnu-unique-object --enable-plugin --enable-lto --disable-install-libiberty --disable-werror --with-gnu-ld --with-isl --verbose --with-arch-directory=amd64 --disable-gtktest --enable-clocale=gnu --with-arch=x86-64 --enable-multilib --target=x86_64-slackware-linux --build=x86_64-slackware-linux --host=x86_64-slackware-linuxThread model: posixSupported LTO compression algorithms: zlib zstdgcc version 14.2.0 (GCC)root@darkstar ~/D/aria2 (master)#
"""""
CMake Error at /usr/share/cmake-3.31/Modules/CMakeTestCCompiler.cmake:67 (message): The C compiler "/usr/bin/cc" is not able to compile a simple test program. It fails with the following output: Change Dir: '/tmp/SBo/transmission-4.0.6/build/CMakeFiles/CMakeScratch/TryCompile-iKcyAF' Run Build Command(s): /usr/bin/cmake -E env VERBOSE=1 /usr/bin/gmake -f Makefile cmTC_de344/fast /usr/bin/gmake -f CMakeFiles/cmTC_de344.dir/build.make CMakeFiles/cmTC_de344.dir/build gmake[1]: Entering directory '/tmp/SBo/transmission-4.0.6/build/CMakeFiles/CMakeScratch/TryCompile-iKcyAF' Building C object CMakeFiles/cmTC_de344.dir/testCCompiler.c.o /usr/bin/cc -O2 -fPIC -o CMakeFiles/cmTC_de344.dir/testCCompiler.c.o -c /tmp/SBo/transmission-4.0.6/build/CMakeFiles/CMakeScratch/TryCompile-iKcyAF/testCCompiler.c Linking C executable cmTC_de344 /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_de344.dir/link.txt --verbose=1 /usr/bin/ld: /lib64/libc.so.6: unknown type [0x13] section .relr.dyn' /usr/bin/ld: skipping incompatible /lib64/libc.so.6 when searching for /lib64/libc.so.6 /usr/bin/ld: cannot find /lib64/libc.so.6 /usr/bin/ld: /lib64/libc.so.6: unknown type [0x13] section .relr.dyn' /usr/bin/ld: skipping incompatible /lib64/libc.so.6 when searching for /lib64/libc.so.6 /usr/bin/ld: /lib64/ld-linux-x86-64.so.2: unknown type [0x13] section .relr.dyn' /usr/bin/ld: skipping incompatible /lib64/ld-linux-x86-64.so.2 when searching for /lib64/ld-linux-x86-64.so.2 /usr/bin/ld: cannot find /lib64/ld-linux-x86-64.so.2 /usr/bin/ld: /lib64/ld-linux-x86-64.so.2: unknown type [0x13] section .relr.dyn' /usr/bin/ld: skipping incompatible /lib64/ld-linux-x86-64.so.2 when searching for /lib64/ld-linux-x86-64.so.2 collect2: error: ld returned 1 exit status /usr/bin/cc -O2 -fPIC CMakeFiles/cmTC_de344.dir/testCCompiler.c.o -o cmTC_de344 gmake[1]: [CMakeFiles/cmTC_de344.dir/build.make:102: cmTC_de344] Error 1 gmake[1]: Leaving directory '/tmp/SBo/transmission-4.0.6/build/CMakeFiles/CMakeScratch/TryCompile-iKcyAF' gmake: [Makefile:133: cmTC_de344/fast] Error 2 CMake will not be able to correctly generate this project.Call Stack (most recent call first): CMakeLists.txt:18 (project)-- Configuring incomplete, errors occurred!transmission:Would you like to continue processing the rest of thequeue or would you like to abort? If this failedpackage is a dependency of another package in the queuethen it may not make sense to continue.(Y)es to continue, (N)o to abort, (R)etry the build?:
""""
I TRIED TO MAKE SIMPLE software to test the complier and this is the result :
root@darkstar /t/t/build# gcc test.c -o test/usr/bin/ld: /lib64/libc.so.6: unknown type [0x13] section .relr.dyn'/usr/bin/ld: skipping incompatible /lib64/libc.so.6 when searching for /lib64/libc.so.6/usr/bin/ld: cannot find /lib64/libc.so.6/usr/bin/ld: /lib64/libc.so.6: unknown type [0x13] section .relr.dyn'/usr/bin/ld: skipping incompatible /lib64/libc.so.6 when searching for /lib64/libc.so.6/usr/bin/ld: /lib64/ld-linux-x86-64.so.2: unknown type [0x13] section .relr.dyn'/usr/bin/ld: skipping incompatible /lib64/ld-linux-x86-64.so.2 when searching for /lib64/ld-linux-x86-64.so.2/usr/bin/ld: cannot find /lib64/ld-linux-x86-64.so.2/usr/bin/ld: /lib64/ld-linux-x86-64.so.2: unknown type [0x13] section .relr.dyn'/usr/bin/ld: skipping incompatible /lib64/ld-linux-x86-64.so.2 when searching for /lib64/ld-linux-x86-64.so.2collect2: error: ld returned 1 exit statusroot@darkstar /t/t/build [1]# ll
""""
root@darkstar /t/t/build# readelf -h /lib64/libc-2.40.so readelf -h /lib64/ld-2.40.soELF Header: Magic: 7f 45 4c 46 02 01 01 03 00 00 00 00 00 00 00 00 Class: ELF64 Data: 2's complement, little endian Version: 1 (current) OS/ABI: UNIX - GNU ABI Version: 0 Type: DYN (Shared object file) Machine: Advanced Micro Devices X86-64 Version: 0x1 Entry point address: 0x29f20 Start of program headers: 64 (bytes into file) Start of section headers: 2409448 (bytes into file) Flags: 0x0 Size of this header: 64 (bytes) Size of program headers: 56 (bytes) Number of program headers: 14 Size of section headers: 64 (bytes) Number of section headers: 63 Section header string table index: 62ELF Header: Magic: 7f 45 4c 46 02 01 01 03 00 00 00 00 00 00 00 00 Class: ELF64 Data: 2's complement, little endian Version: 1 (current) OS/ABI: UNIX - GNU ABI Version: 0 Type: DYN (Shared object file) Machine: Advanced Micro Devices X86-64 Version: 0x1 Entry point address: 0x1f000 Start of program headers: 64 (bytes into file) Start of section headers: 259664 (bytes into file) Flags: 0x0 Size of this header: 64 (bytes) Size of program headers: 56 (bytes) Number of program headers: 10 Size of section headers: 64 (bytes) Number of section headers: 22 Section header string table index: 21root@darkstar /t/t/build#
""""
root@darkstar /t/t/build# upgradepkg --reinstall /var/log/packages/glibc-*Cannot install glibc-2.40-x86_64-5: invalid package extensionCannot install glibc-i18n-2.40-x86_64-5: invalid package extensionCannot install glibc-profile-2.40-x86_64-5: invalid package extensionCannot install glibc-zoneinfo-2024b-noarch-1: invalid package extensionroot@darkstar /t/t/build# uname -a cat /etc/slackware-versionLinux darkstar.example.net 5.15.19 #1 SMP PREEMPT Wed Feb 2 01:50:51 CST 2022 x86_64 Intel(R) Core(TM) i5 CPU M 430 @ 2.27GHz GenuineIntel GNU/LinuxSlackware 15.0root@darkstar /t/t/build#
==========
This is the output of the info of the complier