LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-28-2019, 07:08 AM   #1
RafaBR
LQ Newbie
 
Registered: Aug 2014
Location: Brazil
Distribution: Slackware Current_x64
Posts: 25

Rep: Reputation: Disabled
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!

Last edited by RafaBR; 02-28-2019 at 07:14 AM. Reason: error
 
Old 02-28-2019, 09:48 AM   #2
trite
Member
 
Registered: Feb 2016
Location: Sweden
Distribution: Slackware64-15.0
Posts: 119

Rep: Reputation: 60
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?
 
1 members found this post helpful.
Old 02-28-2019, 12:45 PM   #3
montagdude
Senior Member
 
Registered: Apr 2016
Distribution: Slackware
Posts: 2,011

Rep: Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619
Can you post the relevant portion of /tmp/SBo/Remmina-b0114e06a54d7cc4112fb39a3a219a498a56451b/build/CMakeFiles/CMakeError.log?
 
Old 03-01-2019, 04:51 AM   #4
RafaBR
LQ Newbie
 
Registered: Aug 2014
Location: Brazil
Distribution: Slackware Current_x64
Posts: 25

Original Poster
Rep: Reputation: Disabled
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
 
Old 03-04-2019, 06:09 AM   #5
RafaBR
LQ Newbie
 
Registered: Aug 2014
Location: Brazil
Distribution: Slackware Current_x64
Posts: 25

Original Poster
Rep: Reputation: Disabled
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
 
Old 03-04-2019, 07:00 AM   #6
ehartman
Senior Member
 
Registered: Jul 2007
Location: Delft, The Netherlands
Distribution: Slackware
Posts: 1,674

Rep: Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888
Quote:
Originally Posted by RafaBR View Post
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
 
Old 03-04-2019, 07:04 AM   #7
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
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
 
2 members found this post helpful.
Old 03-04-2019, 08:06 AM   #8
RafaBR
LQ Newbie
 
Registered: Aug 2014
Location: Brazil
Distribution: Slackware Current_x64
Posts: 25

Original Poster
Rep: Reputation: Disabled
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.
 
Old 03-04-2019, 08:15 AM   #9
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
it might qualify for Ponce thread
https://www.linuxquestions.org/quest...ls-4175561999/
what packages are not working?
 
Old 03-04-2019, 08:33 AM   #10
RafaBR
LQ Newbie
 
Registered: Aug 2014
Location: Brazil
Distribution: Slackware Current_x64
Posts: 25

Original Poster
Rep: Reputation: Disabled
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.
 
Old 03-04-2019, 08:33 AM   #11
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,068

Rep: Reputation: 4144Reputation: 4144Reputation: 4144Reputation: 4144Reputation: 4144Reputation: 4144Reputation: 4144Reputation: 4144Reputation: 4144Reputation: 4144Reputation: 4144
Quote:
Originally Posted by BW-userx View Post
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.

Last edited by ponce; 03-04-2019 at 08:35 AM.
 
1 members found this post helpful.
Old 03-04-2019, 08:38 AM   #12
RafaBR
LQ Newbie
 
Registered: Aug 2014
Location: Brazil
Distribution: Slackware Current_x64
Posts: 25

Original Poster
Rep: Reputation: Disabled
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
 
Old 03-04-2019, 08:59 AM   #13
orbea
Senior Member
 
Registered: Feb 2015
Distribution: Slackware64-current
Posts: 1,950

Rep: Reputation: Disabled
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 View Post
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?
 
1 members found this post helpful.
Old 03-04-2019, 09:24 AM   #14
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
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.
 
2 members found this post helpful.
Old 03-06-2019, 06:39 AM   #15
RafaBR
LQ Newbie
 
Registered: Aug 2014
Location: Brazil
Distribution: Slackware Current_x64
Posts: 25

Original Poster
Rep: Reputation: Disabled
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 !!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] [ENCHANCEMENT] slackpkg+: do not show the notices "pkglist is older than 24h..." and "remember to re-run 'slackpkg update''..."... yars Slackware 1 01-09-2016 09:56 AM
having trouble after upgrading 14.1 slackware using slackpkg and slackpkg+ [solved] slackartist Slackware 1 12-28-2015 07:28 AM
[SOLVED] Slackpkg, Slackpkg Plus, Slackware 14.1 x86_64 install.log delay or slow to write bamunds Slackware 7 04-22-2014 11:12 AM
[SOLVED] typos in latest /etc/slackpkg/mirrors(.new) [slackpkg-2.82.0-noarch-8.tgz] wailingwailer Slackware 4 09-22-2012 04:04 AM
Slackpkg: missing something in /usr/libexec/slackpkg/functions.d/dialog-functions.sh michelino Slackware 4 03-20-2007 12:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 05:14 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration