From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22737 invoked by alias); 17 Dec 2010 00:59:21 -0000 Received: (qmail 22719 invoked by uid 22791); 17 Dec 2010 00:59:18 -0000 X-SWARE-Spam-Status: No, hits=-2.8 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,TW_CX,TW_DC X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 17 Dec 2010 00:59:13 +0000 From: "manphiz at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug go/46986] New: Fails to build due to -Werror with --disable-werror X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: go X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: manphiz at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: ian at airs dot com X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Date: Fri, 17 Dec 2010 00:59:00 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2010-12/txt/msg02062.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46986 Summary: Fails to build due to -Werror with --disable-werror Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: go AssignedTo: ian@airs.com ReportedBy: manphiz@gmail.com Building latest trunk with go enabled fails with -Werror, even with --disable-werror specified. Relevant build log: libtool: compile: /tmp/gcc-build/./gcc/xgcc -B/tmp/gcc-build/./gcc/ -B/usr/local/x86_64-apple-darwin10.5.0/bin/ -B/usr/local/x86_64-apple-darwin10.5.0/lib/ -isystem /usr/local/x86_64-apple-darwin10.5.0/include -isystem /usr/local/x86_64-apple-darwin10.5.0/sys-include -DHAVE_CONFIG_H -I. -I/Users/dxy/VCS/GIT/gcc/libgo -I /Users/dxy/VCS/GIT/gcc/libgo/runtime -I/Users/dxy/VCS/GIT/gcc/libgo/../libffi/include -I../libffi/include -pthread -fexceptions -fplan9-extensions -Wall -Wextra -Wwrite-strings -Wcast-qual -Werror -minline-all-stringops -I /Users/dxy/VCS/GIT/gcc/libgo/../gcc -I ../../gcc/include -g -O2 -MT go-go.lo -MD -MP -MF .deps/go-go.Tpo -c /Users/dxy/VCS/GIT/gcc/libgo/runtime/go-go.c -fno-common -DPIC -o .libs/go-go.o /Users/dxy/VCS/GIT/gcc/libgo/runtime/go-go.c: In function 'runtime_stoptheworld': /Users/dxy/VCS/GIT/gcc/libgo/runtime/go-go.c:378:29: error: 'SIGRTMIN' undeclared (first use in this function) /Users/dxy/VCS/GIT/gcc/libgo/runtime/go-go.c:378:29: note: each undeclared identifier is reported only once for each function it appears in /Users/dxy/VCS/GIT/gcc/libgo/runtime/go-go.c: In function 'runtime_starttheworld': /Users/dxy/VCS/GIT/gcc/libgo/runtime/go-go.c:559:29: error: 'SIGRTMIN' undeclared (first use in this function) /Users/dxy/VCS/GIT/gcc/libgo/runtime/go-go.c: In function '__go_gc_goroutine_init': /Users/dxy/VCS/GIT/gcc/libgo/runtime/go-go.c:611:7: error: 'SIGRTMIN' undeclared (first use in this function) /Users/dxy/VCS/GIT/gcc/libgo/runtime/go-go.c:611:7: error: left-hand operand of comma expression has no effect [-Werror=unused-value] /Users/dxy/VCS/GIT/gcc/libgo/runtime/go-go.c:613:7: error: left-hand operand of comma expression has no effect [-Werror=unused-value] /Users/dxy/VCS/GIT/gcc/libgo/runtime/go-go.c:620:7: error: left-hand operand of comma expression has no effect [-Werror=unused-value] /Users/dxy/VCS/GIT/gcc/libgo/runtime/go-go.c:622:7: error: left-hand operand of comma expression has no effect [-Werror=unused-value] cc1: all warnings being treated as errors make[4]: *** [go-go.lo] Error 1 make[3]: *** [all-recursive] Error 1 make[2]: *** [all] Error 2 make[1]: *** [all-target-libgo] Error 2 make: *** [all] Error 2 Informations: GCC version: trunk r167954 System: Mac OS X 10.6.5 Configure options: $PATH/configure \ --prefix=${PREFIX} \ --with-gmp=${PREFIX} \ --with-mpfr=${PREFIX} \ --with-mpc=${PREFIX} \ --with-ppl=${PREFIX} \ --with-cloog=${PREFIX} \ --program-suffix=-4.6 \ --enable-languages=c,c++,fortran,go \ --disable-nls \ --disable-werror \ --disable-bootstrap \ --enable-shared \ --enable-threads \ --enable-__cxa_init \ --enable-version-specific-runtime-libs \ --enable-decimal-float \ --enable-plugin \ --enable-lto \ --enable-full-dynamic-string \ --enable-concept-checks \ --enable-libstdcxx-debug \ --enable-libstdcxx-time HTH. Also, it seems bug#46958 and #46965 is related: both failed with -Werror