gdb fails to compile on Leopard - C++11 compiler

Riccardo Mottola riccardo.mottola at libero.it
Thu Jan 25 11:19:19 UTC 2018



Hi,

I need to install gdb on 10.5 and install of the port fails.
This is the extract of the buildlog: I understand it is using the
system compiler instead of using e.g. a newer gcc or clang from MP
which  both have installed.

:info:build checking for _FILE_OFFSET_BITS value needed for large
files... no
:info:build checking for /usr/bin/gcc-4.2 option to accept ANSI C...
none needed
:info:build checking whether /usr/bin/g++-4.2 supports C++11 features
by default... no
:info:build checking whether /usr/bin/g++-4.2 supports C++11 features
with -std=gnu++11... no
:info:build checking whether /usr/bin/g++-4.2 supports C++11 features
with -std=gnu++0x... no
:info:build checking whether /usr/bin/g++-4.2 supports C++11 features
with -std=c++11... no
:info:build checking whether /usr/bin/g++-4.2 supports C++11 features
with -std=c++0x... no
:info:build checking whether /usr/bin/g++-4.2 supports C++11 features
with +std=c++11... no
:info:build checking whether /usr/bin/g++-4.2 supports C++11 features
with -h std=c++11... no
:info:build configure: error: *** A compiler with support for C++11
language features is required.
:info:build make[1]: *** [configure-gdb] Error 1
:info:build make[1]: *** Waiting for unfinished jobs....
:

why this? I see at the beginning in the log:

:notice:configure --->  Configuring gdb
:debug:configure Preferred compilers: gcc-4.2 apple-gcc-4.2 gcc-4.0
macports-clang-3.4 macports-clang-3.3
:debug:configure Using compiler 'Xcode GCC 4.2'

Thank you,

Riccardo

<main.log.zip>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: main.log.zip
Type: application/zip
Size: 21858 bytes
Desc: not available
URL: <http://lists.macports.org/pipermail/macports-users/attachments/20180125/24d6897d/attachment.zip>


More information about the macports-users mailing list