Comments (4)
That's what I get for testing the build on OSX. I'll take a look asap.
On Aug 16, 2015 10:43 PM, "Joseph Chu" [email protected] wrote:
I'm trying to install / build pcstat on an AWS instance running Ubuntu
Linux, but am getting multiple failures.root@node0:~# go get golang.org/x/sys/unix
golang.org/x/sys/unix
/usr/src/golang.org/x/sys/unix/syscall_solaris.go:31 http://golang.org/x/sys/unix/usr/src/golang.org/x/sys/unix/syscall_solaris.go:31: clen redeclared in this block
previous declaration at /usr/src/golang.org/x/sys/unix/syscall_linux.go:784
/usr/src/golang.org/x/sys/unix/syscall_solaris.go:44 http://golang.org/x/sys/unix/syscall_linux.go:784/usr/src/golang.org/x/sys/unix/syscall_solaris.go:44: ParseDirent redeclared in this block
previous declaration at /usr/src/golang.org/x/sys/unix/syscall_linux.go:797
/usr/src/golang.org/x/sys/unix/syscall_solaris.go:70 http://golang.org/x/sys/unix/syscall_linux.go:797/usr/src/golang.org/x/sys/unix/syscall_solaris.go:70: Pipe redeclared in this block
previous declaration at /usr/src/golang.org/x/sys/unix/syscall_linux_amd64.go:108
/usr/src/golang.org/x/sys/unix/syscall_solaris.go:82 http://golang.org/x/sys/unix/syscall_linux_amd64.go:108/usr/src/golang.org/x/sys/unix/syscall_solaris.go:82: (_SockaddrInet4).sockaddr redeclared in this block
previous declaration at /usr/src/golang.org/x/sys/unix/syscall_linux.go:291
/usr/src/golang.org/x/sys/unix/syscall_solaris.go:96 http://golang.org/x/sys/unix/syscall_linux.go:291/usr/src/golang.org/x/sys/unix/syscall_solaris.go:96: (_SockaddrInet6).sockaddr redeclared in this block
previous declaration at /usr/src/golang.org/x/sys/unix/syscall_linux.go:305
/usr/src/golang.org/x/sys/unix/syscall_solaris.go:111 http://golang.org/x/sys/unix/syscall_linux.go:305/usr/src/golang.org/x/sys/unix/syscall_solaris.go:111: (*SockaddrUnix).sockaddr redeclared in this block
previous declaration at /usr/src/golang.org/x/sys/unix/syscall_linux.go:320
/usr/src/golang.org/x/sys/unix/syscall_solaris.go:135 http://golang.org/x/sys/unix/syscall_linux.go:320/usr/src/golang.org/x/sys/unix/syscall_solaris.go:135: Getsockname redeclared in this block
previous declaration at /usr/src/golang.org/x/sys/unix/syscall_linux.go:492
/usr/src/golang.org/x/sys/unix/syscall_solaris.go:147 http://golang.org/x/sys/unix/syscall_linux.go:492/usr/src/golang.org/x/sys/unix/syscall_solaris.go:147: ImplementsGetwd redeclared in this block
previous declaration at /usr/src/golang.org/x/sys/unix/syscall_linux.go:164
/usr/src/golang.org/x/sys/unix/syscall_solaris.go:149 http://golang.org/x/sys/unix/syscall_linux.go:164/usr/src/golang.org/x/sys/unix/syscall_solaris.go:149: Getwd redeclared in this block
previous declaration at /usr/src/golang.org/x/sys/unix/syscall_linux.go:168
/usr/src/golang.org/x/sys/unix/syscall_solaris.go:158 http://golang.org/x/sys/unix/syscall_linux.go:168/usr/src/golang.org/x/sys/unix/syscall_solaris.go:158: Getgroups redeclared in this block
previous declaration at /usr/src/golang.org/x/sys/unix/syscall_linux.go:181
/usr/src/golang.org/x/sys/unix/syscall_solaris.go:158 http://golang.org/x/sys/unix/syscall_linux.go:181/usr/src/golang.org/x/sys/unix/syscall_solaris.go:158: too many errors
root@node0:~# go get github.com/tobert/pcstat/pcstatgolang.org/x/sys/unix
/usr/src/golang.org/x/sys/unix/syscall_solaris.go:31 http://golang.org/x/sys/unix/usr/src/golang.org/x/sys/unix/syscall_solaris.go:31: clen redeclared in this block
previous declaration at /usr/src/golang.org/x/sys/unix/syscall_linux.go:784
/usr/src/golang.org/x/sys/unix/syscall_solaris.go:44 http://golang.org/x/sys/unix/syscall_linux.go:784/usr/src/golang.org/x/sys/unix/syscall_solaris.go:44: ParseDirent redeclared in this block
previous declaration at /usr/src/golang.org/x/sys/unix/syscall_linux.go:797
/usr/src/golang.org/x/sys/unix/syscall_solaris.go:70 http://golang.org/x/sys/unix/syscall_linux.go:797/usr/src/golang.org/x/sys/unix/syscall_solaris.go:70: Pipe redeclared in this block
previous declaration at /usr/src/golang.org/x/sys/unix/syscall_linux_amd64.go:108
/usr/src/golang.org/x/sys/unix/syscall_solaris.go:82 http://golang.org/x/sys/unix/syscall_linux_amd64.go:108/usr/src/golang.org/x/sys/unix/syscall_solaris.go:82: (_SockaddrInet4).sockaddr redeclared in this block
previous declaration at /usr/src/golang.org/x/sys/unix/syscall_linux.go:291
/usr/src/golang.org/x/sys/unix/syscall_solaris.go:96 http://golang.org/x/sys/unix/syscall_linux.go:291/usr/src/golang.org/x/sys/unix/syscall_solaris.go:96: (_SockaddrInet6).sockaddr redeclared in this block
previous declaration at /usr/src/golang.org/x/sys/unix/syscall_linux.go:305
/usr/src/golang.org/x/sys/unix/syscall_solaris.go:111 http://golang.org/x/sys/unix/syscall_linux.go:305/usr/src/golang.org/x/sys/unix/syscall_solaris.go:111: (*SockaddrUnix).sockaddr redeclared in this block
previous declaration at /usr/src/golang.org/x/sys/unix/syscall_linux.go:320
/usr/src/golang.org/x/sys/unix/syscall_solaris.go:135 http://golang.org/x/sys/unix/syscall_linux.go:320/usr/src/golang.org/x/sys/unix/syscall_solaris.go:135: Getsockname redeclared in this block
previous declaration at /usr/src/golang.org/x/sys/unix/syscall_linux.go:492
/usr/src/golang.org/x/sys/unix/syscall_solaris.go:147 http://golang.org/x/sys/unix/syscall_linux.go:492/usr/src/golang.org/x/sys/unix/syscall_solaris.go:147: ImplementsGetwd redeclared in this block
previous declaration at /usr/src/golang.org/x/sys/unix/syscall_linux.go:164
/usr/src/golang.org/x/sys/unix/syscall_solaris.go:149 http://golang.org/x/sys/unix/syscall_linux.go:164/usr/src/golang.org/x/sys/unix/syscall_solaris.go:149: Getwd redeclared in this block
previous declaration at /usr/src/golang.org/x/sys/unix/syscall_linux.go:168
/usr/src/golang.org/x/sys/unix/syscall_solaris.go:158 http://golang.org/x/sys/unix/syscall_linux.go:168/usr/src/golang.org/x/sys/unix/syscall_solaris.go:158: Getgroups redeclared in this block
previous declaration at /usr/src/golang.org/x/sys/unix/syscall_linux.go:181
/usr/src/golang.org/x/sys/unix/syscall_solaris.go:158 http://golang.org/x/sys/unix/syscall_linux.go:181/usr/src/golang.org/x/sys/unix/syscall_solaris.go:158: too many errorsHopefully the following provides the information needed about the
environment:root@node0:~# uname -a
Linux node0 3.13.0-36-generic #63-Ubuntu SMP Wed Sep 3 21:30:07 UTC 2014 x86_64 x86_64 x86_64 GNU/Linuxroot@node0:~# go version
go version go1.2.1 linux/amd64If anything else is needed, please let me know.
At this point in writing the issue, I am guessing that the problem may
exist from a dependency of pcstat (golang.org/x/sys/unix)? If that's the
case, well... just raising awareness of this for now.—
Reply to this email directly or view it on GitHub
#12.
from pcstat.
I just built it again on a Linux machine and everything seems fine. In taking a closer look at the error you posted, it looks a little weird, "/usr/src/golang.org/x/sys/unix/syscall_solaris.go".
Can you try updating your sys/unix with "go get -u golang.org/x/sys/unix" and try building again with "go build -a"? Please also verify whether or not you have Go 1.4. If Go 1.3 is a problem, I'll tag the previous version for folks to use.
from pcstat.
Ah ok. Just noticed your Go version at 1.2.1. That's probably it. You can get 1.4 by using the following PPA: https://launchpad.net/~evarlast/+archive/ubuntu/golang1.4
I'll think a little about how to approach older Go environments. Since Go binaries are easy to copy around, my inclination is to only support >= 1.4, but I could be persuaded otherwise.
from pcstat.
That was it, thanks! Updating Go to 1.4 fixed my build problem.
I'm not tied down to any earlier version of Go, and wouldn't mind if the requirements were updated to support only >= 1.4.
from pcstat.
Related Issues (20)
- Having trouble compiling on ubuntu HOT 2
- pcstat to show the top [number] cached file in the linux os globally HOT 1
- problems while installing HOT 4
- pcstat syscall mincore failed with bad address if file is larger than 512MB on arm64 4K_PAGES machines HOT 3
- check page cache in docker HOT 1
- some file appears to be 0 bytes in length HOT 2
- Formatting percentages without leading zeroes HOT 1
- Provide binary artifacts through Releases? HOT 2
- Use syscall numbers from x/sys/unix HOT 1
- Add time information to output
- Name and year in LICENSE HOT 1
- a fmt bug
- interpreting histogram format
- aarch64 HOT 1
- Have trouble installing pcstat HOT 1
- add sleep loop option
- needs tests HOT 1
- Ignore zero length files HOT 1
- Docs are out of data HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pcstat.