Opened 3 years ago
Closed 3 years ago
#64652 closed defect (fixed)
poppler @ 22.02.0 does not build on PPC
Reported by: | barracuda156 | Owned by: | dbevans (David B. Evans) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.7.1 |
Keywords: | powerpc, leopard | Cc: | ballapete (Peter "Pete" Dyballa) |
Port: | poppler |
Description
First of all, invoking install on 10.5.8 fails with an odd message:
---> Computing dependencies for poppler.. Error: Cannot install clang-7.0 for the arch 'powerpc' because Error: its dependency python27 does not build for the required arch by default Error: and the configured universal_archs 'ppc ppc64' are not sufficient. Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug.
When installation is invoked with sudo port -v -n install poppler -universal configure.compiler=macports-gcc-7 build_arch="ppc"
the build fails on this:
[ 17%] Building CXX object CMakeFiles/poppler.dir/poppler/GfxFont.cc.o /opt/local/bin/g++-mp-7 -Dpoppler_EXPORTS -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_poppler/poppler/work/poppler-22.02.0 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_poppler/poppler/work/poppler-22.02.0/fofi -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_poppler/poppler/work/poppler-22.02.0/goo -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_poppler/poppler/work/poppler-22.02.0/poppler -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_poppler/poppler/work/build -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_poppler/poppler/work/build/poppler -isystem /opt/local/include -isystem /opt/local/include/freetype2 -isystem /opt/local/include/openjpeg-2.4 -isystem /opt/local/include/nss -isystem /opt/local/include/nspr -isystem /opt/local/libexec/boost/1.76/include -Wall -Wextra -Wpedantic -Wno-unused-parameter -Wcast-align -Wformat-security -Wframe-larger-than=65536 -Wlogical-op -Wmissing-format-attribute -Wnon-virtual-dtor -Woverloaded-virtual -Wmissing-declarations -Wundef -Wzero-as-null-pointer-constant -Wshadow -Wsuggest-override -fno-exceptions -fno-check-new -fno-common -fno-operator-names -D_DEFAULT_SOURCE -O2 -DNDEBUG -pipe -I/opt/local/libexec/boost/1.76/include -Os -DNDEBUG -I/opt/local/libexec/boost/1.76/include -isystem/opt/local/include/LegacySupport -D_GLIBCXX_USE_CXX11_ABI=0 -arch ppc -mmacosx-version-min=10.5 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -std=c++1z -MD -MT CMakeFiles/poppler.dir/poppler/GfxFont.cc.o -MF CMakeFiles/poppler.dir/poppler/GfxFont.cc.o.d -o CMakeFiles/poppler.dir/poppler/GfxFont.cc.o -c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_poppler/poppler/work/poppler-22.02.0/poppler/GfxFont.cc [ 18%] Building CXX object CMakeFiles/poppler.dir/poppler/GfxState.cc.o /opt/local/bin/g++-mp-7 -Dpoppler_EXPORTS -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_poppler/poppler/work/poppler-22.02.0 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_poppler/poppler/work/poppler-22.02.0/fofi -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_poppler/poppler/work/poppler-22.02.0/goo -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_poppler/poppler/work/poppler-22.02.0/poppler -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_poppler/poppler/work/build -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_poppler/poppler/work/build/poppler -isystem /opt/local/include -isystem /opt/local/include/freetype2 -isystem /opt/local/include/openjpeg-2.4 -isystem /opt/local/include/nss -isystem /opt/local/include/nspr -isystem /opt/local/libexec/boost/1.76/include -Wall -Wextra -Wpedantic -Wno-unused-parameter -Wcast-align -Wformat-security -Wframe-larger-than=65536 -Wlogical-op -Wmissing-format-attribute -Wnon-virtual-dtor -Woverloaded-virtual -Wmissing-declarations -Wundef -Wzero-as-null-pointer-constant -Wshadow -Wsuggest-override -fno-exceptions -fno-check-new -fno-common -fno-operator-names -D_DEFAULT_SOURCE -O2 -DNDEBUG -pipe -I/opt/local/libexec/boost/1.76/include -Os -DNDEBUG -I/opt/local/libexec/boost/1.76/include -isystem/opt/local/include/LegacySupport -D_GLIBCXX_USE_CXX11_ABI=0 -arch ppc -mmacosx-version-min=10.5 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -std=c++1z -MD -MT CMakeFiles/poppler.dir/poppler/GfxState.cc.o -MF CMakeFiles/poppler.dir/poppler/GfxState.cc.o.d -o CMakeFiles/poppler.dir/poppler/GfxState.cc.o -c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_poppler/poppler/work/poppler-22.02.0/poppler/GfxState.cc /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_poppler/poppler/work/poppler-22.02.0/poppler/GfxFont.cc:183:13: error: function 'GfxFontLoc& GfxFontLoc::operator=(GfxFontLoc&&)' defaulted on its redeclaration with an exception-specification that differs from the implicit exception-specification '' GfxFontLoc &GfxFontLoc::operator=(GfxFontLoc &&other) noexcept = default; ^~~~~~~~~~ [ 18%] Building CXX object CMakeFiles/poppler.dir/poppler/GlobalParams.cc.o /opt/local/bin/g++-mp-7 -Dpoppler_EXPORTS -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_poppler/poppler/work/poppler-22.02.0 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_poppler/poppler/work/poppler-22.02.0/fofi -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_poppler/poppler/work/poppler-22.02.0/goo -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_poppler/poppler/work/poppler-22.02.0/poppler -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_poppler/poppler/work/build -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_poppler/poppler/work/build/poppler -isystem /opt/local/include -isystem /opt/local/include/freetype2 -isystem /opt/local/include/openjpeg-2.4 -isystem /opt/local/include/nss -isystem /opt/local/include/nspr -isystem /opt/local/libexec/boost/1.76/include -Wall -Wextra -Wpedantic -Wno-unused-parameter -Wcast-align -Wformat-security -Wframe-larger-than=65536 -Wlogical-op -Wmissing-format-attribute -Wnon-virtual-dtor -Woverloaded-virtual -Wmissing-declarations -Wundef -Wzero-as-null-pointer-constant -Wshadow -Wsuggest-override -fno-exceptions -fno-check-new -fno-common -fno-operator-names -D_DEFAULT_SOURCE -O2 -DNDEBUG -pipe -I/opt/local/libexec/boost/1.76/include -Os -DNDEBUG -I/opt/local/libexec/boost/1.76/include -isystem/opt/local/include/LegacySupport -D_GLIBCXX_USE_CXX11_ABI=0 -arch ppc -mmacosx-version-min=10.5 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -std=c++1z -MD -MT CMakeFiles/poppler.dir/poppler/GlobalParams.cc.o -MF CMakeFiles/poppler.dir/poppler/GlobalParams.cc.o.d -o CMakeFiles/poppler.dir/poppler/GlobalParams.cc.o -c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_poppler/poppler/work/poppler-22.02.0/poppler/GlobalParams.cc make[2]: *** [CMakeFiles/poppler.dir/poppler/GfxFont.cc.o] Error 1 make[2]: *** Waiting for unfinished jobs.... /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_poppler/poppler/work/poppler-22.02.0/poppler/Gfx.cc: In member function 'void Gfx::doImage(Object*, Stream*, bool)': /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_poppler/poppler/work/poppler-22.02.0/poppler/Gfx.cc:4541:40: warning: 'maskDict' may be used uninitialized in this function [-Wmaybe-uninitialized] obj1 = maskDict->lookup("D"); ~~~~~~~~~~~~~~~~^~~~~ make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_poppler/poppler/work/build' make[1]: *** [CMakeFiles/poppler.dir/all] Error 2 make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_poppler/poppler/work/build' make: *** [all] Error 2 make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_poppler/poppler/work/build' Command failed: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_poppler/poppler/work/build" && /usr/bin/make -j4 -w all CFLAGS="-Os -pipe -isysroot/ -arch ppc" LDFLAGS="-L/opt/local/libexec/boost/1.76/lib -Wl,-headerpad_max_install_names -liconv -Wl,-syslibroot,/ -arch ppc" VERBOSE=ON Exit code: 2 Error: Failed to build poppler: command execution failed
- S. I used
-universal
, because its dependencynspr
fails to build as universal: https://trac.macports.org/ticket/64651
Attachments (1)
Change History (6)
Changed 3 years ago by barracuda156
comment:1 Changed 3 years ago by kencu (Ken)
Owner: | set to dbevans |
---|---|
Status: | new → assigned |
Summary: | Latest update of poppler is broken for ppc: asks for Clang, when gcc is forced, fails on GfxFont.cc.o → poppler @ 22.02.0 does not build on PPC |
comment:2 Changed 3 years ago by evanmiller (Evan Miller)
comment:3 Changed 3 years ago by ballapete (Peter "Pete" Dyballa)
Cc: | ballapete added |
---|
comment:4 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)
Has duplicate #64808.
The problem that the gcc compiler wasn't being used was fixed in MacPorts 2.7.2.
comment:5 Changed 3 years ago by evanmiller (Evan Miller)
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Note: See
TracTickets for help on using
tickets.
It looks like something in the Portfile is blacklisting GCC, though I'm not sure what. If GCC is supported by poppler then the issue is probably worth reporting upstream. This (non-poppler) issue seems similar:
https://github.com/geany/geany/issues/2518