SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
After last upgrade on my system (Slackware x64 Current), now when I try to run any slackbuild script, I got this error:
Example:
Remmina-b0114e06a54d7cc4112fb39a3a219a498a56451b/CODE_OF_CONDUCT.md
-- The C compiler identification is unknown
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- broken
CMake Error at /usr/share/cmake-3.13/Modules/CMakeTestCCompiler.cmake:52 (message):
The C compiler
I've tried to reinstall GCC/GLIBC but it didn't work.
/tmp/SBo/conky-1.10.8/build/CMakeFiles/CMakeError.log :
Compilation of the C compiler identification source "CMakeCCompilerId.c" did not produce an executable in "/tmp/SBo/conky-1.10.8/build/CMakeFiles/3.13.4/CompilerIdC".
Checking whether the C compiler is IAR using "" did not match "IAR .+ Compiler":
cc: fatal error: no input files
compilation terminated.
Checking whether the C compiler is IAR using "" did not match "IAR .+ Compiler":
cc: fatal error: no input files
compilation terminated.
Compilation of the CXX compiler identification source "CMakeCXXCompilerId.cpp" did not produce an executable in "/tmp/SBo/conky-1.10.8/build/CMakeFiles/3.13.4/CompilerIdCXX".
Compilation of the CXX compiler identification source "CMakeCXXCompilerId.cpp" did not produce an executable in "/tmp/SBo/conky-1.10.8/build/CMakeFiles/3.13.4/CompilerIdCXX".
Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: /usr/bin/c++
Build flags: -O2;-fPIC
Id flags: --c++
------------------------------------
Any Slackbuild package that I try to compile, I get this error:
-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- broken
CMake Error at /usr/share/cmake-3.13/Modules/CMakeTestCCompiler.cmake:52 (message):
The C compiler
After last upgrade on my system (Slackware x64 Current), now when I try to run any slackbuild script,
SlackBuild scripts (from slackbuilds.org) are NOT meant for -current, especially as -current is using a different (newer) gcc and glibc version. They have been tested only on 14.x releases and often only 14.1 and 14.2
I did as you told me (I've downloaded SlackBuild's package file for current: slackbuilds-14.2-20190302.1) e tried again with some packages, but they didn't work! Exactly the same error happens.
I have 2 laptops with the same Slackware Current version. This one where the error happens I took a bit more time to upgrade it than another one. That's the difference between them.
My another laptop I can still compile every SlackBuild's packages (from SlackBuilds.org) without any errors.
conky-1.10.8/src/weather.cc
conky-1.10.8/src/weather.h
conky-1.10.8/src/x11.cc
conky-1.10.8/src/x11.h
conky-1.10.8/src/xmms2.cc
conky-1.10.8/src/xmms2.h
conky-1.10.8/text2c.sh
-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- broken
CMake Error at /usr/share/cmake-3.13/Modules/CMakeTestCCompiler.cmake:52 (message):
The C compiler
Remmina-b0114e06a54d7cc4112fb39a3a219a498a56451b/.github/
Remmina-b0114e06a54d7cc4112fb39a3a219a498a56451b/.github/ISSUE_TEMPLATE.md
Remmina-b0114e06a54d7cc4112fb39a3a219a498a56451b/COPYING
Remmina-b0114e06a54d7cc4112fb39a3a219a498a56451b/README.md
Remmina-b0114e06a54d7cc4112fb39a3a219a498a56451b/CODE_OF_CONDUCT.md
-- The C compiler identification is unknown
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- broken
CMake Error at /usr/share/cmake-3.13/Modules/CMakeTestCCompiler.cmake:52 (message):
The C compiler
no, because packages build fine for him on another installation so it's pretty obvious there's something wrong with this one: the build failures reported in that topic have to be reproducible in a clean and full installation of Slackware.
Compilation of the C compiler identification source "CMakeCCompilerId.c" did not produce an executable in "/tmp/SBo/Remmina-b0114e06a54d7cc4112fb39a3a219a498a56451b/build/CMakeFiles/3.13.4/CompilerIdC".
Compilation of the C compiler identification source "CMakeCCompilerId.c" did not produce an executable in "/tmp/SBo/Remmina-b0114e06a54d7cc4112fb39a3a219a498a56451b/build/CMakeFiles/3.13.4/CompilerIdC".
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: /usr/bin/cc
Build flags: -O2;-fPIC;-lz;-lssl;-lcrypto
Id flags: -Aa
The output was:
1
Compilation of the C compiler identification source "CMakeCCompilerId.c" did not produce an executable in "/tmp/SBo/Remmina-b0114e06a54d7cc4112fb39a3a219a498a56451b/build/CMakeFiles/3.13.4/CompilerIdC".
Compilation of the C compiler identification source "CMakeCCompilerId.c" did not produce an executable in "/tmp/SBo/Remmina-b0114e06a54d7cc4112fb39a3a219a498a56451b/build/CMakeFiles/3.13.4/CompilerIdC".
Compilation of the C compiler identification source "CMakeCCompilerId.c" did not produce an executable in "/tmp/SBo/Remmina-b0114e06a54d7cc4112fb39a3a219a498a56451b/build/CMakeFiles/3.13.4/CompilerIdC".
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: /usr/bin/cc
Build flags:
Id flags: -Aa
The output was:
1
<command-line>: error:
Compilation of the C compiler identification source "CMakeCCompilerId.c" did not produce an executable in "/tmp/SBo/Remmina-b0114e06a54d7cc4112fb39a3a219a498a56451b/build/CMakeFiles/3.13.4/CompilerIdC".
Checking whether the C compiler is IAR using "" did not match "IAR .+ Compiler":
Checking whether the C compiler is IAR using "" did not match "IAR .+ Compiler":
cc: fatal error: no input files
compilation terminated.
Determining if the C compiler works failed with the following output:
Change Dir: /tmp/SBo/Remmina-b0114e06a54d7cc4112fb39a3a219a498a56451b/build/CMakeFiles/CMakeTmp
You compiler is broken, I would guess something went very wrong during installation or maybe during an update. Please make sure this is full Slackware install that is fully up to date. Likely some vital package is missing or incorrectly installed. Also please use code tags in the future, it makes it easier to read.
Quote:
Originally Posted by ehartman
SlackBuild scripts (from slackbuilds.org) are NOT meant for -current, especially as -current is using a different (newer) gcc and glibc version. They have been tested only on 14.x releases and often only 14.1 and 14.2
This is obviously not the issue, did you even read the error messages?
then mount it or untar it into a directory then reinstall what you think you need to see if that fixes it, after you've ran your update, install new, upgrade all
Code:
"upgradepkg --install-new --reinstall ..."
not guaranteed to work but it is just something to try to hopefully prevent a fresh install.
I couldn't fix this error ...
So for now, I will keep it this way and when I need to compile something I will do it on my another laptop (that works fine).
On this laptop, except build packages I can do everything else.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.