Coder Social home page Coder Social logo

Comments (7)

tcaduser avatar tcaduser commented on May 30, 2024

It looks like it needs to be added here:
/src/main/CMakeLists.txt

On the TARGET_LINK_LIBRARIES line for 'devsim_py', add ${PTHREAD_LIB} to the very end of the line before the end parenthesis.

Please let me know if it works. Please build using:
make VERBOSE=1

for additional debugging information.

from devsim.

arvindajoy avatar arvindajoy commented on May 30, 2024

Hello,

Thanks for that suggestion. That solved the problem with pthread. However, there is a complaint w.r.t libdl. What do I add for this?

Linking CXX executable devsim_py
cd /media/B/WSP_ND/softwareND/devsim/linux_x86_64_release/src/main && /usr/bin/cmake -E cmake_link_script CMakeFiles/devsim_py.dir/link.txt --verbose=1
/usr/bin/g++-4.7 -std=c++0x -O3 -DNDEBUG CMakeFiles/devsim_py.dir/devsim_py.o -o devsim_py -L/media/B/WSP_ND/softwareND/devsim/linux_x86_64_release/src/commands -L/media/B/WSP_ND/softwareND/devsim/linux_x86_64_release/src/pythonapi -L/media/B/WSP_ND/softwareND/devsim/linux_x86_64_release/src/Data -L/media/B/WSP_ND/softwareND/devsim/linux_x86_64_release/src/AutoEquation -L/media/B/WSP_ND/softwareND/devsim/linux_x86_64_release/src/meshing -L/media/B/WSP_ND/softwareND/devsim/linux_x86_64_release/src/GeomModels -L/media/B/WSP_ND/softwareND/devsim/linux_x86_64_release/src/Equation -L/media/B/WSP_ND/softwareND/devsim/linux_x86_64_release/src/Geometry -L/media/B/WSP_ND/softwareND/devsim/linux_x86_64_release/src/math -L/media/B/WSP_ND/softwareND/devsim/linux_x86_64_release/src/MathEval -L/media/B/WSP_ND/softwareND/devsim/linux_x86_64_release/src/models -L/media/B/WSP_ND/softwareND/devsim/linux_x86_64_release/src/myThread -L/media/B/WSP_ND/softwareND/devsim/linux_x86_64_release/src/Circuit/models/sources -L/media/B/WSP_ND/softwareND/devsim/linux_x86_64_release/src/Circuit/models/ideal -L/media/B/WSP_ND/softwareND/devsim/linux_x86_64_release/src/Circuit/data -L/media/B/WSP_ND/softwareND/devsim/linux_x86_64_release/src/errorSystem -L/media/B/WSP_ND/softwareND/devsim/linux_x86_64_release/src/utility -L/media/B/WSP_ND/softwareND/devsim/external/SuperLU_4.3/lib -L/usr/lib/libblas -L/usr/lib/gcc/x86_64-linux-gnu/4.6 -L/media/B/WSP_ND/softwareND/devsim/external/symdiff/lib -L/media/B/WSP_ND/softwareND/devsim/external/cgnslib/lib -rdynamic ../commands/libcommands.a ../pythonapi/libpythonapi_interpreter.a ../commands/libcommands.a ../pythonapi/libpythonapi_interpreter.a ../Data/libData.a ../AutoEquation/libAutoEquation.a ../meshing/libmeshing.a ../GeomModels/libGeomModels.a ../Equation/libEquation.a ../Geometry/libGeometry.a ../math/libmath.a ../MathEval/libMathEval.a ../models/libmodels.a ../myThread/libmyThread.a ../Circuit/models/sources/libcircuitSources.a ../Circuit/models/ideal/libcircuitIdeal.a ../Circuit/data/libcircuitData.a ../errorSystem/liberrorSystem.a ../pythonapi/libpythonapi_api.a ../utility/libutility.a -lpython2.7 -Wl,-Bstatic -lz -Wl,-Bdynamic ../../../external/SuperLU_4.3/lib/libsuperlu_4.3.a /usr/lib/libblas/libblas.so.3 /usr/lib/gcc/x86_64-linux-gnu/4.6/libgfortran.a -Wl,-Bstatic -lsqlite3 -ltclstub8.5 -Wl,-Bdynamic ../../../external/symdiff/lib/libsymdiff_static.a ../../../external/cgnslib/lib/libcgns.a -lpthread -Wl,-rpath,/usr/lib/libblas
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/4.7/../../../x86_64-linux-gnu/libsqlite3.a(sqlite3.o): undefined reference to symbol 'dlclose@@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
make[2]: *** [src/main/devsim_py] Error 1
make[2]: Leaving directory /media/B/WSP_ND/softwareND/devsim/linux_x86_64_release' make[1]: *** [src/main/CMakeFiles/devsim_py.dir/all] Error 2 make[1]: Leaving directory/media/B/WSP_ND/softwareND/devsim/linux_x86_64_release'
make: *** [all] Error 2

Thanks a lot,

Regards

Arvind

from devsim.

tcaduser avatar tcaduser commented on May 30, 2024

Which setup script are you using? This may affect which .cmake file to change below.

There may be 3 solutions to this problem.

  1. Add "-ldl" to the end of the link line for "devsim_py" after PTHREAD_LIB

in src/main/CMakeLists.txt

or

  1. SET(SQLITE3_ARCHIVE -lsqlite3)

in ubuntu_12.04.cmake.

or

  1. SET(SQLITE3_ARCHIVE -lsqlite3 -ldl)

in ubuntu_12.04.cmake.

from devsim.

tcaduser avatar tcaduser commented on May 30, 2024

For reference, it looks like Debian might be using features in sqlite3 that were not be used in previous versions of ubuntu.

http://www.sqlite.org/howtocompile.html

shows what options require the use of "-ldl" and "-lpthread".

from devsim.

arvindajoy avatar arvindajoy commented on May 30, 2024

Thanks again! I added -ldl to the link line for devsim.py. I also had to make the following change
BLAS_ARCHIVE /usr/lib/atlas-base/atlas/liblapack.a /usr/lib/atlas-base/atlas/libblas.a /usr/lib/gcc/x86_64-linux-gnu/4.7/libgfortran.a
in ubuntu_12.04.cmake, since I dont have the acml libs loaded on my machine. With these changes, I am able to successfully compile the code.

Your approach to writing a TCAD tool looks very interesting! I am eager to play with the examples.

Regards
Arvind

from devsim.

tcaduser avatar tcaduser commented on May 30, 2024

Thanks for trying the software. Your blas and lapack should work, except some of the regression tests will fail due to slight numerical differences.

I will update the build scripts soon so '-libdl' and '-lpthread' are added.

Please let me know if you have any questions about using the software.

from devsim.

tcaduser avatar tcaduser commented on May 30, 2024

dl, pthread issues should be fixed with new Ubuntu 14.04 scripts in commit 83028f8

from devsim.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.