Opened 13 years ago

Closed 13 years ago

#30226 closed defect (worksforme)

Various libraries are installed for i386 not x86_64

Reported by: sglink@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.9.2
Keywords: Cc: ryandesign (Ryan Carsten Schmidt)
Port: libintl zlib

Description (last modified by ryandesign (Ryan Carsten Schmidt))

$ sudo port install gcc44
--->  Computing dependencies for gcc44
--->  Dependencies to be installed: gmp mpfr xz
--->  Configuring gmp
Error: Target org.macports.configure returned: configure failure: shell command failed (see log for details)
Error: Failed to install gmp
Log for gmp is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_gmp/main.log

Error: The following dependencies were not installed: gmp mpfr xz
Error: Status 1 encountered during processing.
To report a bug, see <http://guide.macports.org/#project.tickets>

A pastebin of the full log is at http://pastebin.com/bpAjbM8U

note: when I tried to install gawk, as that appeared to be the issue (that it was missing), I got the same error.

Any help would be greatly appreciated. Thank you.

Attachments (1)

log.txt (1.4 MB) - added by sglink@… 13 years ago.
gcc44 failed install log

Download all attachments as: .zip

Change History (8)

comment:1 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)

comment:2 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign@… added
Keywords: gmp gcc removed
Port: libintl added; gmp gcc44 removed
Summary: Failed to install gmp (MacPorts 1.9.2 OS 10.6.8libintl.8.dylib: mach-o, but wrong architecture

The relevant error in the log is:

:info:configure dyld: Library not loaded: /opt/local/lib/libintl.8.dylib
:info:configure   Referenced from: /opt/local/bin/gawk
:info:configure   Reason: no suitable image found.  Did find:
:info:configure         /opt/local/lib/libintl.8.dylib: mach-o, but wrong architecture

So your gettext port (which provides the libintl library) is installed for a different architecture than your gawk port. Is it possible you migrated this MacPorts install from a prior version of Mac OS X, or from a Mac with a different processor architecture, to this Mac, without rebuilding all ports? See Migration.

At minimum, you will need to rebuild gettext. In order to be able to do so, you will need to forcibly uninstall gawk first (and possibly other small utility ports like grep or sed).

sudo port -f uninstall gawk
sudo port clean libintl
sudo port -n upgrade --force libintl

Changed 13 years ago by sglink@…

Attachment: log.txt added

gcc44 failed install log

comment:3 in reply to:  2 Changed 13 years ago by sglink@…

I ran sudo port -f uninstall gawk successfully, and was told that libintl was not installed, so I tried to install gcc44 again, but received a similar error to earlier.

I have included the log file that MacPorts generated.

Thanks again for your help.

comment:4 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Port: zlib added
Summary: libintl.8.dylib: mach-o, but wrong architectureVarious libraries are installed for i386 not x86_64

Sorry, I typo'd the command above. libintl is the name of the library, not the port. The port that provides the libintl library is called gettext.

sudo port -n upgrade --force gettext

But the new log you've attached shows the same error but now with libz (from the zlib port):

:info:build ld: warning: in /opt/local/lib/libz.dylib, file was built for i386 which is not the architecture being linked (x86_64)

So from these multiple failures it seems pretty clear that this MacPorts install began life on Leopard or earlier, or on a 32-bit machine running Snow Leopard, and you migrated it to a 64-bit machine running Snow Leopard. So you should follow the Migration procedure and uninstall and reinstall all ports.

comment:5 Changed 13 years ago by jmroot (Joshua Root)

I'm pretty sure there's some installer out there that puts an i386-only gettext into /opt/local, because more than one person on IRC has had their libintl be i386 when the registry says it's x86_64, and simply reinstalling fixed it.

comment:6 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Ok, that situation would be covered by ProblemHotlist.

comment:7 Changed 13 years ago by jmroot (Joshua Root)

Resolution: worksforme
Status: newclosed

There doesn't appear to be anything for us to do here.

Note: See TracTickets for help on using tickets.