public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/31957]  New: Build of compiler fails with 'error: #endif without #if'
@ 2007-05-16 15:08 joerg dot richter at pdv-fs dot de
  2007-05-30  8:47 ` [Bug libstdc++/31957] " joerg dot richter at pdv-fs dot de
                   ` (14 more replies)
  0 siblings, 15 replies; 16+ messages in thread
From: joerg dot richter at pdv-fs dot de @ 2007-05-16 15:08 UTC (permalink / raw)
  To: gcc-bugs

$ configure --enable-languages=c,c++ --with-ld=/bin/ld --with-as=/bin/as
$ make

leads to:

In file included from
.../obj/powerpc-ibm-aix5.2.0.0/libstdc++-v3/include/cctype:50,
                 from
.../gcc-4.2.0/libstdc++-v3/include/precompiled/stdc++.h:38:
.../obj/powerpc-ibm-aix5.2.0.0/libstdc++-v3/include/powerpc-ibm-aix5.2.0.0/bits/c++config.h:1087:2:
error: #endif without #if

While doing:
make[4]: Entering directory
`/pdv/.ws/jrichter/gcc420/obj/powerpc-ibm-aix5.2.0.0/libstdc++-v3/include'
sed: 0602-429 No editing script was provided.
Usage:  sed [-n] Script [File ...]
        sed [-n] [-e Script] ... [-f Script_file] ... [File ...]
if [ ! -d "./powerpc-ibm-aix5.2.0.0/bits/stdc++.h.gch" ]; then \
  mkdir -p ./powerpc-ibm-aix5.2.0.0/bits/stdc++.h.gch; \
fi; \
/ws/jrichter/gcc420/obj/./gcc/xgcc -shared-libgcc
-B/ws/jrichter/gcc420/obj/./gcc -nostdinc++
-L/ws/jrichter/gcc420/obj/powerpc-ibm-aix5.2.0.0/libstdc++-v3/src
-L/ws/jrichter/gcc420/obj/powerpc-ibm-aix5.2.0.0/libstdc++-v3/src/.libs
-B/usr/local/powerpc-ibm-aix5.2.0.0/bin/
-B/usr/local/powerpc-ibm-aix5.2.0.0/lib/ -isystem
/usr/local/powerpc-ibm-aix5.2.0.0/include -isystem
/usr/local/powerpc-ibm-aix5.2.0.0/sys-include -Winvalid-pch -Wno-deprecated -x
c++-header -g -O2 
-I/ws/jrichter/gcc420/obj/powerpc-ibm-aix5.2.0.0/libstdc++-v3/include/powerpc-ibm-aix5.2.0.0
-I/ws/jrichter/gcc420/obj/powerpc-ibm-aix5.2.0.0/libstdc++-v3/include
-I/ws/jrichter/gcc420/gcc-4.2.0/libstdc++-v3/libsupc++ -O0 -g
/ws/jrichter/gcc420/gcc-4.2.0/libstdc++-v3/include/precompiled/stdc++.h -o
powerpc-ibm-aix5.2.0.0/bits/stdc++.h.gch/O0g.gch


the file
.../powerpc-ibm-aix5.2.0.0/libstdc++-v3/include/powerpc-ibm-aix5.2.0.0/bits/c++config.h
has as the last line:
   #endif // _CXXCONFIG_
but no corresponding #ifndef/#define lines of his header guard


-- 
           Summary: Build of compiler fails with 'error: #endif without #if'
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: bootstrap
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: joerg dot richter at pdv-fs dot de
 GCC build triplet: powerpc-ibm-aix5.2.0.0
  GCC host triplet: powerpc-ibm-aix5.2.0.0
GCC target triplet: powerpc-ibm-aix5.2.0.0


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


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

* [Bug libstdc++/31957] Build of compiler fails with 'error: #endif without #if'
  2007-05-16 15:08 [Bug bootstrap/31957] New: Build of compiler fails with 'error: #endif without #if' joerg dot richter at pdv-fs dot de
@ 2007-05-30  8:47 ` joerg dot richter at pdv-fs dot de
  2007-06-07  9:55 ` bkoz at gcc dot gnu dot org
                   ` (13 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: joerg dot richter at pdv-fs dot de @ 2007-05-30  8:47 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from joerg dot richter at pdv-fs dot de  2007-05-30 08:47 -------
AIX/sed doesn't allow sed -e ''.  
Can't currently attach patches.  Here is it inline:


--- libstdc++-v3/include/Makefile.in.old        2007-05-30 10:03:19.000000000
+0200
+++ libstdc++-v3/include/Makefile.in    2007-05-30 10:06:03.000000000 +0200
@@ -1372,7 +1372,7 @@
        @date=`cat ${toplevel_srcdir}/gcc/DATESTAMP` ;\
        nsa_version=`cat stamp-namespace-version` ;\
        visibility=`cat stamp-visibility` ;\
-       ldbl_compat='' ;\
+       ldbl_compat='s,g,g,g' ;\
        grep "^[        ]*#[    ]*define[       ][     
]*_GLIBCXX_LONG_DOUBLE_COMPAT[  ][      ]*1[    ]*$$" \
        ${CONFIG_HEADER} > /dev/null 2>&1 \
        && ldbl_compat='s,^#undef _GLIBCXX_LONG_DOUBLE_COMPAT$$,#define
