CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   SU2 Installation (http://www.cfd-online.com/Forums/su2-installation/)
-   -   Compiler Error SU2 on OSX (http://www.cfd-online.com/Forums/su2-installation/121993-compiler-error-su2-osx.html)

justingray August 9, 2013 13:35

Compiler Error SU2 on OSX
 
Attempting to compile su2 on my OS-X 10.8 machine yeilds a few errors. I cloned the repository of github then made sure I had the other pre-reqs.

I installed openmpi and metis-5 through homebrew. Then i used the following configure command

Code:

./configure --prefix=/usr/local --with-Metis-lib=/usr/local/Cellar/metis/5.0.2/lib --with-Metis-include=/usr/local/Cellar/metis/5.0.2/include --with-Metis-version=5 --with-MPI=/usr/local/bin/mpic++
I also tried it with mpicxx instead of mpic++

The configure seems to go ok, and no errors are reported. So I tried to make, but get the following error after it churns for a whursive] Error 1

Code:

../src/SU2_SMC.cpp:92:37: error: variable length array of non-POD element type 'vector<unsigned long>'
  vector<unsigned long> SlidingPoint[nZone][MAX_NUMBER_SLIDING][2];                    /*!< \brief SlidingPoint[Periodic bc] and return the point that
                                    ^
../src/SU2_SMC.cpp:94:35: error: variable length array of non-POD element type 'vector<unsigned long>'
        vector<unsigned long> SlidingElem[nZone][MAX_NUMBER_SLIDING];                          /*!< \brief SlidingElem[Periodic bc] and return the elements that
                                        ^
../src/SU2_SMC.cpp:96:42: error: variable length array of non-POD element type 'vector<unsigned long>'
  vector<unsigned long> NewBoundaryPoints[nZone][MAX_NUMBER_MARKER];  /*!< \brief Vector containing new points appearing on multiple boundaries. */
                                        ^
../src/SU2_SMC.cpp:97:40: error: variable length array of non-POD element type 'vector<unsigned long>'
        vector<unsigned long> OldBoundaryElems[nZone][MAX_NUMBER_MARKER];  /*!< \brief Vector of old boundary elements. */
                                              ^
4 errors generated.
make[1]: *** [___bin_SU2_SMC-SU2_SMC.o] Error 1
make: *** [all-recursive] Error 1

I'm not really sure what the next step is here

justingray August 19, 2013 12:51

It turns out that there was no problem compiling SU2_CFD ,but rather in a little used side module. Compiling worked fine when I added

--disable-SMC to the config command. The final config command was as follows

Code:

./configure --prefix=/usr/local --with-Metis-lib=/usr/local/Cellar/metis/5.0.2/lib --with-Metis-include=/usr/local/Cellar/metis/5.0.2/include --with-Metis-version=5 --with-MPI=/usr/local/bin/mpicxx --disable-SMC

fpalacios August 19, 2013 14:37

Thanks Justin for your feedback,

We have fixed this issue in the developer's version on GitHub.

Best,
Francisco


Quote:

Originally Posted by justingray (Post 446723)
It turns out that there was no problem compiling SU2_CFD ,but rather in a little used side module. Compiling worked fine when I added

--disable-SMC to the config command. The final config command was as follows

Code:

./configure --prefix=/usr/local --with-Metis-lib=/usr/local/Cellar/metis/5.0.2/lib --with-Metis-include=/usr/local/Cellar/metis/5.0.2/include --with-Metis-version=5 --with-MPI=/usr/local/bin/mpicxx --disable-SMC



All times are GMT -4. The time now is 09:31.