clang config issue

Daniel J. Luke dluke at geeklair.net
Wed Oct 27 18:39:27 UTC 2021


On Oct 27, 2021, at 2:23 PM, William Parducci <bill at parducci.net> wrote:
> I’m tried to install nmap on a clean install of macports in Big Sur. When it got to configuring clang it is threw this error:
> 
> configure:2838: /usr/bin/clang -qversion >&5
> clang: error: unknown argument '-qversion', did you mean '--version’?
> […]
> clang: error: invalid version number in 'MACOSX_DEPLOYMENT_TARGET=11.0’
> […]
> configure:2940: error: C compiler cannot create executables
> 
> I see that the nmap configure file is asking for “qversion”
> 
> $ grep qversion /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_nmap/nmap/work/nmap-7.92/configure
> for ac_option in --version -v -V -qversion; do
> for ac_option in --version -v -V -qversion; do
> for ac_option in --version -v -V -qversion; do
> 
> I edited the configure file to read --version and it worked
> 
> Full log attached.

Can you attach the Macports main.log instead?

From your config.log it looks like it actually fails when trying to create a simple executable (after it complains about -qversion)

Note that the port seems to build find on Big Sur (https://ports.macports.org/port/nmap/builds/)

-- 
Daniel J. Luke



More information about the macports-users mailing list