www.digitalmars.com         C & C++   DMDScript  

D.gnu - gdc compiles on Gentoo

reply Pablo De Napoli <Pablo_member pathlink.com> writes:
Helo, 
 
Great work, David! I've compiled it on Gentoo-Linux on x86 using 
gcc
(GCC) 3.3.2 20031218 (Gentoo Linux 3.3.2-r5, propolice-3.3-7) 
 
It worked fine
for me except that I'd to make the corrections indicated 
by Bastiaan Velo (on
the mail entaitled "gdc compiles on Debian" 
(the LL add the end of the long
integer constants) 
 
I've tried the samples from the DMD distribution: pi.d and
sieve.d 
worked ok for me. However. wc.d gives an error
home/pablo/local/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/../../../libphobos.a(file.
(.text+0xa08): In function _D3std4file7listdirFAaZAAa': 
std/file.d:802:
undefined reference to 
_D3gcc6dirent8readdirDFPS3gcc6dirent3DIRZAa' 
collect2:
ld returned 1 exit status 
 
Saludos, 
Pablo 
 
Mar 22 2004
parent reply Ben Hinkle <bhinkle4 juno.com> writes:
worked ok for me. However. wc.d gives an error
home/pablo/local/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/../../../libphobos.a(file.
(.text+0xa08): In function _D3std4file7listdirFAaZAAa': 
std/file.d:802:
undefined reference to 
_D3gcc6dirent8readdirDFPS3gcc6dirent3DIRZAa' 
collect2:
ld returned 1 exit status 

I got that, too. I added gcc/dirent.o to GCC_OBJ in the Makefile and then it complained about readdir (without the "D") so I commented that line in gcc/dirent.d out. I don't have it in front of me, though. After that it compiles fine but it needs a more permanent solution. Maybe just commenting out the readdirD line in std/file would have worked, too. -Ben ps. gdc has a very nice structure, too. I haven't compared it to the g++ front end in terms of size or complexity but glancing through it it looks much easier to follow. sweet stuff. I'm sure the g++ developers would drool over such a nice code base :-)
Mar 22 2004
parent School <tec_mailhk yahoo.com.hk> writes:
worked ok for me. However. wc.d gives an error
home/pablo/local/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/../../../libphobos.a(file.
(.text+0xa08): In function _D3std4file7listdirFAaZAAa': 
std/file.d:802:
undefined reference to 
_D3gcc6dirent8readdirDFPS3gcc6dirent3DIRZAa' 
collect2:
ld returned 1 exit status 

I got that, too. I added gcc/dirent.o to GCC_OBJ in the Makefile and then it complained about readdir (without the "D") so I commented that line in gcc/dirent.d out. I don't have it in front of me, though. After that it compiles fine but it needs a more permanent solution. Maybe just commenting out the readdirD line in std/file would have worked, too. -Ben ps. gdc has a very nice structure, too. I haven't compared it to the g++ front end in terms of size or complexity but glancing through it it looks much easier to follow. sweet stuff. I'm sure the g++ developers would drool over such a nice code base :-)

May be this is the time to make a Ebuild for gdc, then submit it to package center ;)
Apr 09 2004