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

Windows compilation issues #58

Open
btrepp opened this issue Jan 10, 2019 · 0 comments
Open

Windows compilation issues #58

btrepp opened this issue Jan 10, 2019 · 0 comments

Comments

@btrepp
Copy link

btrepp commented Jan 10, 2019

So I was feeling adventurous and tried to see how far I could get on windows. I figure this is way outside of the short term goals, but in case anyone tries to get purec going on windows here is my notes.

Find is annoying on windows.

Find seems to always want to be the windows find, rather than any alternatives. No matter how you manipulate the path. I've had some success defining FIND?=find and setting that in the shell to make 'make' not use the find in system32.

BWDGC needs autogen+configure.

These seem to be hard to come buy without a whole msys environment. However I did succeed using the Makefile.direct and clang to get a static lib compiled.

Purs doesn't get all the dependencies

@$$(PURS) compile -g corefn -o $$(@D) $$(filter %.purs,$$^)
doesn't seem to pass all the .purs files in.

I seem to only get the src files, none of the dependencies here, this causes purs to fail to generate the corefn as it doesn't know its packages. adding on $(PACKAGE_SOURCES) gets this to the next step.

I haven't been able to figure out the linker.

Following the above gets me plenty of object files, but the link step fails. It spews out

Effect.Unsafe.o : error LNK2005: utf8casecmp already defined in Control.Applicative.o
Effect.Unsafe.o : error LNK2005: utf8codepoint already defined in Control.Applicative.o
Which is the last part I couldn't figure out, I'll admit my toolchain is probably weird, clang on windows and I'm not sure what clangs linker is doing here.

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

1 participant