← All tasks
cppoceanbase/miniob #247Not a task: not reproduced

miniob 在 RockyLinux 9 中编译失败

envgap__oceanbase__miniob-247

01 / FAILURE SIGNATURE

As reported upstream

collect2: error: ld returned 1 exit status
Not a benchmark task.
  • In a clean container the reported failure did not reproduce, or the known fix did not make the project run.

02 / ENVIRONMENT RECIPE

Base commit
892391763c50226d1cd95d8df0b603e6fc2f4acd
Manifest
CMakeLists.txt
Reproduce
Awaiting issue-specific recipe
Run under trace
Awaiting a meaningful runtime command

03 / ORIGINAL ISSUE TEXT

oceanbase/miniob #247 · read the original issue
**Question**

miniob 能否在 Rockylinux 中编译?



在编译链接的过程中发现如下错误:

```

[ 77%] Linking CXX executable ../../bin/obclient

/usr/bin/ld: cannot find -lstdc++

collect2: error: ld returned 1 exit status

make[2]: *** [src/obclient/CMakeFiles/obclient.dir/build.make:99: bin/obclient] Error 1

make[1]: *** [CMakeFiles/Makefile2:277: src/obclient/CMakeFiles/obclient.dir/all] Error 2

make[1]: *** Waiting for unfinished jobs....

```



经过排查,libstdc++ 库在系统中是存在的:

```

[root@10-2-12-124 miniob]# ldconfig -v | grep stdc

        libstdc++.so.6 -> libstdc++.so.6.0.29

```



请问是我的环境有问题,还是它就是无法在 RockyLinux 中编译?



编译环境:

- `gcc version 11.3.1 20221121 (Red Hat 11.3.1-4) (GCC)`

- `cmake version 3.21.7`
Continue on GitHub ↗

04 / LABELS

Labels from the report text only; not yet run

No supported category has been assigned.

Label rules and the text that matched
[]