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)

main.log.gz (5.5 KB) - added by kippesp (Paul Kippes) 7 weeks ago.

Download all attachments as: .zip

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: newassigned
Summary: ghc @ 9.6.4: configure error compiling test program for c++ stdlib flavorghc @9.6.4: configure error compiling test program for c++ stdlib flavor

Because graphviz depends on gd2 which depends on libavif which depends on pandoc which depends on ghc.

So two things should happen:

  1. This bug in ghc should be fixed.
  2. graphviz should not depend on ghc because that's ridiculous. This should be accomplished either by having libavif not depend on pandoc anymore (for example by not enabling its +docs variant by default or moving libavif documentation to a subport) or, if that's not possible, having gd2 not depend on libavif anymore (that dependency was only recently added; gd2 obviously worked fine for 20 years without it).

comment:2 Changed 7 weeks ago by ryandesign (Ryan Carsten Schmidt)

This problem came up before in #69332.

comment:3 Changed 7 weeks ago by AttentionalM (AttentionalM)

Same error on M1 Ventura 13.6.6

Last edited 7 weeks ago by AttentionalM (AttentionalM) (previous) (diff)

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.

Last edited 4 weeks ago by Lord-Kamina (Gregorio Litenstein) (previous) (diff)

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.