Build Failure with rockylinux9-latest Docker Image - Undefined Symbol std::ios_base_library_init()
- Dominant language
- C++
- Stars
- 16.7k
- Forks
- 1.6k
- Avg merge
- 1d 20h
- Merged PRs (30d)
- 126
Description
### Description
When building FoundationDB using the official foundationdb/build:rockylinux9-latest Docker image, the ninja command fails during the linking of bin/fdb_c_performance_test due to an undefined reference to std::ios_base_library_init().
### Error Log:
[1318/1834] Linking C executable bin/fdb_c_performance_test FAILED: bin/fdb_c_performance_test : && /usr/bin/cc -O3 -DNDEBUG -gz -static-libstdc++ -static-libgcc bindings/c/CMakeFiles/fdb_c_performance_test.dir/test/performance_test.c.o -o bin/fdb_c_performance_test -Wl,-rpath,/root/foundationdb/build/lib lib/libfdb_c.so && : /usr/bin/ld: lib/libfdb_c.so: undefined reference to std::ios_base_library_init()'
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
### Environment & Steps to Reproduce
Docker Image: foundationdb/build:rockylinux9-latest.
Build Command:
cmake -G Ninja ninja
3. FoundationDB Version: Latest main branch (as of 2025-06-25).
Contributor guide
Assessment
This issue has not been assessed yet.