libphobos as .so?
TomD
t_demmer at NOSPAM.web.de
Wed Jul 18 21:29:53 PDT 2007
Gregor Richards Wrote:
> TomD wrote:
> > Gregor Richards Wrote:
> >
> > [...]
> >> Irrelevant of this, DMD .so files are generally broken. If you want
> >> reliable support for .so files, use GDC.
> >>
> >> (Though it's a bit of a trick there too)
> >>
> >> - Gregor Richards
> > OK I figured out what you meant with "generally broken". Simple
> > D-functions seem to work (though I did not check GC yet), but classes
> > are a no-no.
> > gdc0.23 chokes on Phobos, but maybe 0.24 gets better.
> >
> > Ciao
> > Tom
>
> "Chokes on Phobos"? I've made .so's of Phobos before with GDC.
>
> http://www.digitalmars.com/webnews/newsgroups.php?art_group=digitalmars.D&article_id=43627
>
> - Gregor Richards
Like this:
tom at Inges:~/d/phobos$ gdc -v -c object.d
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: ../gcc-4.1.1/configure --prefix=/home/dvdf/Devel/Gcc-D/r22rc2/Rgcc --disable-shared --enable-languages=c,d --disable-shared
Thread model: posix
gcc version 4.1.1 20060524 ( (gdc 0.22, using dmd 1.004))
/usr/bin/../libexec/gcc/i686-pc-linux-gnu/4.1.1/cc1d object.d -quiet -dumpbase object.d -mtune=pentiumpro -auxbase object -version -iprefix /usr/bin/../lib/gcc/i686-pc-linux-gnu/4.1.1/ -o /tmp/cc6Q1Ejh.s
GNU D version 4.1.1 20060524 ( (gdc 0.22, using dmd 1.004)) (i686-pc-linux-gnu)
compiled by GNU C version 4.1.0 20060304 (Red Hat 4.1.0-3).
GGC heuristics: --param ggc-min-expand=64 --param ggc-min-heapsize=64497
cc1d: ../../gcc-4.1.1/gcc/d/dmd/toobj.c:417: virtual void ClassDeclaration::toObjFile(): Assertion `classinfo->structsize == (0x3C+8)' failed.
object.d:0: internal compiler error: Aborted
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
tom at Inges:~/d/phobos$
With the phobos sources that come with DMD1.018. But thanks for the link.
Ciao
Tom
More information about the Digitalmars-d
mailing list