Comments (7)
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.
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.
Which setup script are you using? This may affect which .cmake file to change below.
There may be 3 solutions to this problem.
- Add "-ldl" to the end of the link line for "devsim_py" after PTHREAD_LIB
in src/main/CMakeLists.txt
or
- SET(SQLITE3_ARCHIVE -lsqlite3)
in ubuntu_12.04.cmake.
or
- SET(SQLITE3_ARCHIVE -lsqlite3 -ldl)
in ubuntu_12.04.cmake.
from devsim.
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.
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.
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.
dl, pthread issues should be fixed with new Ubuntu 14.04 scripts in commit 83028f8
from devsim.
Related Issues (20)
- Custom registered functions don't work with extended precision HOT 4
- support extended precision registered functions.
- third party license file
- bug in testing/mos_2d.py
- regression test script not comparing mesh results
- [JOSS Review] Confusing multiple documentation sources HOT 1
- If the devsim can be used in the modelling of new materials such as SiC HOT 1
- If more information can be offered about the fluxterm in the interface_equation? HOT 1
- Explicit loading of Intel MKL HOT 2
- Allow choice of BLAS, MKL, and SuperLU for release versions. HOT 5
- kahan3 and kahan4 for extended precision HOT 1
- Deleting meshes and devices? HOT 7
- pip install devsim HOT 16
- diode1d and diode2d results not consistent HOT 2
- The calculation of heat generation HOT 2
- Reduce data in VTK or TecplotFormat HOT 2
- remove explicit zlib and sqlite library dependency HOT 1
- Contact definition error message always refers to contacts needing to be 2D HOT 2
- better exception specification
- UMFPACK Direct Solver
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from devsim.