Opened 15 years ago

Closed 9 years ago

#20044 closed defect (wontfix)

cairo-1.8.8 fails to build as universal on Tiger (ppc)

Reported by: cgtobi@… Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 1.7.1
Keywords: tiger Cc:
Port: cairo

Description

Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_cairo/work/cairo-1.8.8-ppc" && make all " returned error 2
Command output: make  all-recursive
Making all in src
make  all-am
/bin/sh ../libtool --tag=CC   --mode=link /usr/bin/gcc-4.0 -m32  -O2 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -m32 -version-info 10802:8:10800 -no-undefined  -L/opt/local/lib -Wl,-syslibroot,/Developer/SDKs/MacOSX10.
4u.sdk -m32 -o libcairo.la -rpath /opt/local/lib                                       cairo-analysis-surface.lo cairo-arc.lo cairo-array.lo cairo-atomic.lo cairo-base85-stream.lo cairo-bentley-ottmann.lo cairo.lo cairo-cache.lo cairo-clip.lo cairo-color.lo cairo-debug.lo cairo-fixed.lo cairo-font-face.lo cairo-font-face-twin.lo cairo-font-face-twin-data.lo cairo-font-options.lo cairo-freelist.lo cairo-gstate.lo cairo-hash.lo cairo-hull.lo cairo-image-surface.lo cairo-lzw.lo cairo-matrix.lo cairo-meta-sur
face.lo cairo-misc.lo cairo-mutex.lo cairo-output-stream.lo cairo-paginated-surface.lo cairo-path-bounds.lo cairo-path.lo cairo-path-fill.lo cairo-path-fixed.lo cairo-path-stroke.lo cairo-pattern.lo cairo-pen.lo cairo-polygon.lo cairo-rectangle.lo cairo-region.lo cairo-scaled-font.lo cairo-skiplist.lo cairo-slope.lo cairo-spline.lo cairo-stroke-style.lo cairo-surface.lo cairo-surface-fallback.lo cairo-system.lo cairo-traps.lo cairo-unicode.lo cairo-user-font.lo cairo-version.lo cairo-wideint.lo cairo-cff-
subset.lo cairo-scaled-font-subsets.lo cairo-truetype-subset.lo cairo-type1-fallback.lo cairo-type1-subset.lo cairo-type3-glyph-surface.lo cairo-pdf-operators.lo cairo-xlib-display.lo cairo-xlib-screen.lo cairo-xlib-surface.lo cairo-xlib-visual.lo   cairo-quartz-surface.lo cairo-quartz-font.lo cairo-quartz-image-surface.lo     cairo-png.lo cairo-glitz-surface.lo  cairo-ft-font.lo cairo-ps-surface.lo cairo-pdf-surface.lo cairo-deflate-stream.lo cairo-svg-surface.lo  -L/opt/local/lib -lpixman-1      -Wl,-fr
amework,CoreServices -Wl,-framework,ApplicationServices -L/opt/local/lib -lfreetype -lz   -L/opt/local/lib -L/usr/X11R6/lib -lfontconfig -lexpat -lfreetype   -L/opt/local/lib -lglitz -lm   -L/opt/local/lib -lpng12 -lz     -Xlinker -framework -Xlinker ApplicationServices -L/opt/local/lib -lXrender -lX11 -lXau -lXdmcp   -L/opt/local/lib -lX11 -lXau -lXdmcp        -lz -lz           
libtool: link: /usr/bin/gcc-4.0 -m32 -dynamiclib  -o .libs/libcairo.2.dylib  .libs/cairo-analysis-surface.o .libs/cairo-arc.o .
libs/cairo-array.o .libs/cairo-atomic.o .libs/cairo-base85-stream.o .libs/cairo-bentley-ottmann.o .libs/cairo.o .libs/cairo-cache.o .libs/cairo-clip.o .libs/cairo-color.o .libs/cairo-debug.o .libs/cairo-fixed.o .libs/cairo-font-face.o .libs/cairo-font-face-twin.o .libs/cairo-font-face-twin-data.o .libs/cairo-font-options.o .libs/cairo-freelist.o .libs/cairo-gstate.o .libs/cairo-hash.o .libs/cairo-hull.o .libs/cairo-image-surface.o .libs/cairo-lzw.o .libs/cairo-matrix.o .libs/cairo-meta-surface.o .libs/cai
ro-misc.o .libs/cairo-mutex.o .libs/cairo-output-stream.o .libs/cairo-paginated-surface.o .libs/cairo-path-bounds.o .libs/cairo-path.o .libs/cairo-path-fill.o .libs/cairo-path-fixed.o .libs/cairo-path-stroke.o .libs/cairo-pattern.o .libs/cairo-pen.o .libs/cairo-polygon.o .libs/cairo-rectangle.o .libs/cairo-region.o .libs/cairo-scaled-font.o .libs/cairo-skiplist.o .libs/cairo-slope.o .libs/cairo-spline.o .libs/cairo-stroke-style.o .libs/cairo-surface.o .libs/cairo-surface-fallback.o .libs/cairo-system.o .l
ibs/cairo-traps.o .libs/cairo-unicode.o .libs/cairo-user-font.o .libs/cairo-version.o .libs/cairo-wideint.o .libs/cairo-cff-subset.o .libs/cairo-scaled-font-subsets.o .libs/cairo-truetype-subset.o .libs/cairo-type1-fallback.o .libs/cairo-type1-subset.o .libs/cairo-type3-glyph-surface.o .libs/cairo-pdf-operators.o .libs/cairo-xlib-display.o .libs/cairo-xlib-screen.o .libs/cairo-xlib-surface.o .libs/cairo-xlib-visual.o .libs/cairo-quartz-surface.o .libs/cairo-quartz-font.o .libs/cairo-quartz-image-surface.o
 .libs/cairo-png.o .libs/cairo-glitz-surface.o .libs/cairo-ft-font.o .libs/cairo-ps-surface.o .libs/cairo-pdf-surface.o .libs/cairo-deflate-stream.o .libs/cairo-svg-surface.o   -L/opt/local/lib /opt/local/lib/libpixman-1.dylib -L/usr/X11R6/lib /opt/local/lib/libfontconfig.dylib /opt/local/lib/libexpat.dylib /opt/local/lib/libfreetype.dylib /opt/local/lib/libglitz.dylib -lm /opt/local/lib/libpng12.dylib /opt/local/lib/libXrender.dylib /opt/local/lib/libX11.dylib /opt/local/lib/libXau.dylib /opt/local/lib/l
