LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   error running slackbuild scripts (https://www.linuxquestions.org/questions/slackware-14/error-running-slackbuild-scripts-4175649255/)

RafaBR 02-28-2019 07:08 AM

error running slackbuild scripts
 
Hello guys,

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

"/usr/bin/cc"

is not able to compile a simple test program.

It fails with the following output:

Change Dir: /tmp/SBo/Remmina-b0114e06a54d7cc4112fb39a3a219a498a56451b/build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/gmake" "cmTC_6a6f2/fast"
/usr/bin/gmake -f CMakeFiles/cmTC_6a6f2.dir/build.make

Does someone could help me with this error?

Thanks

-----------
Slackware Current x64 up to date!

trite 02-28-2019 09:48 AM

Please give us more output from build.
Tell us if you are using any CC or CXX environmental variables.

Maybe your gcc is b0rked(tm), try full system upgrade or reinstall gcc and glibc stuff?

montagdude 02-28-2019 12:45 PM

Can you post the relevant portion of /tmp/SBo/Remmina-b0114e06a54d7cc4112fb39a3a219a498a56451b/build/CMakeFiles/CMakeError.log?

RafaBR 03-01-2019 04:51 AM

Hello guys,

I'm not in the Office now (my laptop is there), but I'll do it as soon as I can.

Thank you.

Rafael

RafaBR 03-04-2019 06:09 AM

Morning,

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

"/usr/bin/cc"

is not able to compile a simple test program.

It fails with the following output:

Change Dir: /tmp/SBo/conky-1.10.8/build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/gmake" "cmTC_6b800/fast"
/usr/bin/gmake -f CMakeFiles/cmTC_6b800.dir/build.make CMakeFiles/cmTC_6b800.dir/build
gmake[1]: Entering directory '/tmp/SBo/conky-1.10.8/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_6b800.dir/testCCompiler.c.o
/usr/bin/cc -O2 -fPIC -o CMakeFiles/cmTC_6b800.dir/testCCompiler.c.o -c /tmp/SBo/conky-1.10.8/build/CMakeFiles/CMakeTmp/testCCompiler.c
Linking C executable cmTC_6b800
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_6b800.dir/link.txt --verbose=1
/usr/bin/cc -O2 -fPIC CMakeFiles/cmTC_6b800.dir/testCCompiler.c.o -o cmTC_6b800
cc: error: CMakeFiles/cmTC_6b800.dir/testCCompiler.c.o: Arquivo ou diretório inexistente
cc: fatal error: no input files
compilation terminated.
gmake[1]: *** [CMakeFiles/cmTC_6b800.dir/build.make:87: cmTC_6b800] Error 1
gmake[1]: Leaving directory '/tmp/SBo/conky-1.10.8/build/CMakeFiles/CMakeTmp'
gmake: *** [Makefile:121: cmTC_6b800/fast] Error 2

ehartman 03-04-2019 07:00 AM

Quote:

Originally Posted by RafaBR (Post 5968124)
Hello guys,

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

BW-userx 03-04-2019 07:04 AM

Ponce git, He (Ponce) keeps the current slackbuilds, or Slackbuilds for current

http://slackware.ponce.cc/blog/

http://cgit.ponce.cc/slackbuilds/

https://github.com/Ponce/slackbuilds

RafaBR 03-04-2019 08:06 AM

Hi,

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.

Thanks.

BW-userx 03-04-2019 08:15 AM

it might qualify for Ponce thread
https://www.linuxquestions.org/quest...ls-4175561999/
what packages are not working?

RafaBR 03-04-2019 08:33 AM

I tried with: conky ->

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

"/usr/bin/cc"

is not able to compile a simple test program.

---------------------------------------------------------------------------

I tried with Remmina:

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

"/usr/bin/cc"

is not able to compile a simple test program.

Tks.

ponce 03-04-2019 08:33 AM

Quote:

Originally Posted by BW-userx (Post 5969717)

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.

RafaBR 03-04-2019 08:38 AM

Here's a full LOG from CMakeError:


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

Run Build Command:"/usr/bin/gmake" "cmTC_0faaf/fast"
/usr/bin/gmake -f CMakeFiles/cmTC_0faaf.dir/build.make CMakeFiles/cmTC_0faaf.dir/build
gmake[1]: Entering directory '/tmp/SBo/Remmina-b0114e06a54d7cc4112fb39a3a219a498a56451b/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_0faaf.dir/testCCompiler.c.o
/usr/bin/cc -O2 -fPIC -lz -lssl -lcrypto -o CMakeFiles/cmTC_0faaf.dir/testCCompiler.c.o -c /tmp/SBo/Remmina-b0114e06a54d7cc4112fb39a3a219a498a56451b/build/CMakeFiles/CMakeTmp/testCCompiler.c
Linking C executable cmTC_0faaf
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_0faaf.dir/link.txt --verbose=1
/usr/bin/cc -O2 -fPIC -lz -lssl -lcrypto CMakeFiles/cmTC_0faaf.dir/testCCompiler.c.o -o cmTC_0faaf
cc: error: CMakeFiles/cmTC_0faaf.dir/testCCompiler.c.o: Arquivo ou diretório inexistente
gmake[1]: *** [CMakeFiles/cmTC_0faaf.dir/build.make:87: cmTC_0faaf] Error 1
gmake[1]: Leaving directory '/tmp/SBo/Remmina-b0114e06a54d7cc4112fb39a3a219a498a56451b/build/CMakeFiles/CMakeTmp'
gmake: *** [Makefile:121: cmTC_0faaf/fast] Error 2

orbea 03-04-2019 08:59 AM

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 (Post 5969669)
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?

BW-userx 03-04-2019 09:24 AM

you could do a download alien bob slackware current iso http://bear.alienbase.nl/mirrors/sla...4-current-iso/

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.

RafaBR 03-06-2019 06:39 AM

Hi,

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.

Anyway, thank you guys for help me !!


All times are GMT -5. The time now is 06:34 AM.