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

Already on GitHub? Sign in to your account

Build problem #60

delkon opened this Issue Jan 9, 2013 · 2 comments


None yet
2 participants

delkon commented Jan 9, 2013

I'm new in GO.
I have decide to use your implementation of Thrift for Go.
After reading your manual installation instruction steps I have
downloaded last Thrift 0.9.0 from git and start building process:

My build script is follow:

export THRIFT=$(pwd)/thrift
export THRIFT4GO=$(pwd)/thrift4go
export GOROOT="/usr/lib/go"
export GOBIN="/usr/bin"
export GOPATH="/home/user/projects/go"

bash $THRIFT4GO/scripts/merge_and_build.sh -b

#Thrift from git trunk doesn't have configure and it should be created first
./configure --with-go --without-python --without-csharp

if "$?" == "1"; then
    ln -s $THRIFT/lib/go/src/thrift $GOPATH/src/thrift
    go install thrift

But make doesn't work well for GO, whereis the problem ?
I have correct installed GO with exported GOPATH variable in bash, "go install" worked for other projects.
I can't understand why in your sources GO can't find package.

   === RUN TestReadWriteSimpleJSONStruct
--- PASS: TestReadWriteSimpleJSONStruct (0.00 seconds)
tsimple_json_protocol_test.go:646:  Memory buffer contents:  {"num1":25,"num2":102,"op":1,"comment":"Add: 25 +     102"}
    tsimple_json_protocol_test.go:649:  Read struct value: &thrift.Work{TStruct:(*thrift.tStruct)(0xf8401f9580),     _:interface     {}(nil), Num1:25, Num2:102, Op:1, Comment:"Add: 25 + 102"}
=== RUN TestReadWriteSimpleJSONProtocol
--- PASS: TestReadWriteSimpleJSONProtocol (0.01 seconds)
ok      thrift  0.034s
make[3]: Leaving directory `/home/user/projects/delkon/thrift/lib/go'
make[3]: Entering directory `/home/user/projects/delkon/thrift/lib'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/home/user/projects/delkon/thrift/lib'
make[2]: Leaving directory `/home/user/projects/delkon/thrift/lib'
Making all in tutorial
make[2]: Entering directory `/home/user/projects/delkon/thrift/tutorial'
make[2]: *** No rule to make target `all'.  Stop.
make[2]: Leaving directory `/home/user/projects/delkon/thrift/tutorial'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/user/projects/delkon/thrift'
make: *** [all] Error 2

Thank you for any input
Arch linux (X86, 64)

@delkon delkon closed this Jan 9, 2013

@delkon delkon reopened this Jan 9, 2013

could you paste which tests are failing?
here with thrift 0.9 these fail:

=== RUN TestNonblockingTransportServerToClient
--- FAIL: TestNonblockingTransportServerToClient (0.00 seconds)
    ttransport_test.go:61: Transport *thrift.TFramedTransport cannot flush write of binary data: write tcp i/o timeout
=== RUN TestNonblockingTransportClientToServer
--- FAIL: TestNonblockingTransportClientToServer (0.00 seconds)
    ttransport_test.go:61: Transport *thrift.TFramedTransport cannot flush write of binary data: write tcp i/o timeout

it workes when you use @apesternikov's fork

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment