Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmake编译报错 #248

Open
zhaileilei123 opened this issue Oct 7, 2023 · 0 comments
Open

cmake编译报错 #248

zhaileilei123 opened this issue Oct 7, 2023 · 0 comments

Comments

@zhaileilei123
Copy link

Description

我在执行cmake -DCMAKE_BUILD_TYPE=Release -DPORTABLE=on .. 出错了
我按照官方文档的操作进行操作。因为我安装从gcc版本大于5.5.0,所以我跳过了gcc的安装。过程中我多次编译发现缺少g++ 和gflags
所以我额外的通过yum 安装了gcc-c++ gflags* .下面有我编译的日志。
这里是我环境的信息
[root@node2 build]# lscpu
架构: aarch64
CPU 运行模式: 64-bit
字节序: Little Endian
CPU: 8
在线 CPU 列表: 0-7
每个核的线程数: 1
每个座的核数: 1
座: 8
NUMA 节点: 1
厂商 ID: HiSilicon
型号: 0
型号名称: Kunpeng-920
步进: 0x1
CPU 最大 MHz: 2600.0000
CPU 最小 MHz: 2600.0000
BogoMIPS: 200.00
L1d 缓存: 512 KiB
L1i 缓存: 512 KiB
L2 缓存: 4 MiB
L3 缓存: 256 MiB
NUMA 节点0 CPU: 0-7
Vulnerability Itlb multihit: Not affected
Vulnerability L1tf: Not affected
Vulnerability Mds: Not affected
Vulnerability Meltdown: Not affected
Vulnerability Spec store bypass: Not affected
Vulnerability Spectre v1: Mitigation; __user pointer sanitization
Vulnerability Spectre v2: Not affected
Vulnerability Srbds: Not affected
Vulnerability Tsx async abort: Not affected
标记: fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt
fcma dcpop asimddp asimdfhm
[root@node2 build]# hostnamectl
Static hostname: node2
Icon name: computer-vm
Chassis: vm
Machine ID: 4911741987394151a425a0508d8ba605
Boot ID: 803f9975c8c244309b514c38eb67626d
Virtualization: kvm
Operating System: Kylin Linux Advanced Server V10 (Sword)
Kernel: Linux 4.19.90-24.4.v2101.ky10.aarch64
Architecture: arm64

Expected Behavior

Current Behavior

Possible Solution

Context

日志如下:
-- Performing Test HAVE_FALLOCATE
-- Performing Test HAVE_FALLOCATE - Success
-- Performing Test HAVE_SYNC_FILE_RANGE_WRITE
-- Performing Test HAVE_SYNC_FILE_RANGE_WRITE - Success
-- Performing Test HAVE_PTHREAD_MUTEX_ADAPTIVE_NP
-- Performing Test HAVE_PTHREAD_MUTEX_ADAPTIVE_NP - Success
-- Looking for malloc_usable_size
-- Looking for malloc_usable_size - found
-- Looking for sched_getcpu
-- Looking for sched_getcpu - found
-- Looking for getauxval
-- Looking for getauxval - not found
-- JNI library is disabled
RelWithDebInfo
-O2 -DNDEBUG
-- Configuring done
CMake Error: install(EXPORT "glog-targets" ...) includes target "glog" which requires target "gflags_nothreads_static" that is not in any export set.
CMake Error in src/thirdparty/glog/CMakeLists.txt:
export called with target "glog" which requires target
"gflags_nothreads_static" that is not in this export set, but in multiple
other export sets:
/opt/Tendis/build/src/thirdparty/gflag/gflags-nonamespace-targets.cmake,
/opt/Tendis/build/src/thirdparty/gflag/gflags-targets.cmake.

An exported target cannot depend upon another target which is exported
multiple times. Consider consolidating the exports of the
"gflags_nothreads_static" target to a single export.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant