Skip to content

Testsuite fails to compile on arm64 (macOS) #10

@dyfer

Description

@dyfer

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions