[MacPorts] #62381: qpdf fails to configure on Lion - "A compiler with support for C++14 language features is required"
MacPorts
noreply at macports.org
Wed Mar 3 18:26:05 UTC 2021
#62381: qpdf fails to configure on Lion - "A compiler with support for C++14
language features is required"
--------------------+--------------------
Reporter: RobK88 | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.6.4
Keywords: Lion | Port: qpdf
--------------------+--------------------
qpdf fails the configure stage on Lion (10.7.5)
Macports reports "configure: error: *** A compiler with support for C++14
language features is required."
Here is an excerpt of the error:
{{{
checking whether /usr/bin/clang++ supports C++14 features with ... no
checking whether /usr/bin/clang++ supports C++14 features with
-std=c++14... no
checking whether /usr/bin/clang++ supports C++14 features with
+std=c++14... no
checking whether /usr/bin/clang++ supports C++14 features with -h
std=c++14... no
checking whether /usr/bin/clang++ supports C++14 features with ...
(cached) no
checking whether /usr/bin/clang++ supports C++14 features with
-std=c++1y... no
checking whether /usr/bin/clang++ supports C++14 features with
+std=c++1y... no
checking whether /usr/bin/clang++ supports C++14 features with -h
std=c++1y... no
configure: error: *** A compiler with support for C++14 language features
is required.
Command failed: cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_qpdf/qpdf/work/qpdf-10.2.0"
&& ./configure --prefix=/opt/local
Exit code: 1
Error: Failed to configure qpdf, consult
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_qpdf/qpdf/work/qpdf-10.2.0/config.log
Error: Failed to configure qpdf: configure failure: command execution
failed
Error: See
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_qpdf/qpdf/main.log
for details.
Error: Follow https://guide.macports.org/#project.tickets to report a bug.
}}}
**Here is the fix --** I was able to configure and build qpdf on Lion
using Clang-9.0.
(A version of clang earlier that 9.0 might work but I did not test it).
{{{
bash-3.2$ sudo port clean qpdf
Password:
---> Cleaning qpdf
bash-3.2$
bash-3.2$ sudo port -v upgrade qpdf configure.compiler=macports-clang-9.0
bash-3.2$
bash-3.2$ qpdf --version
qpdf version 10.2.0
Run qpdf --copyright to see copyright and license information.
}}}
--
Ticket URL: <https://trac.macports.org/ticket/62381>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list