[MacPorts] #44954: Building poppler failed
#44954: Building poppler failed ------------------------------+-------------------------------- Reporter: john.m.harrold@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.1 Keywords: | Port: ------------------------------+-------------------------------- I'm trying to build the port for poppler and I keep getting errors. I did a self update thinking that might be the cause of my troubles but I got the same error below. {{{ /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/freetype2 -I/opt/local/include/libpng16 -I/opt/local/include -I/opt/local/include/freetype2 -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-structure-element.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-structure-element.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 29, in <module> import tempfile File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/tempfile.py", line 35, in <module> from random import Random as _Random File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/random.py", line 49, in <module> import hashlib as _hashlib File "build/bdist.macosx-10.8-intel/egg/hashlib.py", line 105, in <module> File "build/bdist.macosx-10.8-intel/egg/_hashlib.py", line 7, in <module> File "build/bdist.macosx-10.8-intel/egg/_hashlib.py", line 4, in __bootstrap__ File "build/bdist.macosx-10.8-intel/egg/pkg_resources.py", line 954, in resource_filename self, resource_name File "build/bdist.macosx-10.8-intel/egg/pkg_resources.py", line 1647, in get_resource_filename zip_path = self._resource_to_zip(resource_name) File "build/bdist.macosx-10.8-intel/egg/pkg_resources.py", line 1683, in _extract_resource File "build/bdist.macosx-10.8-intel/egg/pkg_resources.py", line 2857, in _mkstemp old_open = os.open AttributeError: 'module' object has no attribute 'mkstemp' make[4]: *** [Poppler-0.18.gir] Error 1 make[4]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_distfiles.macports.org_ports_graphics_poppler/poppler/work/poppler-0.26.4/glib' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_distfiles.macports.org_ports_graphics_poppler/poppler/work/poppler-0.26.4/glib' make[2]: *** [all] Error 2 make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_distfiles.macports.org_ports_graphics_poppler/poppler/work/poppler-0.26.4/glib' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_distfiles.macports.org_ports_graphics_poppler/poppler/work/poppler-0.26.4' make: *** [all] Error 2 make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_distfiles.macports.org_ports_graphics_poppler/poppler/work/poppler-0.26.4' Command failed: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_distfiles.macports.org_ports_graphics_poppler/poppler/work/poppler-0.26.4" && /usr/bin/make -j8 -w all CC="/usr/bin/clang -arch x86_64" Exit code: 2 Error: org.macports.build for port poppler returned: command execution failed DEBUG: Error code: CHILDSTATUS 63406 2 DEBUG: Backtrace: command execution failed while executing "system -nice 0 $fullcmdstring" ("eval" body line 1) invoked from within "eval system $notty $nice \$fullcmdstring" invoked from within "command_exec build" (procedure "portbuild::build_main" line 8) invoked from within "portbuild::build_main org.macports.build" ("eval" body line 1) invoked from within "eval $procedure $targetname" Warning: targets not executed for poppler: org.macports.activate org.macports.build org.macports.destroot org.macports.install Please see the log file for port poppler for details: /opt/local/var/macports/logs/_opt_local_var_macports_sources_distfiles.macports.org_ports_graphics_poppler/poppler/main.log To report a bug, follow the instructions in the guide: http://guide.macports.org/#project.tickets Error: Processing of port poppler failed }}} -- Ticket URL: <https://trac.macports.org/ticket/44954> MacPorts <http://www.macports.org/> Ports system for OS X
#44954: Building poppler failed -------------------------------+---------------------- Reporter: john.m.harrold@… | Owner: devans@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.3.1 Resolution: | Keywords: Port: | -------------------------------+---------------------- Changes (by devans@…): * status: new => assigned * owner: macports-tickets@… => devans@… -- Ticket URL: <https://trac.macports.org/ticket/44954#comment:1> MacPorts <http://www.macports.org/> Ports system for OS X
#44954: Building poppler failed -------------------------------+---------------------- Reporter: john.m.harrold@… | Owner: devans@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: poppler | -------------------------------+---------------------- Changes (by devans@…): * version: 2.3.1 => * port: => poppler Comment: Please fill in ticket Portfield and copy maintainer for faster response. Thanks. -- Ticket URL: <https://trac.macports.org/ticket/44954#comment:2> MacPorts <http://www.macports.org/> Ports system for OS X
#44954: Building poppler failed -------------------------------+---------------------- Reporter: john.m.harrold@… | Owner: devans@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: poppler | -------------------------------+---------------------- Comment (by devans@…): I'm looking at this, but the attached log file is not from a clean build so is not very informative. Please attach an updated main.log generated by the following commands {{{ sudo port clean poppler sudo port build poppler }}} -- Ticket URL: <https://trac.macports.org/ticket/44954#comment:3> MacPorts <http://www.macports.org/> Ports system for OS X
#44954: Building poppler failed -------------------------------+---------------------- Reporter: john.m.harrold@… | Owner: devans@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: poppler | -------------------------------+---------------------- Comment (by devans@…): I can't replicate your results building on Mavericks (10.9). The equivalent lines from my build log are: {{{ /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/freetype2 -I/opt/local/include/libpng16 -I/opt/local/include -I/opt/local/include/freetype2 -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-structure-element.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-structure-element.h poppler.h poppler-features.h libpoppler-glib.la --output Poppler-0.18.gir g-ir-scanner: compile: /usr/bin/clang -arch x86_64 -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/freetype2 -I/opt/local/include/libpng16 -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_macports_trunk_dports_graphics_poppler/poppler/work/poppler-0.26.4/glib /tmp-introspectLdKF2D/Poppler-0.18.o /opt/local/var/macports/build/_opt_macports_trunk_dports_graphics_poppler/poppler/work/poppler-0.26.4/glib /tmp-introspectLdKF2D/Poppler-0.18.c g-ir-scanner: link: /bin/sh ../libtool --mode=link --tag=CC /usr/bin/clang -arch x86_64 -o /opt/local/var/macports/build/_opt_macports_trunk_dports_graphics_poppler/poppler/work/poppler-0.26.4/glib /tmp-introspectLdKF2D/Poppler-0.18 -export-dynamic /opt/local/var/macports/build/_opt_macports_trunk_dports_graphics_poppler/poppler/work/poppler-0.26.4/glib /tmp-introspectLdKF2D/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/clang -arch x86_64 -o /opt/local/var/macports/build/_opt_macports_trunk_dports_graphics_poppler/poppler/work/poppler-0.26.4/glib /tmp-introspectLdKF2D/.libs/Poppler-0.18 /opt/local/var/macports/build/_opt_macports_trunk_dports_graphics_poppler/poppler/work/poppler-0.26.4/glib /tmp-introspectLdKF2D/Poppler-0.18.o -L. ./.libs/libpoppler-glib.dylib -L/opt/local/lib /opt/local/var/macports/build/_opt_macports_trunk_dports_graphics_poppler/poppler/work/poppler-0.26.4/poppler/.libs/libpoppler.dylib -llcms2 -ltiff -ljpeg -lpng16 -lcurl -lopenjpeg -lfontconfig -lcairo -lfreetype -lz -lgio-2.0 -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -lintl -pthread clang: warning: argument unused during compilation: '-pthread' /opt/local/bin/g-ir-compiler --includedir=. --includedir=. Poppler-0.18.gir -o Poppler-0.18.typelib make[4]: Leaving directory `/opt/local/var/macports/build/_opt_macports_trunk_dports_graphics_poppler/poppler/work/poppler-0.26.4/glib' }}} I note that your error occurs in g-ir-scanner before it emits the appropriate compile or link commmands. You might want to rebuild gobject- introspection which provides this Python script to make sure all is well there. Will test on ML (10.8) to see if that makes any difference. -- Ticket URL: <https://trac.macports.org/ticket/44954#comment:4> MacPorts <http://www.macports.org/> Ports system for OS X
#44954: Building poppler failed -------------------------------+---------------------- Reporter: john.m.harrold@… | Owner: devans@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: poppler | -------------------------------+---------------------- Comment (by john.m.harrold@…): I did the clean and build. {{{ jharrold:$ sudo port clean poppler ---> Cleaning poppler [~] jharrold:$ sudo port build poppler ---> Computing dependencies for poppler ---> Fetching distfiles for poppler ---> Verifying checksums for poppler ---> Extracting poppler ---> Configuring poppler ---> Building poppler Error: org.macports.build for port poppler returned: command execution failed Please see the log file for port poppler for details: /opt/local/var/macports/logs/_opt_local_var_macports_sources_distfiles.macports.org_ports_graphics_poppler/poppler/main.log To report a bug, follow the instructions in the guide: http://guide.macports.org/#project.tickets Error: Processing of port poppler failed }}} I'll attache the main.log file -- Ticket URL: <https://trac.macports.org/ticket/44954#comment:5> MacPorts <http://www.macports.org/> Ports system for OS X
#44954: Building poppler failed -------------------------------+---------------------- Reporter: john.m.harrold@… | Owner: devans@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: poppler | -------------------------------+---------------------- Comment (by john.m.harrold@…): I believe the way to rebuild a package is the following: {{{sudo port upgrade -n --force gobject-introspection}}} The output from rebuilding gobject-introspection is below. This didn't seem to help (poppler still fails to compile). {{{ ---> Fetching archive for gobject-introspection ---> Attempting to fetch gobject- introspection-1.40.0_0.darwin_12.x86_64.tbz2 from http://packages.macports.org/gobject-introspection ---> Attempting to fetch gobject- introspection-1.40.0_0.darwin_12.x86_64.tbz2.rmd160 from http://packages.macports.org/gobject-introspection ---> Computing dependencies for gobject-introspection ---> Unable to uninstall gobject-introspection @1.40.0_0, the following ports depend on it: ---> atk @2.8.0_0 ---> gdk-pixbuf2 @2.28.2_0+x11 ---> pango @1.34.1_1+x11 ---> gtk2 @2.24.20_0+x11 ---> poppler @0.22.5_0 ---> atk @2.12.0_0 ---> gdk-pixbuf2 @2.30.8_0+x11 ---> pango @1.36.5_0+x11 ---> gtk2 @2.24.24_0+x11 Warning: Uninstall forced. Proceeding despite dependencies. ---> Deactivating gobject-introspection @1.40.0_0 ---> Unable to deactivate gobject-introspection @1.40.0_0, the following ports depend on it: ---> atk @2.12.0_0 ---> gdk-pixbuf2 @2.30.8_0+x11 ---> pango @1.36.5_0+x11 ---> gtk2 @2.24.24_0+x11 Warning: Deactivate forced. Proceeding despite dependencies. ---> Cleaning gobject-introspection ---> Uninstalling gobject-introspection @1.40.0_0 ---> Cleaning gobject-introspection ---> Computing dependencies for gobject-introspection ---> Installing gobject-introspection @1.40.0_0 ---> Activating gobject-introspection @1.40.0_0 ---> Cleaning gobject-introspection ---> Updating database of binaries ---> Scanning binaries for linking errors ---> No broken files found. }}} -- Ticket URL: <https://trac.macports.org/ticket/44954#comment:6> MacPorts <http://www.macports.org/> Ports system for OS X
#44954: Building poppler failed -------------------------------+---------------------- Reporter: john.m.harrold@… | Owner: devans@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: poppler | -------------------------------+---------------------- Comment (by ryandesign@…): Replying to [comment:6 john.m.harrold@…]:
I believe the way to rebuild a package is the following:
{{{ sudo port upgrade -n --force gobject-introspection }}}
The output from rebuilding gobject-introspection is below. This didn't
seem to help (poppler still fails to compile).
{{{ ---> Fetching archive for gobject-introspection ---> Attempting to fetch gobject-
introspection-1.40.0_0.darwin_12.x86_64.tbz2 from http://packages.macports.org/gobject-introspection
---> Attempting to fetch gobject- introspection-1.40.0_0.darwin_12.x86_64.tbz2.rmd160 from http://packages.macports.org/gobject-introspection [snip] }}}
This doesn't necessarily rebuild the port; if a binary is available (and it was in this case), it will re-download and re-install that binary. To re''build'' the port from source, you need to also use the `-s` flag. Note also that single-letter flags like `-n` and `-s` need to appear immediately after the word `port` to have any affect; conversely, double- dash flags like `--force` need to appear after the word after `port`. So to rebuild gobject-introspection you would need to run: {{{ sudo port -ns upgrade --force gobject-introspection }}} -- Ticket URL: <https://trac.macports.org/ticket/44954#comment:7> MacPorts <http://www.macports.org/> Ports system for OS X
#44954: Building poppler failed -------------------------------+---------------------- Reporter: john.m.harrold@… | Owner: devans@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: poppler | -------------------------------+---------------------- Comment (by john.m.harrold@…): Replying to [comment:7 ryandesign@…]: Thanks Ryan, I'm more of an end user with Mac Ports. That seems to have failed as well: {{{ Error: org.macports.build for port gobject-introspection returned: command execution failed Please see the log file for port gobject-introspection for details: /opt/local/var/macports/logs/_opt_local_var_macports_sources_distfiles.macports .org_ports_gnome_gobject-introspection/gobject-introspection/main.log Error: Unable to upgrade port: 1 To report a bug, follow the instructions in the guide: http://guide.macports.org/#project.tickets }}} I've uploaded the main.log (go-main.log) as well. There is something fishy going on here. This is from the go-main.log but I don't really know how to interpret these errors. {{{ :info:build Traceback (most recent call last): :info:build File "./g-ir-scanner", line 44, in <module> :info:build from giscanner.scannermain import scanner_main :info:build File "./giscanner/scannermain.py", line 29, in <module> :info:build import tempfile :info:build File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/tempfile.py", line 35, in <module> :info:build from random import Random as _Random :info:build File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/random.py", line 49, in <module> :info:build import hashlib as _hashlib :info:build File "build/bdist.macosx-10.8-intel/egg/hashlib.py", line 105, in <module> :info:build :info:build File "build/bdist.macosx-10.8-intel/egg/_hashlib.py", line 7, in <module> :info:build File "build/bdist.macosx-10.8-intel/egg/_hashlib.py", line 4, in __bootstrap__ :info:build File "build/bdist.macosx-10.8-intel/egg/pkg_resources.py", line 954, in resource_filename :info:build self, resource_name :info:build File "build/bdist.macosx-10.8-intel/egg/pkg_resources.py", line 1647, in get_resource_filename :info:build zip_path = self._resource_to_zip(resource_name) :info:build File "build/bdist.macosx-10.8-intel/egg/pkg_resources.py", line 1683, in _extract_resource :info:build :info:build File "build/bdist.macosx-10.8-intel/egg/pkg_resources.py", line 2857, in _mkstemp :info:build old_open = os.open :info:build AttributeError: 'module' object has no attribute 'mkstemp' }}} -- Ticket URL: <https://trac.macports.org/ticket/44954#comment:8> MacPorts <http://www.macports.org/> Ports system for OS X
#44954: poppler, gobject-introspection: AttributeError: 'module' object has no attribute 'mkstemp' -------------------------------+---------------------- Reporter: john.m.harrold@… | Owner: devans@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: poppler | -------------------------------+---------------------- Changes (by ryandesign@…): * cc: ryandesign@… (added) Comment: Replying to [comment:8 john.m.harrold@…]:
{{{ :info:build AttributeError: 'module' object has no attribute 'mkstemp' }}}
This is an uncommon error message. I searched Google and got only 6 hits, including this ticket, and some of the hits were duplicates. Two of them suggested this will occur with very old versions of Python, like 2.2 or 2.3, which are so old we don't even have them in MacPorts anymore. Just out of curiosity, what version of Python is /usr/bin/python on your system? To find out, run: {{{ /usr/bin/python -V }}} Do you know if you have any other versions of Python installed anywhere else on your system? -- Ticket URL: <https://trac.macports.org/ticket/44954#comment:9> MacPorts <http://www.macports.org/> Ports system for OS X
#44954: poppler, gobject-introspection: AttributeError: 'module' object has no attribute 'mkstemp' -------------------------------+---------------------- Reporter: john.m.harrold@… | Owner: devans@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: poppler | -------------------------------+---------------------- Comment (by john.m.harrold@…): Hello Ryan I'm running 2.7.2 {{{ $/usr/bin/python -V Python 2.7.2 }}} -- Ticket URL: <https://trac.macports.org/ticket/44954#comment:10> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts