[MacPorts] #32676: ruby19 installation problem on mac osx 10.6.8 (architecture mismatch)

MacPorts noreply at macports.org
Tue Dec 27 13:00:20 PST 2011


#32676: ruby19 installation problem on mac osx 10.6.8 (architecture mismatch)
---------------------------------+------------------------------------------
 Reporter:  jnandigam@…          |       Owner:  kimuraw@…           
     Type:  defect               |      Status:  new                 
 Priority:  Normal               |   Milestone:                      
Component:  ports                |     Version:  2.0.3               
 Keywords:                       |        Port:  ruby19              
---------------------------------+------------------------------------------
Changes (by ryandesign@…):

  * owner:  macports-tickets@… => kimuraw@…
  * port:  => ruby19


Old description:

> :info:build installing default md5 libraries
> :info:build linking shared-object digest/md5.bundle
> :info:build ld: in /opt/local/lib/libz.1.dylib, file was built for i386
> which is not the architecture being linked (x86_64)
> :info:build collect2: ld returned 1 exit status
> :info:build linking shared-object dbm.bundle
> :info:build make[2]: ***
> [../../../.ext/x86_64-darwin10/digest/md5.bundle] Error 1
> :info:build make[2]: Leaving directory
> `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_ruby19/ruby19/work/ruby-1.9.3-p0/ext/digest/md5'
> :info:build make[1]: *** [ext/digest/md5/all] Error 2
> :info:build make[1]: *** Waiting for unfinished jobs....
> :info:build installing default date_core libraries
> :info:build installing default bigdecimal libraries
> :info:build make[2]: Leaving directory
> `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_ruby19/ruby19/work/ruby-1.9.3-p0/ext/dbm'
> :info:build linking shared-object -test-/add_suffix/bug.bundle
> :info:build make[2]: Leaving directory
> `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_ruby19/ruby19/work/ruby-1.9.3-p0/ext/-test-/add_suffix'
> :info:build linking shared-object bigdecimal.bundle
> :info:build make[2]: Leaving directory
> `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_ruby19/ruby19/work/ruby-1.9.3-p0/ext/bigdecimal'
> :info:build linking shared-object date_core.bundle
> :info:build make[2]: Leaving directory
> `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_ruby19/ruby19/work/ruby-1.9.3-p0/ext/date'
> :info:build make[1]: Leaving directory
> `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_ruby19/ruby19/work/ruby-1.9.3-p0'
> :info:build make: *** [build-ext] Error 2
> :info:build make: Leaving directory
> `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_ruby19/ruby19/work/ruby-1.9.3-p0'
> :info:build shell command " cd
> "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_ruby19/ruby19/work/ruby-1.9.3-p0"
> && /usr/bin/make -j8 -w all " returned error 2
> :error:build Target org.macports.build returned: shell command failed
> (see log for details)
> :debug:build Backtrace: shell command failed (see log for details)
>     while executing
> "command_exec build"
>     (procedure "portbuild::build_main" line 8)
>     invoked from within
> "$procedure $targetname"
> :info:build Warning: the following items did not execute (for ruby19):
> org.macports.activate org.macports.build org.macports.destroot
> org.macports.install
> :notice:build Log for ruby19 is at:
> /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_ruby19/ruby19/main.log

New description:

 {{{
 :info:build installing default md5 libraries
 :info:build linking shared-object digest/md5.bundle
 :info:build ld: in /opt/local/lib/libz.1.dylib, file was built for i386
 which is not the architecture being linked (x86_64)
 :info:build collect2: ld returned 1 exit status
 :info:build linking shared-object dbm.bundle
 :info:build make[2]: *** [../../../.ext/x86_64-darwin10/digest/md5.bundle]
 Error 1
 :info:build make[2]: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_ruby19/ruby19/work/ruby-1.9.3-p0/ext/digest/md5'
 :info:build make[1]: *** [ext/digest/md5/all] Error 2
 :info:build make[1]: *** Waiting for unfinished jobs....
 :info:build installing default date_core libraries
 :info:build installing default bigdecimal libraries
 :info:build make[2]: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_ruby19/ruby19/work/ruby-1.9.3-p0/ext/dbm'
 :info:build linking shared-object -test-/add_suffix/bug.bundle
 :info:build make[2]: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_ruby19/ruby19/work/ruby-1.9.3-p0/ext/-test-/add_suffix'
 :info:build linking shared-object bigdecimal.bundle
 :info:build make[2]: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_ruby19/ruby19/work/ruby-1.9.3-p0/ext/bigdecimal'
 :info:build linking shared-object date_core.bundle
 :info:build make[2]: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_ruby19/ruby19/work/ruby-1.9.3-p0/ext/date'
 :info:build make[1]: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_ruby19/ruby19/work/ruby-1.9.3-p0'
 :info:build make: *** [build-ext] Error 2
 :info:build make: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_ruby19/ruby19/work/ruby-1.9.3-p0'
 :info:build shell command " cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_ruby19/ruby19/work/ruby-1.9.3-p0"
 && /usr/bin/make -j8 -w all " returned error 2
 :error:build Target org.macports.build returned: shell command failed (see
 log for details)
 :debug:build Backtrace: shell command failed (see log for details)
     while executing
 "command_exec build"
     (procedure "portbuild::build_main" line 8)
     invoked from within
 "$procedure $targetname"
 :info:build Warning: the following items did not execute (for ruby19):
 org.macports.activate org.macports.build org.macports.destroot
 org.macports.install
 :notice:build Log for ruby19 is at:
 /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_ruby19/ruby19/main.log
 }}}

--

Comment:

 Either you upgraded to Snow Leopard, or migrated to this Snow Leopard
 machine from a different machine, and did not perform the [wiki:Migration
 Migration] procedure, or you subsequently installed a 3rd-party package
 that itself was built using MacPorts which overwrote MacPorts-installed
 files like your zlib library. In any case, the solution to this specific
 issue is to rebuild your zlib:
 {{{
 sudo port -n upgrade --force zlib
 }}}
 However, in either of the above scenarios, it's likely other libraries are
 affected as well, so you should probably uninstall and reinstall MacPorts
 and all ports.

-- 
Ticket URL: <https://trac.macports.org/ticket/32676#comment:1>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list