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

Clickhouse 2.6.2 fails to cross-compile to ppc64le or win386. #913

Closed
atoulme opened this issue Feb 22, 2023 · 1 comment · Fixed by #914
Closed

Clickhouse 2.6.2 fails to cross-compile to ppc64le or win386. #913

atoulme opened this issue Feb 22, 2023 · 1 comment · Fixed by #914
Assignees
Labels

Comments

@atoulme
Copy link
Contributor

atoulme commented Feb 22, 2023

See open-telemetry/opentelemetry-collector-contrib#18863 for original report.

Clickhouse fails to compile cross-platform for ppc64le or win386.

cd ./cmd/otelcontribcol && GO111MODULE=on CGO_ENABLED=0 go build -trimpath -o ../../bin/otelcontribcol_linux_ppc64le \
	-ldflags "-X github.com/open-telemetry/opentelemetry-collector-contrib/internal/otelcontribcore/internal/version.Version=9d0020e" -tags "" .
# github.com/ClickHouse/clickhouse-go/v2/lib/column
Error: /home/runner/go/pkg/mod/github.com/!click!house/clickhouse-go/v2@v2.6.2/lib/column/fixed_string.go:100:40: too many arguments in call to binary.Str2Bytes
	have (string, int)
	want (string)
Error: /home/runner/go/pkg/mod/github.com/!click!house/clickhouse-go/v2@v2.6.2/lib/column/fixed_string.go:116:42: too many arguments in call to binary.Str2Bytes
	have (string, int)
	want (string)
Error: /home/runner/go/pkg/mod/github.com/!click!house/clickhouse-go/v2@v2.6.2/lib/column/fixed_string.go:142:31: too many arguments in call to binary.Str2Bytes
	have (string, int)
	want (string)
Error: /home/runner/go/pkg/mod/github.com/!click!house/clickhouse-go/v2@v2.6.2/lib/column/fixed_string.go:147:33: too many arguments in call to binary.Str2Bytes
	have (string, int)
	want (string)
Error: /home/runner/go/pkg/mod/github.com/!click!house/clickhouse-go/v2@v2.6.2/lib/column/string.go:74:50: too many arguments in call to binary.Str2Bytes
	have (string, int)
	want (string)
make: *** [Makefile:259: otelcontribcol] Error 2
Error: Process completed with exit code 2.
atoulme added a commit to atoulme/clickhouse-go that referenced this issue Feb 22, 2023
Bring API to compatibility
@atoulme atoulme mentioned this issue Feb 22, 2023
@jkaflik jkaflik self-assigned this Feb 22, 2023
@jkaflik jkaflik added the bug label Feb 22, 2023
jkaflik pushed a commit that referenced this issue Feb 22, 2023
Bring API to compatibility
@jkaflik
Copy link
Contributor

jkaflik commented Feb 22, 2023

Fix merged and released in v2.6.3 https://github.com/ClickHouse/clickhouse-go/releases/tag/v2.6.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants