{"action":"opened","issue":{"url":"https://api.github.com/repos/su2code/SU2/issues/566","repository_url":"https://api.github.com/repos/su2code/SU2","labels_url":"https://api.github.com/repos/su2code/SU2/issues/566/labels{/name}","comments_url":"https://api.github.com/repos/su2code/SU2/issues/566/comments","events_url":"https://api.github.com/repos/su2code/SU2/issues/566/events","html_url":"https://github.com/su2code/SU2/issues/566","id":353648934,"node_id":"MDU6SXNzdWUzNTM2NDg5MzQ=","number":566,"title":"swig cannot recognize `-qopenmp -O3` during compilation","user":{"login":"chengdi123000","id":10754664,"node_id":"MDQ6VXNlcjEwNzU0NjY0","avatar_url":"https://avatars0.githubusercontent.com/u/10754664?v=4","gravatar_id":"","url":"https://api.github.com/users/chengdi123000","html_url":"https://github.com/chengdi123000","followers_url":"https://api.github.com/users/chengdi123000/followers","following_url":"https://api.github.com/users/chengdi123000/following{/other_user}","gists_url":"https://api.github.com/users/chengdi123000/gists{/gist_id}","starred_url":"https://api.github.com/users/chengdi123000/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chengdi123000/subscriptions","organizations_url":"https://api.github.com/users/chengdi123000/orgs","repos_url":"https://api.github.com/users/chengdi123000/repos","events_url":"https://api.github.com/users/chengdi123000/events{/privacy}","received_events_url":"https://api.github.com/users/chengdi123000/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-08-24T05:26:14Z","updated_at":"2018-08-24T05:26:14Z","closed_at":null,"author_association":"NONE","body":"error msg:\r\n```shell\r\n[dic17007@cn01 SU2]$ make -j8\r\nMaking all in externals\r\nmake[1]: Entering directory `/home/dic17007/downloads/SU2/SU2/externals'\r\nMaking all in tecio\r\nmake[2]: Entering directory `/home/dic17007/downloads/SU2/SU2/externals/tecio'\r\nmake[2]: Nothing to be done for `all'.\r\nmake[2]: Leaving directory `/home/dic17007/downloads/SU2/SU2/externals/tecio'\r\nMaking all in metis\r\nmake[2]: Entering directory `/home/dic17007/downloads/SU2/SU2/externals/metis'\r\nmake[2]: Nothing to be done for `all'.\r\nmake[2]: Leaving directory `/home/dic17007/downloads/SU2/SU2/externals/metis'\r\nMaking all in parmetis\r\nmake[2]: Entering directory `/home/dic17007/downloads/SU2/SU2/externals/parmetis'\r\nmake[2]: Nothing to be done for `all'.\r\nmake[2]: Leaving directory `/home/dic17007/downloads/SU2/SU2/externals/parmetis'\r\nMaking all in cgns\r\nmake[2]: Entering directory `/home/dic17007/downloads/SU2/SU2/externals/cgns'\r\nmake[2]: Nothing to be done for `all'.\r\nmake[2]: Leaving directory `/home/dic17007/downloads/SU2/SU2/externals/cgns'\r\nmake[2]: Entering directory `/home/dic17007/downloads/SU2/SU2/externals'\r\nmake[2]: Nothing to be done for `all-am'.\r\nmake[2]: Leaving directory `/home/dic17007/downloads/SU2/SU2/externals'\r\nmake[1]: Leaving directory `/home/dic17007/downloads/SU2/SU2/externals'\r\nMaking all in Common/lib\r\nmake[1]: Entering directory `/home/dic17007/downloads/SU2/SU2/Common/lib'\r\nmake[1]: Nothing to be done for `all'.\r\nmake[1]: Leaving directory `/home/dic17007/downloads/SU2/SU2/Common/lib'\r\nMaking all in SU2_PY\r\nmake[1]: Entering directory `/home/dic17007/downloads/SU2/SU2/SU2_PY'\r\nmake[1]: Nothing to be done for `all'.\r\nmake[1]: Leaving directory `/home/dic17007/downloads/SU2/SU2/SU2_PY'\r\nMaking all in SU2_CFD/obj\r\nmake[1]: Entering directory `/home/dic17007/downloads/SU2/SU2/SU2_CFD/obj'\r\nmake[1]: Nothing to be done for `all'.\r\nmake[1]: Leaving directory `/home/dic17007/downloads/SU2/SU2/SU2_CFD/obj'\r\nMaking all in SU2_DOT/obj\r\nmake[1]: Entering directory `/home/dic17007/downloads/SU2/SU2/SU2_DOT/obj'\r\nmake[1]: Nothing to be done for `all'.\r\nmake[1]: Leaving directory `/home/dic17007/downloads/SU2/SU2/SU2_DOT/obj'\r\nMaking all in SU2_MSH/obj\r\nmake[1]: Entering directory `/home/dic17007/downloads/SU2/SU2/SU2_MSH/obj'\r\nmake[1]: Nothing to be done for `all'.\r\nmake[1]: Leaving directory `/home/dic17007/downloads/SU2/SU2/SU2_MSH/obj'\r\nMaking all in SU2_DEF/obj\r\nmake[1]: Entering directory `/home/dic17007/downloads/SU2/SU2/SU2_DEF/obj'\r\nmake[1]: Nothing to be done for `all'.\r\nmake[1]: Leaving directory `/home/dic17007/downloads/SU2/SU2/SU2_DEF/obj'\r\nMaking all in SU2_SOL/obj\r\nmake[1]: Entering directory `/home/dic17007/downloads/SU2/SU2/SU2_SOL/obj'\r\nmake[1]: Nothing to be done for `all'.\r\nmake[1]: Leaving directory `/home/dic17007/downloads/SU2/SU2/SU2_SOL/obj'\r\nMaking all in SU2_GEO/obj\r\nmake[1]: Entering directory `/home/dic17007/downloads/SU2/SU2/SU2_GEO/obj'\r\nmake[1]: Nothing to be done for `all'.\r\nmake[1]: Leaving directory `/home/dic17007/downloads/SU2/SU2/SU2_GEO/obj'\r\nMaking all in SU2_PY/pySU2\r\nmake[1]: Entering directory `/home/dic17007/downloads/SU2/SU2/SU2_PY/pySU2'\r\nmake real;\r\nmake[2]: Entering directory `/home/dic17007/downloads/SU2/SU2/SU2_PY/pySU2'\r\nswig -DHAVE_MPI -qopenmp -O3 -Wall -I/home/dic17007/miniconda3/include/python3.6m -I/home/dic17007/miniconda3/include/python3.6m -I/home/dic17007/.local/lib/python2.7/site-packages/mpi4py/include -I/home/dic17007/miniconda3/lib/python3.6/site-packages/mpi4py/include -I/Library/Python/2.7/site-packages/mpi4py/include -outdir ./ -o SU2_APIPYTHON_wrap.cxx -c++ -python /home/dic17007/downloads/SU2/SU2/SU2_PY/pySU2/pySU2.i\r\nswig error : Unrecognized option -qopenmp\r\nswig error : Unrecognized option -O3\r\nUse 'swig -help' for available options.\r\nmake[2]: *** [SU2_APIPYTHON_wrap.cxx] Error 1\r\nmake[2]: Leaving directory `/home/dic17007/downloads/SU2/SU2/SU2_PY/pySU2'\r\nmake[1]: *** [all] Error 2\r\nmake[1]: Leaving directory `/home/dic17007/downloads/SU2/SU2/SU2_PY/pySU2'\r\nmake: *** [all-recursive] Error 1\r\n```\r\n\r\nmy configure:\r\n```shell\r\nCPPFLAGS=\"-qopenmp -O3\" \\\r\nLDFLAGS=\"-parallel\" \\\r\nPYTHON_CONFIG=`which python3-config` \\\r\nCC=`which mpiicc` \\\r\nCXX=`which mpiicpc` \\\r\n./configure --prefix=$HOME/share/SU2/6.1 \\\r\n--enable-mpi \\\r\n--with-HDF5-lib=/apps2/hdf5/1.8.17-ics-impi/lib \\\r\n--with-HDF5-include=/apps2/hdf5/1.8.17-ics-impi/include \\\r\n--with-ZLIB-lib=/apps2/zlib/1.2.8-ics/lib \\\r\n--with-ZLIB-include=/apps2/zlib/1.2.8-ics/include \\\r\n--with-SZIP-lib=/home/dic17007/share/szip/2.1.1/lib \\\r\n--with-SZIP-include=/home/dic17007/share/szip/2.1.1/include \\\r\n--enable-PY_WRAPPER \\\r\n--enable-tecio \\\r\n--enable-parmetis \\\r\n--enable-metis \\\r\n--enable-cgns\r\n\r\nmake -j8\r\n```\r\n\r\nI manually build the output object `SU2_APIPYTHON_wrap.cxx` and complete the build:\r\n```shell\r\n[dic17007@cn01 SU2]$ cd /home/dic17007/downloads/SU2/SU2/SU2_PY/pySU2\r\n[dic17007@cn01 pySU2]$ swig -DHAVE_MPI -Wall -I/home/dic17007/miniconda3/include/python3.6m -I/home/dic17007/miniconda3/include/python3.6m -I/home/dic17007/.local/lib/python2.7/site-packages/mpi4py/include -I/home/dic17007/miniconda3/lib/python3.6/site-packages/mpi4py/include -I/Library/Python/2.7/site-packages/mpi4py/include -outdir ./ -o SU2_APIPYTHON_wrap.cxx -c++ -python /home/dic17007/downloads/SU2/SU2/SU2_PY/pySU2/pySU2.i\r\n[dic17007@cn01 pySU2]$ cd -\r\n/home/dic17007/downloads/SU2/SU2\r\n[dic17007@cn01 SU2]$ make\r\n# ... \r\n# success\r\n```"}}
{"actor":{"display_login":"chengdi123000"}}