esrrhs / pLua

Lua 性能分析工具 Lua profiler tool like gperftools

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

# runtime/cgo ccache: invalid option -- 'E'

Patrick08T opened this issue · comments

系统信息:
Linux version 3.10.0-1160.11.1.el7.x86_64 (mockbuild@kbuilder.bsys.centos.org) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-44) (GCC) ) #1 SMP Fri Dec 18 16:34:56 UTC 2020
go版本:
go version go1.14 linux/amd64
go env:
GO111MODULE="" GOARCH="amd64" GOBIN="" GOCACHE="/data/ptt/.cache/go-build" GOENV="/data/ptt/.config/go/env" GOEXE="" GOFLAGS="" GOHOSTARCH="amd64" GOHOSTOS="linux" GOINSECURE="" GONOPROXY="" GONOSUMDB="" GOOS="linux" GOPATH="/data/ptt/private/Server/src/go" GOPRIVATE="" GOPROXY="https://proxy.golang.org,direct" GOROOT="/opt/go" GOSUMDB="sum.golang.org" GOTMPDIR="" GOTOOLDIR="/opt/go/pkg/tool/linux_amd64" GCCGO="gccgo" AR="ar" CC="ccache" CXX="ccache" CGO_ENABLED="1" GOMOD="" CGO_CFLAGS="-g -O2" CGO_CPPFLAGS="" CGO_CXXFLAGS="-g -O2" CGO_FFLAGS="-g -O2" CGO_LDFLAGS="-g -O2" PKG_CONFIG="pkg-config" GOGCCFLAGS="/opt/rh/devtoolset-8/root/usr/bin/gcc -fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build559118463=/tmp/go-build -gno-record-gcc-switches"
cmake版本:
cmake version 3.20.0

执行 go get github.com/goccy/go-graphviz
报错:
`# runtime/cgo
ccache: invalid option -- 'E'
Usage:
ccache [options]
ccache compiler [compiler options]
compiler [compiler options] (via symbolic link)

Common options:
-c, --cleanup delete old files and recalculate size counters
(normally not needed as this is done
automatically)
-C, --clear clear the cache completely (except configuration)
-F, --max-files=N set maximum number of files in cache to N (use 0
for no limit)
-M, --max-size=SIZE set maximum size of cache to SIZE (use 0 for no
limit); available suffixes: k, M, G, T (decimal)
and Ki, Mi, Gi, Ti (binary); default suffix: G
-p, --show-config show current configuration options in
human-readable format
-s, --show-stats show summary of configuration and statistics
counters in human-readable format
-z, --zero-stats zero statistics counters

-h, --help                print this help text
-V, --version             print version and copyright information

Options for scripting or debugging:
--dump-manifest=PATH dump manifest file at PATH in text format
-k, --get-config=K print the value of configuration key K
--hash-file=PATH print the hash (-) of the file at PATH
--print-stats print statistics counter IDs and corresponding
values in machine-parsable format
-o, --set-config=K=V set configuration item K to value V

See also https://ccache.dev.`

不知道什么原因

Before:
image
After:
image

After I add two lines export CC=/opt/rh/devtoolset-8/root/usr/bin/gcc export CXX=/opt/rh/devtoolset-8/root/usr/bin/g++ to ~/.bashrc
it works!!!