public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/53832] New: [4.8 Regression] error: macro "ggc_alloc_cleared_lang_decl" passed 1 arguments, but takes just 0
@ 2012-07-02 22:49 redi at gcc dot gnu.org
  2012-07-02 23:03 ` [Bug bootstrap/53832] " redi at gcc dot gnu.org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: redi at gcc dot gnu.org @ 2012-07-02 22:49 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 53832
           Summary: [4.8 Regression] error: macro
                    "ggc_alloc_cleared_lang_decl" passed 1 arguments, but
                    takes just 0
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: bootstrap
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: redi@gcc.gnu.org
              Host: x86_64-unknown-netbsd5.1
            Target: x86_64-unknown-netbsd5.1
             Build: x86_64-unknown-netbsd5.1


gcc -c  -DIN_GCC_FRONTEND -g -O2 -DIN_GCC   -W -Wall -Wwrite-strings
-Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wmissing-format-attribute
-Wold-style-definition -Wc++-compat -fno-common  -DHAVE_CONFIG_H -I. -Icp
-I/home/jwakely/src/gcc/gcc -I/home/jwakely/src/gcc/gcc/cp
-I/home/jwakely/src/gcc/gcc/../include
-I/home/jwakely/src/gcc/gcc/../libcpp/include -I/home/jwakely/build/./gmp
-I/home/jwakely/src/gcc/gmp -I/home/jwakely/build/./mpfr
-I/home/jwakely/src/gcc/mpfr -I/home/jwakely/src/gcc/mpc/src 
-I/home/jwakely/src/gcc/gcc/../libdecnumber
-I/home/jwakely/src/gcc/gcc/../libdecnumber/dpd -I../libdecnumber   
/home/jwakely/src/gcc/gcc/cp/lex.c -o cp/lex.o
/home/jwakely/src/gcc/gcc/cp/lex.c:559:41: error: macro
"ggc_alloc_cleared_lang_decl" passed 1 arguments, but takes just 0
/home/jwakely/src/gcc/gcc/cp/lex.c: In function 'retrofit_lang_decl':
/home/jwakely/src/gcc/gcc/cp/lex.c:559: error: 'ggc_alloc_cleared_lang_decl'
undeclared (first use in this function)
/home/jwakely/src/gcc/gcc/cp/lex.c:559: error: (Each undeclared identifier is
reported only once
/home/jwakely/src/gcc/gcc/cp/lex.c:559: error: for each function it appears
in.)
/home/jwakely/src/gcc/gcc/cp/lex.c:600:33: error: macro "ggc_alloc_lang_decl"
passed 1 arguments, but takes just 0
/home/jwakely/src/gcc/gcc/cp/lex.c: In function 'cxx_dup_lang_specific_decl':
/home/jwakely/src/gcc/gcc/cp/lex.c:600: error: 'ggc_alloc_lang_decl' undeclared
(first use in this function)
gmake[2]: *** [cp/lex.o] Error 1
gmake[2]: Leaving directory `/home/jwakely/build/gcc'
gmake[1]: *** [all-gcc] Error 2
gmake[1]: Leaving directory `/home/jwakely/build'
gmake: *** [all] Error 2


Configured with 

/home/jwakely/src/gcc/configure --prefix=/home/jwakely/gcc/4.x
--with-system-zlib --with-gnu-ld --with-gnu-as --disable-nls
--disable-libquadmath --enable-languages=c,c++ --disable-libmudflap
--disable-bootstrap --disable-libitm --disable-decimal-float

Bootstrap compile is 

gcc version 4.1.3 20080704 prerelease (NetBSD nb2 20081120)

Configuring without --disable-bootstrap also fails, in stage 1.

The definitions in gtype-desc.h are

#define ggc_alloc_lang_decl() ((struct lang_decl *)(ggc_internal_alloc_stat
(sizeof (struct lang_decl) MEM_STAT_INFO)))
#define ggc_alloc_cleared_lang_decl() ((struct lang_decl
*)(ggc_internal_cleared_alloc_stat (sizeof (struct lang_decl) MEM_STAT_INFO)))


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug bootstrap/53832] [4.8 Regression] error: macro "ggc_alloc_cleared_lang_decl" passed 1 arguments, but takes just 0
  2012-07-02 22:49 [Bug bootstrap/53832] New: [4.8 Regression] error: macro "ggc_alloc_cleared_lang_decl" passed 1 arguments, but takes just 0 redi at gcc dot gnu.org
@ 2012-07-02 23:03 ` redi at gcc dot gnu.org
  2012-07-03 10:21 ` rguenth at gcc dot gnu.org
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: redi at gcc dot gnu.org @ 2012-07-02 23:03 UTC (permalink / raw)
  To: gcc-bugs

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

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Target|x86_64-unknown-netbsd5.1    |
               Host|x86_64-unknown-netbsd5.1    |
              Build|x86_64-unknown-netbsd5.1    |

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> 2012-07-02 23:02:49 UTC ---
Seeing this on powerpc64-unknown-linux-gnu (gcc110) as well as netbsd (gcc70)


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug bootstrap/53832] [4.8 Regression] error: macro "ggc_alloc_cleared_lang_decl" passed 1 arguments, but takes just 0
  2012-07-02 22:49 [Bug bootstrap/53832] New: [4.8 Regression] error: macro "ggc_alloc_cleared_lang_decl" passed 1 arguments, but takes just 0 redi at gcc dot gnu.org
  2012-07-02 23:03 ` [Bug bootstrap/53832] " redi at gcc dot gnu.org
@ 2012-07-03 10:21 ` rguenth at gcc dot gnu.org
  2012-07-03 11:03 ` redi at gcc dot gnu.org
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-07-03 10:21 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Guenther <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.8.0

--- Comment #2 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-07-03 10:20:47 UTC ---
I see

#define ggc_alloc_lang_decl(SIZE) ((struct lang_decl *)(ggc_internal_alloc_stat
(SIZE MEM_STAT_INFO)))

on x86_64-linux, with a GCC 4.6 host compiler compiled gengtype.


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug bootstrap/53832] [4.8 Regression] error: macro "ggc_alloc_cleared_lang_decl" passed 1 arguments, but takes just 0
  2012-07-02 22:49 [Bug bootstrap/53832] New: [4.8 Regression] error: macro "ggc_alloc_cleared_lang_decl" passed 1 arguments, but takes just 0 redi at gcc dot gnu.org
  2012-07-02 23:03 ` [Bug bootstrap/53832] " redi at gcc dot gnu.org
  2012-07-03 10:21 ` rguenth at gcc dot gnu.org
@ 2012-07-03 11:03 ` redi at gcc dot gnu.org
  2012-07-04  0:44 ` redi at gcc dot gnu.org
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: redi at gcc dot gnu.org @ 2012-07-03 11:03 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> 2012-07-03 11:02:52 UTC ---
I also saw this on x86_64-linux (gcc14 in the compile farm) ... not sure what's
going on.  In all cases it was a completely clean objdir.

