# LoggerCommon.cpp:(.text+0x18f): undefined reference to `ord::getLogger()' Subcategory: Linking error ## Conversation ### oharboe I'm getting this problem again while building OpenROAD locally. I've tried recloning and deleting the entire ORFS folder, still no luck. Any ideas? ``` $ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 22.10 Release: 22.10 Codename: kinetic ``` ``` ./build_openroad.sh --local --openroad-args "-D CMAKE_BUILD_TYPE=RELEASE" ``` ``` [deleted] FAILED: src/dpl/test/dpl_test src/dpl/test/dpl_test[1]_tests.cmake /home/oyvind/ascenium/blah/tools/OpenROAD/build/src/dpl/test/dpl_test[1]_tests.cmake : && /usr/bin/c++ -O3 -DNDEBUG src/dpl/test/CMakeFiles/dpl_test.dir/dpl_test.cc.o -o src/dpl/test/dpl_test -lgtest -lgtest_main src/dpl/libdpl_lib.a src/odb/src/cdl/libcdl.a src/odb/src/defin/libdefin.a src/odb/src/def/libdef.a src/odb/src/def/libdefzlib.a src/odb/src/lefin/liblefin.a src/odb/src/lef/liblef.a src/odb/src/lef/liblefzlib.a /usr/lib/x86_64-linux-gnu/libz.so src/odb/src/db/libdb.a src/odb/src/defout/libdefout.a src/odb/src/lefout/liblefout.a src/odb/src/zutil/libzutil.a src/odb/src/db/libdb.a src/odb/src/defout/libdefout.a src/odb/src/lefout/liblefout.a src/odb/src/zutil/libzutil.a src/odb/src/tm/libtm.a /home/oyvind/ascenium/blah/tools/OpenROAD/src/sta/app/libOpenSTA.a /usr/lib/x86_64-linux-gnu/libtcl.so /usr/lib/x86_64-linux-gnu/libtclreadline.so /usr/lib/x86_64-linux-gnu/libz.so -ltcl src/utl/utl.a src/utl/libutl_lib.a /home/oyvind/ascenium/blah/dependencies/lib/libspdlog.a && cd /home/oyvind/ascenium/blah/tools/OpenROAD/build/src/dpl/test && /home/oyvind/ascenium/blah/dependencies/bin/cmake -D TEST_TARGET=dpl_test -D TEST_EXECUTABLE=/home/oyvind/ascenium/blah/tools/OpenROAD/build/src/dpl/test/dpl_test -D TEST_EXECUTOR= -D TEST_WORKING_DIR=/home/oyvind/ascenium/blah/tools/OpenROAD/src/dpl/test -D TEST_EXTRA_ARGS= -D TEST_PROPERTIES= -D TEST_PREFIX= -D TEST_SUFFIX= -D TEST_FILTER= -D NO_PRETTY_TYPES=FALSE -D NO_PRETTY_VALUES=FALSE -D TEST_LIST=dpl_test_TESTS -D CTEST_FILE=/home/oyvind/ascenium/blah/tools/OpenROAD/build/src/dpl/test/dpl_test[1]_tests.cmake -D TEST_DISCOVERY_TIMEOUT=5 -D TEST_XML_OUTPUT_DIR= -P /home/oyvind/ascenium/blah/dependencies/share/cmake-3.24/Modules/GoogleTestAddTests.cmake /usr/bin/ld: src/utl/utl.a(LoggerCommon.cpp.o): in function `utl::report(char const*)': LoggerCommon.cpp:(.text+0x18f): undefined reference to `ord::getLogger()' /usr/bin/ld: src/utl/utl.a(LoggerCommon.cpp.o): in function `utl::open_metrics(char const*)': LoggerCommon.cpp:(.text+0x2e9): undefined reference to `ord::getLogger()' /usr/bin/ld: src/utl/utl.a(LoggerCommon.cpp.o): in function `utl::close_metrics(char const*)': LoggerCommon.cpp:(.text+0x309): undefined reference to `ord::getLogger()' /usr/bin/ld: src/utl/utl.a(LoggerCommon.cpp.o): in function `utl::set_metrics_stage(char const*)': LoggerCommon.cpp:(.text+0x32e): undefined reference to `ord::getLogger()' /usr/bin/ld: src/utl/utl.a(LoggerCommon.cpp.o): in function `utl::clear_metrics_stage()': LoggerCommon.cpp:(.text+0x369): undefined reference to `ord::getLogger()' /usr/bin/ld: src/utl/utl.a(LoggerCommon.cpp.o):LoggerCommon.cpp:(.text+0x38e): more undefined references to `ord::getLogger()' follow collect2: error: ld returned 1 exit status [3/39] Automatic MOC and UIC for target gui ninja: build stopped: subcommand failed. ``` ### maliberty I can't reproduce it but can you try changing https://github.com/The-OpenROAD-Project/OpenROAD/blob/8a49dff86645352d30780951b1146b31ef41b0f4/src/dpl/CMakeLists.txt#L58 to utl_lib and see if that helps. ### maliberty PR coming. I'm not sure why it varies - perhaps different compilers?