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

version graph

Package: mingw32; Maintainer for mingw32 is Ron Lee <ron@debian.org>; Source for mingw32 is src:mingw32.

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

Reply or subscribe to this bug.

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 and rfc822 format available.

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 and rfc822 format available.

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

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 and rfc822 format available.

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 and rfc822 format available.

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

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.




Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Fri Apr 18 08:14:59 2014; Machine Name: beach.debian.org

Debian Bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.