Opened 15 years ago

Closed 15 years ago

#22039 closed defect (worksforme)

perl5.8 version 5.8.9 snow leopard build failure

Reported by: timur@… Owned by: ghosthound
Priority: Normal Milestone:
Component: ports Version: 1.8.1
Keywords: Cc:
Port: perl5.8

Description

Hi, I tried to install perl5.8 on my MacBook Pro running OS X 10.6.1 (with Xcode 3.2 and X11 correctly installed as it says on the macports webpage). The build fails and this is what i get:

sudo port -d install perl5.8

DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/lang/perl5.8
DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/lang/perl5.8
DEBUG: OS Platform: darwin
DEBUG: OS Version: 10.0.0
DEBUG: Mac OS X Version: 10.6
DEBUG: System Arch: i386
DEBUG: setting option os.universal_supported to yes
DEBUG: org.macports.load registered provides 'load', a pre-existing procedure. Target override will not be provided
DEBUG: org.macports.unload registered provides 'unload', a pre-existing procedure. Target override will not be provided
DEBUG: org.macports.distfiles registered provides 'distfiles', a pre-existing procedure. Target override will not be provided
DEBUG: 'universal_variant no' specified, so not adding the default universal variant
DEBUG: Requested variant darwin is not provided by port perl5.8.
DEBUG: Requested variant i386 is not provided by port perl5.8.
DEBUG: Requested variant macosx is not provided by port perl5.8.
--->  Computing dependencies for perl5.8
DEBUG: Executing org.macports.main (perl5.8)
DEBUG: Skipping completed org.macports.fetch (perl5.8)
DEBUG: Skipping completed org.macports.checksum (perl5.8)
DEBUG: setting option extract.cmd to /usr/bin/bzip2
DEBUG: Skipping completed org.macports.extract (perl5.8)
DEBUG: Skipping completed org.macports.patch (perl5.8)
DEBUG: Skipping completed org.macports.configure (perl5.8)
--->  Building perl5.8
DEBUG: Executing org.macports.build (perl5.8)
DEBUG: Environment: MACOSX_DEPLOYMENT_TARGET='10.6'
DEBUG: Assembled 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'
/usr/bin/gcc-4.2 -L/opt/local/lib -L/usr/local/lib -force_flat_namespace -o miniperl \
	    `echo  gv.o toke.o perly.o op.o pad.o regcomp.o dump.o util.o mg.o reentr.o hv.o av.o perl.o run.o pp_hot.o sv.o pp.o scope.o pp_ctl.o pp_sys.o doop.o doio.o regexec.o utf8.o taint.o deb.o universal.o xsutils.o globals.o perlio.o perlapi.o numeric.o mathoms.o locale.o pp_pack.o pp_sort.o  | sed 's/ op.o / /'` \
	    miniperlmain.o opmini.o -ldl -lm -lutil -lc 
ld: in /usr/local/lib/libstdc++.6.dylib, file is not of required architecture
collect2: ld returned 1 exit status
make: *** [miniperl] Error 1
Error: Target org.macports.build returned: 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
Command output: /usr/bin/gcc-4.2 -L/opt/local/lib -L/usr/local/lib -force_flat_namespace -o miniperl \
	    `echo  gv.o toke.o perly.o op.o pad.o regcomp.o dump.o util.o mg.o reentr.o hv.o av.o perl.o run.o pp_hot.o sv.o pp.o scope.o pp_ctl.o pp_sys.o doop.o doio.o regexec.o utf8.o taint.o deb.o universal.o xsutils.o globals.o perlio.o perlapi.o numeric.o mathoms.o locale.o pp_pack.o pp_sort.o  | sed 's/ op.o / /'` \
	    miniperlmain.o opmini.o -ldl -lm -lutil -lc 
ld: in /usr/local/lib/libstdc++.6.dylib, file is not of required architecture
collect2: ld returned 1 exit status
make: *** [miniperl] Error 1

DEBUG: Backtrace: 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
Command output: /usr/bin/gcc-4.2 -L/opt/local/lib -L/usr/local/lib -force_flat_namespace -o miniperl \
	    `echo  gv.o toke.o perly.o op.o pad.o regcomp.o dump.o util.o mg.o reentr.o hv.o av.o perl.o run.o pp_hot.o sv.o pp.o scope.o pp_ctl.o pp_sys.o doop.o doio.o regexec.o utf8.o taint.o deb.o universal.o xsutils.o globals.o perlio.o perlapi.o numeric.o mathoms.o locale.o pp_pack.o pp_sort.o  | sed 's/ op.o / /'` \
	    miniperlmain.o opmini.o -ldl -lm -lutil -lc 
ld: in /usr/local/lib/libstdc++.6.dylib, file is not of required architecture
collect2: ld returned 1 exit status
make: *** [miniperl] Error 1

    while executing
"command_exec build"
    (procedure "portbuild::build_main" line 9)
    invoked from within
"$procedure $targetname"
Warning: the following items did not execute (for perl5.8): org.macports.activate org.macports.build org.macports.destroot org.macports.install
Error: Status 1 encountered during processing.

Change History (6)

comment:1 Changed 15 years ago by mf2k (Frank Schima)

Owner: changed from macports-tickets@… to ricci@…
Port: perl5.8 added

comment:2 Changed 15 years ago by mf2k (Frank Schima)

Where did this come from?

/usr/local/lib/libstdc++.6.dylib

comment:3 Changed 15 years ago by timur@…

I don't know, but I looked this file up and it was last changed 31 Oct 2007. So I presume it was there from the beginning. Maybe it was created when I installed gcc for the first time, or it came with one of the OS X updates?

Let me guess: this is an old 32-bit library and he is trying to link something 64-bit against it? So I have to install a newer, 64-bit version of *something* to fix the problem?

comment:4 Changed 15 years ago by mf2k (Frank Schima)

It's not on my Leopard or Snow Leopard Macs.

No, I would simply move /usr/local/ to /usr/local.moved/ and then clean and install again. You can move it back to /usr/local/ when you are done.

comment:5 Changed 15 years ago by timur@…

Thank you, now it works perfectly. I have no idea where that other library came from. Anyway, it is not a bug, sorry for bothering you.

comment:6 Changed 15 years ago by mf2k (Frank Schima)

Resolution: worksforme
Status: newclosed
Note: See TracTickets for help on using tickets.