This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: templated cmath function instantiation


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,
-- 
Kurt Garloff  <garloff@suse.de>                          Eindhoven, NL
GPG key: See mail header, key servers         Linux kernel development
SuSE GmbH, Nuernberg, FRG                               SCSI, Security

PGP signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]