CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > SU2 > SU2 Installation

AD make error

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 25, 2018, 00:26
Default AD make error
  #1
New Member
 
Join Date: Jul 2016
Posts: 2
Rep Power: 0
BillEvans is on a distinguished road
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
BillEvans is offline   Reply With Quote

Old   September 25, 2018, 07:43
Default
  #2
pcg
Senior Member
 
Pedro Gomes
Join Date: Dec 2017
Posts: 466
Rep Power: 14
pcg is on a distinguished road
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
pcg is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 18:47.