[phobos] Cannot build druntime on osx
Jacob Carlborg
doob at me.com
Thu Nov 25 12:01:30 PST 2010
Ok, I did exactly the same now and everything built.
OS: 10.6.5
GCC: gcc version 4.2.1 (Apple Inc. build 5664)
Xcode: Version 3.2.4
Don't know if the above matters or not.
On 25 nov 2010, at 19:59, Andrei Alexandrescu wrote:
> Couldn't solve it. My steps were:
>
> 1. Check out dmd from source, build on OSX (worked)
>
> 2. Copy dmd to /usr/local/bin
>
> 3. Check out druntime and phobos
>
> 4. Try building druntime
>
>
> Andrei
>
> On 11/25/10 12:28 PM, Jacob Carlborg wrote:
>> Have you been able to solve this? I don't get that error, just checked out the trunk and compiled. Maybe my compiler is not up to date. I'm using 2.051, but I'm not sure what exact revision I'm using, perhaps 748.
>>
>> On 25 nov 2010, at 01:09, Andrei Alexandrescu wrote:
>>
>>> After getting from trunk, I cannot build druntime with the current compiler (also gotten from trunk):
>>>
>>> $ make -f posix.mak
>>> 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/type
> in!
>> fo/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
>>>
>>> Any ideas on what's happening?
>>>
>>>
>>> Thanks,
>>>
>>> Andrei
>>> _______________________________________________
>>> phobos mailing list
>>> phobos at puremagic.com
>>> http://lists.puremagic.com/mailman/listinfo/phobos
>>
> _______________________________________________
> phobos mailing list
> phobos at puremagic.com
> http://lists.puremagic.com/mailman/listinfo/phobos
--
/Jacob Carlborg
More information about the phobos
mailing list