Compiling DMD for *nix platforms

Leo Singer aronnax at umd.edu
Tue May 6 23:58:44 PDT 2008


I followed the instructions in the INSTALL file on the repository, downloading the newest 4.1 release of
GCC, which happened to be 4.1.2.  I ran the setup script, and then ran gcc's configure script, then ran
make.  The following link command causes make to fail:

c++   -g -O2  -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -
pedantic -Wno-long-long -Wno-variadic-macros -Wold-style-definition -Wmissing-format-attribute
-DHAVE_CONFIG_H -I. -I. -I../.././gcc -I../.././gcc/. -I../.././gcc/../include -I./../intl -
I../.././gcc/../libcpp/include     -I. -I. -I../.././gcc -I../.././gcc/. -I../.././gcc/../include -I./../intl -
I../.././gcc/../libcpp/include  -I../.././gcc/d -I../.././gcc/d/dmd -Id -D_GNU_SOURCE=1 -D_DH=1 -
DD_NO_TRAMPOLINES=1 -DELFOBJ=1 -DLIBPHOBOS=\"-lgphobos\" -DLIBPHOBOS_PROFILE=\"-
lgphobos\" -DD_GCC_VER=41 -Wno-missing-braces -fmessage-length=0  -o cc1d \
		d/id.gen.o d/impcnvtab.gen.o attribs.o cppdefault.o stub-objc.o prefix.o darwin-c.o
d/access.dmd.o d/array.dmd.o d/attrib.dmd.o d/cast.dmd.o d/class.dmd.o d/cond.dmd.o
d/constfold.dmd.o d/dchar.dmd.o d/declaration.dmd.o d/delegatize.dmd.o d/doc.dmd.o
d/dsymbol.dmd.o d/dump.dmd.o d/entity.dmd.o d/enum.dmd.o d/expression.dmd.o d/func.dmd.o
d/gnuc.dmd.o d/hdrgen.dmd.o d/html.dmd.o d/identifier.dmd.o d/import.dmd.o d/init.dmd.o
d/inline.dmd.o d/interpret.dmd.o d/lexer.dmd.o d/lstring.dmd.o d/macro.dmd.o d/mangle.dmd.o
d/mars.dmd.o d/mem.dmd.o d/mtype.dmd.o d/module.dmd.o d/opover.dmd.o d/optimize.dmd.o
d/parse.dmd.o d/root.dmd.o d/scope.dmd.o d/statement.dmd.o d/staticassert.dmd.o
d/stringtable.dmd.o d/struct.dmd.o d/template.dmd.o d/todt.dmd.o d/toobj.dmd.o d/typinf.dmd.o
d/unialpha.dmd.o d/utf.dmd.o d/version.dmd.o d/d-lang.glue.o d/d-decls.glue.o d/d-codegen.glue.o
d/d-objfile.glue.o d/d-irstate.glue.o d/d-glue.glue.o d/d-convert.glue.o d/d-todt.glue.o d/d-gcc-
real.glue.o d/d-gt.cglue.o d/d-builtins.cglue.o d/d-misc.cglue.o d/d-builtins2.glue.o d/symbol.glue.o
d/asmstmt.glue.o d/dt.glue.o  d/d-c-stubs.cglue.o main.o  libbackend.a ../libcpp/libcpp.a
../libcpp/libcpp.a ./../intl/libintl.a -liconv  ../libiberty/libiberty.a
Undefined symbols:
  "AggregateDeclaration::buildDtor(Scope*)", referenced from:
      ClassDeclaration::semantic(Scope*)      in class.dmd.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[2]: *** [cc1d] Error 1
make[1]: *** [all-gcc] Error 2
make: *** [all] Error 2

Any ideas?

I compiling on Mac OS X 10.5.2.




More information about the Digitalmars-d mailing list