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

Testsuite fails to compile on arm64 (macOS) #10

Open
dyfer opened this issue Oct 28, 2022 · 0 comments
Open

Testsuite fails to compile on arm64 (macOS) #10

dyfer opened this issue Oct 28, 2022 · 0 comments

Comments

@dyfer
Copy link

dyfer commented Oct 28, 2022

I've tried building the testsuite and I encountered following errors:

  • missing functions for arm/neon
/path/to/nova-simd/testsuite/vec_test.cpp:104:25: error: no member named 'gen_ones' in 'nova::vec<float>'
    vec_t ones = vec_t::gen_ones();
                 ~~~~~~~^
/path/to/nova-simd/testsuite/vec_test.cpp:134:19: error: use of undeclared identifier 'undenormalize'
    vec_t fixed = undenormalize(denormal);
                  ^
  • ambiguous conversions
/path/to/nova-simd/testsuite/../vec/../detail/math.hpp:323:15: error: conversion from 'int' to
      'const nova::vec<float>' is ambiguous
    if (arg > 0) {
              ^

/path/to/nova-simd/testsuite/../vec/../detail/math.hpp:324:13: error: no viable conversion from
      'nova::vec<float>' to 'bool'
        if (arg < min_positive_value)
            ^~~~~~~~~~~~~~~~~~~~~~~~

/path/to/nova-simd/testsuite/../vec/../detail/math.hpp:329:17: error: use of overloaded operator '>' is
      ambiguous (with operand types 'nova::vec<float>' and '__attribute__((neon_vector_type(4))) float' (vector of 4 'float' values))
        if (arg > -min_positive_value)
            ~~~ ^ ~~~~~~~~~~~~~~~~~~~

In the end, I managed to compile the testsuite by commenting out functions with the errors and all references to them.

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