LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 10-21-2021, 08:25 AM   #1
perseus12
Member
 
Registered: Oct 2012
Location: here and there
Distribution: Slackware Current, FreeBSD 12.0, LFS 10.1
Posts: 77

Rep: Reputation: Disabled
Cannot build gcc package on current


I'm feeling embaressed posting this however I'm in a bind.

when I try to build gcc using the Pat's build script I get:
configure: error: in `/usr/ports/tmp/build/gcc-build':
configure: error: C compiler cannot create executables

I have all disksets installed of current except e, f, kde, t, xap and xfce. Current is is recent as Tue Oct 19 01:10:06 UTC 2021

I did build and install some 3rd party software: gnucash, vlc, trinity amongst others, so gcc works!

I then tried to build ffmpeg and failed. Got error:
'g++: no such file'.

I reinstalled the gcc-g++ package which fixed this error.

Then on a whim i decided to build gcc package using Pat's SlackBuild script. This fails with the above error. I'm sure nothing wrong with Slackware or Pat's script but what may I have screwed up? Where should I start looking to solve this?

BTW: I have reinstalled all of 'd' diskset as I thought binutils may have been hosed somehow by my custom build scripts for 3rd party software.
TIA
 
Old 10-21-2021, 08:45 AM   #2
drumz
Member
 
Registered: Apr 2005
Location: Oklahoma, USA
Distribution: Slackware
Posts: 907

Rep: Reputation: 697Reputation: 697Reputation: 697Reputation: 697Reputation: 697Reputation: 697
Quote:
Originally Posted by perseus12 View Post
I have all disksets installed of current except e, f, kde, t, xap and xfce. Current is is recent as Tue Oct 19 01:10:06 UTC 2021

...

I then tried to build ffmpeg and failed. Got error:
'g++: no such file'.

I reinstalled the gcc-g++ package which fixed this error.
This indicates to me that your system is not clean. Did you ever install multilib? Unfortunately there's no telling what all is wrong with your system.
 
Old 10-21-2021, 09:43 AM   #3
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,448

Rep: Reputation: 2342Reputation: 2342Reputation: 2342Reputation: 2342Reputation: 2342Reputation: 2342Reputation: 2342Reputation: 2342Reputation: 2342Reputation: 2342Reputation: 2342
You may need the 't' set or something from it. I've argued about reducing packages before, but utilities you trake for granted are often packaged as part of a package you "obviously don't want." Nslookup being part of bind is one example that springs to mind.

Try it again,and trap the error. I presume it's in the configure stage, processing the Makefile. IIRC, it tries to make a tiny a.out program with a few lines of the Makefile; just run it line by line in a console until you find the issue.
 
Old 10-21-2021, 10:37 AM   #4
perseus12
Member
 
Registered: Oct 2012
Location: here and there
Distribution: Slackware Current, FreeBSD 12.0, LFS 10.1
Posts: 77

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by drumz View Post
This indicates to me that your system is not clean. Did you ever install multilib? Unfortunately there's no telling what all is wrong with your system.
Yes I did install multilib, but then removed it. This is a test machine so I have made my own build scripts for trinity. My latest changes to these scripts hosed the filesystem...just saw where it happens. I have ended up with /usr/bin/lib64, and /opt/lib64 and then even /usr/lib64/lib64

Some trinity variables to blame.
Thank you so much for your help though.
I can't see how to mark this as solved / is there a button somewhere?
 
1 members found this post helpful.
Old 10-21-2021, 10:38 AM   #5
perseus12
Member
 
Registered: Oct 2012
Location: here and there
Distribution: Slackware Current, FreeBSD 12.0, LFS 10.1
Posts: 77

Original Poster
Rep: Reputation: Disabled
okI saw how to close this
 
  


Reply



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] GCC makefile give me an error: configure: error: cannot compute suffix of object files: cannot compile - LFS build George528 Linux From Scratch 10 05-11-2021 08:32 AM
[SOLVED] No package 'x11' found No package 'xext' found No package 'xdamage' found No package 'xfixes' found No package 'x11-xcb' found Jigsaw Linux From Scratch 14 02-23-2021 08:35 PM
[SOLVED] Linux 4.4 seems to refuse to build IPv6 for the 64-bit build - 32-bit build works fine GameCodingNinja Linux From Scratch 2 02-07-2016 06:40 PM
LXer: Build 'em Right, Build 'em Strong, Build 'em Linux LXer Syndicated Linux News 0 10-01-2007 09:51 PM

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

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

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