Skip to content

cross-compile error on Darwin #2

@wbx-github

Description

@wbx-github

When trying to create a cross-toolchain on Darwin targeting Linux/nds32, I get following
error from binutils:
(register unsigned int x)
^
/usr/include/strings.h:87:6: note: previous declaration is here
int fls(int) __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_2_0);
^
1 warning and 1 error generated.

Renaming the function to fls_internal make the compile go away.

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