Opened 5 years ago

Closed 8 months ago

#60171 closed defect (fixed)

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

Description

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/package-data.mk] 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 5 years ago.
ghc build log

Change History (9)

Changed 5 years ago by p-bro

Attachment: ghc_main.log added

ghc build log

comment:1 Changed 5 years ago by mf2k (Frank Schima)

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

comment:2 Changed 5 years 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 5 years 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 4 years ago by ryandesign (Ryan Carsten 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 4 years 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.

See:

Last edited 4 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:7 Changed 4 years ago by essandess (Steve Smith)

In ab891551d4693be90aa6492b0f4e5b8d98cebf29/macports-ports (master):

ghc: Bugfixes for test and iconv linking

Fixes:

comment:8 Changed 8 months ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.