Forum Message

 

 

We have moved the forum to https://forum.ngsolve.org . This is an archived version of the topics until 05/05/23. All the topics were moved to the new forum and conversations can be continued there. This forum is just kept as legacy to not invalidate old links. If you want to continue a conversation just look for the topic in the new forum.

Notice

The forum is in read only mode.

Installation Issue

More
5 years 5 months ago #1272 by hvwahl
Installation Issue was created by hvwahl
Hello Everyone,

I have been trying to build NGSolve on an Ubuntu 16.04.4 LTS machine with the following cmake flags:
-DUSE_UMFPACK=ON \
-DCMAKE_BUILD_TYPE=RELEASE \
-DCMAKE_INSTALL_PREFIX=${BASE}/ngsolve/inst \
-DCMAKE_CXX_COMPILER=g++-6 \
-DCMAKE_C_COMPILER=gcc-6 \


and the prerequisites to build on Linux have been checked. There where no issues when setting the Flags, however "make" failed at the end with the following error:

[ 99%] Linking CXX executable ngs
../comp/libngcomp.so: Nicht definierter Verweis auf `void netgen::Ngx_Mesh::MultiElementTransformation<0, 3, double __vector(4)>(int, int, double __vector(4) const*, unsigned long, double __vector(4)*, unsigned long, double __vector(4)*, unsigned long) const'
../comp/libngcomp.so: Nicht definierter Verweis auf `void netgen::Ngx_Mesh::MultiElementTransformation<2, 2, double __vector(4)>(int, int, double __vector(4) const*, unsigned long, double __vector(4)*, unsigned long, double __vector(4)*, unsigned long) const'
../comp/libngcomp.so: Nicht definierter Verweis auf `void netgen::Ngx_Mesh::MultiElementTransformation<1, 3, double __vector(4)>(int, int, double __vector(4) const*, unsigned long, double __vector(4)*, unsigned long, double __vector(4)*, unsigned long) const'
../comp/libngcomp.so: Nicht definierter Verweis auf `void netgen::Ngx_Mesh::MultiElementTransformation<2, 3, double __vector(4)>(int, int, double __vector(4) const*, unsigned long, double __vector(4)*, unsigned long, double __vector(4)*, unsigned long) const'
../comp/libngcomp.so: Nicht definierter Verweis auf `void netgen::Ngx_Mesh::MultiElementTransformation<1, 1, double __vector(4)>(int, int, double __vector(4) const*, unsigned long, double __vector(4)*, unsigned long, double __vector(4)*, unsigned long) const'
../comp/libngcomp.so: Nicht definierter Verweis auf `void netgen::Ngx_Mesh::MultiElementTransformation<1, 2, double __vector(4)>(int, int, double __vector(4) const*, unsigned long, double __vector(4)*, unsigned long, double __vector(4)*, unsigned long) const'
../comp/libngcomp.so: Nicht definierter Verweis auf `void netgen::Ngx_Mesh::MultiElementTransformation<3, 3, double __vector(4)>(int, int, double __vector(4) const*, unsigned long, double __vector(4)*, unsigned long, double __vector(4)*, unsigned long) const'
../comp/libngcomp.so: Nicht definierter Verweis auf `void netgen::Ngx_Mesh::MultiElementTransformation<0, 2, double __vector(4)>(int, int, double __vector(4) const*, unsigned long, double __vector(4)*, unsigned long, double __vector(4)*, unsigned long) const'
../comp/libngcomp.so: Nicht definierter Verweis auf `void netgen::Ngx_Mesh::MultiElementTransformation<0, 1, double __vector(4)>(int, int, double __vector(4) const*, unsigned long, double __vector(4)*, unsigned long, double __vector(4)*, unsigned long) const'
collect2: error: ld returned 1 exit status
solve/CMakeFiles/ngs.dir/build.make:148: die Regel für Ziel „solve/ngs“ scheiterte
make[5]: *** [solve/ngs] Fehler 1
CMakeFiles/Makefile2:732: die Regel für Ziel „solve/CMakeFiles/ngs.dir/all“ scheiterte
make[4]: *** [solve/CMakeFiles/ngs.dir/all] Fehler 2
make[4]: *** Auf noch nicht beendete Prozesse wird gewartet …
[ 99%] Linking CXX shared library ngslib.so
[ 99%] Built target ngslib
[100%] Linking CXX shared library libngsolve.so
[100%] Built target ngsolve
Makefile:138: die Regel für Ziel „all“ scheiterte
make[3]: *** [all] Fehler 2
CMakeFiles/ngsolve.dir/build.make:115: die Regel für Ziel „dependencies/Stamp/ngsolve/ngsolve-build“ scheiterte
make[2]: *** [dependencies/Stamp/ngsolve/ngsolve-build] Fehler 2
CMakeFiles/Makefile2:211: die Regel für Ziel „CMakeFiles/ngsolve.dir/all“ scheiterte
make[1]: *** [CMakeFiles/ngsolve.dir/all] Fehler 2
Makefile:149: die Regel für Ziel „all“ scheiterte
make: *** [all] Fehler 2


Does anyone know what could have caused this error and how I can avoid it?

Best Wishes,
Henry
More
5 years 5 months ago #1273 by christopher
Replied by christopher on topic Installation Issue
Hi Henry,
do you have an existing Netgen installation? It seems like your Netgen installation is built without SIMD (which is the default for the installer) and you compile NGSolve with SIMD support. If you remove the installed version NGSolve should build Netgen as a submodule with the correct configuration.

Best
Christopher
The following user(s) said Thank You: hvwahl
More
5 years 5 months ago #1275 by hvwahl
Replied by hvwahl on topic Installation Issue
Hi Christopher,

thank you for your reply! Yes, there is a version NGSolve installed (via the 'universe' repository) on this server, unfortunately I will have to wait until Monday for this to removed. I will then try to installing NGSolve again.

Best wishes,
Henry
More
5 years 5 months ago #1276 by christopher
Replied by christopher on topic Installation Issue
Hi,
it should be enough to remove the NETGEN_DIR environment variable I think. Maybe as well the install path from the path (temporarily). Make sure to remove the build directory and recreate it if trying. Could be that some cmake files are cached incorrectly...
Best
Christopher
More
5 years 5 months ago #1277 by hvwahl
Replied by hvwahl on topic Installation Issue
Hi Christopher,

thank you for the advice! I've got everything working now :)

Best wishes,
Henry
Time to create page: 0.134 seconds