[MacPorts] #64652: Latest update of poppler is broken for ppc: asks for Clang, when gcc is forced, fails on GfxFont.cc.o
MacPorts
noreply at macports.org
Sat Feb 12 18:55:34 UTC 2022
#64652: Latest update of poppler is broken for ppc: asks for Clang, when gcc is
forced, fails on GfxFont.cc.o
------------------------------+---------------------
Reporter: barracuda156 | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.7.1
Keywords: powerpc, leopard | Port: poppler
------------------------------+---------------------
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
}}}
P. S. I used `-universal`, because its dependency `nspr` fails to build as
universal: https://trac.macports.org/ticket/64651
--
Ticket URL: <https://trac.macports.org/ticket/64652>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list