You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "ShourieG (via GitHub)" <gi...@apache.org> on 2023/06/13 17:04:59 UTC

[GitHub] [arrow] ShourieG opened a new issue, #36052: [Go] Cross Build Failures with version 12.0.1

ShourieG opened a new issue, #36052:
URL: https://github.com/apache/arrow/issues/36052

   ### Describe the bug, including details regarding any error messages, version, and platform.
   
   We are trying to use the arrow go library to create a custom parquet reader but encountering cross build errors in CI even after upgrading to version 12.0.1 .
   
   errors: 
   ```js
   >> Building using: cmd='build/mage-linux-amd64 golangCrossBuild', env=[CC=oa64-clang, CXX=oa64-clang++, GOARCH=arm64, GOARM=, GOOS=darwin, PLATFORM_ID=darwin-arm64]
   
   [2023-06-13T14:37:09.617Z] # github.com/apache/arrow/go/v12/parquet/internal/utils
   [2023-06-13T14:37:09.617Z] /go/pkg/mod/github.com/apache/arrow/go/v12@v12.0.1-0.20230605094802-c153c6d36ccf/parquet/internal/utils/bit_reader.go:230:18: undefined: unpack32
   [2023-06-13T14:37:09.618Z] /go/pkg/mod/github.com/apache/arrow/go/v12@v12.0.1-0.20230605094802-c153c6d36ccf/parquet/internal/utils/bit_reader.go:274:3: undefined: BytesToBools
   [2023-06-13T14:37:09.618Z] /go/pkg/mod/github.com/apache/arrow/go/v12@v12.0.1-0.20230605094802-c153c6d36ccf/parquet/internal/utils/bit_reader.go:318:18: undefined: unpack32
   [2023-06-13T14:37:09.618Z] note: module requires Go 1.20
   [2023-06-13T14:40:29.889Z] # github.com/apache/arrow/go/v12/parquet/internal/utils
   [2023-06-13T14:40:29.889Z] /go/pkg/mod/github.com/apache/arrow/go/v12@v12.0.1-0.20230605094802-c153c6d36ccf/parquet/internal/utils/bit_reader.go:230:18: undefined: unpack32
   [2023-06-13T14:40:29.889Z] /go/pkg/mod/github.com/apache/arrow/go/v12@v12.0.1-0.20230605094802-c153c6d36ccf/parquet/internal/utils/bit_reader.go:274:3: undefined: BytesToBools
   [2023-06-13T14:40:29.889Z] /go/pkg/mod/github.com/apache/arrow/go/v12@v12.0.1-0.20230605094802-c153c6d36ccf/parquet/internal/utils/bit_reader.go:318:18: undefined: unpack32
   [2023-06-13T14:40:29.889Z] note: module requires Go 1.20
   ```
   The stack is using go 1.19 currently. Is there any way to fix these issues without upgrading to Go 1.20 ?
   
   ### Component(s)
   
   Go


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@arrow.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [arrow] zeroshade closed issue #36052: [Go] Cross Build Failures with version 12.0.1

Posted by "zeroshade (via GitHub)" <gi...@apache.org>.
zeroshade closed issue #36052: [Go] Cross Build Failures with version 12.0.1
URL: https://github.com/apache/arrow/issues/36052


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [arrow] ShourieG commented on issue #36052: [Go] Cross Build Failures with version 12.0.1

Posted by "ShourieG (via GitHub)" <gi...@apache.org>.
ShourieG commented on issue #36052:
URL: https://github.com/apache/arrow/issues/36052#issuecomment-1590953720

   @zeroshade I revisited the build process in our CI and the failures seem to occur with x86 platforms linux/386 and windows/386
   
   ```js
   github.com/apache/arrow/go/v12/parquet/internal/utils
   /go/pkg/mod/github.com/apache/arrow/go/v12@v12.0.1-0.20230605094802-c153c6d36ccf/parquet/internal/utils/bit_reader.go:230:18: undefined: unpack32
   /go/pkg/mod/github.com/apache/arrow/go/v12@v12.0.1-0.20230605094802-c153c6d36ccf/parquet/internal/utils/bit_reader.go:274:3: undefined: BytesToBools
   /go/pkg/mod/github.com/apache/arrow/go/v12@v12.0.1-0.20230605094802-c153c6d36ccf/parquet/internal/utils/bit_reader.go:318:18: undefined: unpack32
   note: module requires Go 1.20
   Error: running "go build -o build/golang-crossbuild/filebeat-linux-386 -buildmode pie -trimpath -tags=withjournald -ldflags -s -X github.com/elastic/beats/v7/libbeat/version.buildTime=2023-06-14T10:33:13Z -X github.com/elastic/beats/v7/libbeat/version.commit=4b458e0fa9888c53f02193fac70661e5c7c0d30a" failed with exit code 2
   Error: failed building for linux/386: exit status 2
   failed building for linux/386: exit status 2
   ```
   So my initial assumption of the build failing on linux/amd64 platforms was wrong. 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [arrow] zeroshade commented on issue #36052: [Go] Cross Build Failures with version 12.0.1

Posted by "zeroshade (via GitHub)" <gi...@apache.org>.
zeroshade commented on issue #36052:
URL: https://github.com/apache/arrow/issues/36052#issuecomment-1589772415

   In the meantime, can you try building with the `noasm` tag?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [arrow] zeroshade commented on issue #36052: [Go] Cross Build Failures with version 12.0.1

Posted by "zeroshade (via GitHub)" <gi...@apache.org>.
zeroshade commented on issue #36052:
URL: https://github.com/apache/arrow/issues/36052#issuecomment-1589749425

   So I'm confused by this failure, we have CI builds which build on darwin arm64 successfully with go1.18.
   
   I'm not familiar with the `mage` cross build utility. Can you link to any documentation or get the raw `go` command used for building?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org