_GLIBCXX_LONG_DOUBLE_COMPAT 1,' ;\


-- 

joerg dot richter at pdv-fs dot de changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|bootstrap                   |libstdc++


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


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

* [Bug libstdc++/31957] Build of compiler fails with 'error: #endif without #if'
  2007-05-16 15:08 [Bug bootstrap/31957] New: Build of compiler fails with 'error: #endif without #if' joerg dot richter at pdv-fs dot de
  2007-05-30  8:47 ` [Bug libstdc++/31957] " joerg dot richter at pdv-fs dot de
@ 2007-06-07  9:55 ` bkoz at gcc dot gnu dot org
  2007-06-07 10:04 ` joerg dot richter at pdv-fs dot de
                   ` (12 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: bkoz at gcc dot gnu dot org @ 2007-06-07  9:55 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from bkoz at gcc dot gnu dot org  2007-06-07 09:55 -------

How is it that this tester can build on this target, and not you?

http://gcc.gnu.org/ml/gcc-testresults/2007-06/msg00309.html

I don't see a mention of AIX limitations for sed here:
http://gcc.gnu.org/install/specific.html#x-ibm-aix

-benjamin


-- 


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


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

* [Bug libstdc++/31957] Build of compiler fails with 'error: #endif without #if'
  2007-05-16 15:08 [Bug bootstrap/31957] New: Build of compiler fails with 'error: #endif without #if' joerg dot richter at pdv-fs dot de
  2007-05-30  8:47 ` [Bug libstdc++/31957] " joerg dot richter at pdv-fs dot de
  2007-06-07  9:55 ` bkoz at gcc dot gnu dot org
@ 2007-06-07 10:04 ` joerg dot richter at pdv-fs dot de
  2007-07-04 19:49 ` joerg dot richter at pdv-fs dot de
                   ` (11 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: joerg dot richter at pdv-fs dot de @ 2007-06-07 10:04 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from joerg dot richter at pdv-fs dot de  2007-06-07 10:03 -------
Well,

$ which sed
/usr/bin/sed

$ /usr/bin/sed -e ''
sed: 0602-429 No editing script was provided.
Usage:  sed [-n] Script [File ...]
        sed [-n] [-e Script] ... [-f Script_file] ... [File ...]

Can it be that everyone else is using GNU-sed?


-- 


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


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

* [Bug libstdc++/31957] Build of compiler fails with 'error: #endif without #if'
  2007-05-16 15:08 [Bug bootstrap/31957] New: Build of compiler fails with 'error: #endif without #if' joerg dot richter at pdv-fs dot de
                   ` (2 preceding siblings ...)
  2007-06-07 10:04 ` joerg dot richter at pdv-fs dot de
@ 2007-07-04 19:49 ` joerg dot richter at pdv-fs dot de
  2007-07-04 20:39 ` pcarlini at suse dot de
                   ` (10 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: joerg dot richter at pdv-fs dot de @ 2007-07-04 19:49 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from joerg dot richter at pdv-fs dot de  2007-07-04 19:48 -------
Any chance that this gets fixed with 4.2.1? This is the only thing on AIX that
prevents an unpatched bootstrap.
Or perhaps its only missing documentation that GNU sed must be used.


-- 


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


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

* [Bug libstdc++/31957] Build of compiler fails with 'error: #endif without #if'
  2007-05-16 15:08 [Bug bootstrap/31957] New: Build of compiler fails with 'error: #endif without #if' joerg dot richter at pdv-fs dot de
                   ` (3 preceding siblings ...)
  2007-07-04 19:49 ` joerg dot richter at pdv-fs dot de
@ 2007-07-04 20:39 ` pcarlini at suse dot de
  2007-07-04 23:24 ` dje at gcc dot gnu dot org
                   ` (9 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: pcarlini at suse dot de @ 2007-07-04 20:39 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from pcarlini at suse dot de  2007-07-04 20:39 -------
David, can you have a quick look at this issue? Thanks.


-- 

pcarlini at suse dot de changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dje at watson dot ibm dot
                   |                            |com


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


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

* [Bug libstdc++/31957] Build of compiler fails with 'error: #endif without #if'
  2007-05-16 15:08 [Bug bootstrap/31957] New: Build of compiler fails with 'error: #endif without #if' joerg dot richter at pdv-fs dot de
                   ` (4 preceding siblings ...)
  2007-07-04 20:39 ` pcarlini at suse dot de
@ 2007-07-04 23:24 ` dje at gcc dot gnu dot org
  2007-07-05 10:27 ` bonzini at gnu dot org
                   ` (8 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: dje at gcc dot gnu dot org @ 2007-07-04 23:24 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from dje at gcc dot gnu dot org  2007-07-04 23:24 -------
I use GNU Sed.  If we need to add that as a requirement, so be it.


-- 


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


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

* [Bug libstdc++/31957] Build of compiler fails with 'error: #endif without #if'
  2007-05-16 15:08 [Bug bootstrap/31957] New: Build of compiler fails with 'error: #endif without #if' joerg dot richter at pdv-fs dot de
                   ` (5 preceding siblings ...)
  2007-07-04 23:24 ` dje at gcc dot gnu dot org
@ 2007-07-05 10:27 ` bonzini at gnu dot org
  2007-07-05 10:55 ` pcarlini at suse dot de
                   ` (7 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: bonzini at gnu dot org @ 2007-07-05 10:27 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from bonzini at gnu dot org  2007-07-05 10:27 -------
Using "s,g,g," or "s,^,," or even "b" as the default sed command doesn't seem
to bad to me.


-- 

bonzini at gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bonzini at gnu dot org
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2007-07-05 10:27:20
               date|                            |


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


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

* [Bug libstdc++/31957] Build of compiler fails with 'error: #endif without #if'
  2007-05-16 15:08 [Bug bootstrap/31957] New: Build of compiler fails with 'error: #endif without #if' joerg dot richter at pdv-fs dot de
                   ` (6 preceding siblings ...)
  2007-07-05 10:27 ` bonzini at gnu dot org
@ 2007-07-05 10:55 ` pcarlini at suse dot de
  2007-07-05 11:01 ` joerg dot richter at pdv-fs dot de
                   ` (6 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: pcarlini at suse dot de @ 2007-07-05 10:55 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from pcarlini at suse dot de  2007-07-05 10:54 -------
Thanks David and Paolo. Ok, I'm sanity checking 's,g,g,' on linux...


-- 


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


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

* [Bug libstdc++/31957] Build of compiler fails with 'error: #endif without #if'
  2007-05-16 15:08 [Bug bootstrap/31957] New: Build of compiler fails with 'error: #endif without #if' joerg dot richter at pdv-fs dot de
                   ` (7 preceding siblings ...)
  2007-07-05 10:55 ` pcarlini at suse dot de
@ 2007-07-05 11:01 ` joerg dot richter at pdv-fs dot de
  2007-07-05 11:04 ` pcarlini at suse dot de
                   ` (5 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: joerg dot richter at pdv-fs dot de @ 2007-07-05 11:01 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #9 from joerg dot richter at pdv-fs dot de  2007-07-05 11:00 -------
I think the last g in 's,g,g,g' is the important one.


-- 


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


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

* [Bug libstdc++/31957] Build of compiler fails with 'error: #endif without #if'
  2007-05-16 15:08 [Bug bootstrap/31957] New: Build of compiler fails with 'error: #endif without #if' joerg dot richter at pdv-fs dot de
                   ` (8 preceding siblings ...)
  2007-07-05 11:01 ` joerg dot richter at pdv-fs dot de
@ 2007-07-05 11:04 ` pcarlini at suse dot de
  2007-07-05 11:13 ` bonzini at gnu dot org
                   ` (4 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: pcarlini at suse dot de @ 2007-07-05 11:04 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #10 from pcarlini at suse dot de  2007-07-05 11:04 -------
It isn't, as explained by Paolo off-line (by the way Paolo maintains GNU sed),
essentially the same string is used in other projects to work around that AIX
problem.


-- 


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


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

* [Bug libstdc++/31957] Build of compiler fails with 'error: #endif without #if'
  2007-05-16 15:08 [Bug bootstrap/31957] New: Build of compiler fails with 'error: #endif without #if' joerg dot richter at pdv-fs dot de
                   ` (9 preceding siblings ...)
  2007-07-05 11:04 ` pcarlini at suse dot de
@ 2007-07-05 11:13 ` bonzini at gnu dot org
  2007-07-05 11:17 ` joerg dot richter at pdv-fs dot de
                   ` (3 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: bonzini at gnu dot org @ 2007-07-05 11:13 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #11 from bonzini at gnu dot org  2007-07-05 11:13 -------
Actually any no-op command would do, I think even "b" would be ok unless it
triggers other bugs.  In particular, replacing one g with a g, or all g's with
g's, should not matter. :-)


-- 


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


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

* [Bug libstdc++/31957] Build of compiler fails with 'error: #endif without #if'
  2007-05-16 15:08 [Bug bootstrap/31957] New: Build of compiler fails with 'error: #endif without #if' joerg dot richter at pdv-fs dot de
                   ` (10 preceding siblings ...)
  2007-07-05 11:13 ` bonzini at gnu dot org
@ 2007-07-05 11:17 ` joerg dot richter at pdv-fs dot de
  2007-07-05 11:45 ` paolo at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: joerg dot richter at pdv-fs dot de @ 2007-07-05 11:17 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #12 from joerg dot richter at pdv-fs dot de  2007-07-05 11:17 -------
Of course, you are right. :)

Just want to confirm, that all "s,g,g," and "s,^,," and "b" seem to work fine
with AIX-sed.


-- 


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


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

* [Bug libstdc++/31957] Build of compiler fails with 'error: #endif without #if'
  2007-05-16 15:08 [Bug bootstrap/31957] New: Build of compiler fails with 'error: #endif without #if' joerg dot richter at pdv-fs dot de
                   ` (11 preceding siblings ...)
  2007-07-05 11:17 ` joerg dot richter at pdv-fs dot de
@ 2007-07-05 11:45 ` paolo at gcc dot gnu dot org
  2007-07-05 11:46 ` paolo at gcc dot gnu dot org
  2007-07-05 11:47 ` pcarlini at suse dot de
  14 siblings, 0 replies; 16+ messages in thread
From: paolo at gcc dot gnu dot org @ 2007-07-05 11:45 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #13 from paolo at gcc dot gnu dot org  2007-07-05 11:45 -------
Subject: Bug 31957

Author: paolo
Date: Thu Jul  5 11:45:24 2007
New Revision: 126362

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=126362
Log:
2007-07-05  Joerg Richter  <joerg.richter@pdv-fs.de>

        PR libstdc++/31957
        * include/Makefile.am: Work around an AIX sed oddity.
        * include/Makefile.in: Regenerate.

Modified:
    trunk/libstdc++-v3/ChangeLog
    trunk/libstdc++-v3/include/Makefile.am
    trunk/libstdc++-v3/include/Makefile.in


-- 


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


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

* [Bug libstdc++/31957] Build of compiler fails with 'error: #endif without #if'
  2007-05-16 15:08 [Bug bootstrap/31957] New: Build of compiler fails with 'error: #endif without #if' joerg dot richter at pdv-fs dot de
                   ` (12 preceding siblings ...)
  2007-07-05 11:45 ` paolo at gcc dot gnu dot org
@ 2007-07-05 11:46 ` paolo at gcc dot gnu dot org
  2007-07-05 11:47 ` pcarlini at suse dot de
  14 siblings, 0 replies; 16+ messages in thread
From: paolo at gcc dot gnu dot org @ 2007-07-05 11:46 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #14 from paolo at gcc dot gnu dot org  2007-07-05 11:46 -------
Subject: Bug 31957

Author: paolo
Date: Thu Jul  5 11:46:00 2007
New Revision: 126363

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=126363
Log:
2007-07-05  Joerg Richter  <joerg.richter@pdv-fs.de>

        PR libstdc++/31957
        * include/Makefile.am: Work around an AIX sed oddity.
        * include/Makefile.in: Regenerate.

Modified:
    branches/gcc-4_2-branch/libstdc++-v3/ChangeLog
    branches/gcc-4_2-branch/libstdc++-v3/include/Makefile.am
    branches/gcc-4_2-branch/libstdc++-v3/include/Makefile.in


-- 


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


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

* [Bug libstdc++/31957] Build of compiler fails with 'error: #endif without #if'
  2007-05-16 15:08 [Bug bootstrap/31957] New: Build of compiler fails with 'error: #endif without #if' joerg dot richter at pdv-fs dot de
                   ` (13 preceding siblings ...)
  2007-07-05 11:46 ` paolo at gcc dot gnu dot org
@ 2007-07-05 11:47 ` pcarlini at suse dot de
  14 siblings, 0 replies; 16+ messages in thread
From: pcarlini at suse dot de @ 2007-07-05 11:47 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #15 from pcarlini at suse dot de  2007-07-05 11:46 -------
Fixed for 4.2.1.


-- 

pcarlini at suse dot de changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |4.2.1


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


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

end of thread, other threads:[~2007-07-05 11:47 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-05-16 15:08 [Bug bootstrap/31957] New: Build of compiler fails with 'error: #endif without #if' joerg dot richter at pdv-fs dot de
2007-05-30  8:47 ` [Bug libstdc++/31957] " joerg dot richter at pdv-fs dot de
2007-06-07  9:55 ` bkoz at gcc dot gnu dot org
2007-06-07 10:04 ` joerg dot richter at pdv-fs dot de
2007-07-04 19:49 ` joerg dot richter at pdv-fs dot de
2007-07-04 20:39 ` pcarlini at suse dot de
2007-07-04 23:24 ` dje at gcc dot gnu dot org
2007-07-05 10:27 ` bonzini at gnu dot org
2007-07-05 10:55 ` pcarlini at suse dot de
2007-07-05 11:01 ` joerg dot richter at pdv-fs dot de
2007-07-05 11:04 ` pcarlini at suse dot de
2007-07-05 11:13 ` bonzini at gnu dot org
2007-07-05 11:17 ` joerg dot richter at pdv-fs dot de
2007-07-05 11:45 ` paolo at gcc dot gnu dot org
2007-07-05 11:46 ` paolo at gcc dot gnu dot org
2007-07-05 11:47 ` pcarlini at suse dot de

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).