Comments (6)
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.
And i am using go version go1.10.3 linux/amd64
from zstd.
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.
well, they are g++ (GCC) 4.8.0
and gcc (GCC) 4.8.0
from zstd.
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.
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)
- ctx creation and customition HOT 3
- Mac M1 help HOT 1
- Decompress does not detect missing checksum
- Unable to decompress valid zstd content HOT 1
- Undefined behavior triggered in C code HOT 2
- Clarify zstd.NewWriterLevel usage for `n` separate units
- Not Support Apple M1 HOT 2
- Setting decompression WindowSize? HOT 1
- Update to Zstandard v1.5.5 HOT 1
- Unable to read valid zst file in version 1.5.2
- Decompress return UnexpectedEOF if Skippable frames written HOT 1
- Unable to use streaming Reader with bufio.NewScanner HOT 2
- failed to decompress: Unknown frame descriptor If padding is attached after compression HOT 7
- Building build/bin/configtxgen ERROR HOT 1
- Support zstd dictionary API for non-streaming use HOT 4
- If I have two types data --compressed and uncompressed, when I call the DeCompress function, would it report an error? HOT 1
- Add Go module file HOT 2
- TestStreamCompressionDecompressionParallel frequently fails on machines with many cpus HOT 8
- [zstd_stream] Reader.Read can block even if a zstd block is available HOT 1
- Can not work with archive/tar HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zstd.