build error: github.com/tecbot/gorocksdb: invalid flag in pkg-config --cflags: -faligned-new #27914
Replies: 3 comments 3 replies
-
|
When I try to export CGO_CFLAGS_ALLOW='-faligned-new' before make: github.com/tecbot/gorocksdb../gowork/pkg/mod/github.com/milvus-io/gorocksdb@v0.0.0-20220624081344-8c5f4212846b/db.go:620:3: too many arguments in call to (_Cfunc_rocksdb_approximate_sizes) |
Beta Was this translation helpful? Give feedback.
-
|
Not sure why you got these errors, different machines have different environments, it is hard to find the reason. Typically, we build milvus source by the following steps:
|
Beta Was this translation helpful? Give feedback.
-
|
hit similar issue |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
When I try to build the milvus , it shows the error:
Build Tag: v2.2.12-dev
Build Time: Wed Oct 25 06:33:16 UTC 2023
Git Commit: 1f1ac8f
Go Version: go version go1.20.7 linux/amd64
Building Milvus ...
github.com/tecbot/gorocksdb: invalid flag in pkg-config --cflags: -faligned-new
Makefile:29: recipe for target 'milvus' failed
make: *** [milvus] Error 1
How to fix it?
Beta Was this translation helpful? Give feedback.
All reactions