[MacPorts] #46953: fontconfig @2.11.1 configure error -build failure
#46953: fontconfig @2.11.1 configure error -build failure -------------------------------------+------------------------------------- Reporter: mhng1580@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Keywords: fontconfig expat | Port: fontconfig expat libxml2 mac10.9.5 | libxml2 -------------------------------------+------------------------------------- I get the following error when I tried to install fontconfig {{{ ---> Rebuilding in order fontconfig @2.11.1 ---> Computing dependencies for fontconfig ---> Fetching distfiles for fontconfig ---> Verifying checksums for fontconfig ---> Extracting fontconfig ---> Applying patches to fontconfig ---> Configuring fontconfig Error: Failed to configure fontconfig, consult /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_fontconfig/fontconfig/work/fontconfig-2.11.1/config.log Error: org.macports.configure for port fontconfig returned: configure failure: command execution failed Please see the log file for port fontconfig for details: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_fontconfig/fontconfig/main.log Error: Unable to upgrade port: 1 Error rebuilding fontconfig while executing "error "Error rebuilding $portname"" (procedure "revupgrade_scanandrebuild" line 395) invoked from within "revupgrade_scanandrebuild broken_port_counts $opts" (procedure "macports::revupgrade" line 5) invoked from within "macports::revupgrade $opts" (procedure "action_revupgrade" line 2) invoked from within "action_revupgrade $action $portlist $opts" (procedure "action_target" line 96) invoked from within "$action_proc $action $portlist [array get global_options]" (procedure "process_cmd" line 103) invoked from within "process_cmd $remaining_args" invoked from within "if { [llength $remaining_args] > 0 } { # If there are remaining arguments, process those as a command set exit_status [process_cmd $remaining..." (file "/opt/local/bin/port" line 5268) }}} I checked the main.log file, and it showed {{{ expat is required. or try to use --enable-libxml2 }}} But when I tried to rebuild expat and xml2, it seems that they both depend on fontconfig and the same error when building fontconfig shows up again. -- Ticket URL: <https://trac.macports.org/ticket/46953> MacPorts <https://www.macports.org/> Ports system for OS X
#46953: fontconfig @2.11.1 configure error -build failure -------------------------------------+------------------------------------- Reporter: mhng1580@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: fontconfig expat Port: fontconfig expat | libxml2 mac10.9.5 libxml2 | -------------------------------------+------------------------------------- Comment (by ryandesign@…): The error in the config.log is: {{{ ld: warning: ignoring file /opt/local/lib/libexpat.dylib, file was built for i386 which is not the architecture being linked (x86_64): /opt/local/lib/libexpat.dylib }}} Why is this the case? How did this happen? Did you install some third- party software that overwrote some of your MacPorts-installed software? The solution to this particular error is to rebuild expat, which you can do by running: {{{ sudo port clean expat sudo port -n upgrade --force expat }}} However, if your expat was overwritten, who knows how many of your other ports have been overwritten. It might be safest and easiest to uninstall all ports, and MacPorts itself, and remove the /opt/local directory entirely, as per our [https://guide.macports.org/chunked/installing.macports.uninstalling.html uninstall instructions], then reinstall the ports you want. -- Ticket URL: <https://trac.macports.org/ticket/46953#comment:1> MacPorts <https://www.macports.org/> Ports system for OS X
#46953: libexpat.dylib was built for i386 which is not the architecture being linked -------------------------+-------------------------------- Reporter: mhng1580@… | Owner: macports-tickets@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: invalid | Keywords: Port: expat | -------------------------+-------------------------------- Changes (by ryandesign@…): * status: new => closed * cc: ryandesign@… (added) * keywords: fontconfig expat libxml2 mac10.9.5 => * resolution: => invalid * port: fontconfig expat libxml2 => expat -- Ticket URL: <https://trac.macports.org/ticket/46953#comment:2> MacPorts <https://www.macports.org/> Ports system for OS X
#46953: libexpat.dylib was built for i386 which is not the architecture being linked -------------------------+-------------------------------- Reporter: mhng1580@… | Owner: macports-tickets@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: invalid | Keywords: Port: expat | -------------------------+-------------------------------- Comment (by mhng1580@…): Replying to [comment:1 ryandesign@…]: I uninstalled it and installed again. Everything runs well now. Thanks!
The error in the config.log is:
{{{ ld: warning: ignoring file /opt/local/lib/libexpat.dylib, file was built for i386 which is not the architecture being linked (x86_64): /opt/local/lib/libexpat.dylib }}}
Why is this the case? How did this happen? Did you install some third- party software that overwrote some of your MacPorts-installed software?
The solution to this particular error is to rebuild expat, which you can do by running:
{{{ sudo port clean expat sudo port -n upgrade --force expat }}}
However, if your expat was overwritten, who knows how many of your other ports have been overwritten. It might be safest and easiest to uninstall all ports, and MacPorts itself, and remove the /opt/local directory entirely, as per our [https://guide.macports.org/chunked/installing.macports.uninstalling.html uninstall instructions], then reinstall MacPorts and the ports you want.
-- Ticket URL: <https://trac.macports.org/ticket/46953#comment:3> MacPorts <https://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts