Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 21 Apr 2007 04:08:36 +0900
From:      "Hyo geol, Lee" <hyogeollee@gmail.com>
To:        freebsd-questions@freebsd.org
Subject:   Linking error with __float128 conversions
Message-ID:  <46290FB4.3040007@gmail.com>

next in thread | raw e-mail | index | archive | help
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Hello.

I had problem in linking error with __float128 conversion functions. I
am using FreeBSD/amd64 -current and

test code is below.

#include <strings.h>

int
main(void)
{
__float128 a;
long double b;

bzero(&a, sizeof(__float128));
bzero(&b, sizeof(long double));

a = b;
b = a;

return (0);
}

When I build above code, I got linking error. Is this just unsupported
functions or something missing in header

or linking options? Error message is below.

ez8@~/tmp : uname -a
FreeBSD localhost.localdomain 7.0-CURRENT FreeBSD 7.0-CURRENT #54: Sat
Apr 21 03:00:42 KST 2007
root@localhost.localdomain:/usr/obj/usr/src/sys/EZ8KERNEL amd64
ez8@~/tmp : gcc -v
Using built-in specs.
Configured with: FreeBSD/amd64 system compiler
Thread model: posix
gcc version 3.4.6 [FreeBSD] 20060825
ez8@~/tmp : cc -O0 test_float128.c
/var/tmp//cc9c9baG.o(.text+0x38): In function `main':
: undefined reference to `__extendxftf2'
/var/tmp//cc9c9baG.o(.text+0x5e): In function `main':
: undefined reference to `__trunctfxf2'

Thanks.
HG, Lee.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGKQ+01D7/GiH6QSERCpwuAKDCK7R7Epl/tp+croit8pCOc3BRIQCgwQYm
6Znx4dXOuhZjaXrcE7ywWg8=
=V49A
-----END PGP SIGNATURE-----




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?46290FB4.3040007>