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

SU2 3.0 build failure

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By waku2005

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 19, 2014, 06:18
Default SU2 3.0 build failure
  #1
Member
 
Join Date: Nov 2009
Posts: 65
Rep Power: 17
waku2005 is on a distinguished road
Hi all,

Recently I intended to install SU2 3.0 from source (git ver.) but failed to build.
Any informations are highly appreciated.

My environment is as belows:
CentOS 6.5 x86_64
cmake 2.8.12.1 (from source)
metis 5.0.2 (from source)
cgnslib 3.1.3-4 (from source)
mpicxx (mpich2 from system)

Configure and output lines are :
$ ./configure --prefix=/usr/local/SU2 --with-CGNS-lib=/usr/local/cgnslib/lib --with-CGNS-include=/usr/local/cgnslib/include --with-Metis-lib=/usr/local/metis/lib --with-Metis-include=/usr/local/metis/include --with-Metis-version=5 --with-MPI=/usr/bin/mpicxx
[snip]
Build Configuration Summary:

Source code location: /home/waku/SU2
Install location: /usr/local/SU2
Version: 3.0.0 "eagle"
Compiler: /usr/bin/mpicxx
Preprocessor flags:
Compiler flags: -g -O2
Linker flags:
CGNS support: yes
MPI support: yes
Metis support: yes
TecIO support: no
Mutation++ support: no

Build SU2_CFD: yes
Build SU2_DDC: yes
Build SU2_GPC: yes
Build SU2_MAC: yes
Build SU2_MDC: yes
Build SU2_PBC: yes
Build SU2_SOL: yes
Build SU2_GDC: yes
Build SU2_UMC: yes

---------------------------------------------------------

$ make
Making all in Common/lib
make[1]: Entering directory `/home/waku/SU2/Common/lib'
/usr/bin/mpicxx -DPACKAGE_NAME=\"SU\^2\" -DPACKAGE_TARNAME=\"SU\^2\" -DPACKAGE_VERSION=\"3.0.0\ \"eagle\"\" -DPACKAGE_STRING=\"SU\^2\ 3.0.0\ \"eagle\"\" -DPACKAGE_BUGREPORT=\"susquared-dev@lists.stanford.edu\" -DPACKAGE=\"SU\^2\" -DVERSION=\"3.0.0\ \"eagle\"\" -I. -I/usr/local/cgnslib/include -I/usr/local/metis/include -DMETIS_5 -DNO_TECIO -DNO_MUTATIONPP -g -O2 -MT ../src/libSU2_a-geometry_structure.o -MD -MP -MF ../src/.deps/libSU2_a-geometry_structure.Tpo -c -o ../src/libSU2_a-geometry_structure.o `test -f '../src/geometry_structure.cpp' || echo './'`../src/geometry_structure.cpp
../src/geometry_structure.cpp: In member function 'void CPhysicalGeometry::Read_CGNS_Format(CConfig*, std::string, short unsigned int, short unsigned int)':
../src/geometry_structure.cpp:1450: error: 'ZoneType_t' was not declared in this scope
../src/geometry_structure.cpp:1450: error: expected ';' before 'zonetype'
../src/geometry_structure.cpp:1451: error: 'DataType_t' was not declared in this scope
../src/geometry_structure.cpp:1451: error: expected ';' before 'datatype'
../src/geometry_structure.cpp:1454: error: 'ElementType_t' was not declared in this scope
../src/geometry_structure.cpp:1454: error: expected ';' before 'elemType'
../src/geometry_structure.cpp:1567: error: 'zonetype' was not declared in this scope
../src/geometry_structure.cpp:1621: error: 'datatype' was not declared in this scope
../src/geometry_structure.cpp:1625: error: 'datatype' was not declared in this scope
../src/geometry_structure.cpp:1625: error: 'RealDouble' was not declared in this scope
../src/geometry_structure.cpp:1673: error: 'elemType' was not declared in this scope
../src/geometry_structure.cpp:1687: error: 'elemType' was not declared in this scope
../src/geometry_structure.cpp:1694: error: 'elemType' was not declared in this scope
../src/geometry_structure.cpp:1695: error: 'NODE' was not declared in this scope
../src/geometry_structure.cpp:1699: error: 'BAR_2' was not declared in this scope
../src/geometry_structure.cpp:1703: error: 'BAR_3' was not declared in this scope
../src/geometry_structure.cpp:1707: error: 'TRI_3' was not declared in this scope
../src/geometry_structure.cpp:1711: error: 'QUAD_4' was not declared in this scope
../src/geometry_structure.cpp:1715: error: 'TETRA_4' was not declared in this scope
../src/geometry_structure.cpp:1719: error: 'HEXA_8' was not declared in this scope
../src/geometry_structure.cpp:1723: error: 'PENTA_6' was not declared in this scope
../src/geometry_structure.cpp:1727: error: 'PYRA_5' was not declared in this scope
../src/geometry_structure.cpp: In member function 'virtual void CPhysicalGeometry::SetColorGrid(CConfig*)':
../src/geometry_structure.cpp:5023: error: cannot convert 'int*' to 'idx_t*' for argument '1' to 'int METIS_SetDefaultOptions(idx_t*)'
../src/geometry_structure.cpp:5025: error: cannot convert 'int*' to 'idx_t*' for argument '1' to 'int METIS_PartMeshNodal(idx_t*, idx_t*, idx_t*, idx_t*, idx_t*, idx_t*, idx_t*, real_t*, idx_t*, idx_t*, idx_t*, idx_t*)'
make[1]: *** [../src/libSU2_a-geometry_structure.o] Error 1
make[1]: Leaving directory `/home/waku/SU2/Common/lib'
make: *** [all-recursive] Error 1


