Hello everyone,
I am facing some problems when installing Elmer on my macOS 12.6.
I am using cmake version 3.24.3 and Apple clang version 14.0.0 (clang-1400.0.29.102).
After cloning the code and generating the make files, make or make install gives this error:
[ 58%] Building C object fem/src/CMakeFiles/elmersolver.dir/CPUTime.c.o
/Users/victor/elmer/elmerfem/fem/src/Load.c:591:3: error: implicit declaration of function 'var_copy_transpose' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
var_copy_transpose(name,values,*nrows,*ncols);
^
1 error generated.
make[2]: *** [fem/src/CMakeFiles/elmersolver.dir/Load.c.o] Error 1
make[2]: *** Waiting for unfinished jobs....
[ 58%] Building C object fem/src/view3d/CMakeFiles/view3d.dir/BiQuadraticUtil.c.o
make[1]: *** [fem/src/CMakeFiles/elmersolver.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 58%] Building C object fem/src/view3d/CMakeFiles/view3d.dir/BiCubicUtil.c.o
[ 58%] Building C object fem/src/view3d/CMakeFiles/view3d.dir/RayTrace.c.o
[ 58%] Building C object fem/src/view3d/CMakeFiles/view3d.dir/VectorUtil.c.o
[ 58%] Building C object fem/src/view3d/CMakeFiles/view3d.dir/second.c.o
[ 58%] Linking C static library libview3d.a
[ 58%] Built target view3d
make: *** [all] Error 2
I tried to solve this problem for a long time, but with no success. Can somebody give me a hint how to finish installing?
Thank you!
Strange error when installing Elmer on macOS 12.6
-
- Site Admin
- Posts: 4841
- Joined: 22 Aug 2009, 11:57
- Antispam: Yes
- Location: Espoo, Finland
- Contact:
Re: Strange error when installing Elmer on macOS 12.6
Hi
The "var_copy_transpose" is defined under matc. I wonder what is different on macOS compared to other systems that it does not find it.
-Peter
The "var_copy_transpose" is defined under matc. I wonder what is different on macOS compared to other systems that it does not find it.
Code: Select all
elmeruser@elmeruser-VirtualBox:~/elmerfem$ grep -r var_copy_transpose
fem/src/Load.c: var_copy_transpose(name,values,*nrows,*ncols);
matc/src/variable.c:void var_copy_transpose(char *name,double *values,int nrows,int ncols)
Re: Strange error when installing Elmer on macOS 12.6
Thanks for your quick reply!
Any idea how to tell macOS what it is..?
When I do the grep command, I get:
victor@victors-MBP-2 build % grep -r var_copy_transpose
Binary file ./matc/src/CMakeFiles/matc.dir/variable.c.o matches
Binary file ./matc/src/libmatc.dylib matches
Any idea how to tell macOS what it is..?
When I do the grep command, I get:
victor@victors-MBP-2 build % grep -r var_copy_transpose
Binary file ./matc/src/CMakeFiles/matc.dir/variable.c.o matches
Binary file ./matc/src/libmatc.dylib matches
-
- Posts: 2362
- Joined: 25 Jan 2019, 01:28
- Antispam: Yes
Re: Strange error when installing Elmer on macOS 12.6
Thanks for your answer.
I followed the hint given in that post. Now it finds several C99 "errors", wrong declarations, and so on in the Load.c file. It must be some problem with the compiler or so...
It's a fresh clone, homebrew, cmake freshly updated... No idea why it doesn't work.
I followed the hint given in that post. Now it finds several C99 "errors", wrong declarations, and so on in the Load.c file. It must be some problem with the compiler or so...
It's a fresh clone, homebrew, cmake freshly updated... No idea why it doesn't work.
-
- Posts: 2362
- Joined: 25 Jan 2019, 01:28
- Antispam: Yes