configure error on compile ports

Ryan Schmidt ryandesign at
Mon Feb 15 08:44:11 UTC 2021

On Feb 14, 2021, at 12:22, rmgls wrote:

> Please can you tell me what to do about this error
> (elinks but also many other compile)?
> :info:configure checking for gcc... /usr/bin/clang
> :info:configure checking for C compiler default output file name... 
> :info:configure configure: error: C compiler cannot create executables
> some details:
> osx11.2. new macports (/opt/local entirely deleted first).
> gcc and clang correctly seated in /usr/bin and running fine.
> xcode up-to-date, and commandline tools installed!

Error messages shown in the config.log file should tell you why the compiler cannot create executables. Often, the cause is that you have not updated the command line tools to a version that is compatible with your OS. When in doubt, download the correct command line tools manually and reinstall them.

More information about the macports-users mailing list