DJ Lucas wrote:
On 05/04/2016 04:05 PM, 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 segfaulthttp://hg.openjdk.java.net/jdk9/dev/rev/9d77f922d694 That's for jdk9, but should backport easily enough. Looks like you need -std=gnu++98, -fno-delete-null-pointer-checks, and -fno-lifetime-dse to make it play nicely...can probably force it to work at configure time if you don't want to redo auto* files, but that's the correct way (assuming that it actually works).
It seems like they are inserting a huge number of blank lines. -- Bruce -- http://lists.linuxfromscratch.org/listinfo/blfs-dev FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page