Will investigate further tonight.


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug bootstrap/53832] [4.8 Regression] error: macro "ggc_alloc_cleared_lang_decl" passed 1 arguments, but takes just 0
  2012-07-02 22:49 [Bug bootstrap/53832] New: [4.8 Regression] error: macro "ggc_alloc_cleared_lang_decl" passed 1 arguments, but takes just 0 redi at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2012-07-03 11:03 ` redi at gcc dot gnu.org
@ 2012-07-04  0:44 ` redi at gcc dot gnu.org
  2012-07-15 17:14 ` gary at intrepid dot com
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: redi at gcc dot gnu.org @ 2012-07-04  0:44 UTC (permalink / raw)
  To: gcc-bugs

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

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID

--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> 2012-07-04 00:43:55 UTC ---
This seems to have been caused by using a sparse checkout from svn (using
--set-depth empty) to avoid having thousands of files from libjava and other
dirs I don't use.

After restoring most of the absent files I get a proper gtype-desc.h

The bit that matters seems to be gcc/ada, without that dir being present I get
a bad gtype-desc.h even though I'm using --enable-languages=c,c++


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug bootstrap/53832] [4.8 Regression] error: macro "ggc_alloc_cleared_lang_decl" passed 1 arguments, but takes just 0
  2012-07-02 22:49 [Bug bootstrap/53832] New: [4.8 Regression] error: macro "ggc_alloc_cleared_lang_decl" passed 1 arguments, but takes just 0 redi at gcc dot gnu.org
                   ` (3 preceding siblings ...)
  2012-07-04  0:44 ` redi at gcc dot gnu.org
@ 2012-07-15 17:14 ` gary at intrepid dot com
  2012-07-15 20:29 ` redi at gcc dot gnu.org
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: gary at intrepid dot com @ 2012-07-15 17:14 UTC (permalink / raw)
  To: gcc-bugs

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

Gary Funck <gary at intrepid dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |gary at intrepid dot com,
                   |                            |nenad at intrepid dot com

--- Comment #5 from Gary Funck <gary at intrepid dot com> 2012-07-15 17:13:51 UTC ---
(In reply to comment #4)
> This seems to have been caused by using a sparse checkout from svn (using
> --set-depth empty) to avoid having thousands of files from libjava and other
> dirs I don't use.
> 
> After restoring most of the absent files I get a proper gtype-desc.h
> 
> The bit that matters seems to be gcc/ada, without that dir being present I get
> a bad gtype-desc.h even though I'm using --enable-languages=c,c++

For GUPC, we build snapshots (and releases) that only have "C"+"C++"+"UPC". 
Recently, we have run into the failure documented in this bug report for
full bootstrap builds (which invoke the C++ compiler) and our truncated
source tree.  We merge almost weekly with the trunk, fyi.

I recall some time back some exchanges on the GCC list regarding the
difficulties
of releasing sub-parts of the GCC source tree, but don't recall the technical
details or the stated policy.

Our users run builds on some rather constrained machines, and for them the
extra 400MB of source may make a difference.

We can confirm that there is something in the 'ada' tree that fixes this build
failure.

Has a decision been made that sub-setting the GCC tree is unsupported?

Or ... perhaps this bug was marked as "RESOLVED INVALID" for a different
reason?

In any event, we would like to be able to continue to release sub-sets of the
GCC source tree if possible, and still run full bootstrap, etc. (note that
with --disable-bootstrap we don't see this failure).

Please advise.


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug bootstrap/53832] [4.8 Regression] error: macro "ggc_alloc_cleared_lang_decl" passed 1 arguments, but takes just 0
  2012-07-02 22:49 [Bug bootstrap/53832] New: [4.8 Regression] error: macro "ggc_alloc_cleared_lang_decl" passed 1 arguments, but takes just 0 redi at gcc dot gnu.org
                   ` (4 preceding siblings ...)
  2012-07-15 17:14 ` gary at intrepid dot com
@ 2012-07-15 20:29 ` redi at gcc dot gnu.org
  2012-07-19 23:29 ` redi at gcc dot gnu.org
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: redi at gcc dot gnu.org @ 2012-07-15 20:29 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #6 from Jonathan Wakely <redi at gcc dot gnu.org> 2012-07-15 20:29:06 UTC ---
I closed it as invalid simply because I found the (approximate) reason for the
failure, and it was caused by me doing something which I don't /believe/ is
required to work, though I would prefer if it did work, and you have a good
reason for wanting it to work too.

I brought it up on the mailing list:
http://gcc.gnu.org/ml/gcc/2012-07/msg00054.html

It's probably better to discuss it on the list initially, to see if there is
agreement that our use cases are valid, and support for fixing it.


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug bootstrap/53832] [4.8 Regression] error: macro "ggc_alloc_cleared_lang_decl" passed 1 arguments, but takes just 0
  2012-07-02 22:49 [Bug bootstrap/53832] New: [4.8 Regression] error: macro "ggc_alloc_cleared_lang_decl" passed 1 arguments, but takes just 0 redi at gcc dot gnu.org
                   ` (5 preceding siblings ...)
  2012-07-15 20:29 ` redi at gcc dot gnu.org
@ 2012-07-19 23:29 ` redi at gcc dot gnu.org
  2012-07-24 10:54 ` ubizjak at gmail dot com
  2012-07-24 10:56 ` nenad at intrepid dot com
  8 siblings, 0 replies; 10+ messages in thread
