[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#208016: marked as done (g++-3.3.2 -O3 -ffast-math does not accept <math.h> with all warning options enabled.)



Your message dated Fri, 12 Sep 2003 16:50:14 -0400
with message-id <E19xuru-0000ZI-00@auric.debian.org>
and subject line Bug#207221: fixed in glibc 2.3.2-7
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 31 Aug 2003 13:06:58 +0000
>From thor@math.tu-berlin.de Sun Aug 31 08:06:45 2003
Return-path: <thor@math.tu-berlin.de>
Received: from mail.math.tu-berlin.de [130.149.12.212] 
	by master.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 19tRuj-0003lL-00; Sun, 31 Aug 2003 08:06:41 -0500
Received: from math.tu-berlin.de (thor@ts-m1.math.TU-Berlin.DE [130.149.12.217])
	by mail.math.TU-Berlin.DE (8.12.0.Beta10/8.12.0.Beta10) with ESMTP id h7VD6aJn005026
	(using TLSv1/SSLv3 with cipher RC4-MD5 (128 bits) verified NOT)
	for <submit@bugs.debian.org>; Sun, 31 Aug 2003 15:06:39 +0200 (MEST)
Message-ID: <3F51F2D7.5000608@math.tu-berlin.de>
Date: Sun, 31 Aug 2003 15:06:31 +0200
From: Thomas Richter <thor@math.TU-Berlin.DE>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.0) Gecko/20020623 Debian/1.0.0-0.woody.1
MIME-Version: 1.0
To: submit@bugs.debian.org
Subject: g++-3.3.2 -O3 -ffast-math does not accept <math.h> with all warning
 options enabled.
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Delivered-To: submit@bugs.debian.org
X-Spam-Status: No, hits=-6.0 required=4.0
	tests=HAS_PACKAGE,USER_AGENT_MOZILLA_UA
	version=2.53-bugs.debian.org_2003_8_27
X-Spam-Level: 
X-Spam-Checker-Version: SpamAssassin 2.53-bugs.debian.org_2003_8_27 (1.174.2.15-2003-03-30-exp)


Package: libc6-dev
Version: 2.3.2-3

Save the following program as "math.cpp"

/* snip */
#include <math.h>

int main(int,char **)
{
   return 0;
}
/* snip */

then invoke the compiler as follows:
$ g++-3.3 -Wall -W -pedantic -O3 -ffast-math math.cpp

Result is:

In file included from /usr/include/math.h:362,
                  from math.cpp:6:
/usr/include/bits/mathinline.h: In function `long double __expm1l(long 
double)
    ':
/usr/include/bits/mathinline.h:385: error: ISO C++ forbids omitting the 
middle
    term of a ?: expression
/usr/include/bits/mathinline.h: In function `double expm1(double)':
/usr/include/bits/mathinline.h:536: error: ISO C++ forbids omitting the 
middle
    term of a ?: expression
/usr/include/bits/mathinline.h: In function `float expm1f(float)':
/usr/include/bits/mathinline.h:536: error: ISO C++ forbids omitting the 
middle
    term of a ?: expression
/usr/include/bits/mathinline.h: In function `long double expm1l(long 
double)':
/usr/include/bits/mathinline.h:536: error: ISO C++ forbids omitting the 
middle
    term of a ?: expression

Thus, the compiler cannot compile the program in question since the 
math.h definitions conflict with -pedantic -W -Wall.

I suggest to check for the compiler version and invocation flags (as 
much as possible) and to bypass the offending lines in math.h.

Compiler version is: 3.3.2-0pre1

Greetings,
	Thomas


---------------------------------------
Received: (at 207221-close) by bugs.debian.org; 12 Sep 2003 20:53:25 +0000
>From katie@auric.debian.org Fri Sep 12 15:53:15 2003
Return-path: <katie@auric.debian.org>
Received: from auric.debian.org [206.246.226.45] 
	by master.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 19xuum-0005EK-00; Fri, 12 Sep 2003 15:53:12 -0500
Received: from katie by auric.debian.org with local (Exim 3.35 1 (Debian))
	id 19xuru-0000ZI-00; Fri, 12 Sep 2003 16:50:14 -0400
From: Daniel Jacobowitz <dan@debian.org>
To: 207221-close@bugs.debian.org
X-Katie: $Revision: 1.35 $
Subject: Bug#207221: fixed in glibc 2.3.2-7
Message-Id: <E19xuru-0000ZI-00@auric.debian.org>
Sender: Archive Administrator <katie@auric.debian.org>
Date: Fri, 12 Sep 2003 16:50:14 -0400
Delivered-To: 207221-close@bugs.debian.org

Source: glibc
Source-Version: 2.3.2-7

We believe that the bug you reported is fixed in the latest version of
glibc, which is due to be installed in the Debian FTP archive:

glibc-doc_2.3.2-7_all.deb
  to pool/main/g/glibc/glibc-doc_2.3.2-7_all.deb
glibc_2.3.2-7.diff.gz
  to pool/main/g/glibc/glibc_2.3.2-7.diff.gz
glibc_2.3.2-7.dsc
  to pool/main/g/glibc/glibc_2.3.2-7.dsc
libc-udeb_2.3.2-7_i386.udeb
  to pool/main/g/glibc/libc-udeb_2.3.2-7_i386.udeb
libc6-dbg_2.3.2-7_i386.deb
  to pool/main/g/glibc/libc6-dbg_2.3.2-7_i386.deb
