Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot build #1

Open
timotheecour opened this issue Feb 1, 2014 · 3 comments
Open

cannot build #1

timotheecour opened this issue Feb 1, 2014 · 3 comments

Comments

@timotheecour
Copy link

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')

@adamdruppe
Copy link
Owner

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.

@Laeeth
Copy link

Laeeth commented Jan 3, 2015

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

@adamdruppe
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants