build error

19 views
Skip to first unread message

Prasun Ratn

unread,
May 12, 2023, 6:00:57 AM5/12/23
to DynamoRIO Users
Hi

I am seeing a build error on the latest code (commit 4330a720d345a4374c3fbdc50abb1b7fb97bfd92)

The errors seem related to IntelPT and this is on a system without IntelPT.

$ 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....

Abhinav Sharma

unread,
May 12, 2023, 9:53:09 AM5/12/23
to Prasun Ratn, DynamoRIO Users
Hi Prasun,
This may have started with https://github.com/DynamoRIO/dynamorio/commit/6f7f303abd3ecd1d6ffe07c68806bead83558bc9. I'll take a look. Thanks for the notification.

Abhinav

--
You received this message because you are subscribed to the Google Groups "DynamoRIO Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dynamorio-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dynamorio-users/acf72544-64c4-4b91-b3a1-f281ce26d8e5n%40googlegroups.com.

Abhinav Sharma

unread,
May 12, 2023, 9:59:46 AM5/12/23
to Prasun Ratn, DynamoRIO Users
I could not reproduce this issue on my machine. libipt shouldn't require the presence of the intel-PT feature itself. I created https://github.com/DynamoRIO/dynamorio/issues/6043 for us to investigate.

sharma...@google.com

unread,
May 12, 2023, 10:07:05 AM5/12/23
to DynamoRIO Users
Can you add more details of the build environment to https://github.com/DynamoRIO/dynamorio/issues/6043, to help us reproduce the issue?
Reply all
Reply to author
Forward
0 new messages