dtojs icon indicating copy to clipboard operation
dtojs copied to clipboard

cannot build

Open timotheecour opened this issue 11 years ago • 3 comments

Is this project still maintained or is is moved somewhere? Right now I cannot build. first, instructions mention 'copy in the backend folder' but should be in dmd/ folder and not dmd/backend.

Second, which version of dmd is assumed? from latest dmd zip I see errors such as: ./mars.h:131:25: error: typedef redefinition with different types ('ArrayBase' vs 'Array')

timotheecour avatar Feb 01 '14 23:02 timotheecour

On Sat, Feb 01, 2014 at 03:28:40PM -0800, Timothee Cour wrote:

Is this project still maintained or is is moved somewhere?

No, I haven't updated it for a long time. Try the zip i made a while ago here: http://arsdnet.net/dtojs.zip

That should work... i think.

Second, which version of dmd is assumed?

I don't remember, it was one from over a year ago though.

adamdruppe avatar Feb 01 '14 23:02 adamdruppe

zipped version does not compile with latest dmd beta... ++ -m32 -c -Wno-deprecated -Wstrict-aliasing -D__near= -D__pascal= -fno-exceptions -O2 -Ibackend -Itk -DMARS=1 -DTARGET_LINUX=1 backend/blockopt.c In file included from backend/blockopt.c:30:0: backend/code.h:73:2: error: #error unknown cpu #error unknown cpu ^ backend/code.h:97:17: error: field ‘csimple’ has incomplete type ‘code’ code csimple; // if CSEsimple, this is the code to regenerate it ^ backend/code.h: In member function ‘regm_t Symbol::Spregm()’: backend/code.h:655:37: error: ‘NOREG’ was not declared in this scope return mask[Spreg] | (Spreg2 == NOREG ? 0 : mask[Spreg2]); ^ Makefile:221: recipe for target 'blockopt.o' failed make: *** [blockopt.o] Error 1

Laeeth avatar Jan 03 '15 16:01 Laeeth

I should probably delete this or something as it never quite worked right and now dmd has completely changed. There's actually a nicer way to do it - a visitor class is now in the dmd source, so trying this again would probably turn out a lot nicer - but I'm not sure the approach is worth it at all.

adamdruppe avatar Jan 03 '15 16:01 adamdruppe