limbo018 / DREAMPlace

Deep learning toolkit-enabled VLSI placement
BSD 3-Clause "New" or "Revised" License
638 stars 196 forks source link

I meet error: 'const struct DefParser::Pin' has no member named 'vPinPort' #162

Closed VibesVibes closed 6 months ago

VibesVibes commented 7 months ago

[ 63%] Building CXX object dreamplace/ops/place_io/CMakeFiles/place_io_cpp.dir/src/PlaceDB.cpp.o cd /dreamplace/DREAMPlace/build/dreamplace/ops/place_io && /usr/bin/c++ -DDRAWPLACE=1 -DENABLE_CUDA=1 -DTORCH_EXTENSION_NAME=place_io_cpp -DTORCH_VERSION_MAJOR=1 -DTORCH_VERSION_MINOR=7 -D_GLIBCXX_USE_CXX11_ABI=0 -Dplace_io_cpp_EXPORTS -I/dreamplace/DREAMPla ce/thirdparty/flute -I/dreamplace/DREAMPlace/thirdparty/OpenTimer -I/dreamplace/DREAMPlace/dreamplace/ops/place_io/.. -I/dreamplace/DREAMPlace/thirdparty/Limbo -I/usr/include/cairo -isystem /opt/conda/include/python3.8 -isystem /dreamplace/DREAMPlace/thirdpa rty/pybind11/include -isystem /opt/conda/lib/python3.8/site-packages/torch/include -isystem /opt/conda/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -O3 -DNDEBUG -fPIC -fvisibility=hidden -flto -fno-fat-lto-objects -D_GLIBCXX_USE_CXX11_ABI =0 -fopenmp -std=gnu++17 -MD -MT dreamplace/ops/place_io/CMakeFiles/place_io_cpp.dir/src/PlaceDB.cpp.o -MF CMakeFiles/place_io_cpp.dir/src/PlaceDB.cpp.o.d -o CMakeFiles/place_io_cpp.dir/src/PlaceDB.cpp.o -c /dreamplace/DREAMPlace/dreamplace/ops/place_io/src/ PlaceDB.cpp /dreamplace/DREAMPlace/dreamplace/ops/place_io/src/PlaceDB.cpp: In member function 'virtual void DreamPlace::PlaceDB::add_def_pin(const DefParser::Pin&)': /dreamplace/DREAMPlace/dreamplace/ops/place_io/src/PlaceDB.cpp:392:17: error: 'const struct DefParser::Pin' has no member named 'vPinPort' } else if (!p.vPinPort.empty()) { ^~~~ /dreamplace/DREAMPlace/dreamplace/ops/place_io/src/PlaceDB.cpp:394:35: error: 'const struct DefParser::Pin' has no member named 'vPinPort' for (std::size_t i = 0; i < p.vPinPort.size(); ++i) { ^~~~ /dreamplace/DREAMPlace/dreamplace/ops/place_io/src/PlaceDB.cpp:396:14: error: 'const struct DefParser::Pin' has no member named 'vPinPort' if (!p.vPinPort[i].vLayer.empty()) { ^~~~ /dreamplace/DREAMPlace/dreamplace/ops/place_io/src/PlaceDB.cpp:427:17: error: 'const struct DefParser::Pin' has no member named 'vPinPort' } else if (!p.vPinPort.empty()) { ^~~~ /dreamplace/DREAMPlace/dreamplace/ops/place_io/src/PlaceDB.cpp:428:22: error: 'const struct DefParser::Pin' has no member named 'vPinPort' node.setOrient(p.vPinPort.front().orient); ^~~~ /dreamplace/DREAMPlace/dreamplace/ops/place_io/src/PlaceDB.cpp:457:19: error: 'const struct DefParser::Pin' has no member named 'vPinPort' } else if (!p.vPinPort.empty()) { ^~~~ /dreamplace/DREAMPlace/dreamplace/ops/place_io/src/PlaceDB.cpp:458:37: error: 'const struct DefParser::Pin' has no member named 'vPinPort' for (std::size_t i = 0; i < p.vPinPort.size(); ++i) { ^~~~ /dreamplace/DREAMPlace/dreamplace/ops/place_io/src/PlaceDB.cpp:459:20: error: 'PinPort' is not a member of 'DefParser' DefParser::PinPort const& pport = p.vPinPort[i]; ^~~ /dreamplace/DREAMPlace/dreamplace/ops/place_io/src/PlaceDB.cpp:460:37: error: 'pport' was not declared in this scope for (std::size_t j = 0; j < pport.vLayer.size(); ++j) { ^~~~~ /dreamplace/DREAMPlace/dreamplace/ops/place_io/src/PlaceDB.cpp:460:37: note: suggested alternative: 'qsort' for (std::size_t j = 0; j < pport.vLayer.size(); ++j) { ^~~~~ qsort /dreamplace/DREAMPlace/dreamplace/ops/place_io/src/PlaceDB.cpp:553:17: error: 'const struct DefParser::Pin' has no member named 'vPinPort' } else if (!p.vPinPort.empty()) { ^~~~ /dreamplace/DREAMPlace/dreamplace/ops/place_io/src/PlaceDB.cpp:554:35: error: 'const struct DefParser::Pin' has no member named 'vPinPort' for (std::size_t i = 0; i < p.vPinPort.size(); ++i) { ^~~~ /dreamplace/DREAMPlace/dreamplace/ops/place_io/src/PlaceDB.cpp:558:18: error: 'PinPort' is not a member of 'DefParser' DefParser::PinPort const& pport = p.vPinPort[i]; ^~~ /dreamplace/DREAMPlace/dreamplace/ops/place_io/src/PlaceDB.cpp:559:35: error: 'pport' was not declared in this scope for (std::size_t j = 0; j < pport.vLayer.size(); ++j) { ^~~~~ /dreamplace/DREAMPlace/dreamplace/ops/place_io/src/PlaceDB.cpp:559:35: note: suggested alternative: 'qsort' for (std::size_t j = 0; j < pport.vLayer.size(); ++j) { ^~~~~ qsort dreamplace/ops/place_io/CMakeFiles/place_io_cpp.dir/build.make:190: recipe for target 'dreamplace/ops/place_io/CMakeFiles/place_io_cpp.dir/src/PlaceDB.cpp.o' failed make[2]: [dreamplace/ops/place_io/CMakeFiles/place_io_cpp.dir/src/PlaceDB.cpp.o] Error 1 make[2]: Leaving directory '/dreamplace/DREAMPlace/build' CMakeFiles/Makefile2:3947: recipe for target 'dreamplace/ops/place_io/CMakeFiles/place_io_cpp.dir/all' failed make[1]: [dreamplace/ops/place_io/CMakeFiles/place_io_cpp.dir/all] Error 2 make[1]: Leaving directory '/dreamplace/DREAMPlace/build' Makefile:138: recipe for target 'all' failed make: *** [all] Error 2

I tried the following command: git submodule init git submodule update and git clone --recursive https://github.com/limbo018/DREAMPlace.git

But it didn't solve the problem, how to solve this problem?

VibesVibes commented 7 months ago

I build with Docker