TILOS-AI-Institute / MacroPlacement

Macro Placement - benchmarks, evaluators, and reproducible results from leading methods in open source
BSD 3-Clause "New" or "Revised" License
208 stars 42 forks source link

../Grouping/src/utils/openroad: undefined symbol: _ZdlPvm, version Qt_5 #24

Closed garumaru closed 1 year ago

garumaru commented 1 year ago

Hello,

I followed the steps "https://github.com/The-OpenROAD-Project/OpenROAD" to setup openroad environment, however when running "python3 flow.py" under MacroPlacement/MacroPlacement-main/CodeElements/CodeFlowIntegration path, I will get below error:

../Grouping/src/utils/openroad ../Grouping/src/utils/extract_hypergraph.tcl setup.tcl ../Grouping/src/utils/openroad /ic/proj/comet/root/MacroPlacement/MacroPlacement-main/CodeElements/CodeFlowIntegration/extract_hypergraph.tcl ../Grouping/src/utils/openroad: symbol lookup error: ../Grouping/src/utils/openroad: undefined symbol: _ZdlPvm, version Qt_5

The OS is Centos 8.

Anyone knows how to solve this issue? Thank you very much!

sharkoo7 commented 1 year ago

It's related to openroad dependencies. Check the results of ldd ../Grouping/src/utils/openroad

ZhiangWang033 commented 1 year ago

@sharkoo7, Thanks for your reply. Yes, sharkoo7 is right. I suggest you take a look at OpenROAD installation guide.

garumaru commented 1 year ago

thank you guys @ZhiangWang033 @sharkoo7 , I switch the OS to ubuntu18.04 and install tools as I did in centos8, and it works

jason-nguyentronghieu commented 1 year ago

Mainly, this issue might happen on the newer versions than Ubuntu 18.04 such as: Ubuntu 20.04. To fix this issue without switching to Ubuntu 18.04, we can use these steps below.

Step 1

# change a path to save .run file
cd /path/to/
wget https://download.qt.io/new_archive/qt/5.11/5.11.2/qt-opensource-linux-x64-5.11.2.run
chmod +x qt-opensource-linux-x64-5.11.2.run
./qt-opensource-linux-x64-5.11.2.run

Step 2

# copy all libs from `Qt5.11.2` to `/usr/lib/x86_64-linux-gnu/ `
sudo cp -a /path/to/Qt5.11.2/5.11.2/gcc_64/lib/. /usr/lib/x86_64-linux-gnu/

Step 3:

Run python3 flow.py again.

I hope this will be helpful.