Skip to content

mruby: powl() not available when compiling for Dreamcast #6365

@Tchan0

Description

@Tchan0

Hello,

Tried to compile the latest mruby for Dreamcast, but it failed with this message:

/opt/toolchains/dc/kos-ports/mruby/build/mruby-3.2.0/src/readfloat.c: In function ‘mrb_read_float’:
/opt/toolchains/dc/kos-ports/mruby/build/mruby-3.2.0/src/readfloat.c:69:12: error: implicit declaration of function ‘powl’; did you mean ‘powf’? [-Werror=implicit-function-declaration]
69 | res *= powl(10.0, sign * e);
| ^~~~
| powf

Cause: bd668e4
that went from pow() to powl()
This commit warned about architectures not supporting long doubles... and the Dreamcast seems to be one of those.

Dreamcast mruby compiled via:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions