google / google/leveldb

Cna not build Leveldb1.23

Open
#1,161 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
39.4k
Forks
8.2k
PR merge metrics
No merged PRs in 30d

Description

I follow README.md. System: Ubuntu 22.04.3 LTS.
After `cmake --build .`, it shows
```
[ 41%] Linking CXX executable c_test
/usr/bin/ld: CMakeFiles/c_test.dir/db/c_test.c.o: relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIE
/usr/bin/ld: failed to set dynamic section sizes: bad value
collect2: error: ld returned 1 exit status
gmake[2]: *** [CMakeFiles/c_test.dir/build.make:117: c_test] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:290: CMakeFiles/c_test.dir/all] Error 2
gmake: *** [Makefile:146: all] Error 2
```

Contributor guide

Open the contributing guide

Research direction

Read README.md and reproduce the failure on Ubuntu 22.04.3 LTS with `cmake --build .`, focusing on the `c_test` link step shown in the report. The work is done when the documented build completes successfully without the relocation or linker errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
cmake, cpp
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.