www.digitalmars.com         C & C++   DMDScript  

D.gnu - gdc-0.13 gcc-3.4.3 linux build errors

reply Peri Hankey <mpah thegreen.co.uk> writes:
Hello

I successfully built gdc-0.12 with the additional patch to enable -fpic 
-shared, and that works fine. Excellent - I have my toolkit as a dynamic 
library callable from C and from D.

But when I try to build gdc-0.13 so as to stay current I get assembler 
errors:

libphobos/std/stream.d:
Error: Local symbol `.LTHUNK0' can't be equated to undefined symbol ...
(many more of these)

I notice that some relevant sounding changes were being discussed in 
relation to the mingw port.

Any suggestions?

Regards
Peri Hankey
Jun 16 2005
parent reply David Friedman <d3rdclsmail_a_ _t_earthlink_d_._t_net> writes:
Peri Hankey wrote:
 Hello
 
 I successfully built gdc-0.12 with the additional patch to enable -fpic 
 -shared, and that works fine. Excellent - I have my toolkit as a dynamic 
 library callable from C and from D.
 
 But when I try to build gdc-0.13 so as to stay current I get assembler 
 errors:
 
 libphobos/std/stream.d:
 Error: Local symbol `.LTHUNK0' can't be equated to undefined symbol ...
 (many more of these)
 
 I notice that some relevant sounding changes were being discussed in 
 relation to the mingw port.
 
 Any suggestions?
 
 Regards
 Peri Hankey
If you built 0.13 on top of 0.12, try wiping out <build dir>/gcc/d/{*.o,id*} first. Can you post your assembler/binutils version? David
Jun 16 2005
parent reply Peri Hankey <mpah thegreen.co.uk> writes:
David Friedman wrote:
 Peri Hankey wrote:
 
 Hello

 I successfully built gdc-0.12 with the additional patch to enable 
 -fpic -shared, and that works fine. Excellent - I have my toolkit as a 
 dynamic library callable from C and from D.

 But when I try to build gdc-0.13 so as to stay current I get assembler 
 errors:

 libphobos/std/stream.d:
 Error: Local symbol `.LTHUNK0' can't be equated to undefined symbol ...
 (many more of these)

 I notice that some relevant sounding changes were being discussed in 
 relation to the mingw port.

 Any suggestions?

 Regards
 Peri Hankey
If you built 0.13 on top of 0.12, try wiping out <build dir>/gcc/d/{*.o,id*} first. Can you post your assembler/binutils version? David
David The rpm for binutils is: binutils-2.16.90.0.2-3mdk, and this seems to correspond with the version given by 'as': GNU assembler 2.16.90.0.2 20050429 I was doing the build in a fresh directory, trying at the same time to get an rpm build working, using a simplified spec file that does what you describe in your build instructions. I can try a different binutils if you think this may be useful - is there a particular version you recommend? Peri
Jun 17 2005
parent David Friedman <d3rdclsmail_a t_earthlink_d.t_net> writes:
Peri Hankey wrote:
 David Friedman wrote:
 
 Peri Hankey wrote:

 Hello

 I successfully built gdc-0.12 with the additional patch to enable 
 -fpic -shared, and that works fine. Excellent - I have my toolkit as 
 a dynamic library callable from C and from D.

 But when I try to build gdc-0.13 so as to stay current I get 
 assembler errors:

 libphobos/std/stream.d:
 Error: Local symbol `.LTHUNK0' can't be equated to undefined symbol ...
 (many more of these)

 I notice that some relevant sounding changes were being discussed in 
 relation to the mingw port.

 Any suggestions?

 Regards
 Peri Hankey
If you built 0.13 on top of 0.12, try wiping out <build dir>/gcc/d/{*.o,id*} first. Can you post your assembler/binutils version? David
David The rpm for binutils is: binutils-2.16.90.0.2-3mdk, and this seems to correspond with the version given by 'as': GNU assembler 2.16.90.0.2 20050429 I was doing the build in a fresh directory, trying at the same time to get an rpm build working, using a simplified spec file that does what you describe in your build instructions. I can try a different binutils if you think this may be useful - is there a particular version you recommend? Peri
It looks like any release made before April 2005 will work. If anyone is curious, the thread on the change in binutils that causes the problem is here: http://lists.gnu.org/archive/html/bug-binutils/2005-05/msg00002.html David
Jun 17 2005