DynamoRIO / DynamoRIO/dynamorio
DR fails to build with libipt
- Dominant language
- C
- Stars
- 3.2k
- Forks
- 629
- Avg merge
- 2d 18h
- Merged PRs (30d)
- 30
Description
Reported by a user at https://groups.google.com/g/dynamorio-users/c/rFUALcXdskE
DR fails to lihnk libipt-sb.so:
```
$ git clone https://github.com/DynamoRIO/dynamorio.git
$ cd dynamorio/
$ git submodule init
$ git submodule update
$ mkdir build/
$ cd build/
$ cmake ../dynamorio/
$ make -j
[ 26%] Linking C shared library ../../../../third_party/lib64/release/libipt-sb.so
/usr/bin/ld: ../../../../third_party/lib64/release/libpevent.a(pevent.c.o): relocation R_X86_64_PC32 against symbol `pev_time_to_tsc' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Bad value
collect2: error: ld returned 1 exit status
clients/drcachesim/drpt2trace/libipt/CMakeFiles/ipt-sb.dir/build.make:174: recipe for target 'third_party/lib64/release/libipt-sb.so' fail ed
make[2]: *** [third_party/lib64/release/libipt-sb.so] Error 1
CMakeFiles/Makefile2:2179: recipe for target 'clients/drcachesim/drpt2trace/libipt/CMakeFiles/ipt-sb.dir/all' failed
make[1]: *** [clients/drcachesim/drpt2trace/libipt/CMakeFiles/ipt-sb.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
```
I could not reproduce the issue on my machine.
Contributor guide
Assessment
This issue has not been assessed yet.