|
[Sponsors] |
[OpenFOAM.com] The error during installation of calculix |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
April 24, 2019, 05:18 |
The error during installation of calculix
|
#1 |
New Member
Hiroaki Sumikawa
Join Date: Jul 2018
Posts: 9
Rep Power: 8 |
Hi, everyone.
I want to do FSI using OpenFOAM, CalculiX and preCICE. So, I tried to install them. But I encounterd the error when building cgx for CalculiX. My development environment is Ubuntu18.04LTS, OpenFOAM-v1806 and I refferd this site(https://github.com/luvres/calculix) to build the cgx. this is the error Code:
/usr/include/c++/7/bits/stl_algobase.h:243:56: error: macro "min" passed 3 arguments, but takes just 2 min(const _Tp& __a, const _Tp& __b, _Compare __comp) ^ /usr/include/c++/7/bits/stl_algobase.h:265:56: error: macro "max" passed 3 arguments, but takes just 2 max(const _Tp& __a, const _Tp& __b, _Compare __comp) ^ In file included from ../../libSNL/src/snlCurveBase.h:23:0, from ../../libSNL/src/snlCurve.h:25, from ../../libSNL/src/snlSurface.h:20, from uselibSNL.cpp:35: ../../libSNL/src/snlKnotVector.h:115:18: error: macro "max" requires 2 arguments, but only 1 given knot max() const; // Max knot val. ^ ../../libSNL/src/snlKnotVector.h:116:18: error: macro "min" requires 2 arguments, but only 1 given knot min() const; // Min knot val. ^ In file included from ./cgx.h:25:0, from uselibSNL.h:8, from uselibSNL.cpp:31: /usr/include/c++/7/bits/stl_algobase.h:195:5: error: expected unqualified-id before ‘const’ min(const _Tp& __a, const _Tp& __b) ^ /usr/include/c++/7/bits/stl_algobase.h:195:5: error: expected ‘)’ before ‘const’ /usr/include/c++/7/bits/stl_algobase.h:195:5: error: expected ‘)’ before ‘const’ /usr/include/c++/7/bits/stl_algobase.h:195:5: error: expected initializer before ‘const’ /usr/include/c++/7/bits/stl_algobase.h:219:5: error: expected unqualified-id before ‘const’ max(const _Tp& __a, const _Tp& __b) ^ /usr/include/c++/7/bits/stl_algobase.h:219:5: error: expected ‘)’ before ‘const’ /usr/include/c++/7/bits/stl_algobase.h:219:5: error: expected ‘)’ before ‘const’ /usr/include/c++/7/bits/stl_algobase.h:219:5: error: expected initializer before ‘const’ In file included from /usr/include/c++/7/bits/char_traits.h:39:0, from /usr/include/c++/7/ios:40, from /usr/include/c++/7/ostream:38, from /usr/include/c++/7/iostream:39, from uselibSNL.cpp:33: /usr/include/c++/7/bits/stl_algobase.h:246:7: error: expected primary-expression before ‘if’ if (__comp(__b, __a)) ^~ /usr/include/c++/7/bits/stl_algobase.h:246:7: error: expected ‘}’ before ‘if’ /usr/include/c++/7/bits/stl_algobase.h:246:7: error: expected ‘;’ before ‘if’ /usr/include/c++/7/bits/stl_algobase.h:248:7: error: expected unqualified-id before ‘return’ return __a; ^~~~~~ /usr/include/c++/7/bits/stl_algobase.h:268:7: error: expected primary-expression before ‘if’ if (__comp(__a, __b)) ^~ /usr/include/c++/7/bits/stl_algobase.h:268:7: error: expected ‘}’ before ‘if’ /usr/include/c++/7/bits/stl_algobase.h:268:7: error: expected ‘;’ before ‘if’ /usr/include/c++/7/bits/stl_algobase.h:270:7: error: expected unqualified-id before ‘return’ return __a; ^~~~~~ /usr/include/c++/7/bits/stl_algobase.h:271:5: error: expected declaration before ‘}’ token } I want to some advice or hints. I'm glad I recieved some reply. Thank you. Last edited by wyldckat; April 25, 2019 at 08:26. Reason: Added [CODE][/CODE] markers |
|
April 25, 2019, 16:29 |
|
#2 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Greetings Hiroaki Sumikawa,
I had some time today and I was curious about this... as far as I can figure out, the authors that released CalculiX 2.14 were using Ubuntu 16.04 and not 18.04. So here is how I managed to build it on Ubuntu 18.04, but using GCC 5:
edit: Yep, it's confirmed that it works. However, I did initially follow the instructions given on the README file, so I built the latest version that was on Git ready to be built, which is likely 2.14. Best regards, Bruno
__________________
Last edited by wyldckat; April 25, 2019 at 16:37. Reason: see "edit:" |
|
April 25, 2019, 21:43 |
|
#3 |
New Member
Hiroaki Sumikawa
Join Date: Jul 2018
Posts: 9
Rep Power: 8 |
Hello, wyldchat.
Thank you for you reply and kind instruction, I was able to build CalculiX and did tutorials! :-) I'm really thankful to you! Hiroaki |
|
April 9, 2020, 13:01 |
Error during installation of CalculiX (In function `second_':)
|
#4 |
New Member
Prasad ADHAV
Join Date: Apr 2020
Location: Belval, Luxembourg
Posts: 10
Rep Power: 6 |
Hello,
I am Prasad ADHAV. I want to perform coupled simulation using multiple solvers (OpenFOAM, CalculiX, XDEM). I have been following the instructions to install CalculiX and its dependencies as best as I could. I have already installed all the dependencies. In the installation when I say Code:
make Code:
gfortran -fopenmp -Wall -O3 -o bin/ccx_preCICE bin/ccx_2.15.o bin/ccx_2.15.a /home/prasad/SPOOLES.2.2//spooles.a -L/usr/local/lib -lprecice -lstdc++ -L/home/prasad/yaml-cpp-yaml-cpp-0.6.2//build -lyaml-cpp /home/prasad/ARPACK//libarpack_INTEL.a -lpthread -lm -lc /home/prasad/ARPACK//libarpack_INTEL.a(second.o): In function `second_': second.f:(.text+0x14): undefined reference to `etime_' collect2: error: ld returned 1 exit status Makefile:101: recipe for target 'bin/ccx_preCICE' failed make: *** [bin/ccx_preCICE] Error 1 I tried changing the line 24 in ARPACK/UTIL/second.f to Code:
* EXTERNAL ETIME Can anyone tell me how to fix it? Thank you in advance for the help. |
|
Tags |
build error, calulix, cgx |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
how do i fix installation error of ansys 19.0 on ubuntu 18.04 | rid_taki | ANSYS | 15 | June 7, 2021 07:32 |
[foam-extend.org] A smooth installation of foam-3.0-extend on OpenSUSE 13.1 64-bits | cookcaptain | OpenFOAM Installation | 7 | May 26, 2015 12:22 |
CFX11 + Fortran compiler ? | Mohan | CFX | 20 | March 30, 2011 19:56 |
64bitrhel5 OF installation instructions | mirko | OpenFOAM Installation | 2 | August 12, 2008 19:07 |
Installation problems | shellbell1999 | OpenFOAM Installation | 9 | April 6, 2006 14:29 |