Skip to content

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

Description

@Kanaye

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

Metadata

Metadata

Assignees

Labels

Type

No type

Fields

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