[MacPorts] #37317: Pango build failure
#37317: Pango build failure ----------------------------+-------------------------------- Reporter: hasso.tepper@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Keywords: | Port: pango ----------------------------+-------------------------------- 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. -- Ticket URL: <https://trac.macports.org/ticket/37317> MacPorts <http://www.macports.org/> Ports system for Mac OS
#37317: Pango build failure -----------------------------+-------------------------- Reporter: hasso.tepper@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: Port: pango | -----------------------------+-------------------------- Changes (by jmr@…): * owner: macports-tickets@… => ryandesign@… Comment: Please remember to Cc the maintainer. -- Ticket URL: <https://trac.macports.org/ticket/37317#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#37317: Pango build failure -----------------------------+-------------------------- Reporter: hasso.tepper@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: Port: pango | -----------------------------+-------------------------- Comment (by ryandesign@…): 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. -- Ticket URL: <https://trac.macports.org/ticket/37317#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#37317: Pango build failure -----------------------------+-------------------------- Reporter: hasso.tepper@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: Port: pango | -----------------------------+-------------------------- Comment (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 find this - https://bugzilla.gnome.org/show_bug.cgi?id=688356 And this - http://git.gnome.org/browse/pango/commit/?id=7274bd56db3ce2f02594687a307d22a... I can confirm that this patch fixes the issue for me. -- Ticket URL: <https://trac.macports.org/ticket/37317#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#37317: Pango build failure -----------------------------+-------------------------- Reporter: hasso.tepper@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: Port: pango | -----------------------------+-------------------------- Comment (by ryandesign@…): Replying to [comment:3 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=7274bd56db3ce2f02594687a307d22a...
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) -- Ticket URL: <https://trac.macports.org/ticket/37317#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#37317: Pango build failure -----------------------------+-------------------------- Reporter: hasso.tepper@… | Owner: ryandesign@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: fixed | Keywords: Port: pango | -----------------------------+-------------------------- Changes (by ryandesign@…): * status: new => closed * resolution: => fixed Comment: pango was updated to 1.32.5 which includes the patch you referred to so hopefully this problem is now fixed for you. -- Ticket URL: <https://trac.macports.org/ticket/37317#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts