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

Remove C dependencies #29

Closed
jpillora opened this issue Sep 14, 2015 · 9 comments
Closed

Remove C dependencies #29

jpillora opened this issue Sep 14, 2015 · 9 comments

Comments

@jpillora
Copy link
Contributor

Hey matt,

Cross compiling fails due to C dependencies. Currently attempting to compile github.com/anacrolix/torrent/cmd/torrent on http://gox.jpillora.com/ yields:

../../../../spacemonkeygo/monotime/mono_fallback.go:21:2: no buildable Go source files in /app/.heroku/go/src/github.com/spacemonkeygo/monotime/_cgo

If it's not practical to remove the C dependencies, feel free to close this.

This is for https://github.com/jpillora/cloud-torrent where I'd like to have auto-releases working for all platforms (currently only native - linux amd64 - works)

@anacrolix
Copy link
Owner

I ran into this too when I tried to use torrent on ARM. I'll see what I can
do, suggestions welcome. I don't recall why I used monotime in the first
place but it was likely something misled.
On 15/09/2015 2:00 AM, "Jaime Pillora" notifications@github.com wrote:

Hey matt,

Cross compiling fails due to C dependencies. Currently attempting to
compile github.com/anacrolix/torrent/cmd/torrent on
http://gox.jpillora.com/ yields:

../../../../spacemonkeygo/monotime/mono_fallback.go:21:2: no buildable Go source files in /app/.heroku/go/src/github.com/spacemonkeygo/monotime/_cgo

If it's not practical to remove the C dependencies, feel free to close
this.

This is for https://github.com/jpillora/cloud-torrent where I'd like to
have auto-releases working for all platforms (currently only native - linux
amd64 - works)


Reply to this email directly or view it on GitHub
#29.

@jpillora
Copy link
Contributor Author

It seems go has monotonic time, though it's private

http://golang.org/pkg/runtime/?m=all#nanotime

On Wed, 16 Sep 2015 at 1:51 pm Matt Joiner notifications@github.com wrote:

I ran into this too when I tried to use torrent on ARM. I'll see what I can
do, suggestions welcome. I don't recall why I used monotime in the first
place but it was likely something misled.
On 15/09/2015 2:00 AM, "Jaime Pillora" notifications@github.com wrote:

Hey matt,

Cross compiling fails due to C dependencies. Currently attempting to
compile github.com/anacrolix/torrent/cmd/torrent on
http://gox.jpillora.com/ yields:

../../../../spacemonkeygo/monotime/mono_fallback.go:21:2: no buildable
Go source files in /app/.heroku/go/src/
github.com/spacemonkeygo/monotime/_cgo

If it's not practical to remove the C dependencies, feel free to close
this.

This is for https://github.com/jpillora/cloud-torrent where I'd like to
have auto-releases working for all platforms (currently only native -
linux
amd64 - works)


Reply to this email directly or view it on GitHub
#29.


Reply to this email directly or view it on GitHub
#29 (comment).

@anacrolix
Copy link
Owner

Do you want to try passing CGO_ENABLED=1, per
https://golang.org/doc/go1.1#crosscompile in gox?

On 16 September 2015 at 19:14, Jaime Pillora notifications@github.com
wrote:

It seems go has monotonic time, though it's private

http://golang.org/pkg/runtime/?m=all#nanotime

On Wed, 16 Sep 2015 at 1:51 pm Matt Joiner notifications@github.com
wrote:

I ran into this too when I tried to use torrent on ARM. I'll see what I
can
do, suggestions welcome. I don't recall why I used monotime in the first
place but it was likely something misled.
On 15/09/2015 2:00 AM, "Jaime Pillora" notifications@github.com wrote:

Hey matt,

Cross compiling fails due to C dependencies. Currently attempting to
compile github.com/anacrolix/torrent/cmd/torrent on
http://gox.jpillora.com/ yields:

../../../../spacemonkeygo/monotime/mono_fallback.go:21:2: no buildable
Go source files in /app/.heroku/go/src/
github.com/spacemonkeygo/monotime/_cgo

If it's not practical to remove the C dependencies, feel free to close
this.

This is for https://github.com/jpillora/cloud-torrent where I'd like
to
have auto-releases working for all platforms (currently only native -
linux
amd64 - works)


Reply to this email directly or view it on GitHub
#29.


Reply to this email directly or view it on GitHub
#29 (comment).


Reply to this email directly or view it on GitHub
#29 (comment).

@anacrolix
Copy link
Owner

You might like godepgraph, which I used to track down what was depending on
this:

godepgraph -s -horizontal github.com/anacrolix/torrent/cmd/torrent | dot
-Tpng -o dep.png

I've tested a change in github.com/anacrolix/utp that uses time.Now instead
of monotime.Monotonic, and it looks good, I'll push it now.

On 16 September 2015 at 21:21, Matt Joiner anacrolix@gmail.com wrote:

Do you want to try passing CGO_ENABLED=1, per
https://golang.org/doc/go1.1#crosscompile in gox?

On 16 September 2015 at 19:14, Jaime Pillora notifications@github.com
wrote:

It seems go has monotonic time, though it's private

http://golang.org/pkg/runtime/?m=all#nanotime

On Wed, 16 Sep 2015 at 1:51 pm Matt Joiner notifications@github.com
wrote:

I ran into this too when I tried to use torrent on ARM. I'll see what I
can
do, suggestions welcome. I don't recall why I used monotime in the first
place but it was likely something misled.
On 15/09/2015 2:00 AM, "Jaime Pillora" notifications@github.com
wrote:

Hey matt,

Cross compiling fails due to C dependencies. Currently attempting to
compile github.com/anacrolix/torrent/cmd/torrent on
http://gox.jpillora.com/ yields:

../../../../spacemonkeygo/monotime/mono_fallback.go:21:2: no buildable
Go source files in /app/.heroku/go/src/
github.com/spacemonkeygo/monotime/_cgo

If it's not practical to remove the C dependencies, feel free to close
this.

This is for https://github.com/jpillora/cloud-torrent where I'd like
to
have auto-releases working for all platforms (currently only native -
linux
amd64 - works)


Reply to this email directly or view it on GitHub
#29.


Reply to this email directly or view it on GitHub
<#29 (comment)
.


Reply to this email directly or view it on GitHub
#29 (comment).

@anacrolix
Copy link
Owner

Fixes are pushed to github.com/anacrolix/utp

On 16 September 2015 at 21:31, Matt Joiner anacrolix@gmail.com wrote:

You might like godepgraph, which I used to track down what was depending
on this:

godepgraph -s -horizontal github.com/anacrolix/torrent/cmd/torrent | dot
-Tpng -o dep.png

I've tested a change in github.com/anacrolix/utp that uses time.Now
instead of monotime.Monotonic, and it looks good, I'll push it now.

On 16 September 2015 at 21:21, Matt Joiner anacrolix@gmail.com wrote:

Do you want to try passing CGO_ENABLED=1, per
https://golang.org/doc/go1.1#crosscompile in gox?

On 16 September 2015 at 19:14, Jaime Pillora notifications@github.com
wrote:

It seems go has monotonic time, though it's private

http://golang.org/pkg/runtime/?m=all#nanotime

On Wed, 16 Sep 2015 at 1:51 pm Matt Joiner notifications@github.com
wrote:

I ran into this too when I tried to use torrent on ARM. I'll see what
I can
do, suggestions welcome. I don't recall why I used monotime in the
first
place but it was likely something misled.
On 15/09/2015 2:00 AM, "Jaime Pillora" notifications@github.com
wrote:

Hey matt,

Cross compiling fails due to C dependencies. Currently attempting to
compile github.com/anacrolix/torrent/cmd/torrent on
http://gox.jpillora.com/ yields:

../../../../spacemonkeygo/monotime/mono_fallback.go:21:2: no
buildable
Go source files in /app/.heroku/go/src/
github.com/spacemonkeygo/monotime/_cgo

If it's not practical to remove the C dependencies, feel free to
close
this.

This is for https://github.com/jpillora/cloud-torrent where I'd
like to
have auto-releases working for all platforms (currently only native -
linux
amd64 - works)


Reply to this email directly or view it on GitHub
#29.


Reply to this email directly or view it on GitHub
<#29 (comment)
.


Reply to this email directly or view it on GitHub
#29 (comment).

@jpillora
Copy link
Contributor Author

with CGO, i get a different error:

@jpillora
Copy link
Contributor Author

clang: error: argument unused during compilation: '-mno-thumb'
# runtime/cgo

@anacrolix
Copy link
Owner

http://1d4chan.org/images/5/5c/Fail2.jpg

I guess ditching monotime is the path of least resistance

On 16 September 2015 at 21:35, Jaime Pillora notifications@github.com
wrote:

clang: error: argument unused during compilation: '-mno-thumb'

runtime/cgo


Reply to this email directly or view it on GitHub
#29 (comment).

@jpillora
Copy link
Contributor Author

Indeed :) looks like its working now http://gox.jpillora.com/ thanks Matt

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