[MacPorts] #26258: Perl 5.8 installs breaks

MacPorts noreply at macports.org
Thu Aug 26 17:03:26 PDT 2010


#26258: Perl 5.8 installs breaks
-------------------------------+--------------------------------------------
 Reporter:  castille@…         |       Owner:  ricci@…           
     Type:  defect             |      Status:  new               
 Priority:  Normal             |   Milestone:                    
Component:  ports              |     Version:  1.9.1             
 Keywords:                     |        Port:  perl5.8           
-------------------------------+--------------------------------------------
Changes (by blb@…):

  * owner:  macports-tickets@… => ricci@…
  * port:  => perl5.8


Old description:

> A clean install of Macports, installing Perl5.8 with nothing else
> produces the following error messages:
> ld: in /usr/local/lib/libstdc++.6.dylib, file was built for unsupported
> file format which is not the architecture being linked (i386)
> collect2: ld returned 1 exit status
> make: *** [miniperl] Error 1
> shell command " cd
> "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_perl5.8/work/perl-5.8.9"
> && /usr/bin/make -j2 all " returned error 2
> Error: Target org.macports.build returned: shell command failed
> Warning: the following items did not execute (for perl5.8):
> org.macports.activate org.macports.build org.macports.destroot
> org.macports.install
> Log for perl5.8 is at:
> /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_perl5.8/main.log
> Error: Status 1 encountered during processing.

New description:

 A clean install of Macports, installing Perl5.8 with nothing else produces
 the following error messages:
 {{{
 ld: in /usr/local/lib/libstdc++.6.dylib, file was built for unsupported
 file format which is not the architecture being linked (i386)
 collect2: ld returned 1 exit status
 make: *** [miniperl] Error 1
 shell command " cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_perl5.8/work/perl-5.8.9"
 && /usr/bin/make -j2 all " returned error 2
 Error: Target org.macports.build returned: shell command failed
 Warning: the following items did not execute (for perl5.8):
 org.macports.activate org.macports.build org.macports.destroot
 org.macports.install
 Log for perl5.8 is at:
 /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_perl5.8/main.log
 Error: Status 1 encountered during processing.
 }}}

--

Comment:

 You appear to have a build of gcc (and related libraries) under /usr/local
 which is interfering with MacPorts' attempt to compile stuff (this is
 unfortunately unavoidable, see the [wiki:FAQ#defaultprefix FAQ entry]).
 The usual recommendation is to mv /usr/local to /usr/local.hold (or
 whatever), install what you need in MacPorts, then put /usr/local.hold
 back to /usr/local.

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


More information about the macports-tickets mailing list