DynamoRIO / DynamoRIO/dynamorio

build failure on ubuntu20.04 gcc 9.4.0:relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIE

Open
#5,919 4 comments 0 reactions 1 assignee Claimed by @yxy-whu View on GitHub
Component-Build Status-NeedInfo
Dominant language
C
Stars
3.2k
Forks
629
Avg merge
2d 15h
Merged PRs (30d)
31

Description

I compiled it as follows:
1) git clone --recursive https://github.com/DynamoRIO/dynamorio.git
2)cd dynamorio && mkdir build && cd build
3)cmake ..
4) make
but i get a error about:
relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIE

And then i try to add "-no-pie" and "fPIE" in "BASE_CXXONLY_FLAGS" of CMakeLists.txt, but it can't help

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.