BLFS Trac wrote:
#7135: cmake-3.4.0
-------------------------+-----------------------
Reporter: fo | Owner: fo
Type: enhancement | Status: assigned
Priority: normal | Milestone: 7.9
Component: BOOK | Version: SVN
Severity: normal | Resolution:
Keywords: |
-------------------------+-----------------------
Comment (by fo):
{{{
395: from
/tmp/cmake-3.4.0/Tests/FindGTK2/gtkmm/main.cpp:1:
395: /usr/include/c++/5.2.0/bits/c++0x_warning.h:32:2: error: #error
This file requires compiler and library support for the ISO C++ 2011
standard. This support is currently experimental, and must be enabled
with the -std=c++11 or -std=gnu++11 compiler options.
}}}
Built with ''CXXFLAGS="-g -O2 -std=c++11" ./bootstrap ...'', but the
results were the same.
The problem is that the include file has:
#if __cplusplus < 201103L
#error ...
#endif
I wrote a trivial program to test this:
$ cat main.cpp
#include <stdio.h>
int main()
{
printf("__cplusplus is %ld\n", __cplusplus);
}
I got:
$ g++ main.cpp
$ ./a.out
__cplusplus is 199711
$ g++ -std=c++11 main.cpp
$ ./a.out
__cplusplus is 201103
$ g++ -std=c++14 main.cpp
$ ./a.out
__cplusplus is 201402
So it seems that the CXXFLAGS is not being honored in the tests.
If Pierre's suggestion to adding the CXXFLAGS to the make comand doesn't
work, I can look at it some more.
-- Bruce
--
http://lists.linuxfromscratch.org/listinfo/blfs-book
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page