www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - compile phobos into 64bit -- error!

reply David Wang <osx.david live.com> writes:
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 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 Ocean phobos]$
=====================================

Could anyone be kindly to help me?


Best regards.
David.
Apr 16 2011
next sibling parent reply Andrei Alexandrescu <SeeWebsiteForEmail erdani.org> writes:
On 4/16/11 9:44 AM, David Wang wrote:
 Hi, all,

What operating system? Andrei
Apr 16 2011
parent David Wang <osx.david live.com> writes:
====================
== Forward by Andrei Alexandrescu (SeeWebsiteForEmail erdani.org)
== Posted at 2011/04/16 10:43 to digitalmars.D

On 4/16/11 9:44 AM, David Wang wrote:
 Hi, all,

What operating system? Andrei ==================== Hi, Andrei, I'm using Fedora 14 x86_64. Best regards. David.
Apr 16 2011
prev sibling next sibling parent reply Don <nospam nospam.com> writes:
David Wang wrote:
 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:

A 'live' development checkout is not guaranteed to work. For one thing, development on Phobos and on the compiler is independent, and changes can be made simultaneously to both. To maximize your chances of getting a functional build, look at the D autotester before you download from github. http://d.puremagic.com/test-results/index.ghtml Additionally, any problems should be reported on the development mailing lists, not here. In this particular case, what's happened is that one of the largest structural problems inside the compiler has been fixed. This fixed a dozen of the nastiest bugs in Bugzilla, but also exposed some problems in Phobos and in the test suite. It'll probably be another day or so before everything is fully stable again.
Apr 17 2011
parent reply Kai Meyer <kai unixlords.com> writes:
On 04/17/2011 08:29 AM, Don wrote:
 David Wang wrote:
 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:

A 'live' development checkout is not guaranteed to work. For one thing, development on Phobos and on the compiler is independent, and changes can be made simultaneously to both. To maximize your chances of getting a functional build, look at the D autotester before you download from github. http://d.puremagic.com/test-results/index.ghtml Additionally, any problems should be reported on the development mailing lists, not here. In this particular case, what's happened is that one of the largest structural problems inside the compiler has been fixed. This fixed a dozen of the nastiest bugs in Bugzilla, but also exposed some problems in Phobos and in the test suite. It'll probably be another day or so before everything is fully stable again.

What a wonderful resource. The test results are fascinating, and provide some insight I've been idly wondering about recently. Thanks :) David, it appears should be able to simply go backwards ("Older") until you see a good compile and test, and check out that revision from git, like this one: http://d.puremagic.com/test-results/index.ghtml?runmax=8413&runmin=8364 -Kai Meyer
Apr 18 2011
parent David Wang <osx.david live.com> writes:
=================
What a wonderful resource. The test results are fascinating, and
provide
some insight I've been idly wondering about recently. Thanks :)

David, it appears should be able to simply go backwards ("Older")
until
you see a good compile and test, and check out that revision from
git,
like this one:
http://d.puremagic.com/test-results/index.ghtml?
runmax=8413&runmin=8364

-Kai Meyer
=================

Thank you very much Kai.
I viewed the test-results and I found that
-----
2011-04-12 17:51:11 (00:22:22)
From git://github.com/D-Programming-Language/phobos
   1578be0..325a8fe  master     -> origin/master
Updating 1578be0..325a8fe
-----
The "1578be0..325a8fe" version that succeeded pass the 32bit &
64bit Linux.

see "http://d.puremagic.com/test-results/index.ghtml?
runmax=8462&runmin=8413".


But then I browsed
"https://github.com/D-Programming-Language/dmd/commits/master", I
can not find "1578be0" name version dmd.

Why?


Best regards.
David.
Apr 19 2011
prev sibling parent Andrej Mitrovic <andrej.mitrovich gmail.com> writes:
On 4/17/11, Don <nospam nospam.com> wrote:
 In this particular case, what's happened is that one of the largest
 structural problems inside the compiler has been fixed. This fixed a
 dozen of the nastiest bugs in Bugzilla..

That sounds delicious! :>
Apr 17 2011