compile phobos into 64bit -- error!

David Wang osx.david at live.com
Sat Apr 16 07:44:05 PDT 2011


Hi, all,

I've download the latest dmd & druntime & phobos from gitHub.com;
I copied them into a "32bit" folder and a "64bit" folder; I combined them
separately into 32bit version and 64bit.

1). 32bit for dmd & druntime & phobos -- passed.
2). 64bit for dmd & druntime -- passed; but phobos -- failed. Please view the
info as follows:

(I change the model of phobos to 64bit:

....
....
ifeq (,$(MODEL))
	MODEL:=64
endif
....
....

)
=====================================
[David at Ocean phobos]$ make -f posix.mak DMD=dmd
make --no-print-directory -f posix.mak OS=linux MODEL=64 BUILD=release
cc -c  -m64 -O3 etc/c/zlib/adler32.c
-ogenerated/linux/release/64/etc/c/zlib/adler32.o
cc -c  -m64 -O3 etc/c/zlib/compress.c
-ogenerated/linux/release/64/etc/c/zlib/compress.o
cc -c  -m64 -O3 etc/c/zlib/crc32.c -ogenerated/linux/release/64/etc/c/zlib/crc32.o
cc -c  -m64 -O3 etc/c/zlib/deflate.c
-ogenerated/linux/release/64/etc/c/zlib/deflate.o
cc -c  -m64 -O3 etc/c/zlib/gzclose.c
-ogenerated/linux/release/64/etc/c/zlib/gzclose.o
cc -c  -m64 -O3 etc/c/zlib/gzlib.c -ogenerated/linux/release/64/etc/c/zlib/gzlib.o
cc -c  -m64 -O3 etc/c/zlib/gzread.c
-ogenerated/linux/release/64/etc/c/zlib/gzread.o
cc -c  -m64 -O3 etc/c/zlib/gzwrite.c
-ogenerated/linux/release/64/etc/c/zlib/gzwrite.o
cc -c  -m64 -O3 etc/c/zlib/infback.c
-ogenerated/linux/release/64/etc/c/zlib/infback.o
cc -c  -m64 -O3 etc/c/zlib/inffast.c
-ogenerated/linux/release/64/etc/c/zlib/inffast.o
cc -c  -m64 -O3 etc/c/zlib/inflate.c
-ogenerated/linux/release/64/etc/c/zlib/inflate.o
cc -c  -m64 -O3 etc/c/zlib/inftrees.c
-ogenerated/linux/release/64/etc/c/zlib/inftrees.o
cc -c  -m64 -O3 etc/c/zlib/trees.c -ogenerated/linux/release/64/etc/c/zlib/trees.o
cc -c  -m64 -O3 etc/c/zlib/uncompr.c
-ogenerated/linux/release/64/etc/c/zlib/uncompr.o
cc -c  -m64 -O3 etc/c/zlib/zutil.c -ogenerated/linux/release/64/etc/c/zlib/zutil.o
dmd -I../druntime/import  -w -d -m64 -O -release -nofloat -lib
-ofgenerated/linux/release/64/libphobos2.a ../druntime/lib/libdruntime.a
crc32.d std/algorithm.d std/array.d std/base64.d std/bigint.d std/bitmanip.d
std/compiler.d std/complex.d std/concurrency.d std/container.d std/contracts.d
std/conv.d std/cpuid.d std/cstream.d std/ctype.d std/date.d std/datetime.d
std/datebase.d std/dateparse.d std/demangle.d std/encoding.d std/exception.d
std/file.d std/format.d std/functional.d std/getopt.d std/gregorian.d
std/intrinsic.d std/json.d std/loader.d std/math.d std/mathspecial.d std/md5.d
std/metastrings.d std/mmfile.d std/numeric.d std/outbuffer.d std/path.d
std/perf.d std/process.d std/random.d std/range.d std/regex.d std/regexp.d
std/signals.d std/socket.d std/socketstream.d std/stdint.d std/stdio.d
std/stdiobase.d std/stream.d std/string.d std/syserror.d std/system.d
std/traits.d std/typecons.d std/typetuple.d std/uni.d std/uri.d std/utf.d
std/variant.d std/xml.d std/zip.d std/zlib.d std/c/stdarg.d std/c/stdio.d
etc/c/zlib.d std/internal/math/biguintcore.d std/internal/math/biguintnoasm.d
std/internal/math/biguintx86.d std/internal/math/gammafunction.d
std/internal/math/errorfunction.d etc/c/curl.d std/c/linux/linux.d
std/c/linux/socket.d generated/linux/release/64/etc/c/zlib/adler32.o
generated/linux/release/64/etc/c/zlib/compress.o
generated/linux/release/64/etc/c/zlib/crc32.o
generated/linux/release/64/etc/c/zlib/deflate.o
generated/linux/release/64/etc/c/zlib/gzclose.o
generated/linux/release/64/etc/c/zlib/gzlib.o
generated/linux/release/64/etc/c/zlib/gzread.o
generated/linux/release/64/etc/c/zlib/gzwrite.o
generated/linux/release/64/etc/c/zlib/infback.o
generated/linux/release/64/etc/c/zlib/inffast.o
generated/linux/release/64/etc/c/zlib/inflate.o
generated/linux/release/64/etc/c/zlib/inftrees.o
generated/linux/release/64/etc/c/zlib/trees.o
generated/linux/release/64/etc/c/zlib/uncompr.o
generated/linux/release/64/etc/c/zlib/zutil.o
std.contracts has been scheduled for deprecation. Please use std.exception
instead.
std.date and std.dateparse have been scheduled for deprecation. Please use
std.datetime instead.
std.gregorian has been scheduled for deprecation. Please use std.datetime instead.
std.perf has been scheduled for deprecation. Please use std.datetime instead.
std/uni.d(585): Error: cannot implicitly convert expression (table.length -
1LU) of type ulong to uint
std/uri.d(397): Error: template std.string.icmp(alias pred = "a < b",S1,S2) if
(is(Unqual!(ElementType!(S1)) == dchar) && is(Unqual!(ElementType!(S2)) ==
dchar)) does not match any function template declaration
std/uri.d(397): Error: template std.string.icmp(alias pred = "a < b",S1,S2) if
(is(Unqual!(ElementType!(S1)) == dchar) && is(Unqual!(ElementType!(S2)) ==
dchar)) cannot deduce template function from argument types !()(string,string)
std/uri.d(399): Error: template std.string.icmp(alias pred = "a < b",S1,S2) if
(is(Unqual!(ElementType!(S1)) == dchar) && is(Unqual!(ElementType!(S2)) ==
dchar)) does not match any function template declaration
std/uri.d(399): Error: template std.string.icmp(alias pred = "a < b",S1,S2) if
(is(Unqual!(ElementType!(S1)) == dchar) && is(Unqual!(ElementType!(S2)) ==
dchar)) cannot deduce template function from argument types !()(string,string)
std/uri.d(406): Warning: statement is not reachable
std/uri.d(407): Warning: statement is not reachable
std/uri.d(425): Warning: statement is not reachable
std/uri.d(428): Warning: statement is not reachable
make[1]: *** [generated/linux/release/64/libphobos2.a] error 1
make: *** [release] error 2
[David at Ocean phobos]$
=====================================

Could anyone be kindly to help me?


Best regards.
David.


More information about the Digitalmars-d mailing list