Opened 19 months ago

Last modified 12 months ago

#60171 assigned defect

ghc @8.8.3 iconv not found in build stage

Reported by: p-bro Owned by: essandess (Steve Smith)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: ghc


On Mac OS 10.13.6 (High Sierra) a build of ghc @8.8.3 fails at the build stage with the following error:

:info:build checking for library containing iconv... no
:info:build configure: error: iconv is required on non-Windows platforms
:info:build make[1]: *** [libraries/base/dist-install/] Error 1

Full log is attached.

However, libiconv @1.16_0 is installed (as indirect dependency via gnupg2 and pkgconfig), so I'm not sure why it is not found.

Attachments (1)

ghc_main.log (2.2 MB) - added by p-bro 19 months ago.
ghc build log

Change History (8)

Changed 19 months ago by p-bro

Attachment: ghc_main.log added

ghc build log

comment:1 Changed 19 months ago by mf2k (Frank Schima)

Cc: essandess removed
Owner: set to essandess
Status: newassigned

comment:2 Changed 19 months ago by essandess (Steve Smith)

Scratching my head on this one. The buildbot worked for 10.14. I tested it on 10.15.

comment:3 Changed 18 months ago by snowflake (Dave Evans)

It broke for me too on 10.11

However the buildbot for 10.11 and later now shows it building OK in the last few days.

comment:4 Changed 12 months ago by ryandesign (Ryan Schmidt)

ghc does not declare a dependency on port:libiconv. If ghc requires libiconv, which this error message seems to indicate it does, then the port should declare that dependency.

comment:5 Changed 12 months ago by essandess (Steve Smith)

Do not add libiconv as a ghc dependency. Without the missing fix to use it for the entire build, this will break stuff. The workaround is to temporarily deactivate libiconv.


Last edited 12 months ago by ryandesign (Ryan Schmidt) (previous) (diff)

comment:7 Changed 12 months ago by essandess (Steve Smith)

In ab891551d4693be90aa6492b0f4e5b8d98cebf29/macports-ports (master):

ghc: Bugfixes for test and iconv linking


Note: See TracTickets for help on using tickets.