-
|
Hi, OpenRoad experts, When i try to build OpenROAD, I met with some problems as following: /usr/bin/ld: ant/src/ant.a(MakeAntennaChecker.cc.o): warning: relocation against `_ZN3ant13ant_tcl_initsE' in read-only section `.text'
/usr/bin/ld: pad/pad.a(MakeICeWall.cpp.o): in function `pad::initICeWall(pad::ICeWall*, odb::dbDatabase*, utl::Logger*, Tcl_Interp*)':
MakeICeWall.cpp:(.text+0x99): undefined reference to `pad::pad_tcl_inits'
/usr/bin/ld: stt/stt.a(MakeSteinerTreeBuilder.cpp.o): in function `stt::initSteinerTreeBuilder(stt::SteinerTreeBuilder*, odb::dbDatabase*, utl::Logger*, Tcl_Interp*)':
MakeSteinerTreeBuilder.cpp:(.text+0x99): undefined reference to `stt::stt_tcl_inits'
/usr/bin/ld: rcx/src/rcx.a(MakeOpenRCX.cpp.o): in function `rcx::initOpenRCX(rcx::Ext*, odb::dbDatabase*, utl::Logger*, char const*, Tcl_Interp*)':
MakeOpenRCX.cpp:(.text+0x9a): undefined reference to `rcx::rcx_tcl_inits'
/usr/bin/ld: grt/grt.a(MakeGlobalRouter.cpp.o): in function `grt::initGlobalRouter(grt::GlobalRouter*, odb::dbDatabase*, sta::dbSta*, rsz::Resizer*, ant::AntennaChecker*, dpl::Opendp*, stt::SteinerTreeBuilder*, utl::Logger*, Tcl_Interp*)':
MakeGlobalRouter.cpp:(.text+0xbb): undefined reference to `grt::grt_tcl_inits'
/usr/bin/ld: tap/src/tap.a(MakeTapcell.cpp.o): in function `tap::initTapcell(tap::Tapcell*, odb::dbDatabase*, utl::Logger*, Tcl_Interp*)':
MakeTapcell.cpp:(.text+0xd9): undefined reference to `tap::tap_tcl_inits'
/usr/bin/ld: drt/drt.a(MakeTritonRoute.cpp.o): in function `drt::initTritonRoute(drt::TritonRoute*, odb::dbDatabase*, utl::Logger*, dst::Distributed*, stt::SteinerTreeBuilder*, Tcl_Interp*)':
MakeTritonRoute.cpp:(.text+0xb2): undefined reference to `drt::drt_tcl_inits'
/usr/bin/ld: dst/dst.a(MakeDistributed.cc.o): in function `dst::initDistributed(dst::Distributed*, utl::Logger*, Tcl_Interp*)':
MakeDistributed.cc:(.text+0x90): undefined reference to `dst::dst_tcl_inits'
/usr/bin/ld: psm/src/psm.a(MakePDNSim.cpp.o): in function `psm::initPDNSim(psm::PDNSim*, utl::Logger*, odb::dbDatabase*, sta::dbSta*, rsz::Resizer*, dpl::Opendp*, Tcl_Interp*)':
MakePDNSim.cpp:(.text+0x7b): undefined reference to `psm::psm_tcl_inits'
/usr/bin/ld: ant/src/ant.a(MakeAntennaChecker.cc.o): in function `ant::initAntennaChecker(ant::AntennaChecker*, odb::dbDatabase*, ant::GlobalRouteSource*, utl::Logger*, Tcl_Interp*)':
MakeAntennaChecker.cc:(.text+0x9a): undefined reference to `ant::ant_tcl_inits'
/usr/bin/ld: utl/utl.a(MakeLogger.cpp.o): in function `utl::initLogger(utl::Logger*, Tcl_Interp*)':
MakeLogger.cpp:(.text+0x56): undefined reference to `utl::utl_tcl_inits'
/usr/bin/ld: dft/dft.a(MakeDft.cpp.o): in function `dft::initDft(dft::Dft*, odb::dbDatabase*, sta::dbSta*, utl::Logger*, Tcl_Interp*)':
MakeDft.cpp:(.text+0x6a): undefined reference to `dft::dft_tcl_inits'
/usr/bin/ld: mpl/mpl.a(MakeMacroPlacer.cpp.o): in function `mpl::initMacroPlacer(mpl::MacroPlacer*, sta::dbNetwork*, odb::dbDatabase*, sta::dbSta*, utl::Logger*, par::PartitionMgr*, Tcl_Interp*)':
MakeMacroPlacer.cpp:(.text+0x7b): undefined reference to `mpl::mpl_tcl_inits'
/usr/bin/ld: fin/fin.a(MakeFinale.cpp.o): in function `fin::initFinale(fin::Finale*, odb::dbDatabase*, utl::Logger*, Tcl_Interp*)':
MakeFinale.cpp:(.text+0x79): undefined reference to `fin::fin_tcl_inits'
/usr/bin/ld: ifp/src/ifp.a(MakeInitFloorplan.cc.o): in function `ifp::initInitFloorplan(Tcl_Interp*)':
MakeInitFloorplan.cc:(.text+0x13): undefined reference to `ifp::ifp_tcl_inits'
/usr/bin/ld: upf/src/upf.a(MakeUpf.cpp.o): in function `upf::initUpf(Tcl_Interp*)':
MakeUpf.cpp:(.text+0x13): undefined reference to `upf::upf_tcl_inits'
/usr/bin/ld: par/par.a(MakePartitionMgr.cpp.o): in function `par::initPartitionMgr(par::PartitionMgr*, odb::dbDatabase*, sta::dbNetwork*, sta::dbSta*, utl::Logger*, Tcl_Interp*)':
MakePartitionMgr.cpp:(.text+0x62): undefined reference to `par::par_tcl_inits'
/usr/bin/ld: warning: creating DT_TEXTREL in a PIE
collect2: error: ld returned 1 exit status
make[2]: *** [src/CMakeFiles/openroad.dir/build.make:595: src/openroad] Error 1
make[1]: *** [CMakeFiles/Makefile2:2515: src/CMakeFiles/openroad.dir/all] Error 2
make: *** [Makefile:146: all] Error 2Is there any solution to this problem? Thanks a lot! |
Beta Was this translation helpful? Give feedback.
Answered by
maliberty
Jun 16, 2025
Replies: 1 comment 1 reply
-
|
It seems like the swig generated code isn't being linked correctly. Have you run the dependency installer? On what platform are you building? What version of swig do you have? |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
zint99
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It seems like the swig generated code isn't being linked correctly. Have you run the dependency installer? On what platform are you building? What version of swig do you have?