E-xyza / zigler

zig nifs in elixir
MIT License
753 stars 40 forks source link

Set up freebsd ci #249

Open ityonemo opened 3 years ago

ityonemo commented 3 years ago

https://github.com/marketplace/actions/freebsd-vm

ityonemo commented 3 years ago

solved macos here: https://github.com/ityonemo/zigler/pull/250

ityonemo commented 3 years ago

freebsd failing as follows:

== Compilation error in file test/support/zigtest/transitive.ex ==
** (CompileError) /tmp/.zigler_compiler/test/Elixir.ZiglerTest.ZigTest.Transitive/erl_nif.zig:21: C import failed
usingnamespace @cImport({
               ^
/usr/local/lib/erlang/erts-10.3.5.16/include/erl_drv_nif.h:156:12: note: 'sys/types.h' file not found
#  include <sys/types.h>
           ^
./beam.zig:307:20: error: container 'erl_nif' has no member called 'ErlNifEnv'
pub const env = ?*e.ErlNifEnv;
                   ^
./Elixir.ZiglerTest.ZigTest.Transitive.zig:19:33: note: referenced here
export fn __foo_shim__(env: beam.env, argc: c_int, argv: [*c] const beam.term) beam.term {
                                ^
./Elixir.ZiglerTest.ZigTest.Transitive.zig:28:36: error: container 'erl_nif' has no member called 'ErlNifFunc'
export var __exported_nifs__ = [_]e.ErlNifFunc{

./Elixir.ZiglerTest.ZigTest.Transitive.zig:53:30: error: container 'erl_nif' has no member called 'ErlNifEntry'
export fn nif_init() *const e.ErlNifEntry{
                             ^
Elixir.ZiglerTest.ZigTest.Transitive...The following command exited with error code 1:
/Users/runner/work/zigler/zigler/zig/zig-freebsd-x86_64-0.8.0/zig build-lib /tmp/.zigler_compiler/test/Elixir.ZiglerTest.ZigTest.Transitive/Elixir.ZiglerTest.ZigTest.Transitive.zig -lc --single-threaded --cache-dir /tmp/.zigler_compiler/test/Elixir.ZiglerTest.ZigTest.Transitive/zig-cache --global-cache-dir /root/.cache/zig --name Elixir.ZiglerTest.ZigTest.Transitive --version 0.8 -dynamic -target x86_64-freebsd-gnu -isystem /usr/local/lib/erlang/erts-10.3.5.16/include --enable-cache 
error: the following build command failed with exit code 1:
/tmp/.zigler_compiler/test/Elixir.ZiglerTest.ZigTest.Transitive/zig-cache/o/220311cc0cbf744fab41d9a79f48945f/build /Users/runner/work/zigler/zigler/zig/zig-freebsd-x86_64-0.8.0/zig /tmp/.zigler_compiler/test/Elixir.ZiglerTest.ZigTest.Transitive /tmp/.zigler_compiler/test/Elixir.ZiglerTest.ZigTest.Transitive/zig-cache /root/.cache/zig

    lib/zig/parser/error.ex:44: Zig.Parser.Error.parse/2
    lib/zig/command.ex:36: Zig.Command.compile/2
    lib/zig/compiler.ex:95: Zig.Compiler.compilation/2
    expanding macro: Zig.Compiler.__before_compile__/1
    test/support/zigtest/transitive.ex:1: ZiglerTest.ZigTest.Transitive (module)
ityonemo commented 3 years ago

probably needs examination by virtualizing through QEMU

ityonemo commented 2 years ago

macos blocked on: https://github.com/ityonemo/zigler/issues/310