View previous topic :: View next topic |
Author |
Message |
doob
Joined: 06 Jan 2007 Posts: 367
|
Posted: Sun Oct 24, 2010 9:42 am Post subject: Posix patch |
|
|
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 |
|
|
Lutger
Joined: 25 May 2006 Posts: 91
|
Posted: Tue Oct 26, 2010 10:41 am Post subject: |
|
|
That's great, I was in the process of doing the same so I can stop now
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 |
|
|
doob
Joined: 06 Jan 2007 Posts: 367
|
Posted: Wed Oct 27, 2010 3:11 am Post subject: |
|
|
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 |
|
|
Lutger
Joined: 25 May 2006 Posts: 91
|
Posted: Thu Oct 28, 2010 5:58 am Post subject: |
|
|
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 |
|
|
doob
Joined: 06 Jan 2007 Posts: 367
|
Posted: Fri Oct 29, 2010 3:39 am Post subject: |
|
|
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 |
|
|
korDen
Joined: 12 Mar 2008 Posts: 11
|
Posted: Fri Oct 29, 2010 6:02 pm Post subject: |
|
|
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 |
|
|
doob
Joined: 06 Jan 2007 Posts: 367
|
Posted: Sat Oct 30, 2010 2:24 am Post subject: |
|
|
Is this a mercurial problem or a dsource problem? If it's a dsource problem I suggest you contact the admin. |
|
Back to top |
|
|
Lutger
Joined: 25 May 2006 Posts: 91
|
Posted: Sat Oct 30, 2010 3:22 am Post subject: |
|
|
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 |
|
|
doob
Joined: 06 Jan 2007 Posts: 367
|
Posted: Mon Nov 01, 2010 6:38 am Post subject: |
|
|
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 |
|
|
doob
Joined: 06 Jan 2007 Posts: 367
|
|
Back to top |
|
|
|