Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 2E49F200B40 for ; Fri, 1 Jul 2016 20:30:13 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 2CF06160A6C; Fri, 1 Jul 2016 18:30:13 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 57C2D160A4D for ; Fri, 1 Jul 2016 20:30:12 +0200 (CEST) Received: (qmail 19751 invoked by uid 500); 1 Jul 2016 18:30:11 -0000 Mailing-List: contact issues-help@aurora.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@aurora.apache.org Delivered-To: mailing list issues@aurora.apache.org Received: (qmail 19733 invoked by uid 99); 1 Jul 2016 18:30:11 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Jul 2016 18:30:11 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 61D142C029E for ; Fri, 1 Jul 2016 18:30:11 +0000 (UTC) Date: Fri, 1 Jul 2016 18:30:11 +0000 (UTC) From: "John Sirois (JIRA)" To: issues@aurora.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (AURORA-1727) The thrift compiler fails to bootstrap under modern gcc MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 01 Jul 2016 18:30:13 -0000 [ https://issues.apache.org/jira/browse/AURORA-1727?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D153= 59435#comment-15359435 ]=20 John Sirois commented on AURORA-1727: ------------------------------------- I'm not sure exactly how to best handle this. If I check for clang and fav= or it, it may be some version of clang that fails to compile as well. I'll see if I can drum up a patch for the thrift code and include that in t= he patches the Makefile applies. > The thrift compiler fails to bootstrap under modern gcc > ------------------------------------------------------- > > Key: AURORA-1727 > URL: https://issues.apache.org/jira/browse/AURORA-1727 > Project: Aurora > Issue Type: Bug > Components: Build > Reporter: John Sirois > Priority: Minor > > I'm using: > {noformat} > $ gcc --version | head -1 > gcc (GCC) 6.1.1 20160602 > {noformat} > Failure is like so: > {noformat} > $ git clean -fdx build-support/thrift/ > $ ./gradlew clean > $ ./gradlew build > ... > thrift 0.9.1 > Building C++ Library ......... : no > Building C (GLib) Library .... : no > Building Java Library ........ : no > Building C# Library .......... : no > Building Python Library ...... : no > Building Ruby Library ........ : no > Building Haskell Library ..... : no > Building Perl Library ........ : no > Building PHP Library ......... : no > Building Erlang Library ...... : no > Building Go Library .......... : no > Building D Library ........... : no > If something is missing that you think should be present, > please skim the output of configure to find the missing > component. Details are present in config.log. > make[1]: Entering directory '/home/jsirois/dev/apache/jsirois-aurora/buil= d-support/thrift/thrift-0.9.1' > make all-recursive > make[2]: Entering directory '/home/jsirois/dev/apache/jsirois-aurora/buil= d-support/thrift/thrift-0.9.1' > Making all in compiler/cpp > make[3]: Entering directory '/home/jsirois/dev/apache/jsirois-aurora/buil= d-support/thrift/thrift-0.9.1/compiler/cpp' > make all-am > make[4]: Entering directory '/home/jsirois/dev/apache/jsirois-aurora/buil= d-support/thrift/thrift-0.9.1/compiler/cpp' > g++ -DHAVE_CONFIG_H -I. -I../.. -I../../lib/cpp/src/thrift -I./src -Wal= l -Wno-sign-compare -Wno-unused -g -O2 -c -o libparse_a-thrifty.o `test -f = 'thrifty.cc' || echo './'`thrifty.cc > g++ -DHAVE_CONFIG_H -I. -I../.. -I../../lib/cpp/src/thrift -I./src -Wal= l -Wno-sign-compare -Wno-unused -g -O2 -c -o libparse_a-thriftl.o `test -f = 'thriftl.cc' || echo './'`thriftl.cc > g++ -DHAVE_CONFIG_H -I. -I../.. -I../../lib/cpp/src/thrift -I./src -Wal= l -g -O2 -c -o thrift-main.o `test -f 'src/main.cc' || echo './'`src/main.c= c > gcc -DHAVE_CONFIG_H -I. -I../.. -I../../lib/cpp/src/thrift -I./src -g = -O2 -c -o thrift-md5.o `test -f 'src/md5.c' || echo './'`src/md5.c > thrifty.yy:664:21: warning: invalid suffix on literal; C++11 requires a s= pace between literal and string macro [-Wliteral-suffix] > thrifty.yy:971:25: warning: invalid suffix on literal; C++11 requires a s= pace between literal and string macro [-Wliteral-suffix] > thrifty.yy:982:23: warning: invalid suffix on literal; C++11 requires a s= pace between literal and string macro [-Wliteral-suffix] > g++ -DHAVE_CONFIG_H -I. -I../.. -I../../lib/cpp/src/thrift -I./src -Wal= l -g -O2 -c -o thrift-t_generator.o `test -f 'src/generate/t_generator.cc' = || echo './'`src/generate/t_generator.cc > g++ -DHAVE_CONFIG_H -I. -I../.. -I../../lib/cpp/src/thrift -I./src -Wal= l -g -O2 -c -o thrift-parse.o `test -f 'src/parse/parse.cc' || echo './'`sr= c/parse/parse.cc > g++ -DHAVE_CONFIG_H -I. -I../.. -I../../lib/cpp/src/thrift -I./src -Wal= l -g -O2 -c -o thrift-t_c_glib_generator.o `test -f 'src/generate/t_c_glib_= generator.cc' || echo './'`src/generate/t_c_glib_generator.cc > g++ -DHAVE_CONFIG_H -I. -I../.. -I../../lib/cpp/src/thrift -I./src -Wal= l -g -O2 -c -o thrift-t_cpp_generator.o `test -f 'src/generate/t_cpp_genera= tor.cc' || echo './'`src/generate/t_cpp_generator.cc > g++ -DHAVE_CONFIG_H -I. -I../.. -I../../lib/cpp/src/thrift -I./src -Wal= l -g -O2 -c -o thrift-t_java_generator.o `test -f 'src/generate/t_java_gene= rator.cc' || echo './'`src/generate/t_java_generator.cc > src/generate/t_java_generator.cc: In member function =E2=80=98void t_java= _generator::generate_process_async_function(t_service*, t_function*)=E2=80= =99: > src/generate/t_java_generator.cc:2830:14: error: operands to ?: have diff= erent types =E2=80=98bool=E2=80=99 and =E2=80=98std::basic_ostream=E2= =80=99 > first ? first =3D false : indent(f_service_) << "else "; > ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > make[4]: *** [Makefile:704: thrift-t_java_generator.o] Error 1 > make[4]: *** Waiting for unfinished jobs.... > make[4]: Leaving directory '/home/jsirois/dev/apache/jsirois-aurora/build= -support/thrift/thrift-0.9.1/compiler/cpp' > make[3]: Leaving directory '/home/jsirois/dev/apache/jsirois-aurora/build= -support/thrift/thrift-0.9.1/compiler/cpp' > make[3]: *** [Makefile:417: all] Error 2 > make[2]: *** [Makefile:434: all-recursive] Error 1 > make[2]: Leaving directory '/home/jsirois/dev/apache/jsirois-aurora/build= -support/thrift/thrift-0.9.1' > make[1]: *** [Makefile:355: all] Error 2 > make[1]: Leaving directory '/home/jsirois/dev/apache/jsirois-aurora/build= -support/thrift/thrift-0.9.1' > make: *** [Makefile:50: thrift-0.9.1/compiler/cpp/thrift] Error 2 > make: Leaving directory '/home/jsirois/dev/apache/jsirois-aurora/build-su= pport/thrift' > :api:generateThriftJava FAILED > FAILURE: Build failed with an exception. > * What went wrong: > Execution failed for task ':api:generateThriftJava'. > > Process 'command '/home/jsirois/dev/apache/jsirois-aurora/build-support= /thrift/thriftw'' finished with non-zero exit value 2 > * Try: > Run with --stacktrace option to get the stack trace. Run with --info or -= -debug option to get more log output. > BUILD FAILED > Total time: 1 mins 47.847 secs > {noformat} > The workaround is to use clang. I have: > {noformat} > $ clang --version | head -1 > clang version 3.8.0 (tags/RELEASE_380/final) > {noformat} > And these work: > {noformat} > $ CC=3Dclang CXX=3Dclang++ ./gradlew build > $ CC=3Dclang CXX=3Dclang++ ./build-support/release/verify-release-candida= te 0.15.0-rc1 > {noformat} -- This message was sent by Atlassian JIRA (v6.3.4#6332)