Opened 15 years ago

Closed 14 years ago

Last modified 12 years ago

#23431 closed defect (fixed)

gtk2 can't build universal ppc i386; can't find NM when cross-compiling

Reported by: lfarv (Laurent Farvacque) Owned by: nox@…
Priority: Normal Milestone:
Component: ports Version: 1.8.2
Keywords: muniversal Cc: warrensomebody@…, boris.dusek@…, ryandesign (Ryan Carsten Schmidt), layer@…, cooljeanius (Eric Gallager)
Port: gtk2

Description

On MacOSX 10.5.8 Intel
gtk2 +no_x11+quartz+universal (i386 ppc) fails to build

--->  Building gtk2 for architecture ppc
/usr/bin/make  all-recursive
Making all in po
make[2]: Nothing to be done for `all'.
Making all in po-properties
make[2]: Nothing to be done for `all'.
Making all in gdk-pixbuf
/usr/bin/make  all-recursive
Making all in pixops
make[4]: Nothing to be done for `all'.
/bin/sh ../libtool  --tag=CC   --mode=link /usr/bin/gcc-4.0  -DGDK_PIXBUF_DISABLE_DEPRECATED -O2 -fstrict-aliasing -arch ppc -Wall  -version-info 1800:6:1800 -export-symbols-regex "^[^_].*"   -L/opt/local/lib -arch ppc -o libgdk_pixbuf-2.0.la -rpath /opt/local/lib gdk-pixbuf.lo gdk-pixbuf-animation.lo gdk-pixbuf-data.lo gdk-pixbuf-io.lo gdk-pixbuf-loader.lo gdk-pixbuf-scale.lo gdk-pixbuf-simple-anim.lo gdk-pixbuf-scaled-anim.lo gdk-pixbuf-util.lo gdk-pixdata.lo gdk-pixbuf-enum-types.lo pixops/libpixops.la  -L/opt/local/lib -lgio-2.0 -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -lintl -liconv    -lm   -lintl 
libtool: link: /usr/bin/nm  .libs/gdk-pixbuf.o .libs/gdk-pixbuf-animation.o .libs/gdk-pixbuf-data.o .libs/gdk-pixbuf-io.o .libs/gdk-pixbuf-loader.o .libs/gdk-pixbuf-scale.o .libs/gdk-pixbuf-simple-anim.o .libs/gdk-pixbuf-scaled-anim.o .libs/gdk-pixbuf-util.o .libs/gdk-pixdata.o .libs/gdk-pixbuf-enum-types.o   pixops/.libs/libpixops.a |  | /usr/bin/sed 's/.* //' | sort | uniq > .libs/libgdk_pixbuf-2.0.exp
../libtool: eval: line 961: syntax error near unexpected token `|'
../libtool: eval: line 961: `/usr/bin/nm  .libs/gdk-pixbuf.o .libs/gdk-pixbuf-animation.o .libs/gdk-pixbuf-data.o .libs/gdk-pixbuf-io.o .libs/gdk-pixbuf-loader.o .libs/gdk-pixbuf-scale.o .libs/gdk-pixbuf-simple-anim.o .libs/gdk-pixbuf-scaled-anim.o .libs/gdk-pixbuf-util.o .libs/gdk-pixdata.o .libs/gdk-pixbuf-enum-types.o   pixops/.libs/libpixops.a |  | /usr/bin/sed 's/.* //' | sort | uniq > .libs/libgdk_pixbuf-2.0.exp'
make[4]: *** [libgdk_pixbuf-2.0.la] Error 1

Attachments (1)

libtool (257.5 KB) - added by lfarv (Laurent Farvacque) 15 years ago.

Download all attachments as: .zip

Change History (13)

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

Owner: changed from macports-tickets@… to nox@…
Port: @2.18.2_0 removed

Please remember to cc the maintainer.

comment:2 Changed 15 years ago by nox@…

Does it still fail with 2.18.7? If yes, could you attach the ppc libtool file?

Changed 15 years ago by lfarv (Laurent Farvacque)

Attachment: libtool added

comment:3 in reply to:  2 Changed 15 years ago by lfarv (Laurent Farvacque)

Replying to nox@…:

Does it still fail with 2.18.7? If yes, could you attach the ppc libtool file?

Yes, it still fails with the same message, please find the ppc libtool file attached. Thanks Laurent

comment:4 Changed 15 years ago by lfarv (Laurent Farvacque)

I made a "diff" between .../gtk+-2.18.7-i386/libtool and .../gtk+-2.18.7-ppc/libtool and I found:

144c144
< global_symbol_pipe="sed -n -e 's/^.*[	 ]\\([BCDEGRST][BCDEGRST]*\\)[	 ][	 ]*_\\([_A-Za-z][_A-Za-z0-9]*\\)\$/\\1 _\\2 \\2/p'"
---
> global_symbol_pipe=""
147c147
< global_symbol_to_cdecl="sed -n -e 's/^T .* \\(.*\\)\$/extern int \\1();/p' -e 's/^[BCDEGRST]* .* \\(.*\\)\$/extern char \\1;/p'"
---
> global_symbol_to_cdecl=""

Patching the ppc libtool to match the i386 file allows a successful build !

comment:5 Changed 15 years ago by warrensomebody@…

I hit this too after attempting a

port upgrade --enforce-variants gnome-vfs +universal

Any workaround?

comment:6 Changed 15 years ago by warrensomebody@…

Cc: warrensomebody@… added

Cc Me!

comment:7 Changed 15 years ago by boris.dusek@…

Cc: boris.dusek@… added

Cc Me!

comment:8 Changed 14 years ago by aroth21@…

Ran into this too upgrading opencv:

port upgrade gtk2 --enforce-variants +universal

Thanks for the patch! MacPorts 1.9.1 OSX 10.5.8

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

Cc: ryandesign@… added
Summary: gtk2 fails to buildgtk2 can't build universal ppc i386; can't find NM when cross-compiling

Has duplicate #25851.

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

Keywords: muniversal added
Resolution: fixed
Status: newclosed

Hopefully now fixed for all ports in r70156.

comment:11 Changed 14 years ago by layer@…

Cc: layer@… added

Cc Me!

comment:12 Changed 12 years ago by cooljeanius (Eric Gallager)

Cc: egall@… added

Cc Me!

Note: See TracTickets for help on using tickets.