Skip to content

Glibc 2.42+ conflicts with rsqrt/rsqrtf defs in builtins.h #62

Description

@griffi-gh

Noticed this while working on Nix packaging

As of glibc 2.42 (?? apparently), rsqrt/rsqrtf are declared in <bits/mathcalls.h> (include'd by both <math.h> and <cmath>)

SCALE's redscale_impl/builtins.h unconditionally includes and declares its own rsqrt(double), the two now conflict:

error: __host__ function 'rsqrt' cannot overload __host__ __device__ function 'rsqrt'

I had to comment those defs out from redscale_impl/builtins.h for the build to proceed:

__host__ __DEVICE float rsqrt(float);
__host__ __DEVICE double rsqrt(double);
__host__ __DEVICE float rsqrtf(float);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions