FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Some errors for build example
Goto page Previous  1, 2
 
Post new topic   Reply to topic     Forum Index -> Mango
View previous topic :: View next topic  
Author Message
lijie



Joined: 28 Oct 2005
Posts: 24
Location: Shenzhen, China

PostPosted: Tue Nov 01, 2005 3:23 pm    Post subject: Reply with quote

kris wrote:
lijie wrote:
Yes. this is a bug of Build v2.9, and the 2.08 edtion is OK.

Lijie, would you mind posting a console listing of the successful build?

I don't understand you very much, as I change Build v2.9 into Build v2.08, all compile and run successfully.

On fedora 4:
I use DMD v0.137 to compile Build v2.08, then build mango with Build v2.08, all compiled and run passed.
When I change Build v2.08 into Build v2.09, all build successfully, but the 'Error: circular initialization dependency with module Event' found when I run the 'alert'.

Sorry my bad English...aha...
Back to top
View user's profile Send private message
kris



Joined: 27 Mar 2004
Posts: 1494
Location: South Pacific

PostPosted: Tue Nov 01, 2005 3:49 pm    Post subject: Reply with quote

lijie wrote:
kris wrote:
lijie wrote:
Yes. this is a bug of Build v2.9, and the 2.08 edtion is OK.

Lijie, would you mind posting a console listing of the successful build?

I don't understand you very much, as I change Build v2.9 into Build v2.08, all compile and run successfully.

On fedora 4:
I use DMD v0.137 to compile Build v2.08, then build mango with Build v2.08, all compiled and run passed.
When I change Build v2.08 into Build v2.09, all build successfully, but the 'Error: circular initialization dependency with module Event' found when I run the 'alert'.


I mean, can you post the 2.08 version of the console output, like you did for 2.09? Like this:

Quote:
Build v2.09:
Quote:

F:\OSS-PR~1\mango\example>build @alert
D:\dmd\bin\..\..\dm\bin\link.exe F:\OSS-PR~1\mango\mango\cache\HashMap+F:\OSS-PR~1\mango\mango\cluster\qos\socket\RollCall+F:
\OSS-PR~1\mango\mango\io\FileStyle+F:\OSS-PR~1\mango\mango\cache\model\IPayload+F:\OSS-PR~1\mango\mango\io\model\IWriter+F:\O
SS-PR~1\mango\mango\io\FileProxy+F:\OSS-PR~1\mango\mango\utils\Random+F:\OSS-PR~1\mango\mango\io\PickleReader+F:\OSS-PR~1\man
go\mango\cluster\qos\socket\ProtocolWriter+F:\OSS-PR~1\mango\mango\log\model\ILevel+F:\OSS-PR~1\mango\mango\io\FlushWriter+F:
\OSS-PR~1\mango\mango\sys\System+F:\OSS-PR~1\mango\mango\io\SocketConduit+F:\OSS-PR~1\mango\mango\log\Event+F:\OSS-PR~1\mango
mango\format\Double,alert.exe,,wsock32.lib+user32+kernel32,alert.def/noi;
F:\OSS-PR~1\mango\example>

on fedora 4:
Quote:
[lijie@localhost example]$ build @alert
gcc /home/lijie/d/mango/mango/io/Buffer.o
/home/lijie/d/ma ngo/mango/sys/ByteSwap.o /home/lijie/d/mango/mango/io/DisplayWriter.o /home/liji e/d/mango/mango/io/Uri.o /home/lijie/d/mango/mango/log/Configurator.o -o alert - lphobos -lpthread -lm
[lijie@localhost example]$

We need to see the order of the files compiled.
Back to top
View user's profile Send private message
lijie



Joined: 28 Oct 2005
Posts: 24
Location: Shenzhen, China

PostPosted: Tue Nov 01, 2005 4:21 pm    Post subject: Reply with quote

Quote:
F:\OSS-PR~1\mango\build>copy d:\dm\bin\build2.09.exe d:\dm\bin\build.exe
ÒѸ´ÖÆ 1 ¸öÎļþ¡£

F:\OSS-PR~1\mango\build>build -v
*** build v2.9 (build 1197)***
Error: No target name supplied.

F:\OSS-PR~1\mango\build>b

F:\OSS-PR~1\mango\build>build @icu
Digital Mars Librarian Version 8.00n
Copyright (C) Digital Mars 2000-2002 All Rights Reserved www.digitalmars.com
Digital Mars Librarian complete.

F:\OSS-PR~1\mango\build>build @log
Digital Mars Librarian Version 8.00n
Copyright (C) Digital Mars 2000-2002 All Rights Reserved www.digitalmars.com
Digital Mars Librarian complete.

F:\OSS-PR~1\mango\build>build @teqxml
Digital Mars Librarian Version 8.00n
Copyright (C) Digital Mars 2000-2002 All Rights Reserved www.digitalmars.com
Digital Mars Librarian complete.

F:\OSS-PR~1\mango\build>build @mango
Digital Mars Librarian Version 8.00n
Copyright (C) Digital Mars 2000-2002 All Rights Reserved www.digitalmars.com
Digital Mars Librarian complete.

F:\OSS-PR~1\mango\build>cd ..\example

F:\OSS-PR~1\mango\example>build @alert
D:\dmd\bin\..\..\dm\bin\link.exe F:\OSS-PR~1\mango\mango\cache\HashMap+F:\OSS-PR~1\mango\mango\cluster\qos\socket\RollCall+F:
\OSS-PR~1\mango\mango\io\FileStyle+F:\OSS-PR~1\mango\mango\cache\model\IPayload+F:\OSS-PR~1\mango\mango\io\model\IWriter+F:\O
SS-PR~1\mango\mango\io\FileProxy+F:\OSS-PR~1\mango\mango\utils\Random+F:\OSS-PR~1\mango\mango\io\PickleReader+F:\OSS-PR~1\man
go\mango\cluster\qos\socket\ProtocolWriter+F:\OSS-PR~1\mango\mango\log\model\ILevel+F:\OSS-PR~1\mango\mango\io\FlushWriter+F:
\OSS-PR~1\mango\mango\sys\System+F:\OSS-PR~1\mango\mango\io\SocketConduit+F:\OSS-PR~1\mango\mango\log\Event+F:\OSS-PR~1\mango
\mango\log\model\ILogger+F:\OSS-PR~1\mango\mango\io\Utf+F:\OSS-PR~1\mango\mango\io\model\IPickle+F:\OSS-PR~1\mango\mango\sys\
ByteSwap+F:\OSS-PR~1\mango\mango\cluster\model\IEvent+F:\OSS-PR~1\mango\mango\io\Conduit+F:\OSS-PR~1\mango\mango\io\EndianRea
der+F:\OSS-PR~1\mango\mango\utils\Text+F:\OSS-PR~1\mango\mango\cache\Payload+F:\OSS-PR~1\mango\mango\io\ConduitStyle+F:\OSS-P
R~1\mango\mango\cluster\model\ICluster+F:\OSS-PR~1\mango\mango\cluster\Client+F:\OSS-PR~1\mango\mango\log\DateLayout+F:\OSS-P
R~1\mango\mango\format\Number+F:\OSS-PR~1\mango\mango\io\Buffer+F:\OSS-PR~1\mango\mango\io\Reader+F:\OSS-PR~1\mango\mango\uti
ls\HeapSlice+F:\OSS-PR~1\mango\mango\format\Format+alert+F:\OSS-PR~1\mango\mango\io\model\IBuffer+F:\OSS-PR~1\mango\mango\io\
model\IReader+F:\OSS-PR~1\mango\mango\cluster\NetworkAlert+F:\OSS-PR~1\mango\mango\cluster\qos\socket\Cluster+F:\OSS-PR~1\man
go\mango\io\Uri+F:\OSS-PR~1\mango\mango\io\DatagramSocket+F:\OSS-PR~1\mango\mango\cluster\qos\socket\ProtocolReader+F:\OSS-PR
~1\mango\mango\cluster\Message+F:\OSS-PR~1\mango\mango\io\Socket+F:\OSS-PR~1\mango\mango\io\SocketListener+F:\OSS-PR~1\mango\
mango\log\Logger+F:\OSS-PR~1\mango\mango\log\Hierarchy+F:\OSS-PR~1\mango\mango\log\ConsoleAppender+F:\OSS-PR~1\mango\mango\io
\DisplayWriter+F:\OSS-PR~1\mango\mango\log\Configurator+F:\OSS-PR~1\mango\mango\cluster\model\IConsumer+F:\OSS-PR~1\mango\man
go\io\Properties+F:\OSS-PR~1\mango\mango\cluster\model\IChannel+F:\OSS-PR~1\mango\mango\io\Writer+F:\OSS-PR~1\mango\mango\io\
Tokenizer+F:\OSS-PR~1\mango\mango\log\Layout+F:\OSS-PR~1\mango\mango\io\Exception+F:\OSS-PR~1\mango\mango\io\FileConst+F:\OSS
-PR~1\mango\mango\sys\Epoch+F:\OSS-PR~1\mango\mango\io\Resource+F:\OSS-PR~1\mango\mango\log\Manager+F:\OSS-PR~1\mango\mango\c
luster\model\IMessage+F:\OSS-PR~1\mango\mango\io\PickleWriter+F:\OSS-PR~1\mango\mango\io\FilePath+F:\OSS-PR~1\mango\mango\io\
Stdout+F:\OSS-PR~1\mango\mango\cluster\qos\socket\ClusterEvent+F:\OSS-PR~1\mango\mango\io\Token+F:\OSS-PR~1\mango\mango\io\mo
del\IResource+F:\OSS-PR~1\mango\mango\io\FileConduit+F:\OSS-PR~1\mango\mango\io\model\IConduit+F:\OSS-PR~1\mango\mango\io\Dev
iceConduit+F:\OSS-PR~1\mango\mango\io\MulticastSocket+F:\OSS-PR~1\mango\mango\sys\Type+F:\OSS-PR~1\mango\mango\io\EndianWrite
r+F:\OSS-PR~1\mango\mango\log\Appender+F:\OSS-PR~1\mango\mango\io\PickleRegistry+F:\OSS-PR~1\mango\mango\io\ArrayAllocator+F:
\OSS-PR~1\mango\mango\format\Int+F:\OSS-PR~1\mango\mango\format\Styled+F:\OSS-PR~1\mango\mango\format\Long+F:\OSS-PR~1\mango\
mango\format\Double,alert.exe,,wsock32.lib+user32+kernel32,alert.def/noi;

F:\OSS-PR~1\mango\example>alert
Error: circular initialization dependency with module Event

Quote:

F:\OSS-PR~1\mango\build>copy d:\dm\bin\build2.08.exe d:\dm\bin\build.exe
¸²¸Ç d:\dm\bin\build.exe Âð? (Yes/No/All): y
ÒѸ´ÖÆ 1 ¸öÎļþ¡£

F:\OSS-PR~1\mango\build>b

F:\OSS-PR~1\mango\build>build @icu
Digital Mars Librarian Version 8.00n
Copyright (C) Digital Mars 2000-2002 All Rights Reserved www.digitalmars.com
Digital Mars Librarian complete.

F:\OSS-PR~1\mango\build>build @log
Digital Mars Librarian Version 8.00n
Copyright (C) Digital Mars 2000-2002 All Rights Reserved www.digitalmars.com
Digital Mars Librarian complete.

F:\OSS-PR~1\mango\build>build @teqxml
Digital Mars Librarian Version 8.00n
Copyright (C) Digital Mars 2000-2002 All Rights Reserved www.digitalmars.com
Digital Mars Librarian complete.

F:\OSS-PR~1\mango\build>build @mango
Digital Mars Librarian Version 8.00n
Copyright (C) Digital Mars 2000-2002 All Rights Reserved www.digitalmars.com
Digital Mars Librarian complete.

F:\OSS-PR~1\mango\build>cd ..\example

