The-OpenROAD-Project / TritonCTS

Source codes and calibration scripts for clock tree synthesis
BSD 3-Clause "New" or "Revised" License
39 stars 11 forks source link

recipe for target 'bin/genHtree' failed #6

Closed kunalg123 closed 5 years ago

kunalg123 commented 5 years ago

Hi I have installed cplex. Now it gives below errors:

anaghavsd@rise:~/Desktop/work/tools/TritonCTS$ make g++ -m64 -O3 -std=c++11 -fPIC -fno-strict-aliasing -fexceptions -DNDEBUG -DIL_STD -Wno-ctor-dtor-privacy -fopenmp -I/scratch/work/my_tools/ibm_cplex/cplex/include -I/scratch/work/my_tools/ibm_cplex/concert/include -g -o bin/argument.o \ -c src/ghtree/argument.cpp g++ -m64 -O3 -std=c++11 -fPIC -fno-strict-aliasing -fexceptions -DNDEBUG -DIL_STD -Wno-ctor-dtor-privacy -fopenmp -I/scratch/work/my_tools/ibm_cplex/cplex/include -I/scratch/work/my_tools/ibm_cplex/concert/include -g -o bin/tree.o \ -c src/ghtree/tree.cpp g++ -m64 -O3 -std=c++11 -fPIC -fno-strict-aliasing -fexceptions -DNDEBUG -DIL_STD -Wno-ctor-dtor-privacy -fopenmp -I/scratch/work/my_tools/ibm_cplex/cplex/include -I/scratch/work/my_tools/ibm_cplex/concert/include -g -o bin/design.o \ -c src/ghtree/design.cpp In file included from /scratch/work/my_tools/ibm_cplex/cplex/include/ilcplex/ilocplexi.h:1053:0, from /scratch/work/my_tools/ibm_cplex/cplex/include/ilcplex/ilocplex.h:29, from src/ghtree/design.cpp:59: /scratch/work/my_tools/ibm_cplex/cplex/include/ilcplex/iloparam.h:83:12: warning: ‘IloCplex::Param::MIP::Limits::SubMIPNodeLim’ is deprecated [-Wdeprecated-declarations] struct Limits { ^ /scratch/work/my_tools/ibm_cplex/cplex/include/ilcplex/iloparam.h:103:40: note: declared here static const IloCplex::LongParam SubMIPNodeLim = LongParam(CPX_PARAM_SUBMIPNODELIM); ^ g++ -m64 -O3 -std=c++11 -fPIC -fno-strict-aliasing -fexceptions -DNDEBUG -DIL_STD -Wno-ctor-dtor-privacy -fopenmp -I/scratch/work/my_tools/ibm_cplex/cplex/include -I/scratch/work/my_tools/ibm_cplex/concert/include -g -o bin/main.o \ -c src/ghtree/main.cpp g++ -m64 -O3 -std=c++11 -fPIC -fno-strict-aliasing -fexceptions -DNDEBUG -DIL_STD -Wno-ctor-dtor-privacy -fopenmp -I/scratch/work/my_tools/ibm_cplex/cplex/include -I/scratch/work/my_tools/ibm_cplex/concert/include -g -o bin/mymeasure.o \ -c src/ghtree/mymeasure.cpp g++ -m64 -O3 -std=c++11 -fPIC -fno-strict-aliasing -fexceptions -DNDEBUG -DIL_STD -Wno-ctor-dtor-privacy -fopenmp -I/scratch/work/my_tools/ibm_cplex/cplex/include -I/scratch/work/my_tools/ibm_cplex/concert/include -g -o bin/mystring.o \ -c src/ghtree/mystring.cpp g++ -g -m64 -O3 -std=c++11 -fPIC -fno-strict-aliasing -fexceptions -DNDEBUG -DIL_STD -Wno-ctor-dtor-privacy -fopenmp -o bin/genHtree bin/argument.o bin/tree.o bin/design.o bin/main.o bin/mymeasure.o bin/mystring.o \ -lm -pthread -fopenmp -L/scratch/work/my_tools/ibm_cplex/cplex/lib/x86-64_linux/static_pic -lilocplex -lcplex -L/scratch/work/my_tools/ibm_cplex/concert/lib/x86-64_linux/static_pic -lconcert /usr/bin/ld: /scratch/work/my_tools/ibm_cplex/cplex/lib/x86-64_linux/static_pic/libcplex.a(mkl_memory_patched.o): undefined reference to symbol 'dlsym@@GLIBC_2.2.5' //lib/x86_64-linux-gnu/libdl.so.2: error adding symbols: DSO missing from command line collect2: error: ld returned 1 exit status Makefile:94: recipe for target 'bin/genHtree' failed make: *** [bin/genHtree] Error 1

kunalg123 commented 5 years ago

Attaching my Makefile for reference

Makefile.txt

mpfogaca commented 5 years ago

Hi, @kunalg123.

I could not reproduce the error in my end. Can you try the solution suggested below and let me know if it works for you?

https://stackoverflow.com/questions/29557683/undefined-reference-to-symbol-dlsymglibc-2-4

Thanks, -- Mateus

kunalg123 commented 5 years ago

Is it possible to login to my machine through teamviewer, using below id: I will change password, once you finish Partner ID - 1 096 820 631 Password - 7u5r4a

kunalg123 commented 5 years ago

I think we need to add -ldl flag on line number 66 in Makefile

kunalg123 commented 5 years ago

Installation goes through fine Closing issue