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

Posix patch

 
Post new topic   Reply to topic     Forum Index -> ddmd
View previous topic :: View next topic  
Author Message
doob



Joined: 06 Jan 2007
Posts: 367

PostPosted: Sun Oct 24, 2010 9:42 am    Post subject: Posix patch Reply with quote

I've created a patch with the necessary changes to make DDMD build on Mac OS X and Linux, is it OK if I commit the changes? http://tango.pastebin.com/WUwPWxUi
Back to top
View user's profile Send private message
Lutger



Joined: 25 May 2006
Posts: 91

PostPosted: Tue Oct 26, 2010 10:41 am    Post subject: Reply with quote

That's great, I was in the process of doing the same so I can stop now Smile

EDIT: I made some mistake, nevermind what follows below. I had one minor problem - I'll look at it again once the patch is applied - but was able to compile ddmd in the end! Good stuff.

Is 'hg import' the correct way of applying the patch? It gave me a couple of reject files,
bin/dmd.conf.rej and dmd/backend/glue.d.rej, but I couldn't understand why those should have failed. After applying those changes manually I got to this (dmd 2.049 under linux):

dmd -debug -gc @commands.linux.txt
checking predefined versions for consistency...
dmd/Declaration.d(255): Error: undefined identifier cpp_mangle

Which didn't make sense to me since cpp_mangle is defined and imported.

Perhaps I'll better wait until you have applied the patch.
Back to top
View user's profile Send private message
doob



Joined: 06 Jan 2007
Posts: 367

PostPosted: Wed Oct 27, 2010 3:11 am    Post subject: Reply with quote

Actually I've tried to push this commit but I'm not authorized to do so, I thought this repository was open for everyone.
Back to top
View user's profile Send private message
Lutger



Joined: 25 May 2006
Posts: 91

PostPosted: Thu Oct 28, 2010 5:58 am    Post subject: Reply with quote

The repository should be open for everyone with a dsource account, so you would still have to authenticate with those credentials.

If that doesn't work, perhaps you can e-mail Denis Koroskin?
Back to top
View user's profile Send private message
doob



Joined: 06 Jan 2007
Posts: 367

PostPosted: Fri Oct 29, 2010 3:39 am    Post subject: Reply with quote

Lutger wrote:
The repository should be open for everyone with a dsource account, so you would still have to authenticate with those credentials.

I did that, it still failed to authenticate/authorize.

Quote:
If that doesn't work, perhaps you can e-mail Denis Koroskin?

I guess I should.
Back to top
View user's profile Send private message
korDen



Joined: 12 Mar 2008
Posts: 11

PostPosted: Fri Oct 29, 2010 6:02 pm    Post subject: Reply with quote

I granted both of you guys commit rights. I would love to make the repo open for anyone, but Mercurial denies when I add anonymous user to the developers list.
Back to top
View user's profile Send private message
doob



Joined: 06 Jan 2007
Posts: 367

PostPosted: Sat Oct 30, 2010 2:24 am    Post subject: Reply with quote

Is this a mercurial problem or a dsource problem? If it's a dsource problem I suggest you contact the admin.
Back to top
View user's profile Send private message
Lutger



Joined: 25 May 2006
Posts: 91

PostPosted: Sat Oct 30, 2010 3:22 am    Post subject: Reply with quote

korDen wrote:
I granted both of you guys commit rights. I would love to make the repo open for anyone, but Mercurial denies when I add anonymous user to the developers list.


Thanks. I want to do some low profile things until I get more familiar with ddmd. I was thinking of working on the ddoc generation and / or getting the open sourced dmd testsuite going for ddmd. Any suggestions?
Back to top
View user's profile Send private message
doob



Joined: 06 Jan 2007
Posts: 367

PostPosted: Mon Nov 01, 2010 6:38 am    Post subject: Reply with quote

I'm down to two undefined symbol errors which are frontend symbols used by the backend:
Code:
Undefined symbols:
  "_global", referenced from:
      _global$non_lazy_ptr in libdmd.a(msc.o)
      _global$non_lazy_ptr in libdmd.a(dwarf.o)
     (maybe you meant: _global$non_lazy_ptr)
  "error(char const*, unsigned int, char const*, ...)", referenced from:
      chkrd(elem*, LIST*)    in libdmd.a(gother.o)
      postoptelem(elem*)     in libdmd.a(cgelem.o)

I don't know what to do about these symbol errors, global is an instance of a D class, I'm assuming I just can't declare it extern(C++). I tried to implement the error function in the ddmd frontend but no matter how I declare the function I still get the missing symbol error. Any ideas ?[/code]
Back to top
View user's profile Send private message
doob



Joined: 06 Jan 2007
Posts: 367

PostPosted: Mon Nov 01, 2010 9:04 am    Post subject: Reply with quote

Ok, the problem with "error" is that DMD incorrectly mangles the symbol: http://d.puremagic.com/issues/show_bug.cgi?id=5148
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> ddmd All times are GMT - 6 Hours
Page 1 of 1

 
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