Page 1 of 1

[Solved] Error with SALOME "CFDSTUDY_GenSK.cc"

Posted: Tue Mar 24, 2020 12:13 pm
by antoineb
Hello all,

When trying to install latest CS 6.0.2 with latest SALOME 9.4 to make use of HDF5, MED, CGNS and CFDSTUDY module, I'm facing this error during compile stage :

Code: Select all

Making all in salome
make[2] : on entre dans le répertoire « /home/antoine/Téléchargements/code_saturne-6.0.2.build/salome »
Making all in cfd_study
make[3] : on entre dans le répertoire « /home/antoine/Téléchargements/code_saturne-6.0.2.build/salome/cfd_study »
Making all in idl
make[4] : on entre dans le répertoire « /home/antoine/Téléchargements/code_saturne-6.0.2.build/salome/cfd_study/idl »
; \
/home/antoine/SALOME-9.4.0-DB10-SRC/BINARIES-DB10/Python/bin/python /home/antoine/SALOME-9.4.0-DB10-SRC/BINARIES-DB10/omniORB/bin/omniidl -bcxx -Wba -nf -I/home/antoine/SALOME-9.4.0-DB10-SRC/BINARIES-DB10/omniORB/idl -I/home/antoine/SALOME-9.4.0-DB10-SRC/BINARIES-DB10/KERNEL/idl/salome -I/home/antoine/SALOME-9.4.0-DB10-SRC/BINARIES-DB10/GUI/idl/salome /home/antoine/Téléchargements/code_saturne-6.0.2/salome/cfd_study/idl/CFDSTUDY_Gen.idl
/bin/bash: -c: ligne 0: erreur de syntaxe près du symbole inattendu « ; »
/bin/bash: -c: ligne 0: `; \'
make[4]: *** [Makefile:1101: CFDSTUDY_GenSK.cc] Error 1
make[4] : on quitte le répertoire « /home/antoine/Téléchargements/code_saturne-6.0.2.build/salome/cfd_study/idl »
make[3]: *** [Makefile:640: all-recursive] Error 1
make[3] : on quitte le répertoire « /home/antoine/Téléchargements/code_saturne-6.0.2.build/salome/cfd_study »
make[2]: *** [Makefile:641: all-recursive] Error 1
make[2] : on quitte le répertoire « /home/antoine/Téléchargements/code_saturne-6.0.2.build/salome »
make[1]: *** [Makefile:1595: all-recursive] Error 1
make[1] : on quitte le répertoire « /home/antoine/Téléchargements/code_saturne-6.0.2.build »
make: *** [Makefile:1039: all] Error 2
For info, I'm in salome context during installation.

Any idea how to solve this ?

Best regards,

Antoine

Re: Error with SALOME "CFDSTUDY_GenSK.cc"

Posted: Tue Mar 24, 2020 4:58 pm
by Yvan Fournier
Hello,

This is probably due to a missing prerequisite. Since the Makefile is generated and may depend on your system, could you post /home/antoine/Téléchargements/code_saturne-6.0.2.build/salome/cfd_study/idl/Makefile ?

Another solution would be to do the build outside Salome, not use --with-salome at configure, and simply pass the full paths from the Salome installation for HDF5, MED, and CGNS. In this case you would not have CFDSTUDY, but if you or anyone else really uses the special features from CFDSTUDY (highlighting boundary zones, if you can find out how to do it, or visualize probes), I would love to hear it is actually useful, and could suggest a workaround.

Best regards,

Yvan

Re: Error with SALOME "CFDSTUDY_GenSK.cc"

Posted: Wed Mar 25, 2020 3:23 pm
by antoineb
Hello Yvan,

Thanks for the quick reply !

You can find the makefile attached.

Unfortunately, I already tried to do the install without the --with-salome flag, and I have the exact same issue, as soon as I'm in "salome context". I wanted to use the matching python version for HDF5, MED and CGNS to make sure everything worked fine. However, I can try to install outside of salome context.

Best regards,
Antoine

Re: Error with SALOME "CFDSTUDY_GenSK.cc"

Posted: Wed Mar 25, 2020 4:14 pm
by Yvan Fournier
Hello,

The issue may be due to an empty SALOMEENVCMD (not needed as you are in salome context).

Could you replace line 1101:
$(SALOMEENVCMD); \
With:
$(SALOMEENVCMD) \

An run "make && make install" again ?

Otherwise, you may try remaining in "salome context" but add --disable-salome-gui or --without-salome-gui to the command line.

Best regards,

Yvan

Re: Error with SALOME "CFDSTUDY_GenSK.cc"

Posted: Wed Mar 25, 2020 6:51 pm
by antoineb
Hi Yvan,

I did what you mentioned in the cfd_study and fsi_coupling dirs, and it worked perfect in salome context !

Thanks !
Antoine