libc6-dev_2.3.2-7_i386.deb
  to pool/main/g/glibc/libc6-dev_2.3.2-7_i386.deb
libc6-pic_2.3.2-7_i386.deb
  to pool/main/g/glibc/libc6-pic_2.3.2-7_i386.deb
libc6-prof_2.3.2-7_i386.deb
  to pool/main/g/glibc/libc6-prof_2.3.2-7_i386.deb
libc6_2.3.2-7_i386.deb
  to pool/main/g/glibc/libc6_2.3.2-7_i386.deb
locales_2.3.2-7_all.deb
  to pool/main/g/glibc/locales_2.3.2-7_all.deb
nscd_2.3.2-7_i386.deb
  to pool/main/g/glibc/nscd_2.3.2-7_i386.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 207221@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Daniel Jacobowitz <dan@debian.org> (supplier of updated glibc package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Fri, 12 Sep 2003 14:56:19 -0400
Source: glibc
Binary: libc6.1-prof libc1 libc0.3-pic locales glibc-doc libc6-pic libc-udeb libc1-prof libc0.3 libc0.3-dbg libc6.1-dev libc1-pic libc6-s390x libc6-prof libc1-dbg libc6-dev-sparc64 libc6 libc0.3-dev libc6-dbg nscd libc6.1-dbg libc6.1-pic libc6-sparc64 libc6-dev libc0.3-prof libc6.1 libc6-dev-s390x libc1-dev
Architecture: source i386 all
Version: 2.3.2-7
Distribution: unstable
Urgency: medium
Maintainer: GNU Libc Maintainers <debian-glibc@lists.debian.org>
Changed-By: Daniel Jacobowitz <dan@debian.org>
Description: 
 glibc-doc  - GNU C Library: Documentation
 libc-udeb  - GNU C Library: Shared libraries and Timezone data - udeb (udeb)
 libc6      - GNU C Library: Shared libraries and Timezone data
 libc6-dbg  - GNU C Library: Libraries with debugging symbols
 libc6-dev  - GNU C Library: Development Libraries and Header Files.
 libc6-pic  - GNU C Library: PIC archive library
 libc6-prof - GNU C Library: Profiling Libraries.
 locales    - GNU C Library: National Language (locale) data [support]
 nscd       - GNU C Library: Name Service Cache Daemon
Closes: 207221 208016 210347 210441
Changes: 
 glibc (2.3.2-7) unstable; urgency=medium
 .
   * GOTO Masanori  <gotom@debian.org>
 .
     - debian/patches/90_glibc232-mathinline_iso.dpatch: Fix inline math
       function complaints with gcc -pedantic -ffast-math.  Patched by
       Thomas Richter <thor@math.TU-Berlin.DE>.  (Closes: #208016, #207221)
 .
     - debian/patches/template.dpatch: Added DP: Related bugs: field.  You can
       use it to put which bugs are related with this dpatch.
 .
   * Daniel Jacobowitz <dan@debian.org>
 .
     - debian/control.in/main: Update binutils dependency for !s390.
 .
     - debian/patches/linuxthreads-push-pop.dpatch: Add __libc_cleanup_push
       and __libc_cleanup_pop.
     - debian/patches/syslog-backrev.dpatch: Remove, no longer necessary.
       This should fix the crashes in syslog without libpthread loaded.
 .
     - debian/patches/linuxthreads-jumptable-wine.dpatch: Move
       pthread_cond_timedwait out of the way, so that it doesn't break
       the way Wine pokes into this structure (Closes: #210347).
 .
     - debian/patches/ia64-memccpy.patch: Fix a segfault on ia64
       (Closes: #210441).
Files: 
 2b2a08b48ea63cb4aa2a9d8084178acc 1678 libs required glibc_2.3.2-7.dsc
 7ce50128fa97b14c58399da2ee40455b 1171658 libs required glibc_2.3.2-7.diff.gz
 18d0f9e3a50e973daf725c00d6f06f07 3717170 base required libc6_2.3.2-7_i386.deb
 831b5efc810dc337a5ab81f2781a60cf 1064978 debian-installer required libc-udeb_2.3.2-7_i386.udeb
 bbea83d11840c1f3f85292f88f5467ab 2558188 libdevel standard libc6-dev_2.3.2-7_i386.deb
 a9a086791d16eade7d2deadf2dd8eecf 1026678 libdevel extra libc6-prof_2.3.2-7_i386.deb
 e35a84cc38182e10b9eb985a3c2bcc1c 8510842 libdevel extra libc6-dbg_2.3.2-7_i386.deb
 84a5a864b4af71bf8fb3ca0f9b8575cc 996826 libdevel optional libc6-pic_2.3.2-7_i386.deb
 e1aa27151356c0606507fc7f12eb9805 77616 admin optional nscd_2.3.2-7_i386.deb
 c98be6681e0c9ef2d3a6cfbcac7eb007 3799498 base standard locales_2.3.2-7_all.deb
 6a9aa6a2c6adb642cef2ca8fe3966948 3705038 doc optional glibc-doc_2.3.2-7_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQE/Yi3ObgOPXuCjg3cRAl1aAJ9OzSj3N8Egt04gHvY4UDHpOAflrgCgu5lF
VvX23R/Z2+XXtX4xmjIUysc=
=5p1u
-----END PGP SIGNATURE-----



Reply to: