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

Can't compile using Cygwin/MinGW/windows 8 #6925

Closed
spalato opened this issue May 22, 2014 · 4 comments
Closed

Can't compile using Cygwin/MinGW/windows 8 #6925

spalato opened this issue May 22, 2014 · 4 comments

Comments

@spalato
Copy link

spalato commented May 22, 2014

Hi guys,

I'm trying to build Julia on Cygwin using MinGW on windows 8 x64.

I've followed the windows build guide, installed MinGW as recommended, got it to work (found solutions there, thanks #6295). Now the build process fails when trying to build double-conversion. It is missing the libgrisu.so library.

Here's the message, from a fresh julia clone:
https://gist.github.com/spalato/a12a7acbd0ae637c9bc5

Thanks

Edit: now with a working link.

@vtjnash
Copy link
Sponsor Member

vtjnash commented May 23, 2014

looks like it thought it was building for linux, rather than windows. can you clarify your build process? to build on Cygwin, you need to configure your Make.user for a MinGW cross-compile -- native Cygwin compiles are not supported.

@tkelman
Copy link
Contributor

tkelman commented May 23, 2014

If you're using Cygwin as your shell, you should use Cygwin's installed versions of MinGW compilers and set XC_HOST = x86_64-w64-mingw32 in Make.user to set up a Cygwin-to-MinGW cross compile.

If you're using the MinGW-builds compilers, don't try to use Cygwin as your shell. You need to use MSYS(2) for the path translation, since native MinGW compilers don't understand posixy paths.

@spalato
Copy link
Author

spalato commented May 23, 2014

I downloaded MinGW-builds as recommended under README.windows. I prepended MinGW directory to PATH verified the correct gcc was found using which gcc and gcc -v. I than ran the default make.inc file.

Cygwin is giving me a hard time with the mingw64_x86_64 install (updates, incomplete mirrors...). I'll use my own Make.user using your advice and keep you updated.

Thanks.

@spalato
Copy link
Author

spalato commented May 23, 2014

I installed cygwin's mingw_x86_64 compiler suite, then uncommented the XC_HOST = x86_64-w64-mingw32 line in Make.inc (I should have used Make.user, I know). Julia compiled fine, and works now.

Thanks for your help

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