This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: More complex linkage failures on AIX
- From: "Gabriel Dos Reis" <gdr at acm dot org>
- To: "David Edelsohn" <dje at watson dot ibm dot com>
- Cc: "Benjamin Kosnik" <bkoz at redhat dot com>,gdr at integrable-solutions dot net, libstdc++ at gcc dot gnu dot org
- Date: Fri, 11 Jun 2004 05:06:12 +0200 (CEST)
- Subject: Re: More complex linkage failures on AIX
- References: <200406101636.i5AGau227702@makai.watson.ibm.com>
- Reply-to: gdr at acm dot org
You Wrote David Edelsohn
> I am seeing a number of failures of complex testcases in the
> testsuite due to linkage errors on AIX looking for cabs, carg, cexp:
>
> FAIL: 26_numerics/complex/13450.cc (test for excess errors)
> Excess errors:
> ld: 0711-317 ERROR: Undefined symbol: .cabsf
> ld: 0711-317 ERROR: Undefined symbol: .cargf
> ld: 0711-317 ERROR: Undefined symbol: .cexpf
> ld: 0711-317 ERROR: Undefined symbol: .cabsl
> ld: 0711-317 ERROR: Undefined symbol: .cargl
> ld: 0711-317 ERROR: Undefined symbol: .cexpl
> ld: 0711-317 ERROR: Undefined symbol: .carg
> ld: 0711-317 ERROR: Undefined symbol: .cexp
>
> FAIL: 26_numerics/complex/pow.cc (test for excess errors)
> Excess errors:
> ld: 0711-317 ERROR: Undefined symbol: .carg
>
> FAIL: 26_numerics/complex_value.cc (test for excess errors)
> Excess errors:
> ld: 0711-317 ERROR: Undefined symbol: .carg
>
>
> libstdc++-v3/include/std/std_complex.h explicitly makes calls to
> __builtin_{cabs,carg,cexp} which the compiler converts to libcalls.
>
> What should happen here?
Doesn't AIX implement those C99 functions?
If yes, then the library where they are put should be linked with
libstdc++. If not, then we ought to supply sutbs in libmath/stubs.c
>
> Thanks, David
>
>