Article 5QZKC [SOLVED] Cannot build gcc package on current

[SOLVED] Cannot build gcc package on current

by
perseus12
from LinuxQuestions.org on (#5QZKC)
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.
TIAlatest?d=yIl2AUoC8zA latest?i=Ov7hf27xwBM:cYYvV1kLAI0:F7zBnMy latest?i=Ov7hf27xwBM:cYYvV1kLAI0:V_sGLiP latest?d=qj6IDK7rITs latest?i=Ov7hf27xwBM:cYYvV1kLAI0:gIN9vFwOv7hf27xwBM
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments