Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upAdd support for FreeBSD/aarch64 #6373
Conversation
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
ysbaddaden
Jul 18, 2018
Member
Thanks!
About LLVM errors, I'm afraid you'll have to dig to understand where they come from. Maybe we have an issue with Crystal+LLVM6 on AArch64
About spec failures:
- maybe a wrong value for
LibC::S_IFLNK? Or the issue was caused by theFile::StatstoFile::Infochange? - ditto;
- depending on iconv library maybe we can't detect all issues, or FreeBSD needs a specific check (see https://github.com/crystal-lang/crystal/issues?utf8=%E2%9C%93&q=iconv+freebsd);
- probably the iconv/errno message is different on FreeBSD that what the spec expects;
- same as 3.
- maybe we fail to find
tzdatafiles (see https://github.com/crystal-lang/crystal/blob/master/src/crystal/system/unix/time.cr) or related toTZenvironment variable.
It would be interesting to see which specs also fail on x86_64-freebsd12.
|
Thanks! About LLVM errors, I'm afraid you'll have to dig to understand where they come from. Maybe we have an issue with Crystal+LLVM6 on AArch64 About spec failures:
It would be interesting to see which specs also fail on x86_64-freebsd12. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
straight-shoota
Jul 18, 2018
Contributor
No 6 is either an issue with environment variables (nil interpreted as "") or the platform-specific Crystal::System::Time.load_localtime (i.e. loading /etc/localtime).
For debugging, just add the following expression before the failing spec line:
pp ENV["TZ"]?, Crystal::System::Time.load_localtime|
No 6 is either an issue with environment variables ( For debugging, just add the following expression before the failing spec line: pp ENV["TZ"]?, Crystal::System::Time.load_localtime |
myfreeweb commentedJul 12, 2018
Yes, it's just a symlink to the amd64 folder. It Just Worked™.
Compiler binary for FreeBSD 12: https://unrelentingtech.s3.dualstack.eu-west-1.amazonaws.com/crystal/crystal-0.25.1-freebsd12.0-aarch64
Works great with LLVM 5.0.2. LLVM 6.0.1 results in assertion failures:
On amd64, these don't appear.
Also, some spec failures:
They don't look very aarch64 related. I never ran spec on amd64 though…