some problems in dmd.2.034
zsxxsz
zhengshuxin at hexun.com
Mon Oct 12 19:40:01 PDT 2009
I'll download the new release dmd2.xxx where the new one was released. But
when I compile dmd2.xxx, I always encounter the same problem as below:
$cd dmd.2.034/dmd2/src/dmd
$make -f linux.mak
backend/dwarf.c:54:26: ../mars/mars.h: No such file or directory
backend/dwarf.c: In function `void dwarf_initfile(const char*)':
backend/dwarf.c:447: error: `global' was not declared in this scope
make: *** [dwarf.o] Error 1
g++ -m32 -c -Wno-deprecated -D__near= -D__pascal= -fno-exceptions -O2
-Ibackend -Itk -D__I86__=1 -DMARS=1 -DTARGET_LINUX=1 -D_DH backend/dwarf.c
In file included from backend/dwarf.c:54:
backend/../mars/mars.h:246:25: complex_t.h: No such file or directory
make: *** [dwarf.o] Error 1
I have to do as below:
$mkdir mars
$cp mars.h mars/
$cp complex_t.h mars/
and continue to make -f linux.mak, then the compiling will be finish.
The problem appeared in DMD.2.xxx, including DMD.2.034. And then, in
DMD.2.034, there is a new problem when compiling druntime as below:
$cd dmd.2.034/dmd2/src/druntime/src
$ make -f dmd-posix.mak
cc -c -m32 -g core/stdc/errno.c core/threadasm.S
dmd -d -g -w -nofloat -lib -of../../lib/debug/libdruntime-core.a core/bitop.d
core/exception.d core/memory.d core/runtime.d core/thread.d core/vararg.d
core/sync/barrier.d core/sync/condition.d core/sync/config.d
core/sync/exception.d core/sync/mutex.d core/sync/rwmutex.d
core/sync/semaphore.d ../../import/core/stdc/math.d
../../import/core/stdc/stdarg.d ../../import/core/stdc/stdio.d
../../import/core/stdc/wchar_.d ../../import/core/sys/posix/netinet/in_.d
../../import/core/sys/posix/sys/select.d
../../import/core/sys/posix/sys/socket.d
../../import/core/sys/posix/sys/stat.d ../../import/core/sys/posix/sys/wait.d
errno.o threadasm.o
make[1]: execvp: dmd: Permission denied
make[1]: *** [../../lib/debug/libdruntime-core.a] Error 127
make: *** [debug] Error 2
More information about the Digitalmars-d-announce
mailing list