http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51503

             Bug #: 51503
           Summary: [4.7 Regression] Failure to build (non-bootstrap) gcc
                    libitm if only building C
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: bootstrap
        AssignedTo: unassig...@gcc.gnu.org
        ReportedBy: ste...@gcc.gnu.org


Non-bootstrap builds currently fail on the CompileFarm's gcc17:

stevenb@gcc17:~/devel/build$ make CFLAGS="-O0 -g2"
...
libtool: compile:  g++ -B/usr/local/x86_64-unknown-linux-gnu/bin/
-B/usr/local/x86_64-unknown-linux-gnu/lib/ -isystem /usr/local/x86_64-unkn
own-linux-gnu/include -isystem /usr/local/x86_64-unknown-linux-gnu/sys-include
-DHAVE_CONFIG_H -I. -I../../../trunk/libitm -I../../../trunk/
libitm/config/linux/x86 -I../../../trunk/libitm/config/linux
-I../../../trunk/libitm/config/x86 -I../../../trunk/libitm/config/posix -I../..
/../trunk/libitm/config/generic -I../../../trunk/libitm -std=gnu++0x
-funwind-tables -fno-exceptions -fno-rtti -Wall -pthread -Werror -fabi-
version=4 -g -O2 -D_GNU_SOURCE -MT aatree.lo -MD -MP -MF .deps/aatree.Tpo -c
../../../trunk/libitm/aatree.cc  -fPIC -DPIC -o .libs/aatree.o
cc1plus: warnings being treated as errors
In file included from ../../../trunk/libitm/libitm_i.h:32,
                 from ../../../trunk/libitm/aatree.cc:28:
../../../trunk/libitm/libitm.h:154: error: â?~transaction_pureâ?T attribute
directive ignored
../../../trunk/libitm/libitm.h:157: error: â?~transaction_pureâ?T attribute
directive ignored
../../../trunk/libitm/libitm.h:160: error: â?~transaction_pureâ?T attribute
directive ignored
../../../trunk/libitm/libitm.h:162: error: â?~transaction_pureâ?T attribute
directive ignored
...
make[4]: *** [aatree.lo] Error 1
make[4]: Leaving directory
`/home/stevenb/devel/build/x86_64-unknown-linux-gnu/libitm'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory
`/home/stevenb/devel/build/x86_64-unknown-linux-gnu/libitm'
make[2]: *** [all] Error 2
make[2]: Leaving directory
`/home/stevenb/devel/build/x86_64-unknown-linux-gnu/libitm'
make[1]: *** [all-target-libitm] Error 2
make[1]: Leaving directory `/home/stevenb/devel/build'
make: *** [all] Error 2
stevenb@gcc17:~/devel/build$ cat gcc/configargs.h
/* Generated automatically. */
static const char configuration_arguments[] = "../trunk/configure
--with-mpfr=/opt/cfarm/mpfr-2.4.1/ --with-gmp=/opt/cfarm/gmp-4.2.4/ --with
-mpc=/opt/cfarm/mpc-0.8/ --enable-languages=c --disable-libmudflap
--disable-libssp --disable-werror --disable-bootstrap";
static const char thread_model[] = "posix";

static const struct {
  const char *name, *value;
} configure_default_options[] = { { "cpu", "generic" }, { "arch", "x86-64" } };
stevenb@gcc17:~/devel/build$ g++ --version
g++ (Debian 4.3.2-1.1) 4.3.2
Copyright (C) 2008 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

stevenb@gcc17:~/devel/build$
Note the "--enable-languages=c". The host g++ is used, and it doesn't know the
attributes used in libitm.

As with PR51388, I put this in the "bootstrap" category because there is no
category for non-bootstrap build failures.

Reply via email to