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

Crystalline does not build on freebsd. #40

Closed
devosalain opened this issue Jun 2, 2022 · 3 comments
Closed

Crystalline does not build on freebsd. #40

devosalain opened this issue Jun 2, 2022 · 3 comments

Comments

@devosalain
Copy link

shards install works fine.

crystal build ./src/crystalline.cr  -o ./bin/crystalline --release --no-debug --progress -Dpreview_mt --error-trace

bails out with error

n src/crystalline.cr:1:1l)              

 1 | require "./crystalline/requires"
     ^
Error: while requiring "./crystalline/requires"


In src/crystalline/requires.cr:8:1

 8 | require "compiler/crystal/loader"
     ^
Error: can't find file 'compiler/crystal/loader'

If you're trying to require a shard:
- Did you remember to run `shards install`?
- Did you make sure you're running the compiler in the same directory as your shard.yml?

@elbywan
Copy link
Owner

elbywan commented Jun 2, 2022

Hey @devosalain,

I don't think this is a specific FreeBSD issue, compiler/crystal/loader requires a file (loader.cr) which has been added in the crystal sources since this PR, late 2021 (crystal-lang/crystal#11434).

I'm guessing that you have an outdated crystal version which is not compatible with the latest crystalline sources.

@elbywan
Copy link
Owner

elbywan commented Aug 1, 2022

Closing because of inactivity.

@elbywan elbywan closed this as completed Aug 1, 2022
@devosalain
Copy link
Author

crystal --version
Crystal 1.4.1 ()

LLVM: 10.0.1
Default target: x86_64-portbld-freebsd13.1

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

2 participants