public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
* C++ Template instantiation problem
@ 2005-12-14 11:38 Kriti Dutta
  2005-12-14 12:02 ` Christian Hildner
  0 siblings, 1 reply; 2+ messages in thread
From: Kriti Dutta @ 2005-12-14 11:38 UTC (permalink / raw)
  To: linux-ia64


 I am trying to compile some C++ code using the g++ version 2.96 in a Red
Hat Linux ia64 box.
 And while compiling one of the file which has a lot of code for template
instantiations I get the following error:
	 __gp does not cover short data segment
 moreover compilation of this file takes about a day and then finally I get
the above error.
 I have also tried fragmenting the code into different files even that did
not work and I got some other kind of error:
 	gnu.linkonce relocation truncated to fit: PCREL21B

 If anybody has ever encountered such errors may be he/she can help us with
the workaround available.


   Kriti.



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: C++ Template instantiation problem
  2005-12-14 11:38 C++ Template instantiation problem Kriti Dutta
@ 2005-12-14 12:02 ` Christian Hildner
  0 siblings, 0 replies; 2+ messages in thread
From: Christian Hildner @ 2005-12-14 12:02 UTC (permalink / raw)
  To: linux-ia64

Kriti,

gcc 2.96 is pretty old and had some bugs/limitations. You might try a 
current release instead.
If  the current gcc releases still shows the problem you may report the 
bug to the gcc mailing list.

Christian

Kriti Dutta schrieb:

> I am trying to compile some C++ code using the g++ version 2.96 in a Red
>Hat Linux ia64 box.
> And while compiling one of the file which has a lot of code for template
>instantiations I get the following error:
>	 __gp does not cover short data segment
> moreover compilation of this file takes about a day and then finally I get
>the above error.
> I have also tried fragmenting the code into different files even that did
>not work and I got some other kind of error:
> 	gnu.linkonce relocation truncated to fit: PCREL21B
>
> If anybody has ever encountered such errors may be he/she can help us with
>the workaround available.
>
>
>   Kriti.
>


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-12-14 12:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-12-14 11:38 C++ Template instantiation problem Kriti Dutta
2005-12-14 12:02 ` Christian Hildner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox