Closed thefab closed 5 years ago
not so easy, after the revert, I have a build error:
g++ -DHAVE_CONFIG_H -I. -I../.. -I./ -I../nco -I/opt/metwork-mfext-master/opt/scientific_core/include -I/opt/metwork-mfext-master/opt/scientific_core/include -I/opt/metwork-mfext-master/opt/scientific_core/../core/include -I/opt/metwork-mfext-master/opt/scientific/include -I/opt/metwork-mfext-master/opt/scientific/../scientific_core/include -g -O2 -MT ncap2.o -MD -MP -MF .deps/ncap2.Tpo -c -o ncap2.o ncap2.cc
ncap2.cc: In function 'int main(int, char**)':
ncap2.cc:410: error: invalid conversion from 'char*' to 'int'
ncap2.cc:410: error: initializing argument 1 of 'int nc_set_log_level(int)'
make[5]: *** [ncap2.o] Error 1
make[5]: Leaving directory `/drone/src/github.com/metwork-framework/mfextaddon_scientific/layers/layer1_scientific/0015_nco/build/nco-4.7.6/src/nco++'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/drone/src/github.com/metwork-framework/mfextaddon_scientific/layers/layer1_scientific/0015_nco/build/nco-4.7.6/src'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/drone/src/github.com/metwork-framework/mfextaddon_scientific/layers/layer1_scientific/0015_nco/build/nco-4.7.6'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/drone/src/github.com/metwork-framework/mfextaddon_scientific/layers/layer1_scientific/0015_nco/build/nco-4.7.6'
make[1]: *** [build] Error 2
make[1]: Leaving directory `/drone/src/github.com/metwork-framework/mfextaddon_scientific/layers/layer1_scientific/0015_nco'
make: *** [/opt/metwork-mfext-master/opt/scientific/lib/libnco.so] Error 2
make[3]: *** [all] Error 2
make[3]: Leaving directory `/drone/src/github.com/metwork-framework/mfextaddon_scientific/layers/layer1_scientific/0015_nco'
make[2]: *** [layer] Error 1
make[2]: Leaving directory `/drone/src/github.com/metwork-framework/mfextaddon_scientific/layers/layer1_scientific'
make[1]: *** [all] Error 1
make[1]: Leaving directory `/drone/src/github.com/metwork-framework/mfextaddon_scientific/layers'
make: *** [all] Error 2
maybe it is linked to a mfext change ?
probably this: metwork-framework/mfext#427
So I revert my revert and the build will stay in failed state
libgfortran.so.4 is missing (it's a system dependency of the scl used to build netcdf fortran in mfext). It should be corrected by adding libgfortran4 in .system_dependencies of layer scientific_core@mfext (done in https://github.com/metwork-framework/mfext/pull/452). By the way I don't understand why it works on centos7...
since the merge of #33, the build fail in integration_tests in centos6
=> I revert the commit