google / google/farmhash

npm install compile error

Open
#27 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
658
Forks
107
PR merge metrics
No merged PRs in 30d

Description

MacOS Mojave 10.14.2
XCODE Version 10.1 (10B61)

run `npm i` got the follwing error

```
$ npm i
> farmhash@1.2.1 install /xxx/> farmhash@1.2.1 install /Users/zhangliao/Dev_Code/jingGangShan/node_modules/farmhash
> node-gyp rebuild

CXX(target) Release/obj.target/farmhash-legacy/src/upstream/farmhash-legacy.o
In file included from ../src/upstream/farmhash-legacy.cc:23:
../src/upstream/farmhash.h:49:10: warning: non-portable path to file ''; specified path differs in case from file name on disk
[-Wnonportable-include-path]
#include // for memcpy and memset
^~~~~~~~~~

In file included from ../src/upstream/farmhash-legacy.cc:23:
In file included from ../src/upstream/farmhash.h:49:
In file included from /usr/local/include/string.h:26:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/string:477:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/string_view:176:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/__string:56:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/algorithm:641:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/cstring:70:9: error: no member named 'memcpy' in the global
namespace
using ::memcpy;
~~^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/cstring:71:9: error: no member named 'memmove' in the global
namespace
using ::memmove;
~~^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/cstring:72:9: error: no member named 'strcpy' in the global
namespace
using ::strcpy;rm node_modules/farmhash
> node-gyp rebuild

CXX(target) Release/obj.target/farmhash-legacy/src/upstream/farmhash-legacy.o
In file included from ../src/upstream/farmhash-legacy.cc:23:
../src/upstream/farmhash.h:49:10: warning: non-portable path to file ''; specified path differs in case from file name on disk
[-Wnonportable-include-path]
#include // for memcpy and memset
^~~~~~~~~~

In file included from ../src/upstream/farmhash-legacy.cc:23:
In file included from ../src/upstream/farmhash.h:49:
In file included from /usr/local/include/string.h:26:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/string:477:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/string_view:176:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/__string:56:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/algorithm:641:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/cstring:70:9: error: no member named 'memcpy' in the global
namespace
using ::memcpy;
~~^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/cstring:71:9: error: no member named 'memmove' in the global
namespace
using ::memmove;
~~^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/cstring:72:9: error: no member named 'strcpy' in the global
namespace
using ::strcpy;
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.