public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/39835]  New: Bootstrap failure: libstdc++-v3/include/bits/random.h:3630: error: expected â,â or â...â before numeric constant
@ 2009-04-21 10:19 ubizjak at gmail dot com
  2009-04-21 10:33 ` [Bug libstdc++/39835] " ubizjak at gmail dot com
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: ubizjak at gmail dot com @ 2009-04-21 10:19 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 4415 bytes --]

Bootstrap on alpha fails in libstdc++ with:

/home/uros/gcc-build/./gcc/xgcc -shared-libgcc -B/home/uros/gcc-build/./gcc
-nostdinc++ -L/home/uros/gcc-build/alphaev56-unknown-linux-gnu/libstdc++-v3/src
-L/home/uros/gcc-build/alphaev56-unknown-linux-gnu/libstdc++-v3/src/.libs
-B/usr/local/alphaev56-unknown-linux-gnu/bin/
-B/usr/local/alphaev56-unknown-linux-gnu/lib/ -isystem
/usr/local/alphaev56-unknown-linux-gnu/include -isystem
/usr/local/alphaev56-unknown-linux-gnu/sys-include -Winvalid-pch -x c++-header
-g -O2   -D_GNU_SOURCE -mieee  
-I/home/uros/gcc-build/alphaev56-unknown-linux-gnu/libstdc++-v3/include/alphaev56-unknown-linux-gnu
-I/home/uros/gcc-build/alphaev56-unknown-linux-gnu/libstdc++-v3/include
-I/home/uros/gcc-svn/gcc/libstdc++-v3/libsupc++ -O2 -g -std=gnu++0x
/home/uros/gcc-svn/gcc/libstdc++-v3/include/precompiled/stdc++.h \
        -o alphaev56-unknown-linux-gnu/bits/stdc++.h.gch/O2ggnu++0x.gch
In file included from
/home/uros/gcc-build/alphaev56-unknown-linux-gnu/libstdc++-v3/include/random:50,
                 from
/home/uros/gcc-svn/gcc/libstdc++-v3/include/precompiled/stdc++.h:102:
/home/uros/gcc-build/alphaev56-unknown-linux-gnu/libstdc++-v3/include/bits/random.h:3630:
error: expected â,â or â...â before numeric constant
/home/uros/gcc-build/alphaev56-unknown-linux-gnu/libstdc++-v3/include/bits/random.h:3663:
error: expected â,â or â...â before numeric constant
/home/uros/gcc-build/alphaev56-unknown-linux-gnu/libstdc++-v3/include/bits/random.h:
In constructor
âstd::gamma_distribution<_RealType>::param_type::param_type(_RealType)â:
/home/uros/gcc-build/alphaev56-unknown-linux-gnu/libstdc++-v3/include/bits/random.h:3632:
error: â__betaâ was not declared in this scope
/home/uros/gcc-build/alphaev56-unknown-linux-gnu/libstdc++-v3/include/bits/random.h:
In constructor
âstd::gamma_distribution<_RealType>::gamma_distribution(_RealType)â:
/home/uros/gcc-build/alphaev56-unknown-linux-gnu/libstdc++-v3/include/bits/random.h:3665:
error: â__betaâ was not declared in this scope
In file included from
/home/uros/gcc-build/alphaev56-unknown-linux-gnu/libstdc++-v3/include/random:53,
                 from
/home/uros/gcc-svn/gcc/libstdc++-v3/include/precompiled/stdc++.h:102:
/home/uros/gcc-build/alphaev56-unknown-linux-gnu/libstdc++-v3/include/bits/random.tcc:
In member function âresult_type
std::gamma_distribution<_RealType>::operator()(_UniformRandomNumberGenerator&,
const std::gamma_distribution<_RealType>::param_type&)â:
/home/uros/gcc-build/alphaev56-unknown-linux-gnu/libstdc++-v3/include/bits/random.tcc:1924:
error: expected unqualified-id before numeric constant
/home/uros/gcc-build/alphaev56-unknown-linux-gnu/libstdc++-v3/include/bits/random.tcc:
In function âstd::basic_istream<_CharT, _Traits>&
std::operator>>(std::basic_istream<_CharT, _Traits>&,
std::gamma_distribution<_RealType>&)â:
/home/uros/gcc-build/alphaev56-unknown-linux-gnu/libstdc++-v3/include/bits/random.tcc:2008:
error: expected unqualified-id before numeric constant
/home/uros/gcc-build/alphaev56-unknown-linux-gnu/libstdc++-v3/include/bits/random.tcc:2009:
error: â__betaâ was not declared in this scope
make[4]: *** [alphaev56-unknown-linux-gnu/bits/stdc++.h.gch/O2ggnu++0x.gch]
Erreur 1
make[4]: quittant le répertoire «
/home/uros/gcc-build/alphaev56-unknown-linux-gnu/libstdc++-v3/include »
make[3]: *** [all-recursive] Erreur 1
make[3]: quittant le répertoire «
/home/uros/gcc-build/alphaev56-unknown-linux-gnu/libstdc++-v3 »
make[2]: *** [all] Erreur 2
make[2]: quittant le répertoire «
/home/uros/gcc-build/alphaev56-unknown-linux-gnu/libstdc++-v3 »
make[1]: *** [all-target-libstdc++-v3] Erreur 2
make[1]: quittant le répertoire « /home/uros/gcc-build »
make: *** [all] Erreur 2


-- 
           Summary: Bootstrap failure: libstdc++-
                    v3/include/bits/random.h:3630: error: expected â,â or
                    â...â before numeric constant
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: ubizjak at gmail dot com
 GCC build triplet: alphaev56-unknown-linux-gnu
  GCC host triplet: alphaev56-unknown-linux-gnu
GCC target triplet: alphaev56-unknown-linux-gnu


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


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

* [Bug libstdc++/39835] Bootstrap failure: libstdc++-v3/include/bits/random.h:3630: error: expected â,â or â...â before numeric constant
  2009-04-21 10:19 [Bug libstdc++/39835] New: Bootstrap failure: libstdc++-v3/include/bits/random.h:3630: error: expected â,â or â...â before numeric constant ubizjak at gmail dot com
@ 2009-04-21 10:33 ` ubizjak at gmail dot com
  2009-04-21 11:15 ` paolo dot carlini at oracle dot com
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: ubizjak at gmail dot com @ 2009-04-21 10:33 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from ubizjak at gmail dot com  2009-04-21 10:33 -------
We have a symbol name clash:

This is from libstdc++:

        explicit
        param_type(_RealType __alpha = _RealType(1),
                   _RealType __beta = _RealType(1))
        : _M_alpha(__alpha), _M_beta(__beta)

And this from alpha config:

#define TARGET_CPU_CPP_BUILTINS()                       \
  do                                                    \
    {                                                   \
        builtin_define ("__alpha");                     \
        builtin_define ("__alpha__");                   \

Can libstdc++ define symbol name to something else instead of __alpha?


-- 


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


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

* [Bug libstdc++/39835] Bootstrap failure: libstdc++-v3/include/bits/random.h:3630: error: expected â,â or â...â before numeric constant
  2009-04-21 10:19 [Bug libstdc++/39835] New: Bootstrap failure: libstdc++-v3/include/bits/random.h:3630: error: expected â,â or â...â before numeric constant ubizjak at gmail dot com
  2009-04-21 10:33 ` [Bug libstdc++/39835] " ubizjak at gmail dot com
@ 2009-04-21 11:15 ` paolo dot carlini at oracle dot com
  2009-04-21 11:43 ` paolo at gcc dot gnu dot org
  2009-04-21 11:44 ` paolo dot carlini at oracle dot com
  3 siblings, 0 replies; 5+ messages in thread
From: paolo dot carlini at oracle dot com @ 2009-04-21 11:15 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from paolo dot carlini at oracle dot com  2009-04-21 11:15 -------
Sure, this is an annoying recurring issue, I'll fix it momentarily.


-- 

paolo dot carlini at oracle dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |paolo dot carlini at oracle
                   |dot org                     |dot com
             Status|UNCONFIRMED                 |ASSIGNED
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2009-04-21 11:15:00
               date|                            |


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


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

* [Bug libstdc++/39835] Bootstrap failure: libstdc++-v3/include/bits/random.h:3630: error: expected â,â or â...â before numeric constant
  2009-04-21 10:19 [Bug libstdc++/39835] New: Bootstrap failure: libstdc++-v3/include/bits/random.h:3630: error: expected â,â or â...â before numeric constant ubizjak at gmail dot com
  2009-04-21 10:33 ` [Bug libstdc++/39835] " ubizjak at gmail dot com
  2009-04-21 11:15 ` paolo dot carlini at oracle dot com
@ 2009-04-21 11:43 ` paolo at gcc dot gnu dot org
  2009-04-21 11:44 ` paolo dot carlini at oracle dot com
  3 siblings, 0 replies; 5+ messages in thread
From: paolo at gcc dot gnu dot org @ 2009-04-21 11:43 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from paolo at gcc dot gnu dot org  2009-04-21 11:43 -------
Subject: Bug 39835

Author: paolo
Date: Tue Apr 21 11:42:51 2009
New Revision: 146516

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=146516
Log:
2009-04-21  Paolo Carlini  <paolo.carlini@oracle.com>

        PR libstdc++/39835
        * include/bits/random.h: Avoid the badname __alpha (and, for
        consistency, __beta too).
        * include/bits/random.tcc: Likewise.

Modified:
    trunk/libstdc++-v3/ChangeLog
    trunk/libstdc++-v3/include/bits/random.h
    trunk/libstdc++-v3/include/bits/random.tcc


-- 


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


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

* [Bug libstdc++/39835] Bootstrap failure: libstdc++-v3/include/bits/random.h:3630: error: expected â,â or â...â before numeric constant
  2009-04-21 10:19 [Bug libstdc++/39835] New: Bootstrap failure: libstdc++-v3/include/bits/random.h:3630: error: expected â,â or â...â before numeric constant ubizjak at gmail dot com
                   ` (2 preceding siblings ...)
  2009-04-21 11:43 ` paolo at gcc dot gnu dot org
@ 2009-04-21 11:44 ` paolo dot carlini at oracle dot com
  3 siblings, 0 replies; 5+ messages in thread
From: paolo dot carlini at oracle dot com @ 2009-04-21 11:44 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from paolo dot carlini at oracle dot com  2009-04-21 11:44 -------
Fixed.


-- 

paolo dot carlini at oracle dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |4.5.0


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


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

end of thread, other threads:[~2009-04-21 11:44 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-04-21 10:19 [Bug libstdc++/39835] New: Bootstrap failure: libstdc++-v3/include/bits/random.h:3630: error: expected â,â or â...â before numeric constant ubizjak at gmail dot com
2009-04-21 10:33 ` [Bug libstdc++/39835] " ubizjak at gmail dot com
2009-04-21 11:15 ` paolo dot carlini at oracle dot com
2009-04-21 11:43 ` paolo at gcc dot gnu dot org
2009-04-21 11:44 ` paolo dot carlini at oracle 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).