Personal tools
You are here: Home Forum Install & build libmed 3.3.1 build failure

libmed 3.3.1 build failure

Up to Install & build

libmed 3.3.1 build failure

Posted by Fabio Rossi at July 05. 2018

I am trying to build latest libmed 3.3.1 but I get the following error:

[ 89%] Building C object src/ci/CMakeFiles/_ci_static.dir/_MEDlocalizationInfoByName236.c.o
/var/tmp/portage/sci-libs/libmed-3.3.1/work/med-3.3.1_SRC/src/MEDiteratorsF.f:15:56:

      &  MED_OCTA12, MED_PYRA13, MED_PENTA15, MED_PENTA18, MED_HEXA20,
                                                        1
Error: Symbol ‘med_penta18’ must be a PARAMETER in DATA statement at (1)

On the same system I am able to build older version 3.2.1. I am using gcc 6.4.0.

Any idea?

Re: libmed 3.3.1 build failure

Posted by Fabio Rossi at July 06. 2018

I am sorry, the previous log is partially misleading because of parallel building, here is a revised version:

<pre>

Scanning dependencies of target medfwrap
make[2]: Leaving directory '/var/tmp/portage/sci-libs/libmed-3.3.1/work/libmed-3.3.1_build'
make -f src/CMakeFiles/medfwrap.dir/build.make src/CMakeFiles/medfwrap.dir/requires
make[2]: Entering directory '/var/tmp/portage/sci-libs/libmed-3.3.1/work/libmed-3.3.1_build'
make[2]: Nothing to be done for 'src/CMakeFiles/medfwrap.dir/requires'.
make[2]: Leaving directory '/var/tmp/portage/sci-libs/libmed-3.3.1/work/libmed-3.3.1_build'
make -f src/CMakeFiles/medfwrap.dir/build.make src/CMakeFiles/medfwrap.dir/build
make[2]: Entering directory '/var/tmp/portage/sci-libs/libmed-3.3.1/work/libmed-3.3.1_build'
[ 45%] Building Fortran object src/CMakeFiles/medfwrap.dir/MEDiteratorsF.f.o
cd /var/tmp/portage/sci-libs/libmed-3.3.1/work/libmed-3.3.1_build/src && /usr/bin/x86_64-pc-linux-gnu-gfortran -DH5_USE_16_API -I/usr/include -I/var/tmp/portage/sci-libs/libmed-3.3.1/work/libmed-3.3.1_build/include -I/var/tmp/portage/sci-libs/libmed-3.3.1/work/med-3.3.1_SRC/include  -O2 -pipe -O2 -pipe -fPIC   -o CMakeFiles/medfwrap.dir/MEDiteratorsF.f.o -c /var/tmp/portage/sci-libs/libmed-3.3.1/work/med-3.3.1_SRC/src/MEDiteratorsF.f
/var/tmp/portage/sci-libs/libmed-3.3.1/work/med-3.3.1_SRC/src/MEDiteratorsF.f:15:56:

      &  MED_OCTA12, MED_PYRA13, MED_PENTA15, MED_PENTA18, MED_HEXA20,
                                                        1
Error: Symbol ‘med_penta18’ must be a PARAMETER in DATA statement at (1)
make[2]: *** [src/CMakeFiles/medfwrap.dir/build.make:63: src/CMakeFiles/medfwrap.dir/MEDiteratorsF.f.o] Error 1
make[2]: Leaving directory '/var/tmp/portage/sci-libs/libmed-3.3.1/work/libmed-3.3.1_build'
make[1]: *** [CMakeFiles/Makefile2:229: src/CMakeFiles/medfwrap.dir/all] Error 2
make[1]: Leaving directory '/var/tmp/portage/sci-libs/libmed-3.3.1/work/libmed-3.3.1_build'
make: *** [Makefile:130: all] Error 2
</pre>

Re: libmed 3.3.1 build failure

Posted by Fabio Rossi at Wednesday 11:05

no fortran expert here able to solve the issue?

Powered by Ploneboard
Document Actions