digitalmars.D - Still cannot build Phobos from git
- Andre Tampubolon (15/15) Jul 26 2011 I still cannot build Phobos from git properly :(
- Nick Sabalausky (12/48) Jul 26 2011 I'm going to write an automated way to do it. Probably put it into DVM i...
- Vladimir Panteleev (7/9) Jul 26 2011 I was halfway into writing a batch file which takes care of everything, ...
- Nick Sabalausky (4/10) Jul 26 2011 A batch file would be difficult! I don't know how you'd patch sc.ini and...
- Vladimir Panteleev (6/20) Jul 26 2011 My idea is to create and maintain a new DMD installation from scratch, s...
- Andrej Mitrovic (13/13) Jul 26 2011 git clone https://github.com/D-Programming-Language/dmd.git
- Jonathan M Davis (10/27) Jul 26 2011 As Nick points out, you also have to have an sc.ini in the right place w...
- Nick Sabalausky (3/7) Jul 26 2011 http://d.puremagic.com/issues/show_bug.cgi?id=6371
- Jacob Carlborg (8/35) Jul 26 2011 I think someone mentioned that github supports some kind of wrapper
- Jacob Carlborg (7/34) Jul 26 2011 How is that going to work? As far as I know there is no reliable way
- Nick Sabalausky (10/14) Jul 27 2011 Plan is that it'll just grab the latest of each. AFAIK, I think that's h...
- Jacob Carlborg (6/23) Jul 27 2011 As long as it works. When implementing it, just a suggestion: don't pull...
- Nick Sabalausky (6/21) Jul 31 2011 I was going to go through tango.sys.Process to use the cmdline git to gr...
- Andrew Wiley (5/28) Jul 31 2011 It isn't working for me at the moment, but try
- Jacob Carlborg (6/29) Jul 31 2011 You see the big "Downloads" button on every github project? Click on
- Nick Sabalausky (6/17) Jul 31 2011 I'd already tried the "Downloads" button, but it only gives me the relea...
- Andrew Wiley (3/24) Jul 31 2011 Really? I see "Download Source" (which downloads from master), then
- Jacob Carlborg (8/27) Aug 01 2011 If I click the "Downloads" button I get a popup window with "Download
- Nick Sabalausky (11/36) Aug 01 2011 My instinctual reaction to "pop-ins" (I **HATE**, **HATE**, **HATE**
- Jacob Carlborg (6/15) Aug 02 2011 Just as you, I'm not a big fan of JS. But I learn what pages that I use
- Don (3/24) Jul 27 2011 Just check http://d.puremagic.com/test-results/index.ghtml to make sure
- Jacob Carlborg (5/7) Jul 27 2011 Could we get this in XML (or similar) as well, or should we do screen
- Brad Roberts (3/9) Jul 27 2011 I don't suggest automating anything against that page. It's subject to ...
- Jacob Carlborg (4/13) Jul 27 2011 Ok, I see.
- Nick Sabalausky (3/28) Jul 27 2011 What do the little squares along the left side of each table mean?
- Steven Schveighoffer (4/33) Jul 27 2011 if you mean the right side, they are the results of the last 5 tests
- Nick Sabalausky (3/8) Jul 27 2011 Uhh, yea, I meant the "secondary left" ;)
- Nick Sabalausky (13/37) Jul 27 2011 Updated with some lessions learned:
- Dmitry Olshansky (26/26) Jul 27 2011 My recipe on Windows:
- Nick Sabalausky (3/11) Jul 27 2011 That works fine for me in the normal Windows command prompt.
- bearophile (17/18) Jul 27 2011 I presume it has tens of quite different kinds of ways to fail :-)
- Dmitry Olshansky (7/25) Jul 27 2011 My bad, this is a result of have GNU make on your path, if you're in
- bearophile (5/8) Jul 27 2011 It's not your fault, it works. There are even consequences:
- Dmitry Olshansky (9/17) Jul 28 2011 I see you've made a patch, great. Looking forward for some more extreme
- Walter Bright (3/7) Aug 01 2011 You need to use Digital Mars make, the one that comes with dmd:
- Jacob Carlborg (4/14) Aug 02 2011 Now why doesn't the Digital Mars make come with dmd?
- Dmitry Olshansky (4/18) Aug 02 2011 It does on Windows.
- Andrej Mitrovic (3/3) Aug 02 2011 I think DM make is only used on Windows, and GNU make is used on
- Andre Tampubolon (53/80) Aug 01 2011 On the PC I'm working now, there were no git installed, so I decided to
I still cannot build Phobos from git properly :( I tried to edit the win32.mak, changed the DFLAGS part into this: DFLAGS=-O -release -nofloat -w -d -I% P%\..\druntime\src\ -I% P%\.. druntime\import\ Issuing "make -f win32.mak DRUNTIME=\druntime\lib", the output was: dmd -c -O -release -nofloat -w -d -I% P%\..\druntime\src\ -I% P%\..\druntime\import etc\c\zlib .d -ofCzlib.obj DMD v2.055 DEBUG object.d: Error: module object is in file 'object.d' which cannot be read import path[0] = % P%\..\druntime\src\ import path[1] = % P%\..\druntime\import --- errorlevel 1 Now I'm totally confused. Maybe someone would like to write a tutorial on how to build the latest DMD from git?
Jul 26 2011
"Andre Tampubolon" <andre lc.vlsm.org> wrote in message news:j0mvqc$115g$1 digitalmars.com...I still cannot build Phobos from git properly :( I tried to edit the win32.mak, changed the DFLAGS part into this: DFLAGS=-O -release -nofloat -w -d -I% P%\..\druntime\src\ -I% P%\.. druntime\import\ Issuing "make -f win32.mak DRUNTIME=\druntime\lib", the output was: dmd -c -O -release -nofloat -w -d -I% P%\..\druntime\src\ -I% P%\..\druntime\import etc\c\zlib .d -ofCzlib.obj DMD v2.055 DEBUG object.d: Error: module object is in file 'object.d' which cannot be read import path[0] = % P%\..\druntime\src\ import path[1] = % P%\..\druntime\import --- errorlevel 1 Now I'm totally confused. Maybe someone would like to write a tutorial on how to build the latest DMD from git?I'm going to write an automated way to do it. Probably put it into DVM if Jacob feels that'd be appropriate. But here's the notes I have so far (short answer: you're probably missing sc.ini and all the .libs, those files aren't included in git for some reason): ----------------------------------------- [Make sure DMC is installed and on the PATH]git clone https://github.com/D-Programming-Language/dmd.git git clone https://github.com/D-Programming-Language/druntime.git git clone https://github.com/D-Programming-Language/phobos.git mkdir dmd\bin mkdir dmd\lib copy {lib directory of latest official dmd release}\*.lib dmd\lib del dmd\lib\phobos.lib copy {bin directory of latest official dmd release}\sc.ini dmd\bin[Edit dmd\bin\sc.ini and find/replace "% P%\..\src" with "% P%\..\.."] [Edit dmd\src\win32.mak and change "CC=\dm\bin\dmc" to "CC=dmc"]cd dmd\src make -fwin32.mak-or-make -fwin32.mak release cd ..\.. copy dmd\src\dmd.exe dmd\binset PATH={current_dir}\dmd\bin;%PATH% cd druntime make -fwin32.mak cd ..cd phobos make -fwin32.mak DRUNTIME=..\druntime\lib cd .. copy phobos\phobos.lib dmd\lib
Jul 26 2011
On Tue, 26 Jul 2011 22:22:26 +0300, Nick Sabalausky <a a.a> wrote:I'm going to write an automated way to do it. Probably put it into DVM if Jacob feels that'd be appropriate.I was halfway into writing a batch file which takes care of everything, but a cross-platform solution would probably be better, so I'll stop working on mine for now. -- Best regards, Vladimir mailto:vladimir thecybershadow.net
Jul 26 2011
"Vladimir Panteleev" <vladimir thecybershadow.net> wrote in message news:op.vy8rm6wwtuzx1w cybershadow.mshome.net...On Tue, 26 Jul 2011 22:22:26 +0300, Nick Sabalausky <a a.a> wrote:A batch file would be difficult! I don't know how you'd patch sc.ini and dmd\src\win32.mak (Well, unless you required GNU patch to be installed).I'm going to write an automated way to do it. Probably put it into DVM if Jacob feels that'd be appropriate.I was halfway into writing a batch file which takes care of everything, but a cross-platform solution would probably be better, so I'll stop working on mine for now.
Jul 26 2011
On Tue, 26 Jul 2011 22:44:44 +0300, Nick Sabalausky <a a.a> wrote:"Vladimir Panteleev" <vladimir thecybershadow.net> wrote in message news:op.vy8rm6wwtuzx1w cybershadow.mshome.net...My idea is to create and maintain a new DMD installation from scratch, so it's not a problem. -- Best regards, Vladimir mailto:vladimir thecybershadow.netOn Tue, 26 Jul 2011 22:22:26 +0300, Nick Sabalausky <a a.a> wrote:A batch file would be difficult! I don't know how you'd patch sc.ini and dmd\src\win32.mak (Well, unless you required GNU patch to be installed).I'm going to write an automated way to do it. Probably put it into DVM if Jacob feels that'd be appropriate.I was halfway into writing a batch file which takes care of everything, but a cross-platform solution would probably be better, so I'll stop working on mine for now.
Jul 26 2011
git clone https://github.com/D-Programming-Language/dmd.git git clone https://github.com/D-Programming-Language/druntime.git git clone https://github.com/D-Programming-Language/phobos.git cd druntime make -f win32.mak cd.. cd phobos make -f win32.mak cd.. cd dmd\src make -f win32.mak Of course this doesn't copy everything in the right places. But it does work for me.
Jul 26 2011
git clone https://github.com/D-Programming-Language/dmd.git git clone https://github.com/D-Programming-Language/druntime.git git clone https://github.com/D-Programming-Language/phobos.git cd druntime make -f win32.mak cd.. cd phobos make -f win32.mak cd.. cd dmd\src make -f win32.mak Of course this doesn't copy everything in the right places. But it does work for me.As Nick points out, you also have to have an sc.ini in the right place with the right values and probably some other stuff that comes in the zip file but isn't in git for whatever reason. But I haven't dealt with all of that in Windows recently, so I don't remember the details. It's easier in Linux from what I recall, but regardless, once it's set up all you have to do is update the repositories and rebuild, and it works (though in Windows, you'll probably have to copy the resultant dmd binary due to the lack of symlinks). The situation with git should probably be improved though such that you can build the whole chain with just what git gives you. - Jonathan M Davis
Jul 26 2011
"Jonathan M Davis" <jmdavisProg gmx.com> wrote in message news:mailman.1924.1311711069.14074.digitalmars-d puremagic.com...The situation with git should probably be improved though such that you can build the whole chain with just what git gives you.http://d.puremagic.com/issues/show_bug.cgi?id=6371
Jul 26 2011
On 2011-07-26 22:10, Jonathan M Davis wrote:I think someone mentioned that github supports some kind of wrapper projects/repositories. When you clone it, it will clone all the repositories it wraps. No need to figure out where to clone a given repository in your system. Then you can have a build script in the wrapper repository that builds everything and sets up a dmd.conf/sc.ini. -- /Jacob Carlborggit clone https://github.com/D-Programming-Language/dmd.git git clone https://github.com/D-Programming-Language/druntime.git git clone https://github.com/D-Programming-Language/phobos.git cd druntime make -f win32.mak cd.. cd phobos make -f win32.mak cd.. cd dmd\src make -f win32.mak Of course this doesn't copy everything in the right places. But it does work for me.As Nick points out, you also have to have an sc.ini in the right place with the right values and probably some other stuff that comes in the zip file but isn't in git for whatever reason. But I haven't dealt with all of that in Windows recently, so I don't remember the details. It's easier in Linux from what I recall, but regardless, once it's set up all you have to do is update the repositories and rebuild, and it works (though in Windows, you'll probably have to copy the resultant dmd binary due to the lack of symlinks). The situation with git should probably be improved though such that you can build the whole chain with just what git gives you. - Jonathan M Davis
Jul 26 2011
On 2011-07-26 21:22, Nick Sabalausky wrote:"Andre Tampubolon"<andre lc.vlsm.org> wrote in message news:j0mvqc$115g$1 digitalmars.com...How is that going to work? As far as I know there is no reliable way telling if a given commit of Phobos works with a given commit of druntime or DMD. If you get it to work I'll include it. -- /Jacob CarlborgI still cannot build Phobos from git properly :( I tried to edit the win32.mak, changed the DFLAGS part into this: DFLAGS=-O -release -nofloat -w -d -I% P%\..\druntime\src\ -I% P%\.. druntime\import\ Issuing "make -f win32.mak DRUNTIME=\druntime\lib", the output was: dmd -c -O -release -nofloat -w -d -I% P%\..\druntime\src\ -I% P%\..\druntime\import etc\c\zlib .d -ofCzlib.obj DMD v2.055 DEBUG object.d: Error: module object is in file 'object.d' which cannot be read import path[0] = % P%\..\druntime\src\ import path[1] = % P%\..\druntime\import --- errorlevel 1 Now I'm totally confused. Maybe someone would like to write a tutorial on how to build the latest DMD from git?I'm going to write an automated way to do it. Probably put it into DVM if Jacob feels that'd be appropriate. But here's the notes I have so far (short answer: you're probably missing sc.ini and all the .libs, those files aren't included in git for some reason):
Jul 26 2011
"Jacob Carlborg" <doob me.com> wrote in message news:j0ocfk$dfm$1 digitalmars.com...How is that going to work? As far as I know there is no reliable way telling if a given commit of Phobos works with a given commit of druntime or DMD. If you get it to work I'll include it.Plan is that it'll just grab the latest of each. AFAIK, I think that's how work in the...umm..."trunk"...of DMD/druntime/phobos is normally done. Every time I've done it manually (ie, just a few times) it's worked out ok. I think DMD, druntime, and phobos are all stable enough that they wouldn't normally break each other unless a bad changeset gets committed or your versions get too out-of-sync with each other. Andre, Walter, Don and the other big committers probably have a better idea of how this usually goes, though...
Jul 27 2011
On 2011-07-27 10:02, Nick Sabalausky wrote:"Jacob Carlborg"<doob me.com> wrote in message news:j0ocfk$dfm$1 digitalmars.com...As long as it works. When implementing it, just a suggestion: don't pull in a git library or similar, just download the zip archive containing the latest sources from github.How is that going to work? As far as I know there is no reliable way telling if a given commit of Phobos works with a given commit of druntime or DMD. If you get it to work I'll include it.Plan is that it'll just grab the latest of each. AFAIK, I think that's how work in the...umm..."trunk"...of DMD/druntime/phobos is normally done. Every time I've done it manually (ie, just a few times) it's worked out ok. I think DMD, druntime, and phobos are all stable enough that they wouldn't normally break each other unless a bad changeset gets committed or your versions get too out-of-sync with each other.Andre, Walter, Don and the other big committers probably have a better idea of how this usually goes, though...-- /Jacob Carlborg
Jul 27 2011
"Jacob Carlborg" <doob me.com> wrote in message news:j0oktj$167g$2 digitalmars.com...On 2011-07-27 10:02, Nick Sabalausky wrote:I was going to go through tango.sys.Process to use the cmdline git to grab it. Is there a way to just download a zip from github without going through git? That would be better, since it wouldn't require the user have git installed, but I don't know of a way to do that.Plan is that it'll just grab the latest of each. AFAIK, I think that's how work in the...umm..."trunk"...of DMD/druntime/phobos is normally done. Every time I've done it manually (ie, just a few times) it's worked out ok. I think DMD, druntime, and phobos are all stable enough that they wouldn't normally break each other unless a bad changeset gets committed or your versions get too out-of-sync with each other.As long as it works. When implementing it, just a suggestion: don't pull in a git library or similar, just download the zip archive containing the latest sources from github.
Jul 31 2011
On Sun, Jul 31, 2011 at 2:31 AM, Nick Sabalausky <a a.a> wrote:"Jacob Carlborg" <doob me.com> wrote in message news:j0oktj$167g$2 digitalmars.com...It isn't working for me at the moment, but try https://github.com/D-Programming-Language/dmd/zipball/master<https://nodeload.github.com/D-Programming-Language/dmd/tarball/master> This is from the Downloads button on a respository, and it gets you the latest revision in a zip file.On 2011-07-27 10:02, Nick Sabalausky wrote:I was going to go through tango.sys.Process to use the cmdline git to grab it. Is there a way to just download a zip from github without going through git? That would be better, since it wouldn't require the user have git installed, but I don't know of a way to do that.Plan is that it'll just grab the latest of each. AFAIK, I think that's how work in the...umm..."trunk"...of DMD/druntime/phobos is normally done. Every time I've done it manually (ie, just a few times) it's worked out ok. I think DMD, druntime, and phobos are all stable enough that they wouldn't normally break each other unless a bad changeset gets committed or your versions get too out-of-sync with each other.As long as it works. When implementing it, just a suggestion: don't pull in a git library or similar, just download the zip archive containing the latest sources from github.
Jul 31 2011
On 2011-07-31 11:31, Nick Sabalausky wrote:"Jacob Carlborg"<doob me.com> wrote in message news:j0oktj$167g$2 digitalmars.com...You see the big "Downloads" button on every github project? Click on that, there you can get a link to a zip file containing the sources, URL for Phobos: https://github.com/D-Programming-Language/phobos/zipball/master -- /Jacob CarlborgOn 2011-07-27 10:02, Nick Sabalausky wrote:I was going to go through tango.sys.Process to use the cmdline git to grab it. Is there a way to just download a zip from github without going through git? That would be better, since it wouldn't require the user have git installed, but I don't know of a way to do that.Plan is that it'll just grab the latest of each. AFAIK, I think that's how work in the...umm..."trunk"...of DMD/druntime/phobos is normally done. Every time I've done it manually (ie, just a few times) it's worked out ok. I think DMD, druntime, and phobos are all stable enough that they wouldn't normally break each other unless a bad changeset gets committed or your versions get too out-of-sync with each other.As long as it works. When implementing it, just a suggestion: don't pull in a git library or similar, just download the zip archive containing the latest sources from github.
Jul 31 2011
"Jacob Carlborg" <doob me.com> wrote in message news:j139bn$13bj$2 digitalmars.com...On 2011-07-31 11:31, Nick Sabalausky wrote:I'd already tried the "Downloads" button, but it only gives me the releases. The, umm..."trunk"/head/master/whatever isn't listed there. But, https://github.com/{user}/{repo}/zipball/master does seem to work, so thanks, I'll use that.I was going to go through tango.sys.Process to use the cmdline git to grab it. Is there a way to just download a zip from github without going through git? That would be better, since it wouldn't require the user have git installed, but I don't know of a way to do that.You see the big "Downloads" button on every github project? Click on that, there you can get a link to a zip file containing the sources, URL for Phobos: https://github.com/D-Programming-Language/phobos/zipball/master
Jul 31 2011
On Sun, Jul 31, 2011 at 1:26 PM, Nick Sabalausky <a a.a> wrote:"Jacob Carlborg" <doob me.com> wrote in message news:j139bn$13bj$2 digitalmars.com...Really? I see "Download Source" (which downloads from master), then "Download Packages" which lists the releases.On 2011-07-31 11:31, Nick Sabalausky wrote:that,I was going to go through tango.sys.Process to use the cmdline git to grab it. Is there a way to just download a zip from github without going through git? That would be better, since it wouldn't require the user have git installed, but I don't know of a way to do that.You see the big "Downloads" button on every github project? Click onthere you can get a link to a zip file containing the sources, URL for Phobos: https://github.com/D-Programming-Language/phobos/zipball/masterI'd already tried the "Downloads" button, but it only gives me the releases. The, umm..."trunk"/head/master/whatever isn't listed there. But, https://github.com/{user}/{repo}/zipball/master does seem to work, so thanks, I'll use that.
Jul 31 2011
On 2011-07-31 22:26, Nick Sabalausky wrote:"Jacob Carlborg"<doob me.com> wrote in message news:j139bn$13bj$2 digitalmars.com...If I click the "Downloads" button I get a popup window with "Download source" and "Download packages". "Download source" is the current head, "Download packages" contains tags. BTW, I'm pretty sure it requires javascript to get the popup.On 2011-07-31 11:31, Nick Sabalausky wrote:I'd already tried the "Downloads" button, but it only gives me the releases. The, umm..."trunk"/head/master/whatever isn't listed there.I was going to go through tango.sys.Process to use the cmdline git to grab it. Is there a way to just download a zip from github without going through git? That would be better, since it wouldn't require the user have git installed, but I don't know of a way to do that.You see the big "Downloads" button on every github project? Click on that, there you can get a link to a zip file containing the sources, URL for Phobos: https://github.com/D-Programming-Language/phobos/zipball/masterBut, https://github.com/{user}/{repo}/zipball/master does seem to work, so thanks, I'll use that.Ok, good. -- /Jacob Carlborg
Aug 01 2011
"Jacob Carlborg" <doob me.com> wrote in message news:j15la3$1vl9$1 digitalmars.com...On 2011-07-31 22:26, Nick Sabalausky wrote:My instinctual reaction to "pop-ins" (I **HATE**, **HATE**, **HATE** pop-ins - they're even *worse* than pop-ups) is to curse, disable JS, and reload. The resulting page, allegedly, shows "all" downloads, but the non-tag ones are missing from it. Of course, in this case, I did actually read what was on the pop-in before going all Nick on it, but it wasn't remotely clear to me that "Download source", "Download .tar.gz" or "Download .zip" really meant "current head" (actually, I didn't even suspect that it might have meant that - I didn't know what the hell they were referring to and I didn't want to assume.)"Jacob Carlborg"<doob me.com> wrote in message news:j139bn$13bj$2 digitalmars.com...If I click the "Downloads" button I get a popup window with "Download source" and "Download packages". "Download source" is the current head, "Download packages" contains tags. BTW, I'm pretty sure it requires javascript to get the popup.On 2011-07-31 11:31, Nick Sabalausky wrote:I'd already tried the "Downloads" button, but it only gives me the releases. The, umm..."trunk"/head/master/whatever isn't listed there.I was going to go through tango.sys.Process to use the cmdline git to grab it. Is there a way to just download a zip from github without going through git? That would be better, since it wouldn't require the user have git installed, but I don't know of a way to do that.You see the big "Downloads" button on every github project? Click on that, there you can get a link to a zip file containing the sources, URL for Phobos: https://github.com/D-Programming-Language/phobos/zipball/master
Aug 01 2011
On 2011-08-02 00:29, Nick Sabalausky wrote:My instinctual reaction to "pop-ins" (I **HATE**, **HATE**, **HATE** pop-ins - they're even *worse* than pop-ups) is to curse, disable JS, and reload. The resulting page, allegedly, shows "all" downloads, but the non-tag ones are missing from it.Just as you, I'm not a big fan of JS. But I learn what pages that I use that need JS to work properly and enable it for them.Of course, in this case, I did actually read what was on the pop-in before going all Nick on it, but it wasn't remotely clear to me that "Download source", "Download .tar.gz" or "Download .zip" really meant "current head" (actually, I didn't even suspect that it might have meant that - I didn't know what the hell they were referring to and I didn't want to assume.)Ok, I see. -- /Jacob Carlborg
Aug 02 2011
Nick Sabalausky wrote:"Jacob Carlborg" <doob me.com> wrote in message news:j0ocfk$dfm$1 digitalmars.com...Just check http://d.puremagic.com/test-results/index.ghtml to make sure everything is green, before you grab them.How is that going to work? As far as I know there is no reliable way telling if a given commit of Phobos works with a given commit of druntime or DMD. If you get it to work I'll include it.Plan is that it'll just grab the latest of each. AFAIK, I think that's how work in the...umm..."trunk"...of DMD/druntime/phobos is normally done. Every time I've done it manually (ie, just a few times) it's worked out ok. I think DMD, druntime, and phobos are all stable enough that they wouldn't normally break each other unless a bad changeset gets committed or your versions get too out-of-sync with each other. Andre, Walter, Don and the other big committers probably have a better idea of how this usually goes, though...
Jul 27 2011
On 2011-07-27 14:00, Don wrote:Just check http://d.puremagic.com/test-results/index.ghtml to make sure everything is green, before you grab them.Could we get this in XML (or similar) as well, or should we do screen scraping? -- /Jacob Carlborg
Jul 27 2011
On 7/27/2011 6:51 AM, Jacob Carlborg wrote:On 2011-07-27 14:00, Don wrote:I don't suggest automating anything against that page. It's subject to change based on the needs of the developers and I don't intend to consider it a stable api of any sort.Just check http://d.puremagic.com/test-results/index.ghtml to make sure everything is green, before you grab them.Could we get this in XML (or similar) as well, or should we do screen scraping?
Jul 27 2011
On 2011-07-27 18:45, Brad Roberts wrote:On 7/27/2011 6:51 AM, Jacob Carlborg wrote:Ok, I see. -- /Jacob CarlborgOn 2011-07-27 14:00, Don wrote:I don't suggest automating anything against that page. It's subject to change based on the needs of the developers and I don't intend to consider it a stable api of any sort.Just check http://d.puremagic.com/test-results/index.ghtml to make sure everything is green, before you grab them.Could we get this in XML (or similar) as well, or should we do screen scraping?
Jul 27 2011
"Don" <nospam nospam.com> wrote in message news:j0oul0$1qii$1 digitalmars.com...Nick Sabalausky wrote:What do the little squares along the left side of each table mean?"Jacob Carlborg" <doob me.com> wrote in message news:j0ocfk$dfm$1 digitalmars.com...Just check http://d.puremagic.com/test-results/index.ghtml to make sure everything is green, before you grab them.How is that going to work? As far as I know there is no reliable way telling if a given commit of Phobos works with a given commit of druntime or DMD. If you get it to work I'll include it.Plan is that it'll just grab the latest of each. AFAIK, I think that's how work in the...umm..."trunk"...of DMD/druntime/phobos is normally done. Every time I've done it manually (ie, just a few times) it's worked out ok. I think DMD, druntime, and phobos are all stable enough that they wouldn't normally break each other unless a bad changeset gets committed or your versions get too out-of-sync with each other. Andre, Walter, Don and the other big committers probably have a better idea of how this usually goes, though...
Jul 27 2011
On Wed, 27 Jul 2011 15:47:24 -0400, Nick Sabalausky <a a.a> wrote:"Don" <nospam nospam.com> wrote in message news:j0oul0$1qii$1 digitalmars.com...if you mean the right side, they are the results of the last 5 tests (prior to the current one). -SteveNick Sabalausky wrote:What do the little squares along the left side of each table mean?"Jacob Carlborg" <doob me.com> wrote in message news:j0ocfk$dfm$1 digitalmars.com...Just check http://d.puremagic.com/test-results/index.ghtml to make sure everything is green, before you grab them.How is that going to work? As far as I know there is no reliable way telling if a given commit of Phobos works with a given commit of druntime or DMD. If you get it to work I'll include it.Plan is that it'll just grab the latest of each. AFAIK, I think that's how work in the...umm..."trunk"...of DMD/druntime/phobos is normally done. Every time I've done it manually (ie, just a few times) it's worked out ok. I think DMD, druntime, and phobos are all stable enough that they wouldn't normally break each other unless a bad changeset gets committed or your versions get too out-of-sync with each other. Andre, Walter, Don and the other big committers probably have a better idea of how this usually goes, though...
Jul 27 2011
"Steven Schveighoffer" <schveiguy yahoo.com> wrote in message news:op.vzao2rnmeav7ka localhost.localdomain...On Wed, 27 Jul 2011 15:47:24 -0400, Nick Sabalausky <a a.a> wrote:Uhh, yea, I meant the "secondary left" ;)What do the little squares along the left side of each table mean?if you mean the right side, they are the results of the last 5 tests (prior to the current one).
Jul 27 2011
"Nick Sabalausky" <a a.a> wrote in message news:j0n450$1926$1 digitalmars.com...-----------------------------------------Updated with some lessions learned: - Need to also copy over the bin directory, not just lib - Should make changes to a *copy* of dmd\src\win32.mak to avoid confusing git. New version: [Make sure DMC is installed and on the PATH]git clone https://github.com/D-Programming-Language/dmd.git git clone https://github.com/D-Programming-Language/druntime.git git clone https://github.com/D-Programming-Language/phobos.git mkdir dmd\bin mkdir dmd\lib copy {lib directory of latest official dmd release}\*.lib dmd\lib copy {bin directory of latest official dmd release}\*.lib dmd\bin del dmd\lib\phobos.lib del dmd\bin\dmd.exe[Edit dmd\bin\sc.ini and find/replace "% P%\..\src" with "% P%\..\.."]copy dmd\src\win32.mak dmd\src\win32-fixed.mak[Edit dmd\src\win32-fixed.mak: Change "CC=\dm\bin\dmc" to "CC=dmc" Search/Replace "win32.mak" with "win32-fixed.mak" ]cd dmd\src make -fwin32-fixed.mak-or-make -fwin32-fixed.mak release cd ..\.. copy dmd\src\dmd.exe dmd\binset PATH={current_dir}\dmd\bin;%PATH% cd druntime make -fwin32.mak cd ..cd phobos make -fwin32.mak DRUNTIME=..\druntime\lib cd .. copy phobos\phobos.lib dmd\lib
Jul 27 2011
My recipe on Windows: 1. Get the latest release zip you can find, unzip to some drive root(! otherwise get's trickier) 2. Delete all within src subfolder 3. Get a Git console in \dmd2\src, then the usual: git clone https://github.com/D-Programming-Language/dmd.git git clone https://github.com/D-Programming-Language/druntime.git git clone https://github.com/D-Programming-Language/phobos.git 4. Build dmd cd dmd\src make -f win32.mak release copy dmd.exe ..\..\..\windows\bin cd .. (to build dmd you'd need DMC, also extracted to the same drive root) 5. cd druntime make -f win32.mak 6. cd phobos make -f win32.mak unittest copy phobos.lib ..\..\windows\lib If anywhere of the above it fails to find dmd, make sure dmd2\windows\bin is in your path. That's it, no additional tweaking required. -- Dmitry Olshansky
Jul 27 2011
"Dmitry Olshansky" <dmitry.olsh gmail.com> wrote in message news:j0pags$2iaf$1 digitalmars.com...My recipe on Windows: 1. Get the latest release zip you can find, unzip to some drive root(! otherwise get's trickier) 2. Delete all within src subfolder 3. Get a Git console in \dmd2\src, then the usual: git clone https://github.com/D-Programming-Language/dmd.git git clone https://github.com/D-Programming-Language/druntime.git git clone https://github.com/D-Programming-Language/phobos.gitThat works fine for me in the normal Windows command prompt.
Jul 27 2011
Dmitry Olshansky:My recipe on Windows:I presume it has tens of quite different kinds of ways to fail :-) This is what I see: C:\dmd2\src\dmd\src>make -f win32.mak release make -fwin32.mak C=backend TK=tk ROOT=root clean make[1]: Entering directory `C:/dmd2/src/dmd/src' posix.mak:140: warning: overriding recipe for target `dmd' win32.mak:60: warning: ignoring old recipe for target `dmd' posix.mak:143: warning: overriding recipe for target `clean' win32.mak:499: warning: ignoring old recipe for target `clean' posix.mak:656: warning: overriding recipe for target `zip' win32.mak:506: warning: ignoring old recipe for target `zip' win32.mak:40: warning: overriding recipe for target `.c.obj' win32.mak:40: warning: ignoring old recipe for target `.c.obj' ... Bye, bearophile
Jul 27 2011
On 28.07.2011 0:34, bearophile wrote:Dmitry Olshansky:That's the spirit ! :)My recipe on Windows:I presume it has tens of quite different kinds of ways to fail :-)This is what I see: C:\dmd2\src\dmd\src>make -f win32.mak release make -fwin32.mak C=backend TK=tk ROOT=root clean make[1]: Entering directory `C:/dmd2/src/dmd/src' posix.mak:140: warning: overriding recipe for target `dmd' win32.mak:60: warning: ignoring old recipe for target `dmd' posix.mak:143: warning: overriding recipe for target `clean' win32.mak:499: warning: ignoring old recipe for target `clean' posix.mak:656: warning: overriding recipe for target `zip' win32.mak:506: warning: ignoring old recipe for target `zip' win32.mak:40: warning: overriding recipe for target `.c.obj' win32.mak:40: warning: ignoring old recipe for target `.c.obj' .... Bye, bearophileMy bad, this is a result of have GNU make on your path, if you're in console try this before make: PATH=C:\dmd2\windows\bin;C:\dm\bin; -- Dmitry Olshansky
Jul 27 2011
Dmitry Olshansky:My bad, this is a result of have GNU make on your path, if you're in console try this before make: PATH=C:\dmd2\windows\bin;C:\dm\bin;It's not your fault, it works. There are even consequences: http://d.puremagic.com/issues/show_bug.cgi?id=6373 Bye, bearophile
Jul 27 2011
On 28.07.2011 5:54, bearophile wrote:Dmitry Olshansky:I see you've made a patch, great. Looking forward for some more extreme hacking on dmd by you :) The next step would be forking dmd repo and making a pull request, they seem to get pulled upstream very fast. I find this enormously helpful when dealing with Git: http://progit.org/book/ -- Dmitry OlshanskyMy bad, this is a result of have GNU make on your path, if you're in console try this before make: PATH=C:\dmd2\windows\bin;C:\dm\bin;It's not your fault, it works. There are even consequences: http://d.puremagic.com/issues/show_bug.cgi?id=6373 Bye, bearophile
Jul 28 2011
On 7/27/2011 1:34 PM, bearophile wrote:Dmitry Olshansky:You need to use Digital Mars make, the one that comes with dmd: http://www.digitalmars.com/ctg/make.htmlMy recipe on Windows:I presume it has tens of quite different kinds of ways to fail :-) This is what I see:
Aug 01 2011
On 2011-08-02 00:55, Walter Bright wrote:On 7/27/2011 1:34 PM, bearophile wrote:Now why doesn't the Digital Mars make come with dmd? -- /Jacob CarlborgDmitry Olshansky:You need to use Digital Mars make, the one that comes with dmd: http://www.digitalmars.com/ctg/make.htmlMy recipe on Windows:I presume it has tens of quite different kinds of ways to fail :-) This is what I see:
Aug 02 2011
On 02.08.2011 12:46, Jacob Carlborg wrote:On 2011-08-02 00:55, Walter Bright wrote:It does on Windows. -- Dmitry OlshanskyOn 7/27/2011 1:34 PM, bearophile wrote:Now why doesn't the Digital Mars make come with dmd?Dmitry Olshansky:You need to use Digital Mars make, the one that comes with dmd: http://www.digitalmars.com/ctg/make.htmlMy recipe on Windows:I presume it has tens of quite different kinds of ways to fail :-) This is what I see:
Aug 02 2011
I think DM make is only used on Windows, and GNU make is used on Linux. Just compare the win32 makefile to the Posix makefile, it's a world of a difference.
Aug 02 2011
On 27-Jul-11 10:23 PM, Dmitry Olshansky wrote:My recipe on Windows: 1. Get the latest release zip you can find, unzip to some drive root(! otherwise get's trickier) 2. Delete all within src subfolder 3. Get a Git console in \dmd2\src, then the usual: git clone https://github.com/D-Programming-Language/dmd.git git clone https://github.com/D-Programming-Language/druntime.git git clone https://github.com/D-Programming-Language/phobos.git 4. Build dmd cd dmd\src make -f win32.mak release copy dmd.exe ..\..\..\windows\bin cd .. (to build dmd you'd need DMC, also extracted to the same drive root) 5. cd druntime make -f win32.mak 6. cd phobos make -f win32.mak unittest copy phobos.lib ..\..\windows\lib If anywhere of the above it fails to find dmd, make sure dmd2\windows\bin is in your path. That's it, no additional tweaking required.On the PC I'm working now, there were no git installed, so I decided to grab the latest tarballs: D-Programming-Language-dmd-v2.054-211-g1dac08b.tar.gz D-Programming-Language-druntime-v2.054-28-gd14a1a9.tar.gz D-Programming-Language-phobos-v2.054-119-gcd5d266.tar.gz Anyway, these were what I did: 1. Extracted the latest release (dmd.2.054.zip) to C:\dmd2-dev. There were also C:\dmd2, and C:\dm (the Digital Mars C compiler). 2. set PATH=C:\dm\bin 3. cd C:\dmd2-dev\src\dmd. 4. Verified whether DMC worked properly or not, by building DMD: make -f win32.mak release The output was: ... ... make -fwin32.mak C=backend TK=tk ROOT=root clean del *.obj del total.sym del msgs.h msgs.c del elxxx.c cdxxx.c optab.c debtab.c fltables.c tytab.c del impcnvtab.c It was a success. 5. Deleted all the contents of C:\dmd2-dev\src\dmd, and replaced it with the latest version (from the tarball), and build it again: \dm\bin\dmc -c -Ibackend;tk -DMARS -cpp -e -wx -I. backend\var \dm\bin\dmc -c -Ibackend;tk -DMARS -cpp -e -wx backend\el \dm\bin\dmc -c -Ibackend;tk -DMARS -cpp -e -wx backend\newman Fatal error: unable to open input file 'parser.h' --- errorlevel 1 Hmm unable to open parser.h? I checked C:\dmd2-dev\src\dmd\backend. Yep, no parser.h there (someone forgot to commit it)? So I cleared C:\dmd2-dev\src\dmd\ again. First extracted the original one from the latest release (2.054), then replaced it with the latest from git, and built it again: \dm\bin\dmc -c -Ibackend;tk -DMARS -cpp -e -wx -I. backend\var \dm\bin\dmc -c -Ibackend;tk -DMARS -cpp -e -wx backend\el \dm\bin\dmc -c -Ibackend;tk -DMARS -cpp -e -wx backend\newman void ^ backend\parser.h(215) : Error: ';' expected following declaration of struct member --- errorlevel 1 At least the error was different. I did a quick glance on C:\dmd2-dev\src\dmd\backend\parser.h around line 215, and found these lines: TARGET_structBLKLST void print(); What is this TARGET_structBLKLST? -- - Andre Tampubolon -
Aug 01 2011