[MacPorts] #22372: Build ncarg failed

MacPorts noreply at macports.org
Wed Nov 4 20:26:17 PST 2009


#22372: Build ncarg failed
-------------------------------+--------------------------------------------
  Reporter:  gchen9@…          |       Owner:  macports-tickets@…                   
      Type:  defect            |      Status:  closed                               
  Priority:  Normal            |   Milestone:                                       
 Component:  ports             |     Version:  1.8.1                                
Resolution:  invalid           |    Keywords:                                       
      Port:  ncarg             |  
-------------------------------+--------------------------------------------
Changes (by jmr@…):

  * port:  => ncarg
  * milestone:  MacPorts 1.8.2 =>


Old description:

> After I updated my system to Snow Leopard, I want to install ncarg.
> Build when macports build perl5.8, it is failed.
>
> Here is the error:
>
>  sudo port install ncarg
> Password:
> --->  Computing dependencies for ncarg
> --->  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: /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: The following dependencies failed to build: udunits perl5 perl5.8
> vis5d ImageMagick bzip2 expat fontconfig freetype p7zip xorg-libXext
> xorg-libXt gettext ncurses ncursesw mesa glut makedepend xorg-dri2proto
> xorg-glproto xorg-libXfixes xorg-fixesproto xorg-libXi xorg-libXmu tcl
> wgrib2 jasper
> Error: Status 1 encountered during processing.
>

> What is wrong?
>
> ld: in /usr/local/lib/libstdc++.6.dylib, file is not of required
> architecture??? gcc4.2 is installed from Snow leopard DVD disk.
>
> Guangshan

New description:

 After I updated my system to Snow Leopard, I want to install ncarg.
 Build when macports build perl5.8, it is failed.

 Here is the error:
 {{{
  sudo port install ncarg
 Password:
 --->  Computing dependencies for ncarg
 --->  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: /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: The following dependencies failed to build: udunits perl5 perl5.8
 vis5d ImageMagick bzip2 expat fontconfig freetype p7zip xorg-libXext xorg-
 libXt gettext ncurses ncursesw mesa glut makedepend xorg-dri2proto xorg-
 glproto xorg-libXfixes xorg-fixesproto xorg-libXi xorg-libXmu tcl wgrib2
 jasper
 Error: Status 1 encountered during processing.
 }}}

 What is wrong?

 ld: in /usr/local/lib/libstdc++.6.dylib, file is not of required
 architecture??? gcc4.2 is installed from Snow leopard DVD disk.

 Guangshan

--

Comment:

 This isn't actually what the migration procedure is designed to fix.
 /usr/local does not exist in a fresh OS X install, so somewhere along the
 way someone installed this libstdc++.6.dylib in there on your machine. We
 don't support having any headers or libraries installed in /usr/local
 because there is no way to stop gcc from using them.

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


More information about the macports-tickets mailing list