Opened 11 years ago

Closed 11 years ago

#39144 closed defect (fixed)

poppler 0.22.4_0 does not build on Tiger PPC because of gobject-introspection

Reported by: ballapete (Peter "Pete" Dyballa) Owned by: dbevans (David B. Evans)
Priority: Normal Milestone:
Component: ports Version: 2.1.99
Keywords: tiger Cc: cooljeanius (Eric Gallager), ryandesign (Ryan Carsten Schmidt)
Port: poppler

Description

The failure seems to be the same as in #35204.

Making all in glib
make[2]: Entering directory `/opt/local/var/macports/build/_opt_mports_trunk_dports_graphics_poppler/poppler/work/poppler-0.22.4/glib'
/opt/local/share/gobject-introspection-1.0/Makefile.introspection:152: *** Need to define Poppler_0_18_gir_LIBS or Poppler_0_18_gir_PROGRAM.  Stop.
make[2]: Leaving directory `/opt/local/var/macports/build/_opt_mports_trunk_dports_graphics_poppler/poppler/work/poppler-0.22.4/glib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/opt/local/var/macports/build/_opt_mports_trunk_dports_graphics_poppler/poppler/work/poppler-0.22.4'
make: *** [all] Error 2
make: Leaving directory `/opt/local/var/macports/build/_opt_mports_trunk_dports_graphics_poppler/poppler/work/poppler-0.22.4'
Command failed:  cd "/opt/local/var/macports/build/_opt_mports_trunk_dports_graphics_poppler/poppler/work/poppler-0.22.4" && /usr/bin/make -w all CC="/usr/bin/gcc-4.0 -arch ppc" 
Exit code: 2
Error: org.macports.build for port poppler returned: command execution failed

There is also a complaint about the python27 version installed:

DEBUG: python27 is installed with the following variants: 
DEBUG:   required: ucs4, forbidden: 
DEBUG:   rejected, because required variant ucs4 is missing

Attachments (4)

main.log (286.8 KB) - added by ballapete (Peter "Pete" Dyballa) 11 years ago.
main.log
main.2.log (333.5 KB) - added by ballapete (Peter "Pete" Dyballa) 11 years ago.
main.log with patched Portfile
main.3.log (327.4 KB) - added by ballapete (Peter "Pete" Dyballa) 11 years ago.
main.log with patched Portfile and Python +ucs4 installed
main.4.log (333.2 KB) - added by ballapete (Peter "Pete" Dyballa) 11 years ago.
main.log with patched Portfile and Python and gobject-introspection with UCS4 support installed

Download all attachments as: .zip

Change History (12)

Changed 11 years ago by ballapete (Peter "Pete" Dyballa)

Attachment: main.log added

main.log

comment:1 Changed 11 years ago by ballapete (Peter "Pete" Dyballa)

After patching the Portfile to use gmake, as advised in #35204, the build goes further, but now fails here:

libtool: link: ( cd ".libs" && rm -f "libpoppler-glib.la" && ln -s "../libpoppler-glib.la" "libpoppler-glib.la" )
/opt/local/bin/g-ir-scanner  --add-include-path=. --warn-all --namespace=Poppler --nsversion=0.18 --libtool="/bin/sh ../libtool"  --include=GObject-2.0 --include=Gio-2.0 --include=cairo-1.0 --pkg-export=poppler-glib  --library=libpoppler-glib.la --c-include poppler.h --cflags-begin -DG_LOG_DOMAIN=\"Poppler\" -I.. -I../poppler -D_REENTRANT -I/opt/local/include/cairo -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -I/opt/local/include/pixman-1 -I/opt/local/include -I/opt/local/include/freetype2 -I/opt/local/include -I/opt/local/include/libpng15 -I/opt/local/include  -I/opt/local/include/freetype2 -I/opt/local/include  -DG_DISABLE_DEPRECATED -DG_DISABLE_SINGLE_INCLUDES -I.. --cflags-end  poppler-enums.c poppler-enums.h poppler-action.cc poppler-date.cc poppler-document.cc poppler-page.cc poppler-attachment.cc poppler-form-field.cc poppler-annot.cc poppler-layer.cc poppler-media.cc poppler-movie.cc poppler-cached-file-loader.cc poppler-cached-file-loader.h poppler-input-stream.cc poppler.cc poppler-action.h poppler-date.h poppler-document.h poppler-page.h poppler-attachment.h poppler-form-field.h poppler-annot.h poppler-layer.h poppler-media.h poppler-movie.h poppler.h poppler-features.h libpoppler-glib.la --output Poppler-0.18.gir
/usr/include/libkern/ppc/OSByteOrder.h:46: syntax error, unexpected '{', expecting ',' or ';' in '{' at '{'
/usr/include/libkern/ppc/OSByteOrder.h:52: syntax error, unexpected ';' in '    __asm__ ("lhbrx %0, %2, %1"' at ';'
/usr/include/libkern/ppc/OSByteOrder.h:62: syntax error, unexpected '{', expecting ',' or ';' in '{' at '{'
/usr/include/libkern/ppc/OSByteOrder.h:68: syntax error, unexpected ';' in '    __asm__ ("lwbrx %0, %2, %1"' at ';'
/usr/include/libkern/ppc/OSByteOrder.h:78: syntax error, unexpected '{', expecting ',' or ';' in '{' at '{'
/usr/include/libkern/ppc/OSByteOrder.h:88: syntax error, unexpected ';' in '    __asm__ ("lwbrx %0, %3, %2\n\t"' at ';'
/usr/include/libkern/ppc/OSByteOrder.h:101: syntax error, unexpected '{', expecting ',' or ';' in '{' at '{'
/usr/include/libkern/ppc/OSByteOrder.h:106: syntax error, unexpected ';' in '    __asm__ ("sthbrx %1, %3, %2"' at ';'
/usr/include/libkern/ppc/OSByteOrder.h:116: syntax error, unexpected '{', expecting ',' or ';' in '{' at '{'
/usr/include/libkern/ppc/OSByteOrder.h:121: syntax error, unexpected ';' in '    __asm__ ("stwbrx %1, %3, %2"' at ';'
/usr/include/libkern/ppc/OSByteOrder.h:131: syntax error, unexpected '{', expecting ',' or ';' in '{' at '{'
/usr/include/libkern/ppc/OSByteOrder.h:139: syntax error, unexpected ';' in '    __asm__ ("stwbrx %1, %4, %3\n\t"' at ';'
/usr/include/libkern/ppc/OSByteOrder.h:149: syntax error, unexpected '{', expecting ',' or ';' in '{' at '{'
/usr/include/libkern/ppc/OSByteOrder.h:158: syntax error, unexpected '{', expecting ',' or ';' in '{' at '{'
/usr/include/libkern/ppc/OSByteOrder.h:167: syntax error, unexpected '{', expecting ',' or ';' in '{' at '{'
/usr/include/libkern/OSByteOrder.h:88: syntax error, unexpected '{', expecting ',' or ';' in 'OSHostByteOrder(void) {' at '{'
/usr/include/libkern/OSByteOrder.h:115: syntax error, unexpected '{', expecting ',' or ';' in '{' at '{'
/usr/include/libkern/OSByteOrder.h:116: syntax error, unexpected ')', expecting identifier or '(' in '    return *(volatile uint16_t *)((uintptr_t)base + byteOffset);' at ')'
/usr/include/libkern/OSByteOrder.h:125: syntax error, unexpected '{', expecting ',' or ';' in '{' at '{'
/usr/include/libkern/OSByteOrder.h:126: syntax error, unexpected ')', expecting identifier or '(' in '    return *(volatile uint32_t *)((uintptr_t)base + byteOffset);' at ')'
/usr/include/libkern/OSByteOrder.h:135: syntax error, unexpected '{', expecting ',' or ';' in '{' at '{'
/usr/include/libkern/OSByteOrder.h:136: syntax error, unexpected ')', expecting identifier or '(' in '    return *(volatile uint64_t *)((uintptr_t)base + byteOffset);' at ')'
/usr/include/libkern/OSByteOrder.h:148: syntax error, unexpected '{', expecting ',' or ';' in '{' at '{'
/usr/include/libkern/OSByteOrder.h:149: syntax error, unexpected ')', expecting identifier or '(' in '    *(volatile uint16_t *)((uintptr_t)base + byteOffset) = data;' at ')'
/usr/include/libkern/OSByteOrder.h:159: syntax error, unexpected '{', expecting ',' or ';' in '{' at '{'
/usr/include/libkern/OSByteOrder.h:160: syntax error, unexpected ')', expecting identifier or '(' in '    *(volatile uint32_t *)((uintptr_t)base + byteOffset) = data;' at ')'
/usr/include/libkern/OSByteOrder.h:170: syntax error, unexpected '{', expecting ',' or ';' in '{' at '{'
/usr/include/libkern/OSByteOrder.h:171: syntax error, unexpected ')', expecting identifier or '(' in '    *(volatile uint64_t *)((uintptr_t)base + byteOffset) = data;' at ')'
g-ir-scanner: compile: /usr/bin/gcc-4.0 -arch ppc -Wno-deprecated-declarations -D_REENTRANT -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -I/opt/local/include/gio-unix-2.0/ -I/opt/local/include/cairo -I/opt/local/include/pixman-1 -I/opt/local/include -I/opt/local/include/freetype2 -I/opt/local/include -I/opt/local/include/libpng15 -I/opt/local/include -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -c -o /opt/local/var/macports/build/_opt_mports_trunk_dports_graphics_poppler/poppler/work/poppler-0.22.4/glib/tmp-introspecthiATM2/Poppler-0.18.o /opt/local/var/macports/build/_opt_mports_trunk_dports_graphics_poppler/poppler/work/poppler-0.22.4/glib/tmp-introspecthiATM2/Poppler-0.18.c
g-ir-scanner: link: /bin/sh ../libtool --mode=link --tag=CC /usr/bin/gcc-4.0 -arch ppc -o /opt/local/var/macports/build/_opt_mports_trunk_dports_graphics_poppler/poppler/work/poppler-0.22.4/glib/tmp-introspecthiATM2/Poppler-0.18 -export-dynamic /opt/local/var/macports/build/_opt_mports_trunk_dports_graphics_poppler/poppler/work/poppler-0.22.4/glib/tmp-introspecthiATM2/Poppler-0.18.o -L. libpoppler-glib.la -L/opt/local/lib -lgio-2.0 -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -lintl
libtool: link: /usr/bin/gcc-4.0 -arch ppc -o /opt/local/var/macports/build/_opt_mports_trunk_dports_graphics_poppler/poppler/work/poppler-0.22.4/glib/tmp-introspecthiATM2/.libs/Poppler-0.18 /opt/local/var/macports/build/_opt_mports_trunk_dports_graphics_poppler/poppler/work/poppler-0.22.4/glib/tmp-introspecthiATM2/Poppler-0.18.o  -L. ./.libs/libpoppler-glib.dylib -L/opt/local/lib /opt/local/var/macports/build/_opt_mports_trunk_dports_graphics_poppler/poppler/work/poppler-0.22.4/poppler/.libs/libpoppler.dylib /opt/local/lib/liblcms2.dylib /opt/local/lib/libtiff.dylib /opt/local/lib/liblzma.dylib /opt/local/lib/libjpeg.dylib /opt/local/lib/libcurl.dylib /opt/local/lib/libidn.dylib -lssl -lcrypto /opt/local/lib/libopenjpeg.dylib /opt/local/lib/libcairo.dylib /opt/local/lib/libpixman-1.dylib -lpthread -lm /opt/local/lib/libfontconfig.dylib /opt/local/lib/libexpat.dylib -ldl /opt/local/lib/libpng15.dylib /opt/local/lib/libxcb-shm.dylib /opt/local/lib/libX11-xcb.dylib /opt/local/lib/libxcb-render.dylib /opt/local/lib/libXrender.dylib /opt/local/lib/libXext.dylib /opt/local/lib/libX11.dylib /opt/local/lib/libxcb.dylib /opt/local/lib/libXau.dylib /opt/local/lib/libXdmcp.dylib -lGL /opt/local/lib/libfreetype.dylib -lbz2 -lz /opt/local/lib/libgio-2.0.dylib /opt/local/lib/libgobject-2.0.dylib /opt/local/lib/libgmodule-2.0.dylib /opt/local/lib/libglib-2.0.dylib /opt/local/lib/libintl.dylib /opt/local/lib/libiconv.dylib -lc -pthread
powerpc-apple-darwin8-gcc-4.0.1: unrecognized option '-pthread'
/usr/libexec/gcc/powerpc-apple-darwin8/4.0.1/ld: Undefined symbols:
operator delete(void*)
operator new(unsigned long)
operator delete[](void*)
operator new[](unsigned long)
collect2: ld returned 1 exit status
linking of temporary binary failed: Command '['/bin/sh', '../libtool', '--mode=link', '--tag=CC', '/usr/bin/gcc-4.0', '-arch', 'ppc', '-o', '/opt/local/var/macports/build/_opt_mports_trunk_dports_graphics_poppler/poppler/work/poppler-0.22.4/glib/tmp-introspecthiATM2/Poppler-0.18', '-export-dynamic', '/opt/local/var/macports/build/_opt_mports_trunk_dports_graphics_poppler/poppler/work/poppler-0.22.4/glib/tmp-introspecthiATM2/Poppler-0.18.o', '-L.', 'libpoppler-glib.la', '-L/opt/local/lib', '-lgio-2.0', '-lgobject-2.0', '-lgmodule-2.0', '-lglib-2.0', '-lintl']' returned non-zero exit status 1
gmake[4]: *** [Poppler-0.18.gir] Error 1
gmake[4]: Leaving directory `/opt/local/var/macports/build/_opt_mports_trunk_dports_graphics_poppler/poppler/work/poppler-0.22.4/glib'
gmake[3]: *** [all-recursive] Error 1
gmake[3]: Leaving directory `/opt/local/var/macports/build/_opt_mports_trunk_dports_graphics_poppler/poppler/work/poppler-0.22.4/glib'
gmake[2]: *** [all] Error 2
gmake[2]: Leaving directory `/opt/local/var/macports/build/_opt_mports_trunk_dports_graphics_poppler/poppler/work/poppler-0.22.4/glib'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/opt/local/var/macports/build/_opt_mports_trunk_dports_graphics_poppler/poppler/work/poppler-0.22.4'
gmake: *** [all] Error 2
gmake: Leaving directory `/opt/local/var/macports/build/_opt_mports_trunk_dports_graphics_poppler/poppler/work/poppler-0.22.4'
Command failed:  cd "/opt/local/var/macports/build/_opt_mports_trunk_dports_graphics_poppler/poppler/work/poppler-0.22.4" && /opt/local/bin/gmake -w all CC="/usr/bin/gcc-4.0 -arch ppc" 
Exit code: 2}}}

Changed 11 years ago by ballapete (Peter "Pete" Dyballa)

Attachment: main.2.log added

main.log with patched Portfile

comment:2 Changed 11 years ago by cooljeanius (Eric Gallager)

Cc: egall@… added

Cc Me!

comment:3 Changed 11 years ago by ballapete (Peter "Pete" Dyballa)

Last night Python was updated from 2.7.3 to version 2.7.5. Again without UCS4 support. So I did that manually this morning. Now the installation of poppler has an early warning:

DEBUG: Skipping upgrade since gobject-introspection 1.36.0_1 >= gobject-introspection 1.36.0_1, even though installed variants "" do not match "+python_ucs4".
DEBUG: epoch: in tree: 0 installed: 0

and the build fails here:

libtool: link: ranlib .libs/libpoppler-glib.a
libtool: link: rm -fr .libs/libpoppler-glib.lax .libs/libpoppler-glib.lax
libtool: link: ( cd ".libs" && rm -f "libpoppler-glib.la" && ln -s "../libpoppler-glib.la" "libpoppler-glib.la" )
/opt/local/bin/g-ir-scanner  --add-include-path=. --warn-all --namespace=Poppler --nsversion=0.18 --libtool="/bin/sh ../libtool"  --include=GObject-2.0 --include=Gio-2.0 --include=cairo-1.0 --pkg-export=poppler-glib  --library=libpoppler-glib.la --c-include poppler.h --cflags-begin -DG_LOG_DOMAIN=\"Poppler\" -I.. -I../poppler -D_REENTRANT -I/opt/local/include/cairo -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -I/opt/local/include/pixman-1 -I/opt/local/include -I/opt/local/include/freetype2 -I/opt/local/include -I/opt/local/include/libpng15 -I/opt/local/include  -I/opt/local/include/freetype2 -I/opt/local/include  -DG_DISABLE_DEPRECATED -DG_DISABLE_SINGLE_INCLUDES -I.. --cflags-end  poppler-enums.c poppler-enums.h poppler-action.cc poppler-date.cc poppler-document.cc poppler-page.cc poppler-attachment.cc poppler-form-field.cc poppler-annot.cc poppler-layer.cc poppler-media.cc poppler-movie.cc poppler-cached-file-loader.cc poppler-cached-file-loader.h poppler-input-stream.cc poppler.cc poppler-action.h poppler-date.h poppler-document.h poppler-page.h poppler-attachment.h poppler-form-field.h poppler-annot.h poppler-layer.h poppler-media.h poppler-movie.h poppler.h poppler-features.h libpoppler-glib.la --output Poppler-0.18.gir
Traceback (most recent call last):
  File "/opt/local/bin/g-ir-scanner", line 44, in <module>
    from giscanner.scannermain import scanner_main
  File "/opt/local/lib/gobject-introspection/giscanner/scannermain.py", line 34, in <module>
    from giscanner.dumper import compile_introspection_binary
  File "/opt/local/lib/gobject-introspection/giscanner/dumper.py", line 28, in <module>
    from .gdumpparser import IntrospectionBinary
  File "/opt/local/lib/gobject-introspection/giscanner/gdumpparser.py", line 31, in <module>
    from .transformer import TransformerException
  File "/opt/local/lib/gobject-introspection/giscanner/transformer.py", line 27, in <module>
    from .girparser import GIRParser
  File "/opt/local/lib/gobject-introspection/giscanner/girparser.py", line 26, in <module>
    from .girwriter import COMPATIBLE_GIR_VERSION
  File "/opt/local/lib/gobject-introspection/giscanner/girwriter.py", line 25, in <module>
    from .xmlwriter import XMLWriter
  File "/opt/local/lib/gobject-introspection/giscanner/xmlwriter.py", line 93, in <module>
    from giscanner._giscanner import collect_attributes
ImportError: dlopen(/opt/local/lib/gobject-introspection/giscanner/_giscanner.so, 2): Symbol not found: _PyUnicodeUCS2_DecodeUTF8
  Referenced from: /opt/local/lib/gobject-introspection/giscanner/_giscanner.so
  Expected in: dynamic lookup

gmake[4]: *** [Poppler-0.18.gir] Error 1
gmake[4]: Leaving directory `/opt/local/var/macports/build/_opt_mports_trunk_dports_graphics_poppler/poppler/work/poppler-0.22.4/glib'
gmake[3]: *** [all-recursive] Error 1

