Pierre Labastie wrote:


I confirm that GCC-6 is not easy to work with: OpenJDK would not build with
it. I do not have CLANG and have no motivation to build it. Furthermore, for
OpenJDK, the variables CC and CXX are not honoured! What I have done (as root):

mv /usr/bin/gcc{,.orig}
cat >/usr/bin/gcc << EOF
#!/bin/bash
gcc -std=c99 "\$@"
EOF
mv /usr/bin/g++{,.orig}
cat >/usr/bin/g++ << EOF
#!/bin/bash
gcc -std=c99 "\$@"
EOF

But that's not enough. The compilation goes to completion, but all the
compiled executables segfault

Downgrading to gcc-5.3 allowed to build. Tests are currently running, but at
least, the executables seem to run.

I agree that gcc6 will cause us problems. I needed to rebuild ptlib and ran into errors due to:

1.  Ambiguous overloaded function.  I was able to overcome that by
    casting an argument to std::string in several places.  Fortunately it
    is only one file.   src/ptlib/unix/svcproc.cxx

2.  There is a check for a header that depends on compiler version.  It
    fails if the minor version is less than 2.  That was fixed by adding
    ||  __GNUC__ >= 5 to the #if statement.  include/ptlib/critsec.h

There are also a TON of warnings about deprecated constructs that creates very noisy output. I was able to turn them off my adding

STDCCFLAGS  += -Wno-deprecated-declarations

to make/unix.mak.

It will be easy enough to add these fixes to the existing patch, but I fear that this will become the rule for a while.

I'll even note that there are warnings about indentation!

  -- Bruce

--
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