Opened 15 years ago

Closed 15 years ago

#22257 closed defect (invalid)

perl5.8 fails to build, reports that /usr/local/libstdc++.6.dylib isn't of the right architecture on Snow Leopard.

Reported by: crappiest.name.ever@… Owned by: ghosthound
Priority: Normal Milestone:
Component: ports Version: 1.8.1
Keywords: libstdc++.6.dylib Cc:
Port: perl5.8

Description (last modified by mf2k (Frank Schima))

I am using Snow Leopard 10.6.1, and macports 1.8.1. I have recently upgraded, and decided I did not need all my previous macports software, so I uninstalled it. Soon, though I reinstalled it, along with Apple's dev tools 3.2.1, the latest version, the last time I checked. I tried to install perl5.8 (default variant, and using 32-bit compile), and this is what happens.

--->  Computing dependencies for perl5.8
--->  Fetching perl5.8
--->  Attempting to fetch perl-5.8.9.tar.bz2 from http://www.cpan.org/src/
--->  Verifying checksum(s) for perl5.8
--->  Extracting perl5.8
--->  Applying patches to perl5.8
--->  Configuring perl5.8
--->  Building perl5.8
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: `sh  cflags "optimize='-O3'" perlio.o`  perlio.c
	  CCCMD =  /usr/bin/gcc-4.2 -DPERL_CORE -c -fno-common -DPERL_DARWIN -I/opt/local/include -no-cpp-precomp -fno-strict-aliasing -pipe -I/usr/local/include -I/opt/local/include  -std=c89 -O3  -Wall -ansi -pedantic -W -Wextra -Wdeclaration-after-statement -Wendif-labels -Wc++-compat -DPERL_GCC_PEDANTIC 
`sh  cflags "optimize='-O3'" perlapi.o`  perlapi.c
	  CCCMD =  /usr/bin/gcc-4.2 -DPERL_CORE -c -fno-common -DPERL_DARWIN -I/opt/local/include -no-cpp-precomp -fno-strict-aliasing -pipe -I/usr/local/include -I/opt/local/include  -std=c89 -O3  -Wall -ansi -pedantic -W -Wextra -Wdeclaration-after-statement -Wendif-labels -Wc++-compat -DPERL_GCC_PEDANTIC 
perlio.c: In function 'PerlIOStdio_set_ptrcnt':
perlio.c:3428: warning: pointer targets in assignment differ in signedness
`sh  cflags "optimize='-O3'" numeric.o`  numeric.c
	  CCCMD =  /usr/bin/gcc-4.2 -DPERL_CORE -c -fno-common -DPERL_DARWIN -I/opt/local/include -no-cpp-precomp -fno-strict-aliasing -pipe -I/usr/local/include -I/opt/local/include  -std=c89 -O3  -Wall -ansi -pedantic -W -Wextra -Wdeclaration-after-statement -Wendif-labels -Wc++-compat -DPERL_GCC_PEDANTIC 
`sh  cflags "optimize='-O3'" mathoms.o`  mathoms.c
	  CCCMD =  /usr/bin/gcc-4.2 -DPERL_CORE -c -fno-common -DPERL_DARWIN -I/opt/local/include -no-cpp-precomp -fno-strict-aliasing -pipe -I/usr/local/include -I/opt/local/include  -std=c89 -O3  -Wall -ansi -pedantic -W -Wextra -Wdeclaration-after-statement -Wendif-labels -Wc++-compat -DPERL_GCC_PEDANTIC 
`sh  cflags "optimize='-O3'" locale.o`  locale.c
	  CCCMD =  /usr/bin/gcc-4.2 -DPERL_CORE -c -fno-common -DPERL_DARWIN -I/opt/local/include -no-cpp-precomp -fno-strict-aliasing -pipe -I/usr/local/include -I/opt/local/include  -std=c89 -O3  -Wall -ansi -pedantic -W -Wextra -Wdeclaration-after-statement -Wendif-labels -Wc++-compat -DPERL_GCC_PEDANTIC 
`sh  cflags "optimize='-O3'" pp_pack.o`  pp_pack.c
	  CCCMD =  /usr/bin/gcc-4.2 -DPERL_CORE -c -fno-common -DPERL_DARWIN -I/opt/local/include -no-cpp-precomp -fno-strict-aliasing -pipe -I/usr/local/include -I/opt/local/include  -std=c89 -O3  -Wall -ansi -pedantic -W -Wextra -Wdeclaration-after-statement -Wendif-labels -Wc++-compat -DPERL_GCC_PEDANTIC 
`sh  cflags "optimize='-O3'" pp_sort.o`  pp_sort.c
	  CCCMD =  /usr/bin/gcc-4.2 -DPERL_CORE -c -fno-common -DPERL_DARWIN -I/opt/local/include -no-cpp-precomp -fno-strict-aliasing -pipe -I/usr/local/include -I/opt/local/include  -std=c89 -O3  -Wall -ansi -pedantic -W -Wextra -Wdeclaration-after-statement -Wendif-labels -Wc++-compat -DPERL_GCC_PEDANTIC 
`sh  cflags "optimize='-O3'" opmini.o`  -DPERL_EXTERNAL_GLOB opmini.c
	  CCCMD =  /usr/bin/gcc-4.2 -DPERL_CORE -c -fno-common -DPERL_DARWIN -I/opt/local/include -no-cpp-precomp -fno-strict-aliasing -pipe -I/usr/local/include -I/opt/local/include  -std=c89 -O3  -Wall -ansi -pedantic -W -Wextra -Wdeclaration-after-statement -Wendif-labels -Wc++-compat -DPERL_GCC_PEDANTIC 
opmini.c:2722:1: warning: use of C99 long long integer constant
opmini.c:2722:1: warning: use of C99 long long integer constant
`sh  cflags "optimize='-O3'" perlmain.o`  perlmain.c
	  CCCMD =  /usr/bin/gcc-4.2 -DPERL_CORE -c -fno-common -DPERL_DARWIN -I/opt/local/include -no-cpp-precomp -fno-strict-aliasing -pipe -I/usr/local/include -I/opt/local/include  -std=c89 -O3  -Wall -ansi -pedantic -W -Wextra -Wdeclaration-after-statement -Wendif-labels -Wc++-compat -DPERL_GCC_PEDANTIC 
opmini.c: In function 'Perl_fold_constants':
opmini.c:2119: warning: argument 'o' might be clobbered by 'longjmp' or 'vfork'
/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

Some really ugly output there, sorry about that. Could someone please help, though? That would be greatly appreciated.

Change History (2)

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

Description: modified (diff)
Keywords: perl5.8 removed
Owner: changed from macports-tickets@… to ricci@…

The question is, where did /usr/local/libstdc++.6.dylib come from? You should rename your usr/local folder to /usr/local.moved, then clean and try again.

comment:2 Changed 15 years ago by tobypeterson

Resolution: invalid
Status: newclosed

We don't support building when there's *anything* in /usr/local

Note: See TracTickets for help on using tickets.