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

Windows supported? #69

Open
jgranduel opened this issue Jan 12, 2024 · 1 comment
Open

Windows supported? #69

jgranduel opened this issue Jan 12, 2024 · 1 comment

Comments

@jgranduel
Copy link

Hi,

I thought that frawk was not supported on Windows, but I came about this #87 issue where I saw that using cargo build --no-default-features does (or might) compile. I don't know anything about jemalloc, so it was just a test. I don't know if it was relevant to try!

It compiled indeed, with 3 warnings (cargo --version ⟶ cargo 1.73.0 (9c4383fb5 2023-08-26)).

warning: use of deprecated method `itertools::Itertools::fold_results`: Use .fold_ok() instead
   --> src\runtime\writers.rs:688:10
    |
688 |         .fold_results(true, |a, _| a)
    |          ^^^^^^^^^^^^
    |
    = note: `#[warn(deprecated)]` on by default

warning: field `attrs` is never read
  --> src\codegen\mod.rs:45:9
   |
44 | pub(crate) struct Sig<'a, C: Backend + ?Sized> {
   |                   --- field in this struct
45 |     pub attrs: &'a [FunctionAttr],
   |         ^^^^^
   |
   = note: `#[warn(dead_code)]` on by default

warning: `frawk` (bin "frawk") generated 2 warnings
    Finished dev [unoptimized + debuginfo] target(s) in 47.86s

But, it hanged at first trial:

> "abcd" | frawk '{ print }'
thread 'main' panicked at src\codegen\intrinsics.rs:1398:1:
assertion failed: !map.is_null()
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

so with RUST_BACKTRACE=1

> $env:RUST_BACKTRACE=1
#142 PS7 C:\git\frawk> "abcd" | frawk '{ print }'
thread 'main' panicked at src\codegen\intrinsics.rs:1398:1:
assertion failed: !map.is_null()
stack backtrace:
   0: std::panicking::begin_panic_handler
             at /rustc/cc66ad468955717ab92600c770da8c1601a4ff33/library\std\src\panicking.rs:595
   1: core::panicking::panic_fmt
             at /rustc/cc66ad468955717ab92600c770da8c1601a4ff33/library\core\src\panicking.rs:67
   2: core::panicking::panic
             at /rustc/cc66ad468955717ab92600c770da8c1601a4ff33/library\core\src\panicking.rs:117
   3: frawk::codegen::intrinsics::lookup_intstr
             at .\src\codegen\intrinsics.rs:1329
   4: <unknown>
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

Thanks! Would be happy have frawk running on Windows as there is no up to date solution, AFAIK.

@jgranduel
Copy link
Author

Sorry, just realising I had posted here something relevant to the frawk project. I apologize for this error.

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

1 participant