xitongsys / parquet-go

pure golang library for reading/writing parquet file
Apache License 2.0
1.27k stars 293 forks source link

build error from bazel #484

Closed howard-at-cb closed 2 years ago

howard-at-cb commented 2 years ago

Hi, I downloaded the latest release but once imported my project would not build, build error is attached below, curious if someone has had similar issues. Thank you.

(18:51:43) INFO: Analyzed 129 targets (20 packages loaded, 6535 targets configured).
(18:51:43) INFO: Found 129 targets...
(18:52:02) ERROR: /private/var/tmp/_bazel_howardxie/0b97471372d6dabb66049f73babdff78/external/com_github_xitongsys_parquet_go/parquet/BUILD.bazel:3:11: GoCompilePkg external/com_github_xitongsys_parquet_go/parquet/parquet.a failed: (Exit 1): sandbox-exec failed: error executing command
  (cd /private/var/tmp/_bazel_howardxie/0b97471372d6dabb66049f73babdff78/sandbox/darwin-sandbox/2595/execroot/coinbazel && \
  exec env - \
    APPLE_SDK_PLATFORM=MacOSX \
    APPLE_SDK_VERSION_OVERRIDE=12.1 \
    CGO_ENABLED=1 \
    DEVELOPER_DIR=/Applications/Xcode13.2.1.app/Contents/Developer \
    GOARCH=amd64 \
    GOOS=darwin \
    GOPATH='' \
    GOROOT=external/go_sdk \
    GOROOT_FINAL=GOROOT \
    PATH=external/local_config_cc:/bin:/usr/bin \
    SDKROOT=/Applications/Xcode13.2.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk \
    TMPDIR=/var/folders/j_/mwrg0bwj0tx96vfgpxh_rks40000gn/T/ \
    XCODE_VERSION_OVERRIDE=13.2.1.13C100 \
    ZERO_AR_DATE=1 \
  /usr/bin/sandbox-exec -f /private/var/tmp/_bazel_howardxie/0b97471372d6dabb66049f73babdff78/sandbox/darwin-sandbox/2595/sandbox.sb /var/tmp/_bazel_howardxie/install/612c94294bf5bb5d743864f93801f7fe/process-wrapper '--timeout=0' '--kill_delay=15' bazel-out/darwin-opt-exec-2B5CBBC6/bin/external/go_sdk/builder compilepkg -sdk external/go_sdk -installsuffix darwin_amd64 -src external/com_github_xitongsys_parquet_go/parquet/GoUnusedProtection__.go -src external/com_github_xitongsys_parquet_go/parquet/parquet.go -src external/com_github_xitongsys_parquet_go/parquet/parquet-consts.go -arc 'github.com/apache/thrift/lib/go/thrift=github.com/apache/thrift/lib/go/thrift=bazel-out/darwin-fastbuild/bin/external/com_github_apache_thrift/lib/go/thrift/thrift.x' -importpath github.com/xitongsys/parquet-go/parquet -p github.com/xitongsys/parquet-go/parquet -package_list bazel-out/darwin-opt-exec-2B5CBBC6/bin/external/go_sdk/packages.txt -o bazel-out/darwin-fastbuild/bin/external/com_github_xitongsys_parquet_go/parquet/parquet.a -x bazel-out/darwin-fastbuild/bin/external/com_github_xitongsys_parquet_go/parquet/parquet.x -nogo bazel-out/darwin-opt-exec-2B5CBBC6-ST-5d51b4748d74/bin/nogo_actual_/nogo_actual -gcflags '-N -l' -asmflags '')
external/com_github_xitongsys_parquet_go/parquet/parquet.go:766:36: too many arguments in call to iprot.ReadStructBegin
        have (context.Context)
        want ()
external/com_github_xitongsys_parquet_go/parquet/parquet.go:771:55: too many arguments in call to iprot.ReadFieldBegin
        have (context.Context)
        want ()
external/com_github_xitongsys_parquet_go/parquet/parquet.go:785:25: too many arguments in call to iprot.Skip
        have (context.Context, thrift.TType)
        want (thrift.TType)
external/com_github_xitongsys_parquet_go/parquet/parquet.go:795:25: too many arguments in call to iprot.Skip
        have (context.Context, thrift.TType)
        want (thrift.TType)
external/com_github_xitongsys_parquet_go/parquet/parquet.go:805:25: too many arguments in call to iprot.Skip
        have (context.Context, thrift.TType)
        want (thrift.TType)
external/com_github_xitongsys_parquet_go/parquet/parquet.go:815:25: too many arguments in call to iprot.Skip
        have (context.Context, thrift.TType)
        want (thrift.TType)
external/com_github_xitongsys_parquet_go/parquet/parquet.go:825:25: too many arguments in call to iprot.Skip
        have (context.Context, thrift.TType)
        want (thrift.TType)
external/com_github_xitongsys_parquet_go/parquet/parquet.go:835:25: too many arguments in call to iprot.Skip
        have (context.Context, thrift.TType)
        want (thrift.TType)
external/com_github_xitongsys_parquet_go/parquet/parquet.go:840:24: too many arguments in call to iprot.Skip
        have (context.Context, thrift.TType)
        want (thrift.TType)
external/com_github_xitongsys_parquet_go/parquet/parquet.go:844:31: too many arguments in call to iprot.ReadFieldEnd
        have (context.Context)
        want ()
external/com_github_xitongsys_parquet_go/parquet/parquet.go:844:31: too many errors
compilepkg: error running subcommand external/go_sdk/pkg/tool/darwin_amd64/compile: exit status 2
(18:52:03) INFO: Elapsed time: 21.065s, Critical Path: 16.17s
(18:52:03) INFO: 312 processes: 17 internal, 295 darwin-sandbox.
(18:52:03) FAILED: Build did NOT complete successfully
hangxie commented 2 years ago

It seems you are using a quite old github.com/apache/thrift, do you have a replace somewhere in your go.mod?