Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
weiii1121 opened this issue Sep 7, 2024 · 3 comments
Open

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

weiii1121 opened this issue Sep 7, 2024 · 3 comments

Comments

@weiii1121
Copy link

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

image

Additional Context

build_openroad.log

@maliberty
Copy link
Member

@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
Copy link
Collaborator

oharboe commented Sep 10, 2024

@maliberty Looks like the problem I ran into.

@weiii1121 Try these two pull requests together:

The-OpenROAD-Project/OpenROAD#5660
#2295

@vijayank88
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants