public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug math/13741] New: Compilation fail with g++ 3.3.6 with option -ffast-math due to undefined macros __extern_always_inline
@ 2012-02-24  9:40 uleysky at gmail dot com
  2012-02-24  9:44 ` [Bug math/13741] " polacek at redhat dot com
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: uleysky at gmail dot com @ 2012-02-24  9:40 UTC (permalink / raw)
  To: glibc-bugs

http://sourceware.org/bugzilla/show_bug.cgi?id=13741

             Bug #: 13741
           Summary: Compilation fail with g++ 3.3.6 with option
                    -ffast-math due to undefined macros
                    __extern_always_inline
           Product: glibc
           Version: 2.15
            Status: NEW
          Severity: minor
          Priority: P2
         Component: math
        AssignedTo: unassigned@sourceware.org
        ReportedBy: uleysky@gmail.com
                CC: aj@suse.de
    Classification: Unclassified


Very simple testcase test.cpp
#include <math.h>
int main() { return 0; }

g++-3.3.6 -o t -ffast-math test.cpp
In file included from /usr/include/math.h:424,
                 from test.cpp:1:
/usr/include/bits/math-finite.h:177: error: syntax error before `double'
/usr/include/bits/math-finite.h:186: error: syntax error before `float'
/usr/include/bits/math-finite.h:196: error: syntax error before `long'
/usr/include/bits/math-finite.h:210: error: syntax error before `double'
/usr/include/bits/math-finite.h:219: error: syntax error before `float'
/usr/include/bits/math-finite.h:229: error: syntax error before `long'
/usr/include/bits/math-finite.h:307: error: syntax error before `double'
/usr/include/bits/math-finite.h:310: error: `__d' was not declared in this 
   scope
/usr/include/bits/math-finite.h:310: error: `__local_signgam' was not declared 
   in this scope
/usr/include/bits/math-finite.h:311: error: syntax error before `return'
/usr/include/bits/math-finite.h:314: error: syntax error before `float'
/usr/include/bits/math-finite.h:317: error: conflicting types for `float __res'
/usr/include/bits/math-finite.h:310: error: previous declaration as `double 
   __res'
/usr/include/bits/math-finite.h:317: error: `__d' was not declared in this 
   scope
/usr/include/bits/math-finite.h:317: error: `__local_signgam' was not declared 
   in this scope
/usr/include/bits/math-finite.h:318: error: syntax error before `return'
/usr/include/bits/math-finite.h:322: error: syntax error before `long'
/usr/include/bits/math-finite.h:325: error: conflicting types for `long double 
   __res'
/usr/include/bits/math-finite.h:317: error: previous declaration as `float 
   __res'
/usr/include/bits/math-finite.h:325: error: `__d' was not declared in this 
   scope
/usr/include/bits/math-finite.h:325: error: `__local_signgam' was not declared 
   in this scope
/usr/include/bits/math-finite.h:326: error: syntax error before `return'

The root of problem is simple: in this case macros __extern_always_inline not
defined. Also, the problem is observed only with g++, not gcc.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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

* [Bug math/13741] Compilation fail with g++ 3.3.6 with option -ffast-math due to undefined macros __extern_always_inline
  2012-02-24  9:40 [Bug math/13741] New: Compilation fail with g++ 3.3.6 with option -ffast-math due to undefined macros __extern_always_inline uleysky at gmail dot com
@ 2012-02-24  9:44 ` polacek at redhat dot com
  2012-02-24  9:53 ` jakub at redhat dot com
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: polacek at redhat dot com @ 2012-02-24  9:44 UTC (permalink / raw)
  To: glibc-bugs

http://sourceware.org/bugzilla/show_bug.cgi?id=13741

Marek Polacek <polacek at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |polacek at redhat dot com
         Resolution|                            |INVALID

--- Comment #1 from Marek Polacek <polacek at redhat dot com> 2012-02-24 09:44:18 UTC ---
Please use newer version of g++.  The 3.3.6 version is now deprecated.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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

* [Bug math/13741] Compilation fail with g++ 3.3.6 with option -ffast-math due to undefined macros __extern_always_inline
  2012-02-24  9:40 [Bug math/13741] New: Compilation fail with g++ 3.3.6 with option -ffast-math due to undefined macros __extern_always_inline uleysky at gmail dot com
  2012-02-24  9:44 ` [Bug math/13741] " polacek at redhat dot com
@ 2012-02-24  9:53 ` jakub at redhat dot com
  2012-03-02  1:04 ` jsm28 at gcc dot gnu.org
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: jakub at redhat dot com @ 2012-02-24  9:53 UTC (permalink / raw)
  To: glibc-bugs

http://sourceware.org/bugzilla/show_bug.cgi?id=13741

Jakub Jelinek <jakub at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
                 CC|                            |jakub at redhat dot com
         Resolution|INVALID                     |

--- Comment #2 from Jakub Jelinek <jakub at redhat dot com> 2012-02-24 09:52:23 UTC ---
Actually that is not the case.  GCC 3.3.6 isn't supported for building of glibc
itself, still, compiling with GCC 3.3.6 your own programs against glibc headers
and linking against it is supported.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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

* [Bug math/13741] Compilation fail with g++ 3.3.6 with option -ffast-math due to undefined macros __extern_always_inline
  2012-02-24  9:40 [Bug math/13741] New: Compilation fail with g++ 3.3.6 with option -ffast-math due to undefined macros __extern_always_inline uleysky at gmail dot com
  2012-02-24  9:44 ` [Bug math/13741] " polacek at redhat dot com
  2012-02-24  9:53 ` jakub at redhat dot com
@ 2012-03-02  1:04 ` jsm28 at gcc dot gnu.org
  2012-08-31 10:47 ` polacek at redhat dot com
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: jsm28 at gcc dot gnu.org @ 2012-03-02  1:04 UTC (permalink / raw)
  To: glibc-bugs

http://sourceware.org/bugzilla/show_bug.cgi?id=13741

--- Comment #3 from Joseph Myers <jsm28 at gcc dot gnu.org> 2012-03-02 01:03:50 UTC ---
Conditioning these definitions on __extern_always_inline being defined is
probably the appropriate fix.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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

* [Bug math/13741] Compilation fail with g++ 3.3.6 with option -ffast-math due to undefined macros __extern_always_inline
  2012-02-24  9:40 [Bug math/13741] New: Compilation fail with g++ 3.3.6 with option -ffast-math due to undefined macros __extern_always_inline uleysky at gmail dot com
                   ` (2 preceding siblings ...)
  2012-03-02  1:04 ` jsm28 at gcc dot gnu.org
@ 2012-08-31 10:47 ` polacek at redhat dot com
  2012-09-26 11:02 ` polacek at redhat dot com
  2014-06-26 15:16 ` fweimer at redhat dot com
  5 siblings, 0 replies; 7+ messages in thread
From: polacek at redhat dot com @ 2012-08-31 10:47 UTC (permalink / raw)
  To: glibc-bugs

http://sourceware.org/bugzilla/show_bug.cgi?id=13741

Marek Polacek <polacek at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |ASSIGNED
         AssignedTo|unassigned at sourceware    |polacek at redhat dot com
                   |dot org                     |

--- Comment #4 from Marek Polacek <polacek at redhat dot com> 2012-08-31 10:47:02 UTC ---
Mine.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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

* [Bug math/13741] Compilation fail with g++ 3.3.6 with option -ffast-math due to undefined macros __extern_always_inline
  2012-02-24  9:40 [Bug math/13741] New: Compilation fail with g++ 3.3.6 with option -ffast-math due to undefined macros __extern_always_inline uleysky at gmail dot com
                   ` (3 preceding siblings ...)
  2012-08-31 10:47 ` polacek at redhat dot com
@ 2012-09-26 11:02 ` polacek at redhat dot com
  2014-06-26 15:16 ` fweimer at redhat dot com
  5 siblings, 0 replies; 7+ messages in thread
From: polacek at redhat dot com @ 2012-09-26 11:02 UTC (permalink / raw)
  To: glibc-bugs


http://sourceware.org/bugzilla/show_bug.cgi?id=13741

Marek Polacek <polacek at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED

--- Comment #5 from Marek Polacek <polacek at redhat dot com> 2012-09-26 11:01:53 UTC ---
Should be fixed by b7bfe116.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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

* [Bug math/13741] Compilation fail with g++ 3.3.6 with option -ffast-math due to undefined macros __extern_always_inline
  2012-02-24  9:40 [Bug math/13741] New: Compilation fail with g++ 3.3.6 with option -ffast-math due to undefined macros __extern_always_inline uleysky at gmail dot com
                   ` (4 preceding siblings ...)
  2012-09-26 11:02 ` polacek at redhat dot com
@ 2014-06-26 15:16 ` fweimer at redhat dot com
  5 siblings, 0 replies; 7+ messages in thread
From: fweimer at redhat dot com @ 2014-06-26 15:16 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=13741

Florian Weimer <fweimer at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
              Flags|                            |security-

-- 
You are receiving this mail because:
You are on the CC list for the bug.


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

end of thread, other threads:[~2014-06-26 15:16 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-02-24  9:40 [Bug math/13741] New: Compilation fail with g++ 3.3.6 with option -ffast-math due to undefined macros __extern_always_inline uleysky at gmail dot com
2012-02-24  9:44 ` [Bug math/13741] " polacek at redhat dot com
2012-02-24  9:53 ` jakub at redhat dot com
2012-03-02  1:04 ` jsm28 at gcc dot gnu.org
2012-08-31 10:47 ` polacek at redhat dot com
2012-09-26 11:02 ` polacek at redhat dot com
2014-06-26 15:16 ` fweimer at redhat 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).