Opened 5 years ago

Closed 5 years ago

#59128 closed defect (fixed)

qt5-qttranslations 5.12.5 fails on macOS 10.15 with clang: error: invalid library name in argument '-stdlib='

Reported by: rex4539 (Dimitris Apostolou) Owned by: MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)
Priority: Normal Milestone:
Component: ports Version:
Keywords: catalina Cc: mndavidoff (Monte Davidoff)
Port: qt5-qttranslations

Description

As per https://github.com/macports/macports-ports/pull/5389

All other qt5 dependencies compile fine except qt5-qttranslations

Attachments (1)

main.log (10.2 KB) - added by rex4539 (Dimitris Apostolou) 5 years ago.

Download all attachments as: .zip

Change History (5)

Changed 5 years ago by rex4539 (Dimitris Apostolou)

Attachment: main.log added

comment:1 Changed 5 years ago by mndavidoff (Monte Davidoff)

Building qt5-qttranslations 5.12.4 fails with the same error on macOS 10.14 with Xcode 11.0.

--->  Configuring qt5-qttranslations
Executing:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_aqua_qt5/qt5-qttranslations/work/qttranslations-everywhere-src-5.12.4" && /opt/local/libexec/qt5/bin/qmake PREFIX=/opt/local -spec macx-clang 
Info: creating stash file /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_aqua_qt5/qt5-qttranslations/work/qttranslations-everywhere-src-5.12.4/.qmake.stash
Project ERROR: Cannot run compiler '/Library/Developer/CommandLineTools/usr/bin/clang++'. Output:
===================
Apple LLVM version 10.0.1 (clang-1001.0.46.4)
Target: x86_64-apple-darwin18.7.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
clang: error: invalid library name in argument '-stdlib='
clang: error: invalid library name in argument '-stdlib='
===================

comment:2 Changed 5 years ago by mndavidoff (Monte Davidoff)

Cc: mndavidoff added

comment:3 Changed 5 years ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)

Thank you for the bug report.
qt5-qttranslations is noarch, so compiler.cxx_standard is empty, which makes configure.cxx_stdlib empty, therefor the compiler tries to use -stdlib=.

comment:4 Changed 5 years ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)

Resolution: fixed
Status: assignedclosed

In 19c16e2e467bf3805c1b66f0e9df23c1b41900fc/macports-ports (master):

qmake5 PG: prevent -stdlib= to an empty value

Fixes #59128

Note: See TracTickets for help on using tickets.