Opened 7 weeks ago
Last modified 8 days ago
#69566 assigned defect
ghc @9.6.4: configure error compiling test program for c++ stdlib flavor
Reported by: | kippesp (Paul Kippes) | Owned by: | essandess (Steve Smith) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.9.1 |
Keywords: | Cc: | ryandesign (Ryan Carsten Schmidt), mascguy (Christopher Nielsen), stevehav (Steve Havelka) | |
Port: | ghc |
Description
Tested on m1 architecture with Sonoma 14.4. Attempted to workaround using Xcode 15.3 (current), 15.2, 15.1 with respective command line tool versions. Attached log made with 15.3.
ghc required for graphviz-gui dependency requirement.
Point of failure:
:info:configure checking C++ standard library flavour... ./configure: line 12534: /usr/bin/clang++ -std=gnu++11: No such file or directory :info:configure configure: error: Failed to compile test program :info:configure Command failed: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_ghc/ghc/work/ghc-9.6.4" && ./configure --prefix=/opt/local --with-gmp-includes=/opt/local/include --with-gmp-libraries=/opt/local/lib --with-iconv-includes=/opt/local/include --with-iconv-libraries=/opt/local/lib :info:configure Exit code: 1
Attachments (1)
Change History (7)
Changed 7 weeks ago by kippesp (Paul Kippes)
Attachment: | main.log.gz added |
---|
comment:1 Changed 7 weeks ago by ryandesign (Ryan Carsten Schmidt)
Cc: | ryandesign mascguy added; essandess removed |
---|---|
Owner: | set to essandess |
Status: | new → assigned |
Summary: | ghc @ 9.6.4: configure error compiling test program for c++ stdlib flavor → ghc @9.6.4: configure error compiling test program for c++ stdlib flavor |
comment:2 Changed 7 weeks ago by ryandesign (Ryan Carsten Schmidt)
This problem came up before in #69332.
comment:4 Changed 4 weeks ago by Lord-Kamina (Gregorio Litenstein)
Same issue, macports 2.9.3, Intel on Monterey.
Seemingly got around it by installing libavif -docs
as @ryandesign mentioned, but it's pretty ridiculous.
comment:5 Changed 10 days ago by mfacorcoran
I'm having this same problem building ghc when trying to upgrade py312-jupyterlab:
:info:configure checking whether /usr/bin/clang supports --target... yes :info:configure checking C++ standard library flavour... ./configure: line 12534: /usr/bin/clang++ -std=gnu++11: No such file or directory :info:configure configure: error: Failed to compile test program :info:configure Command failed: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_github.com_macports_macports-ports_lang_ghc/ghc/work/ghc-9.6.4" && ./configure --prefix=/opt/local --with-gmp-includes=/opt/local/include --with-gmp-libraries=/opt/local/lib --with-iconv-includes=/opt/local/include --with-iconv-libraries=/opt/local/lib :info:configure Exit code: 1
any workaround?
comment:6 Changed 8 days ago by ryandesign (Ryan Carsten Schmidt)
Cc: | stevehav added |
---|
Has duplicate #69896.
Note: See
TracTickets for help on using
tickets.
Because graphviz depends on gd2 which depends on libavif which depends on pandoc which depends on ghc.
So two things should happen: