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

make interpreter failed #53

Closed
lei-cao opened this issue Sep 7, 2015 · 4 comments
Closed

make interpreter failed #53

lei-cao opened this issue Sep 7, 2015 · 4 comments
Assignees

Comments

@lei-cao
Copy link

lei-cao commented Sep 7, 2015

The make interpreter is running

godep go build -ldflags -X "github.com/pingcap/pingcap/util/printer.TiDBBuildTS=2015-09-07 03:40:55" -X
"github.com/pingcap/pingcap/util/printer.TiDBGitHash=81db754a49a63551beb9cd936153eb1f6c612c67  

and it failed. godep go build succeed though.

can't load package: package github.com/pingcap/pingcap/util/printer.TiDBBuildTS=2015-09-07 03:40:55: cannot find package "github.com/pingcap/pingcap/util/printer.TiDBBuildTS=2015-09-07 03:40:55" in any of:
    /usr/local/Cellar/go/1.4.2/libexec/src/github.com/pingcap/pingcap/util/printer.TiDBBuildTS=2015-09-07 03:40:55 (from $GOROOT)
    /Users/leicao/programming/go/src/github.com/pingcap/tidb/Godeps/_workspace/src/github.com/pingcap/pingcap/util/printer.TiDBBuildTS=2015-09-07 03:40:55 (from $GOPATH)
    /Users/leicao/programming/go/src/github.com/pingcap/pingcap/util/printer.TiDBBuildTS=2015-09-07 03:40:55
can't load package: package -X: cannot find package "-X" in any of:
    /usr/local/Cellar/go/1.4.2/libexec/src/-X (from $GOROOT)
    /Users/leicao/programming/go/src/github.com/pingcap/tidb/Godeps/_workspace/src/-X (from $GOPATH)
    /Users/leicao/programming/go/src/-X
can't load package: package github.com/pingcap/pingcap/util/printer.TiDBGitHash=81db754a49a63551beb9cd936153eb1f6c612c67: cannot find package "github.com/pingcap/pingcap/util/printer.TiDBGitHash=81db754a49a63551beb9cd936153eb1f6c612c67" in any of:
    /usr/local/Cellar/go/1.4.2/libexec/src/github.com/pingcap/pingcap/util/printer.TiDBGitHash=81db754a49a63551beb9cd936153eb1f6c612c67 (from $GOROOT)
    /Users/leicao/programming/go/src/github.com/pingcap/tidb/Godeps/_workspace/src/github.com/pingcap/pingcap/util/printer.TiDBGitHash=81db754a49a63551beb9cd936153eb1f6c612c67 (from $GOPATH)
    /Users/leicao/programming/go/src/github.com/pingcap/pingcap/util/printer.TiDBGitHash=81db754a49a63551beb9cd936153eb1f6c612c67
godep: go exit status 1

@shenli
Copy link
Member

shenli commented Sep 7, 2015

Thanks for your report!
May I have your go version?

@shenli
Copy link
Member

shenli commented Sep 7, 2015

Please try this in interpreter dir:
godep go build -ldflags "-X github.com/pingcap/pingcap/util/printer.TiDBBuildTS=2015-09-07 03:40:55" -ldflags "-X github.com/pingcap/pingcap/util/printer.TiDBGitHash=81db754a49a63551beb9cd936153eb1f6c612c67"
If there is any error, please tell me.

@lei-cao
Copy link
Author

lei-cao commented Sep 7, 2015

hey it works.

@qiuyesuifeng
Copy link
Member

go 1.4.2 may have some problem to make interpreter, we are trying to fix it.
go 1.5 works well now.

@lei-cao any problem can make an issue, Thanks.

@ngaut ngaut closed this as completed Sep 8, 2015
YuJuncen pushed a commit to YuJuncen/tidb that referenced this issue Apr 23, 2021
YuJuncen pushed a commit to YuJuncen/tidb that referenced this issue Apr 23, 2021
okJiang pushed a commit to okJiang/tidb that referenced this issue Oct 19, 2021
* initial commit

* fix

* fix2

* fix effiency bug

* make greater chan

* avoid malloc

* remove batch

* use new method

* try sync.Pool

* fix bug

* refine escape

* fix

* switch to bytes.buffer

* add pipe

* fix

* change usage

* test

* add variable to struct

* use global variable

* add UT

* update go.mod go.sum

* refine code

* refine code again

* add escape integration tests

* fix bug

* make pipe bigger

* fix

* fix ut

* fix primary

* fix bug

* fix

* fix

* use byte stream

* tmp

* async scan and next

* remove async scan

* remove bytes stream

* refine code

* refine log

* remove debug log

* remove DAO

* add wait group

* use sql.RawBytes

* use bytes

* Revert "use bytes"

This reverts commit fb79bf5bb000989e7347bba024fce7f2346234be.

* test

* refine code

* use rawbytes for SQLTypeBytes

* use byte stream

* refine code

* use bytes.buffer as buffer and write to os.file direcly

* reuse bytes.buffer

* fix bug

* check cap and then grow

* address comment
Defined2014 added a commit to Defined2014/tidb that referenced this issue Apr 11, 2022
mittalrishabh pushed a commit to mittalrishabh/tidb that referenced this issue May 6, 2024
mittalrishabh pushed a commit to mittalrishabh/tidb that referenced this issue May 30, 2024
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

5 participants