Skip to content

statvfs build error #142

Open
Open
@guzhonL

Description

@guzhonL

Issue Description

Hi, When I built 245459.0.0 myself on branch master, I got a build error like this:
/Users/guizhong/dev/workspace/jsc-android-buildscripts/build/target/webkit/Source/WTF/wtf/posix/FileSystemPOSIX.cpp:422:9: error: no matching constructor for initialization of 'statvfs'
_if (statvfs(fileSystemRepresentation(path).data(), &fileSystemStat)) {
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~_

/Users/guizhong/dev/workspace/20190401/Android/WBox/wbxjscore/jsc-android-buildscripts/build/target/toolchains/arm-linux-androideabi/sysroot/usr/include/sys/statvfs.h:46:8: note: candidate constructor (the implicit copy constructor) not viable: requires 1 argument, but 2 were provided
struct statvfs { __STATVFS64_BODY };
^

/Users/guizhong/dev/workspace/jsc-android-buildscripts/build/target/toolchains/arm-linux-androideabi/sysroot/usr/include/sys/statvfs.h:46:8: note: candidate constructor (the implicit move constructor) not viable: requires 1 argument, but 2 were provided
/Users/guizhong/dev/workspace/jsc-android-buildscripts/build/target/toolchains/arm-linux-androideabi/sysroot/usr/include/sys/statvfs.h:46:8: note: candidate constructor (the implicit default constructor) not viable: requires 0 arguments, but 2 were provided
1 error generated.
And "jsc_fix_build_error_statvfs.patch" applied. Would you give me a clue how to fix it? It's the best way that you could publish a new tag on version 245459.0.0. Thanks!!

Version, config, any additional info

ndk version: ndk-r17c
os info:macOs Mojave

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