Skip to content
This repository was archived by the owner on Sep 11, 2020. It is now read-only.

Compilation fails on OpenBSD #843

Closed
oytunistrator opened this issue May 24, 2018 · 5 comments · Fixed by #992
Closed

Compilation fails on OpenBSD #843

oytunistrator opened this issue May 24, 2018 · 5 comments · Fixed by #992
Labels
bug hacktoberfest Ready to pick for Hacktoberfest help wanted

Comments

@oytunistrator
Copy link

An arrangement may be made for these operating systems. Some definitions are missing.

2 errors occurred:
--> openbsd/386 error: exit status 2
Stderr: # gopkg.in/src-d/go-git.v4
../../../../gopkg.in/src-d/go-git.v4/worktree_bsd.go:15:36: os.Atimespec undefined (type *syscall.Stat_t has no field or method Atimespec)

--> openbsd/amd64 error: exit status 2
Stderr: # gopkg.in/src-d/go-git.v4
../../../../gopkg.in/src-d/go-git.v4/worktree_bsd.go:15:36: os.Atimespec undefined (type *syscall.Stat_t has no field or method Atimespec)

@oytunistrator oytunistrator changed the title My Cross Compile Errors Cross Compile Errors May 24, 2018
@smola
Copy link
Collaborator

smola commented Jun 1, 2018

It might be Atim instead Atimespec for OpenBSD.

@smola smola added the bug label Jul 12, 2018
@smola smola changed the title Cross Compile Errors Compilation fails on OpenBSD Sep 25, 2018
@mschoenlaub
Copy link

Is there a reason why atime is used in BSD but ctime on linux?

@mschoenlaub
Copy link

It might be Atim instead Atimespec for OpenBSD.

In fact, it differs between different BSD flavours apparently. See https://github.com/djherbis/times

@smola
Copy link
Collaborator

smola commented Sep 27, 2018

Is there a reason why atime is used in BSD but ctime on linux?

@mschoenlaub I have no idea. It seems reasonable that ctime was used on *BSD too. Also, using https://github.com/djherbis/times to solve this beyond OpenBSD looks sensible to me.

@smola
Copy link
Collaborator

smola commented Oct 2, 2018

Added hacktoberfest label, note that beyond fixing this build problem, tests should pass.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug hacktoberfest Ready to pick for Hacktoberfest help wanted
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants