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.
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
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.
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.
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?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.