Opened 15 years ago

Closed 14 years ago

#20793 closed defect (worksforme)

p5-locale-gettext requested -arch i386 which is incorrect on powerpc

Reported by: alex.mikhalev@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.7.1
Keywords: Cc: ryandesign (Ryan Carsten Schmidt)
Port: p5-locale-gettext

Description (last modified by tobypeterson)

Building p5-locale-gettext
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_perl_p5-locale-gettext/work/gettext-1.05" && make all " returned error 2
Command output: rm -f blib/arch/auto/Locale/gettext/gettext.bundle
LD_RUN_PATH="/opt/local/lib" /usr/bin/gcc-4.0  -arch ppc -arch i386 -bundle -undefined dynamic_lookup -L/usr/local/lib gettext.o  -o blib/arch/auto/Locale/gettext/gettext.bundle 	\
	   -L/opt/local/lib -lintl  	\
	  
ld warning: in /opt/local/lib/libgcc_s.10.5.dylib, missing required architecture i386 in file
ld: in /opt/local/lib/libiconv.2.dylib, file is not of required architecture for architecture i386
collect2: ld returned 1 exit status
lipo: can't open input file: /var/tmp//ccF2rLB7.out (No such file or directory)
make: *** [blib/arch/auto/Locale/gettext/gettext.bundle] Error 1

Attachments (1)

p5-locale-gettext.log (26.1 KB) - added by alex.mikhalev@… 15 years ago.
DEBUG output

Download all attachments as: .zip

Change History (14)

comment:1 Changed 15 years ago by tobypeterson

Description: modified (diff)

comment:2 Changed 15 years ago by tobypeterson

Do you actually have /opt/local/lib/libgcc_s.10.5.dylib ? And if so... WTF?!

comment:3 Changed 15 years ago by jmroot (Joshua Root)

Keywords: p5-locale-gettext removed

Looks like you're using +universal? That's not going to work unless all the dependencies are also +universal.

comment:4 Changed 15 years ago by alex.mikhalev@…

This dependency was pulled by ImageMagic and imagemagic didn't have +unversal. I do have /opt/local/lib/libgcc_s.10.5.dylib but it doesn't mean I have intel code there. It may be not installed or removed by xslimmer and etc.

comment:5 in reply to:  2 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)

Replying to toby@…:

Do you actually have /opt/local/lib/libgcc_s.10.5.dylib ? And if so... WTF?!

Possibly #20889.

comment:6 in reply to:  4 ; Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign@… added

Replying to alex.mikhalev@…:

This dependency was pulled by ImageMagic and imagemagic didn't have +unversal. I do have /opt/local/lib/libgcc_s.10.5.dylib but it doesn't mean I have intel code there.

I'm not sure why it's trying to build for ppc and i386 if you did not request a universal build. Please clean the port and try again with debug output.

sudo port clean p5-locale-gettext
sudo port -d install p5-locale-gettext

If it fails again, attach the complete debug output to this ticket.

Do you have any ports installed universal?

It may be not installed or removed by xslimmer and etc.

I'm not sure what you mean.

comment:7 in reply to:  6 ; Changed 15 years ago by alex.mikhalev@…

sudo port clean p5-locale-gettext
sudo port -d install p5-locale-gettext

If it fails again, attach the complete debug output to this ticket.

