[MacPorts] #42788: freetype link error: "warning: ignoring file /opt/local/lib/libharfbuzz.dylib"
#42788: freetype link error: "warning: ignoring file /opt/local/lib/libharfbuzz.dylib" --------------------+-------------------------------- Reporter: pdm@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Keywords: | Port: freetype --------------------+-------------------------------- Hi, Freetype is failing to build on a port upgrade outdated. port clean does not help. -- Ticket URL: <https://trac.macports.org/ticket/42788> MacPorts <http://www.macports.org/> Ports system for OS X
#42788: freetype link error: "warning: ignoring file /opt/local/lib/libharfbuzz.dylib" -----------------------+-------------------------------- Reporter: pdm@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: Port: freetype | -----------------------+-------------------------------- Comment (by pdm@…): Because the log file is big, here is a copy of the error message. {{{ :info:build ld: warning: ignoring file /opt/local/lib/libharfbuzz.dylib, file was built for x86_64 which is not the architecture being linked (i386): /opt/local/lib/libharfbuzz.dylib :info:build Undefined symbols for architecture i386: :info:build "_hb_buffer_add_utf32", referenced from: :info:build _af_get_char_index in autofit.o :info:build "_hb_buffer_create", referenced from: :info:build _af_get_char_index in autofit.o ... :info:build ld: symbol(s) not found for architecture i386 :info:build clang: error: linker command failed with exit code 1 (use -v to see invocation) }}} -- Ticket URL: <https://trac.macports.org/ticket/42788#comment:1> MacPorts <http://www.macports.org/> Ports system for OS X
#42788: freetype link error: "warning: ignoring file /opt/local/lib/libharfbuzz.dylib" -----------------------+-------------------------------- Reporter: pdm@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: Port: freetype | -----------------------+-------------------------------- Comment (by pdm@…): Ticket #42786 may or may not be related... -- Ticket URL: <https://trac.macports.org/ticket/42788#comment:2> MacPorts <http://www.macports.org/> Ports system for OS X
#42788: freetype link error: "warning: ignoring file /opt/local/lib/libharfbuzz.dylib" -----------------------+-------------------------- Reporter: pdm@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: Port: freetype | -----------------------+-------------------------- Changes (by ryandesign@…): * cc: ryandesign (removed) * owner: macports-tickets@… => ryandesign@… Comment: The Cc field requires complete email addresses. -- Ticket URL: <https://trac.macports.org/ticket/42788#comment:3> MacPorts <http://www.macports.org/> Ports system for OS X
#42788: freetype link error: "warning: ignoring file /opt/local/lib/libharfbuzz.dylib" -----------------------+-------------------------- Reporter: pdm@… | Owner: ryandesign@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: invalid | Keywords: Port: freetype | -----------------------+-------------------------- Changes (by ryandesign@…): * status: new => closed * resolution: => invalid Comment: Replying to [comment:1 pdm@…]:
{{{ :info:build ld: warning: ignoring file /opt/local/lib/libharfbuzz.dylib, file was built for x86_64 which is not the architecture being linked (i386): /opt/local/lib/libharfbuzz.dylib }}}
So, I see you're trying to build freetype universal, but for some reason libharfbuzz is not universal. This should not be possible. The only way I can think of for this to happen is if you ran some third-party software installer which replaced libharfbuzz with a non-universal version. We have a [ProblemHotlist#xmlwf problem hotlist entry] dealing with that scenario. You can try rebuilding harfbuzz to fix this: {{{ sudo port -n upgrade --force harfbuzz }}} But if a third-party installer overwrote parts of MacPorts, then who knows how many other libraries you've replaced with incorrect versions, and your best bet is to uninstall all ports and reinstall them. -- Ticket URL: <https://trac.macports.org/ticket/42788#comment:4> MacPorts <http://www.macports.org/> Ports system for OS X
#42788: freetype: ignoring file /opt/local/lib/libharfbuzz.dylib, file was built for x86_64 which is not the architecture being linked (i386): /opt/local/lib/libharfbuzz.dylib -----------------------+-------------------------- Reporter: pdm@… | Owner: ryandesign@… Type: defect | Status: reopened Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: Port: freetype | -----------------------+-------------------------- Changes (by ryandesign@…): * cc: quentin.riffard@… (added) * status: closed => reopened * resolution: invalid => Comment: Sorry, what I wrote previously was incorrect. The filing of duplicate #42817 helped me realize this is not an isolated incident. I should have looked closer to realize that it is unexpected that freetype is trying to use harfbuzz at all. Harfbuzz support is new in freetype 2.5.3, and I hadn't realized that when I committed the update, so freetype does not declare a dependency on harfbuzz, so this problem occurs when you're trying to build freetype universal but harfbuzz is not installed universal. In fact, we cannot make freetype depend on harfbuzz because harfbuzz already depends on freetype, and MacPorts cannot accommodate circular dependencies. So what we must do is force freetype not to use harfbuzz, even if it is installed. -- Ticket URL: <https://trac.macports.org/ticket/42788#comment:5> MacPorts <http://www.macports.org/> Ports system for OS X
#42788: freetype: ignoring file /opt/local/lib/libharfbuzz.dylib, file was built for x86_64 which is not the architecture being linked (i386): /opt/local/lib/libharfbuzz.dylib -----------------------+-------------------------- Reporter: pdm@… | Owner: ryandesign@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: fixed | Keywords: Port: freetype | -----------------------+-------------------------- Changes (by ryandesign@…): * status: reopened => closed * resolution: => fixed Comment: r117796 -- Ticket URL: <https://trac.macports.org/ticket/42788#comment:6> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts