The-OpenROAD-Project / OpenROAD-flow-scripts

OpenROAD's scripts implementing an RTL-to-GDS Flow. Documentation at https://openroad-flow-scripts.readthedocs.io/en/latest/
https://theopenroadproject.org/
Other
346 stars 292 forks source link

failed on "./build_openroad.sh --local" #2330

Open weiii1121 opened 2 months ago

weiii1121 commented 2 months ago

Subject

[Build] for compilation-related issues.

Describe the bug

[ 94%] Building CXX object src/CMakeFiles/openroad.dir/Design.cc.o [ 94%] Building CXX object src/CMakeFiles/openroad.dir/Timing.cc.o [ 94%] Building CXX object src/CMakeFiles/openroad.dir/Tech.cc.o [ 94%] Building CXX object src/CMakeFiles/openroad.dir/OpenRoad.cc.o [ 94%] Building CXX object src/CMakeFiles/openroad.dir/Main.cc.o [ 94%] Linking CXX executable openroad /usr/bin/ld: gpl/gpl.a(mbff.cpp.o): in function gpl::MBFF::RunILP(std::vector<gpl::Flop, std::allocator<gpl::Flop> > const&, std::vector<gpl::Tray, std::allocator<gpl::Tray> > const&, std::vector<std::pair<int, int>, std::allocator<std::pair<int, int> > >&, float, float, std::vector<int, std::allocator<int> >)': mbff.cpp:(.text+0x1ac5c): undefined reference tooperations_research::sat::CpModelProto::CpModelProto(google::protobuf::Arena)' /usr/bin/ld: mbff.cpp:(.text+0x1ac63): undefined reference to absl::lts_20240116::container_internal::kEmptyGroup' /usr/bin/ld: mbff.cpp:(.text+0x1f379): undefined reference toabsl::lts_20240116::container_internal::kEmptyGroup' /usr/bin/ld: mbff.cpp:(.text+0x1f3c9): undefined reference to `operations_research::sat::SatParameters::SatParameters(google::protobuf::Arena)' collect2: error: ld returned 1 exit status gmake[2]: [src/CMakeFiles/openroad.dir/build.make:517: src/openroad] Error 1 gmake[1]: [CMakeFiles/Makefile2:2262: src/CMakeFiles/openroad.dir/all] Error 2 gmake: *** [Makefile:146: all] Error 2

this error comes out when i running the command "./build_openroad.sh --local --latest --clean --threads 1". please let me know how to fix it. thanks.

Expected Behavior

build successfully

Environment

Ubuntu 22.04

To Reproduce

git clone --recursive https://github.com/The-OpenROAD-Project/OpenROAD-flow-scripts cd OpenROAD-flow-scripts sudo ./setup.sh ./build_openroad.sh --local --latest --clean --threads 1

Relevant log output

No response

Screenshots

image

Additional Context

build_openroad.log

maliberty commented 2 months ago

@kevinnnnn0131 not a helpful comment.

I would guess you have conflicting versions of or_tools and abseil. Perhaps you already have abseil installed and cmake is finding the wrong version. Please check.

oharboe commented 2 months ago

@maliberty Looks like the problem I ran into.

@weiii1121 Try these two pull requests together:

https://github.com/The-OpenROAD-Project/OpenROAD/pull/5660 https://github.com/The-OpenROAD-Project/OpenROAD-flow-scripts/pull/2295

vijayank88 commented 1 month ago

I'm also facing issue with local installation, same as above error message.