Thread overview | |||||
---|---|---|---|---|---|
|
March 23, 2004 gdc compiles on Gentoo | ||||
---|---|---|---|---|
| ||||
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 |
March 23, 2004 Re: gdc compiles on Gentoo | ||||
---|---|---|---|---|
| ||||
Posted in reply to Pablo De Napoli |
>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 :-)
|
April 09, 2004 Re: gdc compiles on Gentoo | ||||
---|---|---|---|---|
| ||||
Posted in reply to Ben Hinkle | >>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 ;)
|
Copyright © 1999-2021 by the D Language Foundation