Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Errors Compiling #47

Closed
JSMike opened this issue Sep 28, 2013 · 2 comments
Closed

Errors Compiling #47

JSMike opened this issue Sep 28, 2013 · 2 comments

Comments

@JSMike
Copy link

JSMike commented Sep 28, 2013

Hello,

I'm failing to compile because there are too many errors:

I received the same error using your instructions, and when using:
apt-get source --compile go-mtpfs
after adding ppa and getting all the dependencies installed

mikescc:~$ go get github.com/hanwen/go-mtpfs

github.com/hanwen/go-mtpfs

src/github.com/hanwen/go-mtpfs/fs.go:28: undefined: Device
src/github.com/hanwen/go-mtpfs/fs.go:29: undefined: DeviceStorage
src/github.com/hanwen/go-mtpfs/fs.go:39: undefined: Device
src/github.com/hanwen/go-mtpfs/fs.go:39: undefined: DeviceStorage
src/github.com/hanwen/go-mtpfs/fs.go:133: undefined: DeviceStorage
src/github.com/hanwen/go-mtpfs/fs.go:143: undefined: File
src/github.com/hanwen/go-mtpfs/fs.go:143: undefined: DeviceStorage
src/github.com/hanwen/go-mtpfs/fs.go:202: undefined: DeviceStorage
src/github.com/hanwen/go-mtpfs/fs.go:218: undefined: File
src/github.com/hanwen/go-mtpfs/fs.go:508: undefined: File
src/github.com/hanwen/go-mtpfs/fs.go:508: too many error

FYI, doing this build on an ARM chromebook with Ubuntu 12.04 since no binaries were available for armhf.

Thanks for any help.
-Mike

@JSMike
Copy link
Author

JSMike commented Sep 28, 2013

From looking at closed tickets, it looks like this is a cgo/arm issue. I tried to follow a bunch of guides out there on how to get cgo to run on arm.

Including installing a version of Go for ARMv7 multiarch, that was supposed to support cgo:
http://dave.cheney.net/unofficial-arm-tarballs

This version of go seemed to work fine but still had the same undefined errors.

Also looked at using gccgo and linking the GCC 4.7 C libraries, but I'm not sure if I followed/understood the correct steps.

@hanwen
Copy link
Owner

hanwen commented Jan 4, 2020

closing due to age.

@hanwen hanwen closed this as completed Jan 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants