I'm not sure if gcc-6.3 is weirder than I expected, or if I'm slowly
spreading my own weirdness into the things I touch ;-)

Got the new asymptote-2.39 building once I had reinstated freeglut
in my own build (accidentally kept it commented although libGLU was
present, build failed).  All its own tests, and my tests, were good
so I started to measure the build.  And failed on the first compile
with an error to the effect that C++11 was needed:

g++ -Wall -DHAVE_CONFIG_H -D_FILE_OFFSET_BITS=64 -DUSEGC  -pthread 
-DFFTWPP_SINGLE_THREAD  -g -O2 -g -O3 -ansi -fno-var-tracking   -I. 
-I/opt/texlive/2016/include/gc -I/usr/include/gc -o camperror.o -c camperror.cc
In file included from /usr/include/c++/6.3.0/unordered_map:35:0,
                 from memory.h:22,
                 from common.h:35,
                 from camperror.h:16,
                 from camperror.cc:14:
/usr/include/c++/6.3.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 must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
 #error This file requires compiler and library support \
  ^~~~~
In file included from common.h:35:0,
                 from camperror.h:16,
                 from camperror.cc:14:
memory.h:153:34: error: ‘hash’ in namespace ‘std’ does not name a template type
             typename Hash = EXT::hash<Key>,                             \
                                  ^
and loads more irrelevant messages

On my own builds I pass CFLAGS and CXXFLAGS of -O2 (not everything
uses them, but it saves space on packages which do - no debug
symbols - and I've never been convinced that -O3 is generally
worthwhile).

So, in my initial working build I had
g++ -Wall -DHAVE_CONFIG_H -D_FILE_OFFSET_BITS=64 -DUSEGC  -pthread
-DFFTWPP_SINGLE_THREAD  -O2 -O2 -fno-var-tracking   -I.
-I/opt/texlive/2016/include/gc -I/usr/include/gc -o camperror.o -c
camperror.cc

It appears that the -O2 comes from the CXXFLAGS (I changed them to
-O2, that kept the initial -O2 but lost its preceding -g).  But the
-O3 comes from CFLAGS.  If I export CFLAGS as '-g -O2' it builds
fine.

ĸen - thinking about changing my name to Nanny Ogg or Magrat Garlick
(not really, that's another Discworld reference).
-- 
`I shall take my mountains', said Lu-Tze. `The climate will be good
for them.'     -- Small Gods
-- 
http://lists.linuxfromscratch.org/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to