Building 2.063.2 from source produces non-working toolchain??

H. S. Teoh hsteoh at quickfur.ath.cx
Wed Aug 28 15:18:47 PDT 2013


While trying to track down a 2.063.2 problem someone posted to the
D.learn forum, I tried to build dmd/druntime/phobos 2.063.2 from source,
and to my chagrin, discovered that the resulting toolchain is
non-functional.  Even the simplest program:

	void main() {}

doesn't compile:

/mnt/1/usr/bin/../lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/crt1.o: In function `_start':
(.text+0x20): undefined reference to `main'
test.o: In function `no symbol':
test.d:(.text+0x6): undefined reference to `_Dmodule_ref'
collect2: error: ld returned 1 exit status
--- errorlevel 1

Attempting to run Phobos unittests also aborts with undefined references
to `_Dmodule_ref'.

Am I doing something wrong?? How did 2.063.2 even build in the first
place?

P.S. I'm on Linux 64-bit, in case that matters. (Also, I don't have
32-bit development libraries installed -- could that be a problem?)


T

-- 
May you live all the days of your life. -- Jonathan Swift


More information about the Digitalmars-d mailing list