templated cmath function instantiation

Kurt Garloff garloff@suse.de
Tue Jun 26 05:19:00 GMT 2001


On Tue, Jun 26, 2001 at 12:49:18PM +0200, Kurt Garloff wrote:
> On Mon, Jun 25, 2001 at 03:50:56PM -0400, Phil Edwards wrote:
> > Kurt, is it convenient for you to test this somehow?  If it works for you,
> > I'll close the PR in GNATS.  If you cannot test it, I'll change the PR to
> > either 'feedback' or 'suspended' and wait for 3.0.1.
> 
> Yes, I can. For now, I have a test for gcc 3.0.0/1 in the lib, and in case
> gcc-3.0.0/1 is detected, I workaround by explicitly instantiating 
> std::__cmath_power<double>. I'll deactivate for 3.0.1 and confirm that it
> fails with some older sbnapshots and that it works with a new one.
> 
> I'll let you know in a few hours.

OK:
LD_RUN_PATH=../../lina/bin-ix86 g++ -o eulerflow eulerflow.o
	-L../../lina/bin-ix86 -ltbcicplxdouble -ltbcidouble -lpthread
../../lina/bin-ix86/libtbcicplxdouble.so: undefined reference to 
	double std::__cmath_power<double>(double, unsigned)'
collect2: ld returned 1 exit status
garloff@pckurt:~/Physics/numerix-2.0-gcc3/mpt > gcc -v
Reading specs from /raid/gcc300/lib/gcc-lib/i686-pc-linux-gnu/3.0.1/specs
[...]
Thread model: posix
gcc version 3.0.1 20010620 (prerelease)

With the new CVS version:
make[1]: Entering directory /home/garloff/Physics/numerix-2.0-gcc3/mpt/euler_flow'
LD_RUN_PATH=../../lina/bin-ix86 g++ -o eulerflow eulerflow.o
	-L../../lina/bin-ix86 -ltbcicplxdouble -ltbcidouble -lpthread
make[1]: Entering directory /home/garloff/Physics/numerix-2.0-gcc3/mpt/navier_flow'
[...]

It's fixed. You can close the PR.

Remark:
I had to manually run configure in the i686-pc-linux-gnu/libstdc++-v3 subdir
to pick up the cmath ... Just running in the build dir apparently was not
enough :-(
(Maybe that's to be expected, I unfortunately don't know the autoXXXX tools
well enough.)

Regards,
-- 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.5 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE7OH2nxmLh6hyYd04RAhXJAKC1IZxzUAKBpCxskPBKiTfextu2EACgvjxR
29/MTOLgb8Uheve3bZh1jzc=
=UHw/
-----END PGP SIGNATURE-----


More information about the Libstdc++ mailing list