Skip to content

Conflicting types for 'fsqrt' #797

@gen2brain

Description

@gen2brain
In file included from mupen64plus-core/src/r4300/fpu.h:25,
                 from mupen64plus-core/src/r4300/mips_instructions.def:50,
                 from mupen64plus-core/src/r4300/cached_interp.c:165:
/usr/include/bits/mathcalls-narrow.h:36:20: error: conflicting types for 'fsqrt'; have 'float(double)'
   36 | __MATHCALL_NARROW (__MATHCALL_NAME (sqrt), __MATHCALL_REDIR_NAME2 (sqrt), 1);
      |                    ^~~~~~~~~~~~~~~
In file included from mupen64plus-core/src/r4300/recomp.h:49,
                 from mupen64plus-core/src/r4300/cached_interp.h:30,
                 from mupen64plus-core/src/r4300/cached_interp.c:37:
mupen64plus-core/src/r4300/hacktarux_dynarec/assemble.h:1653:20: note: previous definition of 'fsqrt' with type 'void(void)'
 1653 | static INLINE void fsqrt(void)
      |                    ^~~~~
make: *** [Makefile:1056: mupen64plus-core/src/r4300/cached_interp.o] Error 1
make: *** Waiting for unfinished jobs....

This is with glibc-2.41 and gcc-15.1.0.

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