failed on "./build_openroad.sh --local"
weiii1121 opened this issue · 3 comments
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 to
operations_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 to
absl::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
Additional Context
@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.
@maliberty Looks like the problem I ran into.
@weiii1121 Try these two pull requests together:
I'm also facing issue with local installation, same as above error message.