Re: Can't run 'masm386'
On Thursday, 17 May 2012 at 15:54:05 UTC, Walter Bright wrote: On 5/17/2012 6:38 AM, Steven Schveighoffer wrote: Any chance this asm file can be written in D with asm block? No. What's the 'official' tool that was used to compile the checked-in obj?
Re: Can't run 'masm386'
On 5/23/2012 1:40 PM, Martin Nowak wrote: On Thursday, 17 May 2012 at 15:54:05 UTC, Walter Bright wrote: On 5/17/2012 6:38 AM, Steven Schveighoffer wrote: Any chance this asm file can be written in D with asm block? No. What's the 'official' tool that was used to compile the checked-in obj? I use MASM386, but that is no longer available, and being a 16 bit program it won't even run on Win7.
Re: Can't run 'masm386'
Am 23.05.2012 23:51, schrieb Walter Bright: On 5/23/2012 1:40 PM, Martin Nowak wrote: On Thursday, 17 May 2012 at 15:54:05 UTC, Walter Bright wrote: On 5/17/2012 6:38 AM, Steven Schveighoffer wrote: Any chance this asm file can be written in D with asm block? No. What's the 'official' tool that was used to compile the checked-in obj? I use MASM386, but that is no longer available, and being a 16 bit program it won't even run on Win7. MASM should work, or better JWasm (http://www.japheth.de/JWasm.html) but were to find the included macros.asm?
Re: Can't run 'masm386'
On 5/23/2012 9:06 PM, dennis luehring wrote: Am 23.05.2012 23:51, schrieb Walter Bright: On 5/23/2012 1:40 PM, Martin Nowak wrote: On Thursday, 17 May 2012 at 15:54:05 UTC, Walter Bright wrote: On 5/17/2012 6:38 AM, Steven Schveighoffer wrote: Any chance this asm file can be written in D with asm block? No. What's the 'official' tool that was used to compile the checked-in obj? I use MASM386, but that is no longer available, and being a 16 bit program it won't even run on Win7. MASM should work, or better JWasm (http://www.japheth.de/JWasm.html) but were to find the included macros.asm? It's part of the dmc distribution. But it should be rewritten not to need it.
Re: Can't run 'masm386'
Adam Wilson flybo...@gmail.com wrote in message news:op.wefr0erm707...@invictus.skynet.com... It looks like 2 days ago someone DID in fact change the minit.asm file. They changed the references to LICENSE and README. Your best bet is probably to redownload minit.obj from the druntime repo to update it's modified date. In that case, the copy of minit.obj in git really should have its timestamp updated too, otherwise people are just going to keep running into this. (Or, as someone suggested, just remove the minit.obj depends on minit.asm from the makefile.)
Re: Can't run 'masm386'
On Wed, 16 May 2012 22:53:59 -0700, Nick Sabalausky seewebsitetocontac...@semitwist.com wrote: Adam Wilson flybo...@gmail.com wrote in message news:op.wefr0erm707...@invictus.skynet.com... It looks like 2 days ago someone DID in fact change the minit.asm file. They changed the references to LICENSE and README. Your best bet is probably to redownload minit.obj from the druntime repo to update it's modified date. In that case, the copy of minit.obj in git really should have its timestamp updated too, otherwise people are just going to keep running into this. (Or, as someone suggested, just remove the minit.obj depends on minit.asm from the makefile.) I'm editing the makefiles anyways, it could be done, but I want to make sure there are no other weird dependencies on it first. -- Adam Wilson IRC: LightBender Project Coordinator The Horizon Project http://www.thehorizonproject.org/
Re: Can't run 'masm386'
minit.obj is still there. I commented this part: src\rt\minit.obj : src\rt\minit.asm $(CC) -c $(CFLAGS) src\rt\minit.asm That works. On 5/17/2012 11:35 AM, Nick Sabalausky wrote: Andre Tampubolon an...@lc.vlsm.org wrote in message news:jp1kld$15mj$1...@digitalmars.com... I was trying to build druntime. I got this error: dmd -c -d -o- -Isrc -Iimport -Hfimport\core\sys\windows\windows.di src\core\sys\windows\windows.d dmc -c src\core\stdc\errno.c -oerrno_c.obj dmc -c src\rt\complex.c dmc -c src\rt\minit.asm masm386 -DM_I386=1 -D_WIN32 -Mx src\rt\minit.asm; Can't run 'masm386', check PATH masm386 -DM_I386=1 -D_WIN32 -Mx src\rt\minit.asm; Can't run 'masm386', check PATH Error: 'dmc' not found Strange. This thing never happened before. I've hit that before. Druntime comes with minit.obj already compiled. Apperently, minit.asm isn't expected to change, so it's not expected that minit.obj will need to be rebuilt. At least that's what I was told. So what must have happened is the same as what happened to me: The timestamp on minit.asm was updated (or the file was inadvertantly changed). Or maybe minit.obj accidentally got deleted. Either way, make thinks minit needs to be rebuilt (which is not normally expected of minit), so it tries to, and it can't find masm386 (which doesn't come with DMD or DMC), so the error. So just: 1. Check that minit.obj still exists, and if not, grab it again. 2. Make sure the timestamp on minit.asm isn't newer than minit.obj 3. Make sure minit.asm didn't get changed.
Re: Can't run 'masm386'
On Thu, 17 May 2012 01:53:59 -0400, Nick Sabalausky seewebsitetocontac...@semitwist.com wrote: (Or, as someone suggested, just remove the minit.obj depends on minit.asm from the makefile.) I don't think this is a good idea, minit.asm could have code changes, in which case you are building with a stale object. I'd rather have the error than accidentally use a stale object. Any chance this asm file can be written in D with asm block? -Steve
Re: Can't run 'masm386'
On 5/17/2012 6:38 AM, Steven Schveighoffer wrote: Any chance this asm file can be written in D with asm block? No.
Re: Can't run 'masm386'
On Thu, 17 May 2012 06:38:15 -0700, Steven Schveighoffer schvei...@yahoo.com wrote: On Thu, 17 May 2012 01:53:59 -0400, Nick Sabalausky seewebsitetocontac...@semitwist.com wrote: (Or, as someone suggested, just remove the minit.obj depends on minit.asm from the makefile.) I don't think this is a good idea, minit.asm could have code changes, in which case you are building with a stale object. I'd rather have the error than accidentally use a stale object. Any chance this asm file can be written in D with asm block? -Steve Ok, I never wrote the change into the makefiles anyways, I just updated from the repo to change the modified date. -- Adam Wilson IRC: LightBender Project Coordinator The Horizon Project http://www.thehorizonproject.org/
Re: Can't run 'masm386'
On 2012-05-17 17:53, Walter Bright wrote: On 5/17/2012 6:38 AM, Steven Schveighoffer wrote: Any chance this asm file can be written in D with asm block? No. Wasn't the whole point of supporting inline assembly directly in D to avoid these situations. -- /Jacob Carlborg
Re: Can't run 'masm386'
On Thursday, 17 May 2012 at 20:07:23 UTC, Jacob Carlborg wrote: On 2012-05-17 17:53, Walter Bright wrote: On 5/17/2012 6:38 AM, Steven Schveighoffer wrote: Any chance this asm file can be written in D with asm block? No. Wasn't the whole point of supporting inline assembly directly in D to avoid these situations. It has been some time since I last looked at it, but IIRC there is no way to write minit.asm in D inline asm because it requires control over the name of its data sections in order to be able to »bracket« all the ModuleInfo references (so an array of all ModuleInfos can be reconstructed later). David
Can't run 'masm386'
I was trying to build druntime. I got this error: dmd -c -d -o- -Isrc -Iimport -Hfimport\core\sys\windows\windows.di src\core\sys\windows\windows.d dmc -c src\core\stdc\errno.c -oerrno_c.obj dmc -c src\rt\complex.c dmc -c src\rt\minit.asm masm386 -DM_I386=1 -D_WIN32 -Mx src\rt\minit.asm; Can't run 'masm386', check PATH masm386 -DM_I386=1 -D_WIN32 -Mx src\rt\minit.asm; Can't run 'masm386', check PATH Error: 'dmc' not found Strange. This thing never happened before.
Re: Can't run 'masm386'
On Wed, 16 May 2012 18:35:33 -0700, Andre Tampubolon an...@lc.vlsm.org wrote: I was trying to build druntime. I got this error: dmd -c -d -o- -Isrc -Iimport -Hfimport\core\sys\windows\windows.di src\core\sys\windows\windows.d dmc -c src\core\stdc\errno.c -oerrno_c.obj dmc -c src\rt\complex.c dmc -c src\rt\minit.asm masm386 -DM_I386=1 -D_WIN32 -Mx src\rt\minit.asm; Can't run 'masm386', check PATH masm386 -DM_I386=1 -D_WIN32 -Mx src\rt\minit.asm; Can't run 'masm386', check PATH Error: 'dmc' not found Strange. This thing never happened before. I just struck this as well after doing a rebase to bring my drt branch up to date. But the question is, if minit.obj is already included, why does it try to build minit.asm? It looks like that line could easily be deleted to no effect. -- Adam Wilson IRC: LightBender Project Coordinator The Horizon Project http://www.thehorizonproject.org/
Re: Can't run 'masm386'
Andre Tampubolon an...@lc.vlsm.org wrote in message news:jp1kld$15mj$1...@digitalmars.com... I was trying to build druntime. I got this error: dmd -c -d -o- -Isrc -Iimport -Hfimport\core\sys\windows\windows.di src\core\sys\windows\windows.d dmc -c src\core\stdc\errno.c -oerrno_c.obj dmc -c src\rt\complex.c dmc -c src\rt\minit.asm masm386 -DM_I386=1 -D_WIN32 -Mx src\rt\minit.asm; Can't run 'masm386', check PATH masm386 -DM_I386=1 -D_WIN32 -Mx src\rt\minit.asm; Can't run 'masm386', check PATH Error: 'dmc' not found Strange. This thing never happened before. I've hit that before. Druntime comes with minit.obj already compiled. Apperently, minit.asm isn't expected to change, so it's not expected that minit.obj will need to be rebuilt. At least that's what I was told. So what must have happened is the same as what happened to me: The timestamp on minit.asm was updated (or the file was inadvertantly changed). Or maybe minit.obj accidentally got deleted. Either way, make thinks minit needs to be rebuilt (which is not normally expected of minit), so it tries to, and it can't find masm386 (which doesn't come with DMD or DMC), so the error. So just: 1. Check that minit.obj still exists, and if not, grab it again. 2. Make sure the timestamp on minit.asm isn't newer than minit.obj 3. Make sure minit.asm didn't get changed.
Re: Can't run 'masm386'
On Wed, 16 May 2012 18:35:33 -0700, Andre Tampubolon an...@lc.vlsm.org wrote: I was trying to build druntime. I got this error: dmd -c -d -o- -Isrc -Iimport -Hfimport\core\sys\windows\windows.di src\core\sys\windows\windows.d dmc -c src\core\stdc\errno.c -oerrno_c.obj dmc -c src\rt\complex.c dmc -c src\rt\minit.asm masm386 -DM_I386=1 -D_WIN32 -Mx src\rt\minit.asm; Can't run 'masm386', check PATH masm386 -DM_I386=1 -D_WIN32 -Mx src\rt\minit.asm; Can't run 'masm386', check PATH Error: 'dmc' not found Strange. This thing never happened before. It looks like 2 days ago someone DID in fact change the minit.asm file. They changed the references to LICENSE and README. Your best bet is probably to redownload minit.obj from the druntime repo to update it's modified date. -- Adam Wilson IRC: LightBender Project Coordinator The Horizon Project http://www.thehorizonproject.org/