Opened 4 years ago
Closed 4 years ago
#62381 closed defect (fixed)
qpdf fails to configure on Lion - "A compiler with support for C++14 language features is required"
Reported by: | RobK88 | Owned by: | adfernandes (Andrew Fernandes) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.6.4 |
Keywords: | Lion | Cc: | |
Port: | qpdf |
Description (last modified by RobK88)
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:
sudo port -v upgrade qpdf .... 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 (3)
comment:1 Changed 4 years ago by RobK88
Description: | modified (diff) |
---|
comment:2 Changed 4 years ago by jmroot (Joshua Root)
Owner: | set to adfernandes |
---|---|
Status: | new → assigned |
comment:3 Changed 4 years ago by jmroot (Joshua Root)
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Note: See
TracTickets for help on using
tickets.
"A C++-14 compiler is now required to build qpdf." – http://qpdf.sourceforge.net/files/qpdf-manual.html#ref.release-notes