Hi Yann,
I now have these lines in the .eb file:
# xml support
configopts += '--enable-xml '
configopts += 'CFLAGS_EXTRA="-I/usr/include/libxml2" '
configopts += 'CPPFLAGS_EXTRA="-I/usr/include/libxml2" '
configopts += 'FC_LIBS_EXTRA="-lxml2 -lz -lm -ldl" '
but unfortunately I still get the same error about the missing file:
mpiifort -DHAVE_CONFIG_H -I. -I../.. -I../../src/77_ddb
-I../../src/77_ddb -I../../src/32_util -I../../src/32_util
-I../../src/44_abitools -I../../src/44_abitools
-I../../src/27_toolbox_oop -I../../src/27_toolbox_oop
-I../../src/44_abitypes_defs -I../../src/44_abitypes_defs
-I../../src/72_response -I../../src/72_response -I../../src/16_hideleave
-I../../src/16_hideleave -I../../src/42_parser -I../../src/42_parser
-I../../src/55_abiutil -I../../src/55_abiutil -I../../src/41_geometry
-I../../src/41_geometry -I../../src/45_geomoptim
-I../../src/45_geomoptim -I../../src/12_hide_mpi -I../../src/12_hide_mpi
-I../../src/10_defs -I../../src/10_defs -I../../src/14_hidewrite
-I../../src/14_hidewrite -I../../src/57_iovars -I../../src/57_iovars
-I../../src/28_numeric_noabirule -I../../src/28_numeric_noabirule
-I../../src/incs -I../../src/incs
-I/home/modules/software/netCDF/4.6.1-intel-2018b/include
-I/home/modules/software/netCDF-Fortran/4.4.4-intel-2018b/include
-I/home/modules/build/ABINIT/8.10.3/intel-2018b/abinit-8.10.3/fallbacks/exports/include
-free -module
/home/modules/build/ABINIT/8.10.3/intel-2018b/abinit-8.10.3/src/mods
-O2 -xHost -ftz -fp-speculation=safe -fp-model source -fPIC -c -o
m_spin_hist.o m_spin_hist.F90
mpiifort -DHAVE_CONFIG_H -I. -I../.. -I../../src/77_ddb
-I../../src/77_ddb -I../../src/32_util -I../../src/32_util
-I../../src/44_abitools -I../../src/44_abitools
-I../../src/27_toolbox_oop -I../../src/27_toolbox_oop
-I../../src/44_abitypes_defs -I../../src/44_abitypes_defs
-I../../src/72_response -I../../src/72_response -I../../src/16_hideleave
-I../../src/16_hideleave -I../../src/42_parser -I../../src/42_parser
-I../../src/55_abiutil -I../../src/55_abiutil -I../../src/41_geometry
-I../../src/41_geometry -I../../src/45_geomoptim
-I../../src/45_geomoptim -I../../src/12_hide_mpi -I../../src/12_hide_mpi
-I../../src/10_defs -I../../src/10_defs -I../../src/14_hidewrite
-I../../src/14_hidewrite -I../../src/57_iovars -I../../src/57_iovars
-I../../src/28_numeric_noabirule -I../../src/28_numeric_noabirule
-I../../src/incs -I../../src/incs
-I/home/modules/software/netCDF/4.6.1-intel-2018b/include
-I/home/modules/software/netCDF-Fortran/4.4.4-intel-2018b/include
-I/home/modules/build/ABINIT/8.10.3/intel-2018b/abinit-8.10.3/fallbacks/exports/include
-free -module
/home/modules/build/ABINIT/8.10.3/intel-2018b/abinit-8.10.3/src/mods
-O2 -xHost -ftz -fp-speculation=safe -fp-model source -fPIC -c -o
m_spin_reciprocal.o m_spin_reciprocal.F90
m_multibinit_dataset.F90(2032): remark #8291: Recommended relationship
between field width 'W' and the number of fractional digits 'D' in this
edit descriptor is 'W>=D+7'.
if(multibinit_dtset%strcpling==2)write(nunit,'(3x,a9,3es8.2)')'delta_df',multibinit_dtset%delta_df
-----------------------------------------------------------^
effpot_xml.c(29): catastrophic error: cannot open source file
"libxml/parser.h"
#include <libxml/parser.h>
^
compilation aborted for effpot_xml.c (code 4)
Do you have any other suggestions?
Thanks,
Ole
On 8/28/19 12:42 PM, Yann Pouillon wrote:
On Wed, 28 Aug 2019 12:11:44 +0200
Ole Holm Nielsen <ole.h.niel...@fysik.dtu.dk> wrote:
Unfortunately, the build now crashes with this error in the log file:
[...]
-----------------------------------------------------------^
effpot_xml.c(29): catastrophic error: cannot open source file
"libxml/parser.h"
#include <libxml/parser.h>
^
compilation aborted for effpot_xml.c (code 4)
The missing source file libxml/parser.h is actually installed on the system:
$ rpm -qf /usr/include/libxml2/libxml/parser.h
libxml2-devel-2.9.1-6.el7_2.3.x86_64
Could you kindly suggest some additional configopts to solve this problem?
I hadn't realized this is ABINIT 8.10.3, where the build system still has
some issues with mixing C and Fortran.
The following configopt might help:
CPPFLAGS_EXTRA="-I/usr/include/libxml2"
It will be automatically searched for in future versions.