I have installed

  python27 @2.7.5_0+ucs4 (active)
  python_select @0.3_2 (active)

and

port variants gobject-introspection

tells me

gobject-introspection has the variants:
[+]python_ucs4: Build against Python with +ucs4
   universal: Build for multiple architectures

so it seems that I have to rebuild and reinstall gobject-introspection at least (plus some more packages that depend on python, presumingly).

Changed 11 years ago by ballapete (Peter "Pete" Dyballa)

Attachment: main.3.log added

main.log with patched Portfile and Python +ucs4 installed

comment:4 Changed 11 years ago by ballapete (Peter "Pete" Dyballa)

After gobject-introspection with UCS4 support was built, installed, and activated, poppler accepted it now:

DEBUG: gobject-introspection 1.36.0_1 exists in the ports tree
DEBUG: gobject-introspection 1.36.0_1  is the latest installed
DEBUG: gobject-introspection 1.36.0_1 +python_ucs4 is active
DEBUG: Merging existing variants '+python_ucs4' into variants
DEBUG: new fully merged portvariants: python_ucs4 +
DEBUG: Changing to port directory: /opt/mports/trunk/dports/gnome/gobject-introspection
DEBUG: OS darwin/8.11.0 (Mac OS X 10.4) arch powerpc
DEBUG: python27 is installed with the following variants: +ucs4
DEBUG:   required: ucs4, forbidden: 
DEBUG:   accepted
DEBUG: adding the default universal variant
DEBUG: Reading variant descriptions from /opt/mports/trunk/dports/_resources/port1.0/variant_descriptions.conf
DEBUG: Executing variant python_ucs4 provides python_ucs4
DEBUG: Running callback portconfigure::add_automatic_compiler_dependencies
DEBUG: Finished running callback portconfigure::add_automatic_compiler_dependencies
DEBUG: Running callback portbuild::add_automatic_buildsystem_dependencies
DEBUG: Finished running callback portbuild::add_automatic_buildsystem_dependencies
DEBUG: No need to upgrade! gobject-introspection 1.36.0_1 >= gobject-introspection 1.36.0_1

