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

Reference last commit before Crystal starts bootstrapping itself #11238

Closed
beatrieziz opened this issue Sep 23, 2021 · 4 comments
Closed

Reference last commit before Crystal starts bootstrapping itself #11238

beatrieziz opened this issue Sep 23, 2021 · 4 comments

Comments

@beatrieziz
Copy link

beatrieziz commented Sep 23, 2021

Hello, I recently just found this project and it's sad that it doesn't support Windows (yet). If possible, can someone reference the last commit before the project starts bootstrapping itself? I'm using MinGW if it'll help in any way. Also, output of make:

File not found - *.cr
File not found - *.cr
Using /mingw64/bin/llvm-config [version=12.0.1]
CRYSTAL_CONFIG_BUILD_COMMIT="7a687936f" CRYSTAL_CONFIG_PATH='$ORIGIN/../share/crystal/src' SOURCE_DATE_EPOCH="1632308257" CRYSTAL_CONFIG_LIBRARY_PATH='$ORIGIN/../lib/crystal' ./bin/crystal build  -o .build/crystal src/compiler/crystal.cr -D without_openssl -D without_zlib
./bin/crystal: line 156: crystal: command not found
You need to have a crystal executable in your path! or set CRYSTAL env variable
make: *** [Makefile:168: .build/crystal] Error 1
@straight-shoota
Copy link
Member

The last Ruby-hosted compiler version was in ancient times 😆

Bootstrapping an entire compiler lineage from the last Ruby-hosted compiler is a lot of effort. https://github.com/crystal-lang/bootstrap-script/blob/master/bootstrap contains a build script for that.

But that would only work for platforms supported by older compiler versions. Windows support of the compiler is rather recent. Backporting that to the last Ruby compiler would be close to insane.

You can much easier get a windows compiler by cross-compiling from a supported platform. See https://github.com/crystal-lang/crystal/wiki/Porting-to-Windows for instructions.

@beatrieziz
Copy link
Author

beatrieziz commented Sep 23, 2021

Sadly, I don't have admin privilege to install the C++ Build Tools. Won't MSYS2 work? One more thing, I don't have WSL or any Linux/MacOS environment with me right now. I don't think I would be able to compile it then.

On side note, does anyone have any prebuilt binaries for the crystal compiler (for Windows)?

@straight-shoota
Copy link
Member

Well, you're gonna need MSVC anyways to build on Windows. Not just for building the compiler, but any Crystal program is linked via MSVC.

Unfortunately, windows-gnu targets are not yet supported at all (see #6170). I suppose it probably shouldn't be hard to do, but for now we're focussing only on windows-msvc.

@beatrieziz
Copy link
Author

Ah, thanks for the info. Should I close this issue or keep it open for future references?

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

No branches or pull requests

2 participants