The intel build may still need the configure_FftwFromMkl_28.patch,
ROOT-v5_recent-ifort.patch and possibly the ROOT-v5.34.26_libX.patch
like the ROOT-6.10.08-intel-2017b-Python-2.7.14.eb does.
On 2/4/20 6:21 AM, Jack Perdue wrote:
> Howdy all,
>
> I'm trying to build a ROOT/6.14.06/intel-2018b-Python-2.7.15
> based on EB's included ROOT-6.14.06-foss-2018b-Python-2.7.15.eb
> (with a simple s/foss/intel/).
>
> It all goes well until the final link where I get:
>
> error: unknown argument: '-fp-model'
> error: unknown argument: '-ftz'
> error: unknown argument: '-fp-speculation=safe'
> <<< cling interactive line includer >>>:1:10: fatal error: 'source' file
> not found
> #include "source"
> ^~~~~~~~
> Error: Parsing Linkdef file etc/dictpch/allLinkDefs.h
>
> It isn't clear why it is waiting until the end to
> choke on these valid Intel flags.
>
> In any case, I tracked those settings down to
> the CFLAGS/FFLAGS/etcFLAGS that EB sets for cmake.
> After digging around, I found line 64 in
> toolchains/compiler/inteliccifort.py which has
>
> 'defaultprec': ['ftz', 'fp-speculation=safe', 'fp-model source'],
>
> for a toolchain option.
>
> So I tried various options to turn that option off
> (some were just guesses).
>
> toolchainopts = {'pic': True, 'defaultprec': False}
> and
> toolchainopts = {'pic': True, 'defaultprec': ''}
> and
> defaultprec = ['']
>
> None of those worked.
>
> If I manually hack inteliccifort.py to disable
> those settings, then my build for ROOT-intel
> works.
>
> Feel to try it yourself (I'm using EB 4.1.1).
>
> Obviously it would be nice to just fix the link,
> but I'm curious about other possible uses.
>
> How does one disable defaultprec when using
> the Intel toolchain?
>
--
Ake Sandgren, HPC2N, Umea University, S-90187 Umea, Sweden
Internet: [email protected] Phone: +46 90 7866134 Fax: +46 90-580 14
Mobile: +46 70 7716134 WWW: http://www.hpc2n.umu.se