Thanks in advance
waku2005
waku2005 is offline   Reply With Quote

Old   January 20, 2014, 23:51
Default
  #2
Member
 
Join Date: Nov 2009
Posts: 65
Rep Power: 17
waku2005 is on a distinguished road
Hi all

I solved the above build failure. SU2 works now !
What I did are as follows:
1) Change variables derived from CGNSlib like "BAR_2" to CGNS_ENUMV(BAR_2)
2) Add "-L/usr/lib64 -lhdf5_hl -lhdf5 to the $(CXXLIB) line in SU2_*/obj directories.

Regards
waku2005
JuB likes this.
waku2005 is offline   Reply With Quote

Old   January 23, 2014, 12:42
Default
  #3
JuB
New Member
 
Join Date: Jan 2014
Posts: 3
Rep Power: 12
JuB is on a distinguished road
Hello guys,

I have a similar problem but I did not understand what I have to do. I would very much appreciate some help. Thanks

I get this message:

../src/geometry_structure.cpp:5027:34: error: cannot convert ‘int*’ to ‘idx_t* {aka long int*}’ for argument ‘1’ to ‘int METIS_SetDefaultOptions(idx_t*)’
../src/geometry_structure.cpp:5029:102: error: cannot convert ‘int*’ to ‘idx_t* {aka long int*}’ for argument ‘1’ to ‘int METIS_PartMeshNodal(idx_t*, idx_t*, idx_t*, idx_t*, idx_t*, idx_t*, idx_t*, real_t*, idx_t*, idx_t*, idx_t*, idx_t*)’
make[1]: *** [../src/libSU2_a-geometry_structure.o] Error 1
make[1]: Leaving directory `/home/ju/Documents/SU2/Su2_v3/Common/lib'
make: *** [all-recursive] Error 1

Regards,
JuB
JuB is offline   Reply With Quote

Old   January 24, 2014, 05:52
Default
  #4
Member
 
Join Date: Nov 2009
Posts: 65
Rep Power: 17
waku2005 is on a distinguished road
Hi JuB

This is my diff file. I hope it helps you.

Best regards
waku2005
Attached Files
File Type: txt geometry_structure.cpp.diff.txt (1.7 KB, 59 views)
waku2005 is offline   Reply With Quote

Old   January 24, 2014, 13:40
Default
  #5
JuB
New Member
 
Join Date: Jan 2014
Posts: 3
Rep Power: 12
JuB is on a distinguished road
Hello waku2005,

It worked! Thanks a lot!

Regards,
JuB
JuB 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
Official release of SU2 V3.0 and SU2 Educational V1.0 fpalacios SU2 News & Announcements 2 January 22, 2014 06:28
SU2 suite has moved to GitHub! fpalacios SU2 News & Announcements 0 August 12, 2013 03:07
System Build Advice for FEA cycleback Hardware 1 February 8, 2013 21:53
Welcome to the Stanford University Unstructured (SU2) forum! economon SU2 0 January 7, 2013 03:48
OpenFOAM-1.6.x PV3FoamReader build failure. aunola OpenFOAM Installation 2 September 5, 2009 09:22


All times are GMT -4. The time now is 14:40.