Debian Bug report logs - #525016
mingw32: multiple definition of _powf

version graph

Package: mingw32; Maintainer for mingw32 is (unknown);

Reported by: Jay Foad <jay.foad@gmail.com>

Date: Tue, 21 Apr 2009 14:12:07 UTC

Severity: normal

Found in version mingw32/4.2.1.dfsg-1

Fixed in version gcc-mingw-w64/14

Done: Stephen Kitt <skitt@debian.org>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, jay.foad@gmail.com, Ron Lee <ron@debian.org>:
Bug#525016; Package mingw32. (Tue, 21 Apr 2009 14:12:09 GMT) (full text, mbox, link).


Acknowledgement sent to Jay Foad <jay.foad@gmail.com>:
New Bug report received and forwarded. Copy sent to jay.foad@gmail.com, Ron Lee <ron@debian.org>. (Tue, 21 Apr 2009 14:12:09 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Jay Foad <jay.foad@gmail.com>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: mingw32: multiple definition of _powf
Date: Tue, 21 Apr 2009 15:03:47 +0100
Package: mingw32
Version: 4.2.1.dfsg-1
Severity: normal

I get the following link error when I try to build this program as C++:

$ cat pow.cpp
#include <math.h>
int main() { fmodf(0.0, 0.0); powf(0.0, 0.0); }
$ i586-mingw32msvc-g++ -o pow pow.cpp
/usr/lib/gcc/i586-mingw32msvc/4.2.1-sjlj/libstdc++.a(stubs.o):(.text+0x160): 
multiple definition of `_powf'
/tmp/ccQcUwaq.o:pow.cpp:(.text$powf[_powf]+0x0): first defined here
collect2: ld returned 1 exit status

If I compile with i586-mingw32msvc-gcc instead, it succeeds.

This problem prevents me from building LLVM (http://llvm.org/) with 
Debian's mingw32 tools.

-- System Information:
Debian Release: 5.0
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.26-1-486
Locale: LANG=en_ZA.UTF-8, LC_CTYPE=en_ZA.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages mingw32 depends on:
ii  libc6                 2.7-18             GNU C Library: Shared libraries
ii  mingw32-binutils      2.18.50-20080109-1 Minimalist GNU win32 (cross) binut
ii  mingw32-runtime       3.13-1             Minimalist GNU win32 (cross) runti

mingw32 recommends no packages.

Versions of packages mingw32 suggests:
pn  cpp-doc                       <none>     (no description available)
pn  gcc-doc                       <none>     (no description available)

-- no debconf information




Information forwarded to debian-bugs-dist@lists.debian.org, Ron Lee <ron@debian.org>:
Bug#525016; Package mingw32. (Wed, 22 Apr 2009 15:48:06 GMT) (full text, mbox, link).


Acknowledgement sent to Jay Foad <jay.foad@gmail.com>:
Extra info received and forwarded to list. Copy sent to Ron Lee <ron@debian.org>. (Wed, 22 Apr 2009 15:48:06 GMT) (full text, mbox, link).


Message #10 received at 525016@bugs.debian.org (full text, mbox, reply):

From: Jay Foad <jay.foad@gmail.com>
To: 525016@bugs.debian.org
Subject: Re: Bug#525016: mingw32: multiple definition of _powf
Date: Wed, 22 Apr 2009 16:31:18 +0100
The problem seems to be that libstdc++.a(stubs.o) contains a
definition of powf(), but it shouldn't, because the mingw32-runtime
math.h already defines powf() as an inline function. libstdc++'s
configure should spot this and define HAVE_POWF but it doesn't.

I think the fix might be to add GLIBCXX_CHECK_MATH_SUPPORT to the
mingw32 part of libstdc++'s crossconfig.m4, where it already has
GLIBCXX_CHECK_COMPLEX_MATH_SUPPORT.

Something similar has been done in the recent fix for this bug:

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

Jay.




Added tag(s) pending. Request was from Stephen Kitt <skitt@debian.org> to control@bugs.debian.org. (Sat, 26 Jul 2014 21:54:04 GMT) (full text, mbox, link).


Reply sent to Stephen Kitt <skitt@debian.org>:
You have taken responsibility. (Mon, 28 Jul 2014 06:51:57 GMT) (full text, mbox, link).


Notification sent to Jay Foad <jay.foad@gmail.com>:
Bug acknowledged by developer. (Mon, 28 Jul 2014 06:51:57 GMT) (full text, mbox, link).


Message #17 received at 525016-close@bugs.debian.org (full text, mbox, reply):

From: Stephen Kitt <skitt@debian.org>
To: 525016-close@bugs.debian.org
Subject: Bug#525016: fixed in gcc-mingw-w64 14
Date: Mon, 28 Jul 2014 06:49:32 +0000
Source: gcc-mingw-w64
Source-Version: 14

We believe that the bug you reported is fixed in the latest version of
gcc-mingw-w64, which is due to be installed in the Debian FTP archive.

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 525016@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Stephen Kitt <skitt@debian.org> (supplier of updated gcc-mingw-w64 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@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Mon, 28 Jul 2014 01:41:35 +0200
Source: gcc-mingw-w64
Binary: gcc-mingw-w64 gcc-mingw-w64-i686 gcc-mingw-w64-x86-64 g++-mingw-w64 g++-mingw-w64-i686 g++-mingw-w64-x86-64 gfortran-mingw-w64 gfortran-mingw-w64-i686 gfortran-mingw-w64-x86-64 gobjc-mingw-w64 gobjc-mingw-w64-i686 gobjc-mingw-w64-x86-64 gobjc++-mingw-w64 gobjc++-mingw-w64-i686 gobjc++-mingw-w64-x86-64 gcc-mingw-w64-base mingw32
Architecture: source all amd64
Version: 14
Distribution: unstable
Urgency: medium
Maintainer: Stephen Kitt <skitt@debian.org>
Changed-By: Stephen Kitt <skitt@debian.org>
Description:
 g++-mingw-w64 - GNU C++ compiler for MinGW-w64
 g++-mingw-w64-i686 - GNU C++ compiler for MinGW-w64 targeting Win32
 g++-mingw-w64-x86-64 - GNU C++ compiler for MinGW-w64 targeting Win64
 gcc-mingw-w64 - GNU C compiler for MinGW-w64
 gcc-mingw-w64-base - GNU Compiler Collection for MinGW-w64 (base package)
 gcc-mingw-w64-i686 - GNU C compiler for MinGW-w64 targeting Win32
 gcc-mingw-w64-x86-64 - GNU C compiler for MinGW-w64 targeting Win64
 gfortran-mingw-w64 - GNU Fortran compiler for MinGW-w64
 gfortran-mingw-w64-i686 - GNU Fortran compiler for MinGW-w64 targeting Win32
 gfortran-mingw-w64-x86-64 - GNU Fortran compiler for MinGW-w64 targeting Win64
 gobjc++-mingw-w64 - GNU Objective-C++ compiler for MinGW-w64
 gobjc++-mingw-w64-i686 - GNU Objective-C++ compiler for MinGW-w64 targeting Win32
 gobjc++-mingw-w64-x86-64 - GNU Objective-C++ compiler for MinGW-w64 targeting Win64
 gobjc-mingw-w64 - GNU Objective-C compiler for MinGW-w64
 gobjc-mingw-w64-i686 - GNU Objective-C compiler for MinGW-w64 targeting Win32
 gobjc-mingw-w64-x86-64 - GNU Objective-C compiler for MinGW-w64 targeting Win64
 mingw32    - Minimalist GNU win32 (cross) compiler (transition package)
Closes: 179760 281030 317146 338412 351790 403720 418167 470574 470873 484299 498400 514186 514187 525016 583262 748353 750741 756142
Changes:
 gcc-mingw-w64 (14) unstable; urgency=medium
 .
   * Provide compilers using Windows and POSIX threads. The default setup
     uses Windows threads, thus avoiding the dependency on the pthreads DLL
     (Closes: #748353, #750741).
   * Use the default exception-handling (SJLJ on 32-bit Windows, SEH on
     64-bit Windows). (With the above, LP: #1338043.)
   * Build a mingw32 transition package (Closes: #756142):
     - C++ code with interface/implementation pragmas links correctly
       (Closes: #179760);
     - libstdc++.la is no longer shipped (Closes: #281030);
     - the libstdc++ DLL is provided (Closes: #317146);
     - _NO_OLD_NAMES doesn't break unistd.h (Closes: #338412);
     - the gccbug manpage is no longer linked to (Closes: #351790);
     - the package description doesn't mention "freedom through
       obsolescence" (Closes: #403720);
     - g77 is provided (Closes: #418167);
     - nothing is installed in /usr/libexec (Closes: #470574);
     - Lintian overrides are correct (Closes: #470873);
     - powf and sinf can be used in the same project (Closes: #484299);
     - there's no "it's"/"its" typo in the Debian-specific files (Closes:
       #498400);
     - the package builds gcc 4.9 (Closes: #514186);
     - a 64-bit compiler is available (Closes: #514187);
     - powf is defined correctly (Closes: #525016);
     - no compilercache symlinks are shipped (Closes: #583262).
   * Ship the C++ header files in the default location instead of
     /usr/include/c++/; this avoids having to introduce a new package for
     the target-independent headers.
   * Remove obsolete gnat files.
Checksums-Sha1:
 9007ff8b0217477e86ccdeccabf545a2c10cb2e7 2946 gcc-mingw-w64_14.dsc
 9b0eedefed891f56d15d78a5991597ab3cecd5a7 23604 gcc-mingw-w64_14.tar.xz
 81af6d09c3e1cabf298beee9b414b509391ba067 1198 gcc-mingw-w64_4.9.1-2+14_all.deb
 b3321ccd3a11247d19846e0ab87b5e396f281645 1016 g++-mingw-w64_4.9.1-2+14_all.deb
 0b5bed2c01e92ad45503d698b136812e2b098fab 1024 gfortran-mingw-w64_4.9.1-2+14_all.deb
 bc8b76797925f9625c4d6a51124bba96e733bf92 1028 gobjc-mingw-w64_4.9.1-2+14_all.deb
 e7adf790163a46dc8a339612740936ac80c74d8c 1032 gobjc++-mingw-w64_4.9.1-2+14_all.deb
 c17dde740f8ba29a8cb8b27b395614347035671e 1352 mingw32_4.9.1-2+14_all.deb
 030fd5e87d7550d2673c2163f778c47c799c7b81 23376810 gcc-mingw-w64-i686_4.9.1-2+14_amd64.deb
 71d1c22f5da9776088b7d11dd1663cd9824d2039 23448416 gcc-mingw-w64-x86-64_4.9.1-2+14_amd64.deb
 21102d5fff60c05f238ed7ed0e55aed957542157 16054664 g++-mingw-w64-i686_4.9.1-2+14_amd64.deb
 fd89fc8162cb1a631deb5f8c0ef0d59a1fbba05c 16524660 g++-mingw-w64-x86-64_4.9.1-2+14_amd64.deb
 7254ac0c30ceadce5f9377183e69c10bb62b8209 12530770 gfortran-mingw-w64-i686_4.9.1-2+14_amd64.deb
 e3bc0d480fc12fa30509f6be496c7533a0fb2379 13296656 gfortran-mingw-w64-x86-64_4.9.1-2+14_amd64.deb
 abb99c9646faa21f25ea0ee41adecd50c961b052 10142982 gobjc-mingw-w64-i686_4.9.1-2+14_amd64.deb
 0382794a5799091be2f9d35e5ce6caba0ed80e1a 10331134 gobjc-mingw-w64-x86-64_4.9.1-2+14_amd64.deb
 68d4fd5856c69549b24cabc8e213612399320464 10605282 gobjc++-mingw-w64-i686_4.9.1-2+14_amd64.deb
 987cf60bfed7c77ccb22d7dc70540798ba35b2f2 10755940 gobjc++-mingw-w64-x86-64_4.9.1-2+14_amd64.deb
 0224181a7823fb5b8f41127a77535b096c7aff0d 159500 gcc-mingw-w64-base_4.9.1-2+14_amd64.deb
Checksums-Sha256:
 c94eeb93876e590e0f9fb99c9696b6ba51fcd2bb94b6510e7b27fce1d814df42 2946 gcc-mingw-w64_14.dsc
 e0223fec48f67139ca8e91d8e4a7ca456a37d552536a5cd7e59bacd82a9a15e1 23604 gcc-mingw-w64_14.tar.xz
 503926038c54b322b11c330b1f8a750d8ec931db6fb9e8268269428ddf5711ac 1198 gcc-mingw-w64_4.9.1-2+14_all.deb
 6e6e1dfe4bb4f926e4628373021dbb5cb9568e6ffa58e24b32e98e36c07bc55d 1016 g++-mingw-w64_4.9.1-2+14_all.deb
 694b020f0048c7f1f67201e1e9aaf59eae38f53450efb356d1a3ec24874e5bdc 1024 gfortran-mingw-w64_4.9.1-2+14_all.deb
 82a6d670ae3cc9edf70937404ed878466465d11a67ecb3d520ec62f60bd2ef67 1028 gobjc-mingw-w64_4.9.1-2+14_all.deb
 b37e873f1e02ea1fc2c0a8b7d2721beb89f3e87435a5c894ddaf78553e073d09 1032 gobjc++-mingw-w64_4.9.1-2+14_all.deb
 d30ff231ff5167b6f9a4bf28642967c2bf029ea86ff24abc4dc5e32810a6f645 1352 mingw32_4.9.1-2+14_all.deb
 aeea7f3838cf023edd5bc0ed55c10afd7783ad4853083b669a3c1dba483658d3 23376810 gcc-mingw-w64-i686_4.9.1-2+14_amd64.deb
 4384f32d71be5e29ca8151af6c54fcbc5f5e07c831e0ccc2f2297aa998cc3674 23448416 gcc-mingw-w64-x86-64_4.9.1-2+14_amd64.deb
 7158ff305bbb2c328c3bf3cf964e5eae6002e6bbcacca4dd98b595646991d578 16054664 g++-mingw-w64-i686_4.9.1-2+14_amd64.deb
 a646602e919d97fc70d29975b367c29eedc4a2d65f8233a50c9cec5b8119aa3c 16524660 g++-mingw-w64-x86-64_4.9.1-2+14_amd64.deb
 13f2f359cc69b4f0ecb323173e26ddc9f9288da12f84a47cd8e7a25baac431b6 12530770 gfortran-mingw-w64-i686_4.9.1-2+14_amd64.deb
 c9dfc66d25a76e1e2f4a9d78f81805879b1032c0f4f88afeb90b9332b26616f6 13296656 gfortran-mingw-w64-x86-64_4.9.1-2+14_amd64.deb
 7e05fcc0b0bd08f728ffff574d62f23a75ab49618614ea62d36815d4810cacbc 10142982 gobjc-mingw-w64-i686_4.9.1-2+14_amd64.deb
 2c0acbe71fa789bb6e9a903b4f3cd352c132c9c3a96fff26124eb8005e50ba62 10331134 gobjc-mingw-w64-x86-64_4.9.1-2+14_amd64.deb
 da031af94ce88ec0fdac1be0808780ba706d6f0a6c4f2108ebc8d201cab5b101 10605282 gobjc++-mingw-w64-i686_4.9.1-2+14_amd64.deb
 d4f39875498f14d7934bbf6d5a586793a318dd1ddbec6db620563deb4fb4b248 10755940 gobjc++-mingw-w64-x86-64_4.9.1-2+14_amd64.deb
 86fe1963d5bae97bc9d0a16d37281fb5b9f045da6c15302dc1b9963fa8dc9f07 159500 gcc-mingw-w64-base_4.9.1-2+14_amd64.deb
Files:
 bd56f7f17aa245dd128180a46c0fae13 1198 devel extra gcc-mingw-w64_4.9.1-2+14_all.deb
 abbcd8b2c2ab6e11dce73fc1c6b0cd38 1016 devel extra g++-mingw-w64_4.9.1-2+14_all.deb
 0042dcc34821dd82daa64e07b1edab0e 1024 devel extra gfortran-mingw-w64_4.9.1-2+14_all.deb
 f287e899d31bdf956972d064b651313f 1028 devel extra gobjc-mingw-w64_4.9.1-2+14_all.deb
 727d5a14e5e95ff8ab7d31a067657501 1032 devel extra gobjc++-mingw-w64_4.9.1-2+14_all.deb
 63417a6ddbd08a4e5f09f4e4f4e6e776 1352 devel extra mingw32_4.9.1-2+14_all.deb
 f53f75ef1d94d621b7b3e9e9a6c6ef0b 23376810 devel extra gcc-mingw-w64-i686_4.9.1-2+14_amd64.deb
 12a292fee30ac2b2f41743517ca0b00b 23448416 devel extra gcc-mingw-w64-x86-64_4.9.1-2+14_amd64.deb
 a1d66282d391949789fb6c41b5075010 16054664 devel extra g++-mingw-w64-i686_4.9.1-2+14_amd64.deb
 a35ac80e5245df2deef33b995ef8fa8a 16524660 devel extra g++-mingw-w64-x86-64_4.9.1-2+14_amd64.deb
 420590588e5b702287c6341b2b93d4c8 12530770 devel extra gfortran-mingw-w64-i686_4.9.1-2+14_amd64.deb
 e6c145bf41810048d75fe8cf767c5a5b 13296656 devel extra gfortran-mingw-w64-x86-64_4.9.1-2+14_amd64.deb
 4171ebd697c036625dfb067c8563b94f 10142982 devel extra gobjc-mingw-w64-i686_4.9.1-2+14_amd64.deb
 1685568edab8c26358c93f26a2f46f58 10331134 devel extra gobjc-mingw-w64-x86-64_4.9.1-2+14_amd64.deb
 e43de3ddb73b55bd0d0b1c4611d24e49 10605282 devel extra gobjc++-mingw-w64-i686_4.9.1-2+14_amd64.deb
 591a167c5372ada0fa9da76f42f37127 10755940 devel extra gobjc++-mingw-w64-x86-64_4.9.1-2+14_amd64.deb
 6c4d799dc4d22f5651290489feb97284 159500 devel extra gcc-mingw-w64-base_4.9.1-2+14_amd64.deb
 02d0da04b0765f7088843d5fc0c11561 2946 devel extra gcc-mingw-w64_14.dsc
 376032c669bf7857382dac5ad02b8da0 23604 devel extra gcc-mingw-w64_14.tar.xz

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBCgAGBQJT1d6BAAoJEHWXeKmja0lPlEQP/3dujpSqLu78r7LmwiSd/NmP
S9E3xotj2LYBw5Z4AxFc/XFeAQlZ/6ojPds52VTfGWqheL+oOgZ72UVa53noROaQ
pO4sAoIduIA+oJMldKn1i5GMdAd3nvAmobqG0edz7Jf0Qod12S3bbLMGb+pHJBHt
Eetr/lw4nW/9qcNsGoAQ6Oq4ap9hk8Ya8qgISYD51VJO1/Fv/w7TlQDMO0OGG28o
vxocH5Fp35zPM0gNkz5aaADZJFttdE88AdAnmseRLjXIxoI4iWmomNPruMd1hGfK
vts89yWPsrB/UYpg1lt6vjAnFA9NMq8NHNaPTCJ5+IPkwt03j1Tsam3FEU3Xfc7z
q/WJj2XnF4QcQQORV90Bxe+jnYucoibUoiOnU35oh821Ph7lv5wklXOf+6ugnjBj
GzVRzpV7Nr4euyoHCTOteJdzHoSHpo0FjZEADzQ5b3EEErSuzmO+UBUyEcJ/fZoB
OVlGG3U6Jnb2HWm375TQh7J0KoGjMW547Fe+chfY9Xe0gaPhJ9Su7ql7y/nTLffk
eljhZHFz+3mNcivkdyvWRL2R+7Ek9l8GUVL2wafmUAbF8XtaMry6OwKirAM0Yv/Q
mpfZEuLYrcOi6Cot7ew0w9L3SJ/dZDAj5j4/65mQTap6bfgY+xpYN2agjFvEFr0z
VhoKkubO9ZimSfnPObSM
=wHYV
-----END PGP SIGNATURE-----




Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Wed, 27 Aug 2014 07:26:56 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Sat Jul 1 19:12:23 2023; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.