Opened 3 years ago

Last modified 3 years ago

#62381 closed defect

qpdf fails to configure on Lion - "A compiler with support for C++14 language features is required" — at Initial Version

Reported by: RobK88 Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.6.4
Keywords: Lion Cc:
Port: qpdf

Description

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.

Change History (0)

Note: See TracTickets for help on using tickets.