but in the failure is the same as reported in #comment:1

Changed 11 years ago by ballapete (Peter "Pete" Dyballa)

Attachment: main.4.log added

main.log with patched Portfile and Python and gobject-introspection with UCS4 support installed

comment:5 Changed 11 years ago by larryv (Lawrence Velázquez)

Cc: devans@… removed
Owner: changed from macports-tickets@… to devans@…

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

Cc: ryandesign@… added

Replying to Peter_Dyballa@…:

After patching the Portfile to use gmake, as advised in #35204, the build goes further,

Ok, added that in r106448.

but now fails here:

/usr/libexec/gcc/powerpc-apple-darwin8/4.0.1/ld: Undefined symbols:
operator delete(void*)
operator new(unsigned long)
operator delete[](void*)
operator new[](unsigned long)
collect2: ld returned 1 exit status

We've seen that with other ports before (e.g. #37270). The solution there was to use apple-gcc-4.2 instead of gcc-4.0. Testing...

Your Python issues are separate.

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

Replying to ryandesign@…:

We've seen that with other ports before (e.g. #37270). The solution there was to use apple-gcc-4.2 instead of gcc-4.0. Testing...

Unfortunately, in several portions of the build, including this portion, it's not UsingTheRightCompiler; that'll have to be fixed first before we can apply this fix.

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

Keywords: tiger added
Resolution: fixed
Status: newclosed

Replying to ryandesign@…:

Unfortunately, in several portions of the build, including this portion, it's not UsingTheRightCompiler; that'll have to be fixed first before we can apply this fix.

My mistake. I had applied the compiler change in the platform darwin 8 block near the end of the Portfile, but that was too late. Moving the compiler change before the first use of configure.cc worked fine. Committed in r113692.

Note: See TracTickets for help on using tickets.