F:\OSS-PR~1\mango\example>build @alert
D:\dmd\bin\..\..\dm\bin\link.exe alert+F:\OSS-PR~1\mango\mango\io\model\IPickle+F:\OSS-PR~1\mango\mango\io\DisplayWriter+F:\O
SS-PR~1\mango\mango\utils\HeapSlice+F:\OSS-PR~1\mango\mango\io\Utf+F:\OSS-PR~1\mango\mango\log\Logger+F:\OSS-PR~1\mango\mango
\cluster\model\IEvent+F:\OSS-PR~1\mango\mango\log\Appender+F:\OSS-PR~1\mango\mango\log\Layout+F:\OSS-PR~1\mango\mango\io\File
Style+F:\OSS-PR~1\mango\mango\cluster\qos\socket\ProtocolReader+F:\OSS-PR~1\mango\mango\io\FileConduit+F:\OSS-PR~1\mango\mang
o\io\model\IConduit+F:\OSS-PR~1\mango\mango\cluster\qos\socket\Cluster+F:\OSS-PR~1\mango\mango\io\model\IWriter+F:\OSS-PR~1\m
ango\mango\io\Conduit+F:\OSS-PR~1\mango\mango\io\Socket+F:\OSS-PR~1\mango\mango\sys\System+F:\OSS-PR~1\mango\mango\sys\Epoch+
F:\OSS-PR~1\mango\mango\io\ArrayAllocator+F:\OSS-PR~1\mango\mango\log\DateLayout+F:\OSS-PR~1\mango\mango\cluster\qos\socket\R
ollCall+F:\OSS-PR~1\mango\mango\cluster\Client+F:\OSS-PR~1\mango\mango\io\DeviceConduit+F:\OSS-PR~1\mango\mango\format\Int+F:
\OSS-PR~1\mango\mango\io\SocketConduit+F:\OSS-PR~1\mango\mango\format\Styled+F:\OSS-PR~1\mango\mango\log\model\ILevel+F:\OSS-
PR~1\mango\mango\io\FlushWriter+F:\OSS-PR~1\mango\mango\cluster\NetworkAlert+F:\OSS-PR~1\mango\mango\io\FileConst+F:\OSS-PR~1
\mango\mango\log\model\ILogger+F:\OSS-PR~1\mango\mango\cluster\model\IMessage+F:\OSS-PR~1\mango\mango\sys\ByteSwap+F:\OSS-PR~
1\mango\mango\format\Format+F:\OSS-PR~1\mango\mango\cluster\qos\socket\ClusterEvent+F:\OSS-PR~1\mango\mango\io\Exception+F:\O
SS-PR~1\mango\mango\cache\model\IPayload+F:\OSS-PR~1\mango\mango\io\Stdout+F:\OSS-PR~1\mango\mango\io\ConduitStyle+F:\OSS-PR~
1\mango\mango\io\MulticastSocket+F:\OSS-PR~1\mango\mango\cluster\model\ICluster+F:\OSS-PR~1\mango\mango\cluster\model\IChanne
l+F:\OSS-PR~1\mango\mango\io\model\IResource+F:\OSS-PR~1\mango\mango\format\Double+F:\OSS-PR~1\mango\mango\io\Properties+F:\O
SS-PR~1\mango\mango\utils\Text+F:\OSS-PR~1\mango\mango\io\DatagramSocket+F:\OSS-PR~1\mango\mango\format\Number+F:\OSS-PR~1\ma
ngo\mango\log\Manager+F:\OSS-PR~1\mango\mango\io\PickleRegistry+F:\OSS-PR~1\mango\mango\io\SocketListener+F:\OSS-PR~1\mango\m
ango\cluster\model\IConsumer+F:\OSS-PR~1\mango\mango\log\Hierarchy+F:\OSS-PR~1\mango\mango\io\Buffer+F:\OSS-PR~1\mango\mango\
cache\Payload+F:\OSS-PR~1\mango\mango\io\model\IBuffer+F:\OSS-PR~1\mango\mango\io\Tokenizer+F:\OSS-PR~1\mango\mango\io\Endian
Writer+F:\OSS-PR~1\mango\mango\utils\Random+F:\OSS-PR~1\mango\mango\format\Long+F:\OSS-PR~1\mango\mango\io\Resource+F:\OSS-PR
~1\mango\mango\io\Token+F:\OSS-PR~1\mango\mango\io\PickleReader+F:\OSS-PR~1\mango\mango\sys\Type+F:\OSS-PR~1\mango\mango\io\F
ilePath+F:\OSS-PR~1\mango\mango\cluster\Message+F:\OSS-PR~1\mango\mango\log\Configurator+F:\OSS-PR~1\mango\mango\io\Writer+F:
\OSS-PR~1\mango\mango\cache\HashMap+F:\OSS-PR~1\mango\mango\io\Uri+F:\OSS-PR~1\mango\mango\io\FileProxy+F:\OSS-PR~1\mango\man
go\io\model\IReader+F:\OSS-PR~1\mango\mango\cluster\qos\socket\ProtocolWriter+F:\OSS-PR~1\mango\mango\log\Event+F:\OSS-PR~1\m
ango\mango\log\ConsoleAppender+F:\OSS-PR~1\mango\mango\io\PickleWriter+F:\OSS-PR~1\mango\mango\io\EndianReader+F:\OSS-PR~1\ma
ngo\mango\io\Reader,alert.exe,,wsock32.lib+user32+kernel32,alert.def/noi;

F:\OSS-PR~1\mango\example>alert
7 INFO example.broadcast - press <ctrl-c> to quit
8 INFO example.broadcast - creating bulletin consumer for channel 'my.kind.of.alert'
9 INFO example.broadcast - broadcasting alert
^C
F:\OSS-PR~1\mango\example>


On fedora 4, my Build v2.08 lost, I try to recompile it, but have not succeeded.
Back to top
View user's profile Send private message
kris



Joined: 27 Mar 2004
Posts: 1494
Location: South Pacific

PostPosted: Tue Nov 01, 2005 4:30 pm    Post subject: Reply with quote

Thanks, Lijie.

That show the file-order is actually different, as suspected.
Back to top
View user's profile Send private message
lijie



Joined: 28 Oct 2005
Posts: 24
Location: Shenzhen, China

PostPosted: Tue Nov 01, 2005 7:25 pm    Post subject: Reply with quote

Have only run "build @alert" and got alert.exe? Seem not to use build\*. lib files?
Back to top
View user's profile Send private message
kris



Joined: 27 Mar 2004
Posts: 1494
Location: South Pacific

PostPosted: Tue Nov 01, 2005 8:21 pm    Post subject: Reply with quote

lijie wrote:
Have only run "build @alert" and got alert.exe? Seem not to use build\*. lib files?

The examples do not use mango.lib ... with DMD it is just as fast to compile and link all files every time. One of the nice things about D Smile
Back to top
View user's profile Send private message
Florent



Joined: 04 Nov 2005
Posts: 2

PostPosted: Fri Nov 04, 2005 4:32 am    Post subject: Reply with quote

Hi

so which build of D is known to compile Mango? Tried the alert example on Windows XP with D compiler versions 137 and 136 using build v1.08 and vuild v1.09 and I get the same error:

C:\d_projects\example>build -Ic:\d_libs @alert
c:\d_libs\mango\io\PickleRegistry.d(234): no 'this' for nested class PickleProxy

c:\d_libs\mango\io\PickleRegistry.d(253): no 'this' for nested class SimpleProxy

c:\d_libs\mango\io\PickleRegistry.d(272): no 'this' for nested class GuidProxy
c:\d_libs\mango\cache\HashMap.d(549): no 'this' for nested class HashEntry
c:\d_libs\mango\cache\HashMap.d(620): no 'this' for nested class HashEntry
c:\d_libs\mango\cache\HashMap.d(660): no 'this' for nested class HashEntry

Thanks for any pointers.

Florent
Back to top
View user's profile Send private message
kris



Joined: 27 Mar 2004
Posts: 1494
Location: South Pacific

PostPosted: Fri Nov 04, 2005 12:52 pm    Post subject: Reply with quote

Some changes to Mango were made to work around a bug in the latest version(s) of DMD. Those changes are in SVN head, but they are not in the downloadable zip files. I'm afraid you'll have to get the latest updates via SVN ~ sorry about that.

There does appear to be a strange bug in the handling of static class-initialization (within DMD), though Walter hasn't acknowledged that as yet.
Back to top
View user's profile Send private message
Florent



Joined: 04 Nov 2005
Posts: 2

PostPosted: Fri Nov 04, 2005 4:35 pm    Post subject: Reply with quote

Thanks for the heads up Kris. I'll download the latest via SVN. 'D' specs seem to be a moving target at the moment - no criticism of Walter Bright intended - but it's hard to feel comfortable with the brittle feel of the language.

And yet, D seems so promising and beautiful Smile
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> Mango All times are GMT - 6 Hours
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group