FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

npm install fails on freebsd 11.0-RELEASE-p2 · Issue #1160 · nodegit/nodegit · GitHub

Repository navigation

npm install fails on freebsd 11.0-RELEASE-p2 #1160

Description

npm install nodegit fail when trying to build libgit2.

The errors generated:

  CC(target) Release/obj.target/libgit2/vendor/libgit2/src/iterator.o
../vendor/libgit2/src/iterator.c:1459:44: error: no member named 'st_ctime_nsec' in 'struct stat'
        iter->entry.ctime.nanoseconds = entry->st.st_ctime_nsec;
                                        ~~~~~~~~~ ^
../vendor/libgit2/src/iterator.c:1462:44: error: no member named 'st_mtime_nsec' in 'struct stat'
        iter->entry.mtime.nanoseconds = entry->st.st_mtime_nsec;

System is FreeBSD 11.0-RELEASE-p2
Node version: v7.1.0
npm version: 3.10.9

The npm-debug logfile and the stderr are attached below (the compiler errors / warnings seems not to get captued by npm).

Building the submodule in vendor/libgit2 as documented on the libgit2 repo works.

Please let me know if you need more information.

Thanks for your time.

npm-debug.log.txt
npm-install-stdderr.log.txt

Activity

  1. self-assigned this
    on Nov 26, 2016
  2. saper commented on Nov 26, 2016

    Collaborator

    This command to compile src/iterator.c fails:

    cc '-DNODE_GYP_MODULE_NAME=libgit2' '-DUSING_UV_SHARED=1' '-DUSING_V8_SHARED=1' '-DV8_DEPRECATION_WARNINGS=1' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DGIT_THREADS' '-DGIT_SSH' '-DGIT_SSH_MEMORY_CREDENTIALS' '-DSRC_UTIL_H_' '-DHTTP_PARSER_STRICT=0' -I/usr/local/include/node -I/usr/local/src -I/usr/local/deps/uv/include -I/usr/local/deps/v8/include -I../vendor/libgit2/include -I../vendor/libgit2/src -I../vendor/libgit2/deps/zlib -I../vendor/http_parser -I../vendor/openssl/openssl/include -I../vendor/libssh2/include  -fPIC -pthread -Wall -Wextra -Wno-unused-parameter -m64 -Wno-missing-field-initializers -Wno-unused-variable -Wno-deprecated-declarations -O3 -fno-omit-frame-pointer  -MMD -MF ./Release/.deps/Release/obj.target/libgit2/vendor/libgit2/src/iterator.o.d.raw   -c -o Release/obj.target/libgit2/vendor/libgit2/src/iterator.o ../vendor/libgit2/src/iterator.c
    ../vendor/libgit2/src/iterator.c:1459:44: error: no member named 'st_ctime_nsec' in 'struct stat'
    iter->entry.ctime.nanoseconds = entry->st.st_ctime_nsec;
                                            ~~~~~~~~~ ^
    ../vendor/libgit2/src/iterator.c:1462:44: error: no member named 'st_mtime_nsec' in 'struct stat'
            iter->entry.mtime.nanoseconds = entry->st.st_mtime_nsec;
                                            ~~~~~~~~~ ^
    2 errors generated.
    
  3. Kanaye commented on Jan 16, 2017

    Author

    Awesome Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


    Back | FazBrowse Home | New Git URL