[MacPorts] #65834: ghc: ld: symbol(s) not found for architecture x86_64
MacPorts
noreply at macports.org
Wed Sep 14 09:22:27 UTC 2022
#65834: ghc: ld: symbol(s) not found for architecture x86_64
---------------------+-----------------------
Reporter: dbl001 | Owner: essandess
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.7.2
Resolution: | Keywords:
Port: ghc |
---------------------+-----------------------
Comment (by essandess):
To be clear, we have a working {{{ghc}}} bootstrap that correctly links
itself and things it builds to MacPorts libraries including
{{{libiconv}}}.
The issue is just setting the {{{depends_*}}} settings correctly so that
the builds work across a variety of initial states.
{{{
port contents ghc | egrep -e '\.dylib$' | xargs otool -L | egrep -E -e
'^[[:space:]]+/opt/local' | sort -u
/opt/local/lib/libgmp.10.dylib (compatibility version 15.0.0,
current version 15.1.0)
/opt/local/lib/libiconv.2.dylib (compatibility version 9.0.0,
current version 9.1.0)
/opt/local/lib/libncurses.6.dylib (compatibility version 6.0.0,
current version 6.0.0)
find /opt/local/lib/ghc-9.4.2/bin -type f | xargs otool -L | egrep -E -e
'^[[:space:]]+/opt/local' | sort -u
/opt/local/lib/libgmp.10.dylib (compatibility version 15.0.0,
current version 15.1.0)
/opt/local/lib/libiconv.2.dylib (compatibility version 9.0.0,
current version 9.1.0)
/opt/local/lib/libncurses.6.dylib (compatibility version 6.0.0,
current version 6.0.0)
}}}
--
Ticket URL: <https://trac.macports.org/ticket/65834#comment:6>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list