Opened 11 years ago

Closed 11 years ago

#37317 closed defect (fixed)

Pango build failure

Reported by: hasso.tepper@… Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.1.2
Keywords: Cc:
Port: pango

Description

Pango fails to build on Snow Leopard (10.6.8) and Xcode 4.2. I've tried to clean the port, also tried to switch compiler from clang to llvm-gcc.

Attachments (1)

main.log (292.4 KB) - added by hasso.tepper@… 11 years ago.
main.log

Download all attachments as: .zip

Change History (6)

Changed 11 years ago by hasso.tepper@…

Attachment: main.log added

main.log

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

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

Please remember to Cc the maintainer.

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

Hmm, the errors seem to start with:

:info:build /usr/lib/clang/3.0/include/stddef.h:31: syntax error, unexpected '(' in 'typedef __typeof__(((int*)0)-((int*)0)) ptrdiff_t;' at '('
:info:build /usr/lib/clang/3.0/include/stddef.h:35: syntax error, unexpected SIZEOF in 'typedef __typeof__(sizeof(int)) size_t;' at 'sizeof'

pango builds fine on every OS X version I test on, which includes Snow Leopard, but I don't have access to Xcode 4.2 on Snow Leopard so maybe its version of clang is too old, but then I'm surprised using llvm-gcc-4.2 didn't work.

comment:3 Changed 11 years ago by hasso.tepper@…

At first - these errors you pointed out are "normal". They are there on successful builds since ages. But I also tried Xcode 3.2.6 on Snow Leopard and pango fails to build there as well.

But I also found this - https://bugzilla.gnome.org/show_bug.cgi?id=688356

And this - http://git.gnome.org/browse/pango/commit/?id=7274bd56db3ce2f02594687a307d22aa99c787c4

I can confirm that this patch fixes the issue for me.

Last edited 11 years ago by hasso.tepper@… (previous) (diff)

comment:4 in reply to:  3 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Replying to hasso.tepper@…:

At first - these errors you pointed out are "normal". They are there on successful builds since ages.

Ok, then I guess the error to look at is:

:info:build g-ir-scanner: compile: /usr/bin/clang -arch x86_64 -D_REENTRANT -I/Volumes/BigDisk/MacPorts/include/glib-2.0 -I/Volumes/BigDisk/MacPorts/lib/glib-2.0/include -I/Volumes/BigDisk/MacPorts/include -I/Volumes/BigDisk/MacPorts/include/freetype2 -I.. -I.. -I/Volumes/BigDisk/MacPorts/include/glib-2.0 -I/Volumes/BigDisk/MacPorts/lib/glib-2.0/include -I/Volumes/BigDisk/MacPorts/include -I/Volumes/BigDisk/MacPorts/include/cairo -I/Volumes/BigDisk/MacPorts/include/pixman-1 -I/Volumes/BigDisk/MacPorts/include/freetype2 -I/Volumes/BigDisk/MacPorts/include/libpng15 -c -o /Volumes/BigDisk/macports/var/macports/build/_Volumes_BigDisk_MacPorts_var_macports_sources_rsync.macports.org_release_tarballs_ports_x11_pango/pango/work/pango-1.30.1/pango/tmp-introspectMGet8l/PangoFT2-1.0.o /Volumes/BigDisk/macports/var/macports/build/_Volumes_BigDisk_MacPorts_var_macports_sources_rsync.macports.org_release_tarballs_ports_x11_pango/pango/work/pango-1.30.1/pango/tmp-introspectMGet8l/PangoFT2-1.0.c
:info:build Pango-1.0.gir:40:34: error: Line 40, character 34: The attribute 'name' on the element 'type' must be specified
:info:build error parsing file Pango-1.0.gir: Line 40, character 34: The attribute 'name' on the element 'type' must be specified
:info:build make[4]: *** [Pango-1.0.typelib] Error 1
:info:build make[4]: *** Waiting for unfinished jobs....

But I also tried Xcode 3.2.6 on Snow Leopard and pango fails to build there as well.

I still wonder what is different about your system, since on my Snow Leopard system with Xcode 3.2.6 it builds fine.

But I also found this - https://bugzilla.gnome.org/show_bug.cgi?id=688356

And this - http://git.gnome.org/browse/pango/commit/?id=7274bd56db3ce2f02594687a307d22aa99c787c4

I can confirm that this patch fixes the issue for me.

That bug was reported against glib 2.35.x but in MacPorts we have glib 2.34.x... unless you're using the glib2-devel port instead? Even so, I installed glib2-devel on my Snow Leopard machine and was unable to reproduce a pango build failure.

I'm might commit this patch anyway, since upstream has already put it in their repository, but I would feel better about doing so if I could reproduce the failure first and verify the patch fixes it.

What version of the gobject-introspection port do you have installed? ("port installed gobject-introspection" would tell you)

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

Resolution: fixed
Status: newclosed

pango was updated to 1.32.5 which includes the patch you referred to so hopefully this problem is now fixed for you.

Note: See TracTickets for help on using tickets.