ibXdmcp.dylib -lz  -m32 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -m32 -Wl,-syslibroot -Wl,/Developer/SDKs/MacOSX10.4u.sdk -m32 -Wl,-framework -Wl,CoreServices -Wl,-framework -Wl,ApplicationServices -Wl,-framework -Wl,ApplicationServices   -install_name  /opt/local/lib/libcairo.2.dylib -compatibility_version 10803 -current_version 10803.8 -Wl,-single_module
ld: warning can't open dynamic library: /Developer/SDKs/MacOSX10.4u.sdk/opt/local/lib/libiconv.2.dylib referenced from: /opt/local/lib/libfontconfig.d
ylib (checking for undefined symbols may be affected) (No such file or directory, errno = 2)
ld: Undefined symbols:
_libiconv referenced from libfontconfig expected to be defined in /opt/local/lib/libiconv.2.dylib
_libiconv_close referenced from libfontconfig expected to be defined in /opt/local/lib/libiconv.2.dylib
_libiconv_open referenced from libfontconfig expected to be defined in /opt/local/lib/libiconv.2.dylib
/usr/libexec/gcc/powerpc-apple-darwin8/4.0.1/libtool: internal link edit command failed
m
ake[3]: *** [libcairo.la] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
Error: Unable to upgrade port: 1
Executing: /opt/local/bin/port -ufn upgrade cairo +macosx +glitz +quartz +universal

Change History (6)

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

Owner: changed from macports-tickets@… to ryandesign@…

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

What is the output of the following?

port installed libiconv

comment:3 Changed 15 years ago by cgtobi@…

$ file /opt/local/lib/libiconv.2.dylib
/opt/local/lib/libiconv.2.dylib: Mach-O universal binary with 2 architectures
/opt/local/lib/libiconv.2.dylib (for architecture ppc): Mach-O dynamically linked shared library ppc
/opt/local/lib/libiconv.2.dylib (for architecture i386):        Mach-O dynamically linked shared library i386
$  port installed libiconv
The following ports are currently installed:
  libiconv @1.13_0+universal (active)
Last edited 9 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:4 Changed 14 years ago by jmroot (Joshua Root)

Keywords: tiger added

comment:5 Changed 10 years ago by jmroot (Joshua Root)

Looks like the old gcc-4.0 SDK bug. Is this still an issue with curent versions?

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

Resolution: wontfix
Status: newclosed

Replying to jmr@…:

Looks like the old gcc-4.0 SDK bug. Is this still an issue with curent versions?

Yes and no:

No, this particular error should no longer occur, because it was a bug in gcc-4.0, and MacPorts now uses apple-gcc-4.2 by default on Tiger instead of gcc-4.0.

But at the same time, because of that change, a universal build of cairo and most other ports is not possible anymore on Tiger because apple-gcc-4.2 does not support i386/ppc universal builds. (It claims to support ppc/ppc64 and i386/x86_64 universal builds.)

If you need to build universal for i386/ppc, use Leopard or Snow Leopard.

Note: See TracTickets for help on using tickets.