From: redi at gcc dot gnu.org @ 2012-07-19 23:29 UTC (permalink / raw)
  To: gcc-bugs

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

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
   Last reconfirmed|                            |2012-07-19
         Resolution|INVALID                     |
     Ever Confirmed|0                           |1

--- Comment #7 from Jonathan Wakely <redi at gcc dot gnu.org> 2012-07-19 23:29:39 UTC ---
I'm reopening this, unless a relevant maintainer says otherwise I think it's
reasonable to expect to be able to build the c and c++ front ends without the
ada sources


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug bootstrap/53832] [4.8 Regression] error: macro "ggc_alloc_cleared_lang_decl" passed 1 arguments, but takes just 0
  2012-07-02 22:49 [Bug bootstrap/53832] New: [4.8 Regression] error: macro "ggc_alloc_cleared_lang_decl" passed 1 arguments, but takes just 0 redi at gcc dot gnu.org
                   ` (6 preceding siblings ...)
  2012-07-19 23:29 ` redi at gcc dot gnu.org
@ 2012-07-24 10:54 ` ubizjak at gmail dot com
  2012-07-24 10:56 ` nenad at intrepid dot com
  8 siblings, 0 replies; 10+ messages in thread
From: ubizjak at gmail dot com @ 2012-07-24 10:54 UTC (permalink / raw)
  To: gcc-bugs

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

Uros Bizjak <ubizjak at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
                URL|                            |http://gcc.gnu.org/ml/gcc-p
                   |                            |atches/2012-07/msg01184.htm
                   |                            |l
         Resolution|                            |FIXED

--- Comment #8 from Uros Bizjak <ubizjak at gmail dot com> 2012-07-24 10:54:31 UTC ---
Fixed by [1].

[1] http://gcc.gnu.org/ml/gcc-patches/2012-07/msg01184.html


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug bootstrap/53832] [4.8 Regression] error: macro "ggc_alloc_cleared_lang_decl" passed 1 arguments, but takes just 0
  2012-07-02 22:49 [Bug bootstrap/53832] New: [4.8 Regression] error: macro "ggc_alloc_cleared_lang_decl" passed 1 arguments, but takes just 0 redi at gcc dot gnu.org
                   ` (7 preceding siblings ...)
  2012-07-24 10:54 ` ubizjak at gmail dot com
@ 2012-07-24 10:56 ` nenad at intrepid dot com
  8 siblings, 0 replies; 10+ messages in thread
From: nenad at intrepid dot com @ 2012-07-24 10:56 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #9 from Nenad Vukicevic <nenad at intrepid dot com> 2012-07-24 10:55:47 UTC ---
I received your e-mail and will reply when I'm back in the office
after July 30, 2012.
Thanks, Nenad


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2012-07-24 10:56 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-07-02 22:49 [Bug bootstrap/53832] New: [4.8 Regression] error: macro "ggc_alloc_cleared_lang_decl" passed 1 arguments, but takes just 0 redi at gcc dot gnu.org
2012-07-02 23:03 ` [Bug bootstrap/53832] " redi at gcc dot gnu.org
2012-07-03 10:21 ` rguenth at gcc dot gnu.org
2012-07-03 11:03 ` redi at gcc dot gnu.org
2012-07-04  0:44 ` redi at gcc dot gnu.org
2012-07-15 17:14 ` gary at intrepid dot com
2012-07-15 20:29 ` redi at gcc dot gnu.org
2012-07-19 23:29 ` redi at gcc dot gnu.org
2012-07-24 10:54 ` ubizjak at gmail dot com
2012-07-24 10:56 ` nenad at intrepid dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).