Giter Club home page Giter Club logo

Comments (6)

JackWyj avatar JackWyj commented on June 20, 2024

hi, i got the same error, when i run go get go.mongodb.org/mongo-driver/mongo
the and my OS is CentOS release 6.8 (Final).
go env is

GOARCH="amd64"
GOBIN=""
GOCACHE="/home/xxx/.cache/go-build"
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/home/xxx/go"
GORACE=""
GOROOT="/usr/local/go"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64"
GCCGO="gccgo"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build204113108=/tmp/go-build -gno-record-gcc-switches"

go build -x go.mongodb.org/mongo-driver/vendor/github.com/DataDog/zstd got output:

WORK=/tmp/go-build666743633
mkdir -p $WORK/b001/
cd /home/xxx/go/src/go.mongodb.org/mongo-driver/vendor/github.com/DataDog/zstd
CGO_LDFLAGS='"-g" "-O2"' /usr/local/go/pkg/tool/linux_amd64/cgo -objdir $WORK/b001/ -importpath go.mongodb.org/mongo-driver/vendor/github.com/DataDog/zstd -- -I $WORK/b001/ -g -O2 ./errors.go ./zstd.go ./zstd_stream.go
cd $WORK
gcc -fno-caret-diagnostics -c -x c - || true
gcc -Qunused-arguments -c -x c - || true
gcc -fdebug-prefix-map=a=b -c -x c - || true
gcc -gno-record-gcc-switches -c -x c - || true
cd $WORK/b001
gcc -I /home/xxx/go/src/go.mongodb.org/mongo-driver/vendor/github.com/DataDog/zstd -fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=$WORK/b001=/tmp/go-build -gno-record-gcc-switches -I ./ -g -O2 -o ./_x001.o -c _cgo_export.c
gcc -I /home/xxx/go/src/go.mongodb.org/mongo-driver/vendor/github.com/DataDog/zstd -fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=$WORK/b001=/tmp/go-build -gno-record-gcc-switches -I ./ -g -O2 -o ./_x002.o -c errors.cgo2.c
gcc -I /home/xxx/go/src/go.mongodb.org/mongo-driver/vendor/github.com/DataDog/zstd -fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=$WORK/b001=/tmp/go-build -gno-record-gcc-switches -I ./ -g -O2 -o ./_x003.o -c zstd.cgo2.c
gcc -I /home/xxx/go/src/go.mongodb.org/mongo-driver/vendor/github.com/DataDog/zstd -fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=$WORK/b001=/tmp/go-build -gno-record-gcc-switches -I ./ -g -O2 -o ./_x004.o -c zstd_stream.cgo2.c
cd /home/xxx/go/src/go.mongodb.org/mongo-driver/vendor/github.com/DataDog/zstd
gcc -I . -fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=$WORK/b001=/tmp/go-build -gno-record-gcc-switches -I $WORK/b001/ -g -O2 -o $WORK/b001/_x005.o -c cover.c
gcc -I . -fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=$WORK/b001=/tmp/go-build -gno-record-gcc-switches -I $WORK/b001/ -g -O2 -o $WORK/b001/_x006.o -c debug.c
gcc -I . -fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=$WORK/b001=/tmp/go-build -gno-record-gcc-switches -I $WORK/b001/ -g -O2 -o $WORK/b001/_x007.o -c divsufsort.c
gcc -I . -fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=$WORK/b001=/tmp/go-build -gno-record-gcc-switches -I $WORK/b001/ -g -O2 -o $WORK/b001/_x008.o -c entropy_common.c
gcc -I . -fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=$WORK/b001=/tmp/go-build -gno-record-gcc-switches -I $WORK/b001/ -g -O2 -o $WORK/b001/_x009.o -c error_private.c
gcc -I . -fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=$WORK/b001=/tmp/go-build -gno-record-gcc-switches -I $WORK/b001/ -g -O2 -o $WORK/b001/_x010.o -c fastcover.c
gcc -I . -fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=$WORK/b001=/tmp/go-build -gno-record-gcc-switches -I $WORK/b001/ -g -O2 -o $WORK/b001/_x011.o -c fse_compress.c
gcc -I . -fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=$WORK/b001=/tmp/go-build -gno-record-gcc-switches -I $WORK/b001/ -g -O2 -o $WORK/b001/_x012.o -c fse_decompress.c
gcc -I . -fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=$WORK/b001=/tmp/go-build -gno-record-gcc-switches -I $WORK/b001/ -g -O2 -o $WORK/b001/_x013.o -c hist.c
gcc -I . -fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=$WORK/b001=/tmp/go-build -gno-record-gcc-switches -I $WORK/b001/ -g -O2 -o $WORK/b001/_x014.o -c huf_compress.c
# go.mongodb.org/mongo-driver/vendor/github.com/DataDog/zstd
/tmp/ccjaSIIg.s: Assembler messages:
/tmp/ccjaSIIg.s:726: Error: no such instruction: `shlx %r10,%r9,%r10'
/tmp/ccjaSIIg.s:746: Error: no such instruction: `shlx %r9,%rax,%rax'
/tmp/ccjaSIIg.s:797: Error: no such instruction: `shrx %r9,%rax,%r9'
/tmp/ccjaSIIg.s:901: Error: no such instruction: `shlx %rcx,%r14,%rcx'
/tmp/ccjaSIIg.s:910: Error: no such instruction: `shlx %rax,%r15,%rax'
/tmp/ccjaSIIg.s:933: Error: no such instruction: `shlx %rbx,%rcx,%rbx'
/tmp/ccjaSIIg.s:958: Error: no such instruction: `shlx %r10,%rcx,%rcx'
/tmp/ccjaSIIg.s:1030: Error: no such instruction: `shrx %r9,%rax,%r9'
/tmp/ccjaSIIg.s:1046: Error: no such instruction: `shlx %rax,%rdx,%rax'

Thanks for issues opened, need you help, thank you

from zstd.

JackWyj avatar JackWyj commented on June 20, 2024

And i am using go version go1.10.3 linux/amd64

from zstd.

Viq111 avatar Viq111 commented on June 20, 2024

Hi both,

Sorry for the delayed answer.
This looks to be coming from the C code of zstd which is from facebook/zstd

It looks similar to facebook/zstd#1283
And for centos 6, same issue as CMU-Perceptual-Computing-Lab/caffe_rtpose#6.

Would you mind posting your gcc & g++ version you are compiling with ?

The answer to this is probably going to be similar to facebook/zstd#1283 (comment)

from zstd.

JackWyj avatar JackWyj commented on June 20, 2024

well, they are g++ (GCC) 4.8.0 and gcc (GCC) 4.8.0

from zstd.

JackWyj avatar JackWyj commented on June 20, 2024

Have read that, if it were CMU-Perceptual-Computing-Lab/caffe_rtpose#6 , but I built by golang tools and haven't find a way to pass options like -march=native, is there a way to do it? Any help will be appreciated, thankyou.

from zstd.

zjkyz8 avatar zjkyz8 commented on June 20, 2024

I have same issue when use docker library/golang:1.16.9-alpine image to build, anything i can do to resolve this issue?

from zstd.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.