Closed
Description
Bug report
System info:
- InfluxDB version: 1.3.0 (according to CHANGELOG.md)
- operating system: SmartOS (illumos) 2017Q1 base-64 image
- Go version: go version go1.8 solaris/amd64
Steps to reproduce:
GOPATH=${PWD}
PATH=${GOPATH}/bin:$(PATH)
go get golang.org/x/sys/unix
go get github.com/sparrc/gdm
go get github.com/influxdata/influxdb
( cd src/github.com/influxdata/influxdb; gdm restore )
go clean github.com/influxdata/influxdb/...
go install github.com/influxdata/influxdb/...
Expected behavior:
Successful build
Actual behavior:
Build error
go clean github.com/influxdata/influxdb/...
go install github.com/influxdata/influxdb/...
# github.com/influxdata/influxdb/pkg/mmap
src/github.com/influxdata/influxdb/pkg/mmap/mmap_unix.go:30: undefined: syscall.Mmap
src/github.com/influxdata/influxdb/pkg/mmap/mmap_unix.go:42: undefined: syscall.Munmap
Makefile:8: recipe for target 'bin/influxdb' failed
make: *** [bin/influxdb] Error 2
Metadata
Metadata
Assignees
Type
Projects
Milestone
Relationships
Development
No branches or pull requests
Activity
bahamat commentedon Jun 8, 2017
This is similar to #4787.
jwilder commentedon Jun 13, 2017
There is an
mmap_solaris.go
in the repo which is the fix for #4787, but it looks like your OS is using the unix one for some reason.mmap_unix.go
has:mmap_solaris.go
has:Maybe try
GOOS=solaris go install github.com/influxdata/influxdb/...
? Perhaps the build constraints need to specifyillumos
as well?bahamat commentedon Jun 14, 2017
Ok, I'll try setting
GOOS=solaris
when I get a chance to try it again.bahamat commentedon Jun 15, 2017
Simply setting
GOOS
doesn't help. It fails with the same error.The fix for #4787 has a
mmap_solaris.go
specifically for the tsdb package. The error I'm getting is inpkg/mmap
.I made an attempt at duplicating the
mmap_solaris.go
file inpkg/mmap
, which I think made progress, but still ultimately fails. The error I get now is:jwilder commentedon Jun 21, 2017
@bahamat Can you try building from #8514? It should resolve the compilation issue now.
bahamat commentedon Jun 22, 2017
I've confirmed that I can build after this commit.
Thanks!