|
[Sponsors] |
September 25, 2018, 00:26 |
AD make error
|
#1 |
New Member
Join Date: Jul 2016
Posts: 2
Rep Power: 0 |
Hi everyone,
I got the following errors while compiling the code on CentOS 7 (gcc 4.8.5) Making all in Common/lib make[2]: Entering directory `/home/bu/SU2/SU2_AD/Common/lib' CXX ../src/libSU2_AD_a-config_structure.o In file included from ../../../externals/medi/include/medi/ampi/ampi.hpp:41:0, from ../../../externals/medi/include/medi/medi.hpp:33, from ../../../Common/lib/../src/../include/./mpi_structure.hpp:55, from ../../../Common/lib/../src/../include/config_structure.hpp:41, from ../../../Common/lib/../src/config_structure.cpp:38: ../../../externals/medi/include/medi/ampi/../../../generated/medi/ampiFunctions.hpp: In function ‘int medi::AMPI_T_cvar_write(MPI_T_cvar_handle, const void*)’: ../../../externals/medi/include/medi/ampi/../../../generated/medi/ampiFunctions.hpp:9635:40: error: invalid conversion from ‘const void*’ to ‘void*’ [-fpermissive] return MPI_T_cvar_write(handle, buf); ^ In file included from ../../../Common/lib/../src/../include/./mpi_structure.hpp:42:0, from ../../../Common/lib/../src/../include/config_structure.hpp:41, from ../../../Common/lib/../src/config_structure.cpp:38: /usr/include/mpich-x86_64/mpi.h:1447:5: error: initializing argument 2 of ‘int MPI_T_cvar_write(MPI_T_cvar_handle, void*)’ [-fpermissive] int MPI_T_cvar_write(MPI_T_cvar_handle handle, void *buf); ^ In file included from ../../../externals/medi/include/medi/ampi/ampi.hpp:41:0, from ../../../externals/medi/include/medi/medi.hpp:33, from ../../../Common/lib/../src/../include/./mpi_structure.hpp:55, from ../../../Common/lib/../src/../include/config_structure.hpp:41, from ../../../Common/lib/../src/config_structure.cpp:38: ../../../externals/medi/include/medi/ampi/../../../generated/medi/ampiFunctions.hpp: In function ‘int medi::AMPI_T_pvar_write(MPI_T_pvar_session, MPI_T_pvar_handle, const void*)’: ../../../externals/medi/include/medi/ampi/../../../generated/medi/ampiFunctions.hpp:9732:49: error: invalid conversion from ‘const void*’ to ‘void*’ [-fpermissive] return MPI_T_pvar_write(session, handle, buf); ^ In file included from ../../../Common/lib/../src/../include/./mpi_structure.hpp:42:0, from ../../../Common/lib/../src/../include/config_structure.hpp:41, from ../../../Common/lib/../src/config_structure.cpp:38: /usr/include/mpich-x86_64/mpi.h:1460:5: error: initializing argument 3 of ‘int MPI_T_pvar_write(MPI_T_pvar_session, MPI_T_pvar_handle, void*)’ [-fpermissive] int MPI_T_pvar_write(MPI_T_pvar_session session, MPI_T_pvar_handle handle, void *buf); ^ make[2]: *** [../src/libSU2_AD_a-config_structure.o] Error 1 make[2]: Leaving directory `/home/bu/SU2/SU2_AD/Common/lib' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/bu/SU2/SU2_AD' make: *** [SU2_AD] Error 2 |
|
September 25, 2018, 07:43 |
|
#2 |
Senior Member
Pedro Gomes
Join Date: Dec 2017
Posts: 466
Rep Power: 14 |
I am guessing this is the very same issue so I will leave the solution here too:
https://github.com/su2code/SU2/issues/587 Regards and thanks for your interest in SU2. Pedro |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Mesquite - Adaptive mesh refinement / coarsening? | philippose | OpenFOAM Running, Solving & CFD | 94 | January 27, 2016 10:40 |
Undeclared Identifier Errof UDF | SteveGoat | Fluent UDF and Scheme Programming | 7 | October 15, 2014 08:11 |
Version 15 on Mac OS X | gschaider | OpenFOAM Installation | 113 | December 2, 2009 11:23 |
Installation OF1.5-dev | ttdtud | OpenFOAM Installation | 46 | May 5, 2009 03:32 |
Regarding FoamX running Kindly help out | hariya03 | OpenFOAM Pre-Processing | 0 | April 18, 2008 05:26 |