===== BEGIN OF DEBUG
--->  Fetching p5-locale-gettext
--->  Verifying checksum(s) for p5-locale-gettext
--->  Checksumming gettext-1.05.tar.gz
--->  Extracting p5-locale-gettext
--->  Extracting gettext-1.05.tar.gz
--->  Applying patches to p5-locale-gettext
--->  Applying /opt/local/var/macports/sources/rsync.macports.org/release/ports/perl/p5-locale-gettext/files/patch-Makefile.PL
patching file Makefile.PL
--->  Configuring p5-locale-gettext
checking for gettext... no
checking for gettext in -I/opt/local/include -L/opt/local/lib -lintl... yes
checking for dgettext in -I/opt/local/include -L/opt/local/lib -lintl... yes
checking for ngettext in -I/opt/local/include -L/opt/local/lib -lintl... yes
checking for bind_textdomain_codeset in -I/opt/local/include -L/opt/local/lib -lintl... yes
Unrecognized argument in LIBS ignored: '-I/opt/local/include'
Writing Makefile for Locale::gettext
--->  Building p5-locale-gettext
cp gettext.pm blib/lib/Locale/gettext.pm
/opt/local/bin/perl /System/Library/Perl/5.8.8/ExtUtils/xsubpp  -typemap /System/Library/Perl/5.8.8/ExtUtils/typemap  gettext.xs > gettext.xsc && mv gettext.xsc gettext.c
Please specify prototyping behavior for gettext.xs (see perlxs manual)
/usr/bin/gcc-4.0 -c   -arch ppc -arch i386 -g -pipe -fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -Wdeclaration-after-statement -I/usr/local/include -O3   -DVERSION=\"1.05\" -DXS_VERSION=\"1.05\"  "-I/System/Library/Perl/5.8.8/darwin-thread-multi-2level/CORE"   gettext.c
Running Mkbootstrap for Locale::gettext ()
chmod 644 gettext.bs
rm -f blib/arch/auto/Locale/gettext/gettext.bundle
LD_RUN_PATH="/opt/local/lib" /usr/bin/gcc-4.0  -arch ppc -arch i386 -bundle -undefined dynamic_lookup -L/usr/local/lib gettext.o  -o blib/arch/auto/Locale/gettext/gettext.bundle 	\
	   -L/opt/local/lib -lintl  	\
	  
ld warning: in /opt/local/lib/libgcc_s.10.5.dylib, missing required architecture i386 in file
ld: in /opt/local/lib/libiconv.2.dylib, file is not of required architecture for architecture i386
collect2: ld returned 1 exit status
lipo: can't open input file: /var/tmp//ccdrIGp3.out (No such file or directory)
make: *** [blib/arch/auto/Locale/gettext/gettext.bundle] Error 1
Warning: the following items did not execute (for p5-locale-gettext): org.macports.activate org.macports.build org.macports.destroot org.macports.install
END OF debug========

Do you have any ports installed universal?

any ways to check?

It may be not installed or removed by xslimmer and etc.

I'm not sure what you mean.

comment:8 in reply to:  7 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)

Replying to alex.mikhalev@…:

BEGIN OF DEBUG

---> Fetching p5-locale-gettext
---> Verifying checksum(s) for p5-locale-gettext
---> Checksumming gettext-1.05.tar.gz

[snip]

That's just the regular output; we need the debug output which will be much more extensive. Follow the instructions I posted above to try the build again with debug mode. You will want to copy the output into a text file and attach it to this ticket rather than pasting it all into a comment.

Do you have any ports installed universal?

any ways to check?

This should work:

port installed | grep universal

Changed 15 years ago by alex.mikhalev@…

Attachment: p5-locale-gettext.log added

DEBUG output

comment:9 Changed 15 years ago by alex.mikhalev@…

uploaded debug log.

port installed | grep universal

produced no output.

comment:10 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)

It doesn't look like your debug output is complete; it doesn't look like you cleaned first. "sudo port clean p5-locale-gettext", then "sudo port -d install p5-locale-gettext".

But we all still want to know where your /opt/local/lib/libgcc_s.10.5.dylib came from. What does "port provides /opt/local/lib/libgcc_s.10.5.dylib" say? The presence of that library is likely the cause of your problem, so we should figure out what port put it there and see if that port can be uninstalled.

comment:11 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)

Any news?

comment:12 Changed 14 years ago by alex.mikhalev@…

I solved it by reinstalling macports completely. can be closed.

comment:13 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: worksforme
Status: newclosed

Ok, glad you got it working.

Note: See TracTickets for help on using tickets.