[phobos] Cannot build druntime on osx
Andrei Alexandrescu
andrei at erdani.com
Thu Nov 25 13:35:53 PST 2010
Thanks for helping. This is definitely getting very annoying. We seem to
have the same exact configuration!
OS: 10.6.5
cc -v returns:
======
Using built-in specs.
Target: i686-apple-darwin10
Configured with: /var/tmp/gcc/gcc-5664~105/src/configure
--disable-checking --enable-werror --prefix=/usr --mandir=/share/man
--enable-languages=c,objc,c++,obj-c++
--program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib
--build=i686-apple-darwin10 --program-prefix=i686-apple-darwin10-
--host=x86_64-apple-darwin10 --target=i686-apple-darwin10
--with-gxx-include-dir=/include/c++/4.2.1
Thread model: posix
gcc version 4.2.1 (Apple Inc. build 5664)
======
I don't know about Xcode, where is it used?
When I build, I svn up druntime; I get "at version 431". Then I issue
from the druntime dir:
make -f posix.mak
and the output (for a cold build) is shown below. Anything suspicious?
Andrei
dmd -c -d -o- -Isrc -Iimport -Hfimport/core/atomic.di src/core/atomic.d
dmd -c -d -o- -Isrc -Iimport -Hfimport/core/bitop.di src/core/bitop.d
dmd -c -d -o- -Isrc -Iimport -Hfimport/core/cpuid.di src/core/cpuid.d
dmd -c -d -o- -Isrc -Iimport -Hfimport/core/demangle.di src/core/demangle.d
dmd -c -d -o- -Isrc -Iimport -Hfimport/core/dll_helper.di
src/core/dll_helper.d
dmd -c -d -o- -Isrc -Iimport -Hfimport/core/exception.di
src/core/exception.d
dmd -c -d -o- -Isrc -Iimport -Hfimport/core/memory.di src/core/memory.d
dmd -c -d -o- -Isrc -Iimport -Hfimport/core/runtime.di src/core/runtime.d
dmd -c -d -o- -Isrc -Iimport -Hfimport/core/thread.di src/core/thread.d
dmd -c -d -o- -Isrc -Iimport -Hfimport/core/time.di src/core/time.d
dmd -c -d -o- -Isrc -Iimport -Hfimport/core/thread_helper.di
src/core/thread_helper.d
dmd -c -d -o- -Isrc -Iimport -Hfimport/core/vararg.di src/core/vararg.d
dmd -c -d -o- -Isrc -Iimport -Hfimport/core/stdc/complex.di
src/core/stdc/complex.d
dmd -c -d -o- -Isrc -Iimport -Hfimport/core/stdc/config.di
src/core/stdc/config.d
dmd -c -d -o- -Isrc -Iimport -Hfimport/core/stdc/ctype.di
src/core/stdc/ctype.d
dmd -c -d -o- -Isrc -Iimport -Hfimport/core/stdc/errno.di
src/core/stdc/errno.d
dmd -c -d -o- -Isrc -Iimport -Hfimport/core/stdc/fenv.di
src/core/stdc/fenv.d
dmd -c -d -o- -Isrc -Iimport -Hfimport/core/stdc/float_.di
src/core/stdc/float_.d
dmd -c -d -o- -Isrc -Iimport -Hfimport/core/stdc/inttypes.di
src/core/stdc/inttypes.d
dmd -c -d -o- -Isrc -Iimport -Hfimport/core/stdc/limits.di
src/core/stdc/limits.d
dmd -c -d -o- -Isrc -Iimport -Hfimport/core/stdc/locale.di
src/core/stdc/locale.d
dmd -c -d -o- -Isrc -Iimport -Hfimport/core/stdc/math.di
src/core/stdc/math.d
dmd -c -d -o- -Isrc -Iimport -Hfimport/core/stdc/signal.di
src/core/stdc/signal.d
dmd -c -d -o- -Isrc -Iimport -Hfimport/core/stdc/stdarg.di
src/core/stdc/stdarg.d
dmd -c -d -o- -Isrc -Iimport -Hfimport/core/stdc/stddef.di
src/core/stdc/stddef.d
dmd -c -d -o- -Isrc -Iimport -Hfimport/core/stdc/stdint.di
src/core/stdc/stdint.d
dmd -c -d -o- -Isrc -Iimport -Hfimport/core/stdc/stdio.di
src/core/stdc/stdio.d
dmd -c -d -o- -Isrc -Iimport -Hfimport/core/stdc/stdlib.di
src/core/stdc/stdlib.d
dmd -c -d -o- -Isrc -Iimport -Hfimport/core/stdc/string.di
src/core/stdc/string.d
dmd -c -d -o- -Isrc -Iimport -Hfimport/core/stdc/tgmath.di
src/core/stdc/tgmath.d
dmd -c -d -o- -Isrc -Iimport -Hfimport/core/stdc/time.di
src/core/stdc/time.d
dmd -c -d -o- -Isrc -Iimport -Hfimport/core/stdc/wchar_.di
src/core/stdc/wchar_.d
dmd -c -d -o- -Isrc -Iimport -Hfimport/core/stdc/wctype.di
src/core/stdc/wctype.d
dmd -c -d -o- -Isrc -Iimport -Hfimport/core/sync/barrier.di
src/core/sync/barrier.d
dmd -c -d -o- -Isrc -Iimport -Hfimport/core/sync/condition.di
src/core/sync/condition.d
dmd -c -d -o- -Isrc -Iimport -Hfimport/core/sync/config.di
src/core/sync/config.d
dmd -c -d -o- -Isrc -Iimport -Hfimport/core/sync/exception.di
src/core/sync/exception.d
dmd -c -d -o- -Isrc -Iimport -Hfimport/core/sync/mutex.di
src/core/sync/mutex.d
dmd -c -d -o- -Isrc -Iimport -Hfimport/core/sync/rwmutex.di
src/core/sync/rwmutex.d
dmd -c -d -o- -Isrc -Iimport -Hfimport/core/sync/semaphore.di
src/core/sync/semaphore.d
dmd -c -d -o- -Isrc -Iimport -Hfimport/core/sys/osx/mach/kern_return.di
src/core/sys/osx/mach/kern_return.d
dmd -c -d -o- -Isrc -Iimport -Hfimport/core/sys/osx/mach/port.di
src/core/sys/osx/mach/port.d
dmd -c -d -o- -Isrc -Iimport -Hfimport/core/sys/osx/mach/semaphore.di
src/core/sys/osx/mach/semaphore.d
dmd -c -d -o- -Isrc -Iimport -Hfimport/core/sys/osx/mach/thread_act.di
src/core/sys/osx/mach/thread_act.d
dmd -c -d -o- -Isrc -Iimport -Hfimport/core/sys/posix/arpa/inet.di
src/core/sys/posix/arpa/inet.d
dmd -c -d -o- -Isrc -Iimport -Hfimport/core/sys/posix/config.di
src/core/sys/posix/config.d
dmd -c -d -o- -Isrc -Iimport -Hfimport/core/sys/posix/dirent.di
src/core/sys/posix/dirent.d
dmd -c -d -o- -Isrc -Iimport -Hfimport/core/sys/posix/dlfcn.di
src/core/sys/posix/dlfcn.d
dmd -c -d -o- -Isrc -Iimport -Hfimport/core/sys/posix/fcntl.di
src/core/sys/posix/fcntl.d
dmd -c -d -o- -Isrc -Iimport -Hfimport/core/sys/posix/inttypes.di
src/core/sys/posix/inttypes.d
dmd -c -d -o- -Isrc -Iimport -Hfimport/core/sys/posix/poll.di
src/core/sys/posix/poll.d
dmd -c -d -o- -Isrc -Iimport -Hfimport/core/sys/posix/pthread.di
src/core/sys/posix/pthread.d
dmd -c -d -o- -Isrc -Iimport -Hfimport/core/sys/posix/pwd.di
src/core/sys/posix/pwd.d
dmd -c -d -o- -Isrc -Iimport -Hfimport/core/sys/posix/sched.di
src/core/sys/posix/sched.d
dmd -c -d -o- -Isrc -Iimport -Hfimport/core/sys/posix/semaphore.di
src/core/sys/posix/semaphore.d
dmd -c -d -o- -Isrc -Iimport -Hfimport/core/sys/posix/setjmp.di
src/core/sys/posix/setjmp.d
dmd -c -d -o- -Isrc -Iimport -Hfimport/core/sys/posix/signal.di
src/core/sys/posix/signal.d
dmd -c -d -o- -Isrc -Iimport -Hfimport/core/sys/posix/stdio.di
src/core/sys/posix/stdio.d
dmd -c -d -o- -Isrc -Iimport -Hfimport/core/sys/posix/stdlib.di
src/core/sys/posix/stdlib.d
dmd -c -d -o- -Isrc -Iimport -Hfimport/core/sys/posix/termios.di
src/core/sys/posix/termios.d
dmd -c -d -o- -Isrc -Iimport -Hfimport/core/sys/posix/time.di
src/core/sys/posix/time.d
dmd -c -d -o- -Isrc -Iimport -Hfimport/core/sys/posix/ucontext.di
src/core/sys/posix/ucontext.d
dmd -c -d -o- -Isrc -Iimport -Hfimport/core/sys/posix/unistd.di
src/core/sys/posix/unistd.d
dmd -c -d -o- -Isrc -Iimport -Hfimport/core/sys/posix/utime.di
src/core/sys/posix/utime.d
dmd -c -d -o- -Isrc -Iimport -Hfimport/core/sys/posix/net/if_.di
src/core/sys/posix/net/if_.d
dmd -c -d -o- -Isrc -Iimport -Hfimport/core/sys/posix/netinet/in_.di
src/core/sys/posix/netinet/in_.d
dmd -c -d -o- -Isrc -Iimport -Hfimport/core/sys/posix/netinet/tcp.di
src/core/sys/posix/netinet/tcp.d
dmd -c -d -o- -Isrc -Iimport -Hfimport/core/sys/posix/sys/ipc.di
src/core/sys/posix/sys/ipc.d
dmd -c -d -o- -Isrc -Iimport -Hfimport/core/sys/posix/sys/mman.di
src/core/sys/posix/sys/mman.d
dmd -c -d -o- -Isrc -Iimport -Hfimport/core/sys/posix/sys/select.di
src/core/sys/posix/sys/select.d
dmd -c -d -o- -Isrc -Iimport -Hfimport/core/sys/posix/sys/shm.di
src/core/sys/posix/sys/shm.d
dmd -c -d -o- -Isrc -Iimport -Hfimport/core/sys/posix/sys/socket.di
src/core/sys/posix/sys/socket.d
dmd -c -d -o- -Isrc -Iimport -Hfimport/core/sys/posix/sys/stat.di
src/core/sys/posix/sys/stat.d
dmd -c -d -o- -Isrc -Iimport -Hfimport/core/sys/posix/sys/time.di
src/core/sys/posix/sys/time.d
dmd -c -d -o- -Isrc -Iimport -Hfimport/core/sys/posix/sys/types.di
src/core/sys/posix/sys/types.d
dmd -c -d -o- -Isrc -Iimport -Hfimport/core/sys/posix/sys/uio.di
src/core/sys/posix/sys/uio.d
dmd -c -d -o- -Isrc -Iimport -Hfimport/core/sys/posix/sys/wait.di
src/core/sys/posix/sys/wait.d
dmd -c -d -o- -Isrc -Iimport -Hfimport/core/sys/windows/windows.di
src/core/sys/windows/windows.d
cc -c -m32 -O src/core/stdc/errno.c -oobj/errno_c.o
cc -c -m32 -O src/core/threadasm.S -oobj/threadasm.o
cc -c -m32 -O src/rt/complex.c -oobj/complex.o
cc -c -m32 -O src/rt/critical.c -oobj/critical.o
cc -c -m32 -O src/rt/memory_osx.c -oobj/memory_osx.o
cc -c -m32 -O src/rt/monitor.c -oobj/monitor.o
dmd -lib -oflib/libdruntime.a -Xfdruntime.json -m32 -O -release -inline
-nofloat -w -d -Isrc -Iimport src/object_.d src/core/atomic.d
src/core/bitop.d src/core/cpuid.d src/core/demangle.d
src/core/exception.d src/core/memory.d src/core/runtime.d
src/core/thread.d src/core/time.d src/core/vararg.d
src/core/stdc/config.d src/core/stdc/ctype.d src/core/stdc/errno.d
src/core/stdc/math.d src/core/stdc/signal.d src/core/stdc/stdarg.d
src/core/stdc/stdio.d src/core/stdc/stdlib.d src/core/stdc/stdint.d
src/core/stdc/stddef.d src/core/stdc/string.d src/core/stdc/time.d
src/core/stdc/wchar_.d src/core/sys/posix/sys/select.d
src/core/sys/posix/sys/socket.d src/core/sys/posix/sys/stat.d
src/core/sys/posix/sys/wait.d src/core/sys/posix/netinet/in_.d
src/core/sync/barrier.d src/core/sync/condition.d src/core/sync/config.d
src/core/sync/exception.d src/core/sync/mutex.d src/core/sync/rwmutex.d
src/core/sync/semaphore.d src/gc/gc.d src/gc/gcalloc.d src/gc/gcbits.d
src/gc/gcstats.d src/gc/gcx.d src/rt/aaA.d src/rt/aApply.d
src/rt/aApplyR.d src/rt/adi.d src/rt/alloca.d src/rt/arrayassign.d
src/rt/arraybyte.d src/rt/arraycast.d src/rt/arraycat.d
src/rt/arraydouble.d src/rt/arrayfloat.d src/rt/arrayint.d
src/rt/arrayreal.d src/rt/arrayshort.d src/rt/cast_.d src/rt/cmath2.d
src/rt/cover.d src/rt/deh2.d src/rt/dmain2.d src/rt/invariant.d
src/rt/invariant_.d src/rt/lifetime.d src/rt/llmath.d src/rt/memory.d
src/rt/memset.d src/rt/obj.d src/rt/qsort.d src/rt/switch_.d
src/rt/trace.d src/rt/util/console.d src/rt/util/ctype.d
src/rt/util/hash.d src/rt/util/string.d src/rt/util/utf.d
src/rt/typeinfo/ti_AC.d src/rt/typeinfo/ti_Acdouble.d
src/rt/typeinfo/ti_Acfloat.d src/rt/typeinfo/ti_Acreal.d
src/rt/typeinfo/ti_Adouble.d src/rt/typeinfo/ti_Afloat.d
src/rt/typeinfo/ti_Ag.d src/rt/typeinfo/ti_Aint.d
src/rt/typeinfo/ti_Along.d src/rt/typeinfo/ti_Areal.d
src/rt/typeinfo/ti_Ashort.d src/rt/typeinfo/ti_byte.d
src/rt/typeinfo/ti_C.d src/rt/typeinfo/ti_cdouble.d
src/rt/typeinfo/ti_cfloat.d src/rt/typeinfo/ti_char.d
src/rt/typeinfo/ti_creal.d src/rt/typeinfo/ti_dchar.d
src/rt/typeinfo/ti_delegate.d src/rt/typeinfo/ti_double.d
src/rt/typeinfo/ti_float.d src/rt/typeinfo/ti_idouble.d
src/rt/typeinfo/ti_ifloat.d src/rt/typeinfo/ti_int.d
src/rt/typeinfo/ti_ireal.d src/rt/typeinfo/ti_long.d
src/rt/typeinfo/ti_ptr.d src/rt/typeinfo/ti_real.d
src/rt/typeinfo/ti_short.d src/rt/typeinfo/ti_ubyte.d
src/rt/typeinfo/ti_uint.d src/rt/typeinfo/ti_ulong.d
src/rt/typeinfo/ti_ushort.d src/rt/typeinfo/ti_void.d
src/rt/typeinfo/ti_wchar.d obj/errno_c.o obj/threadasm.o obj/complex.o
obj/critical.o obj/memory_osx.o obj/monitor.o
Error: corrupt object module obj/errno_c.o 13
make: *** [lib/libdruntime.a] Error 1
Andrei
More information about the phobos
mailing list