You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
stdlib-0.7.0 fails to build using ifx (Windows/Intel) in test-drive/main.f90(?) with
[build] _deps/test-drive-build/test/CMakeFiles/test-drive-tester.dir\C:/Users/bapthorpe/codes/g/stdlib/build/_deps/test-drive-src/test\main.f90(42): error #5533: Feature found on this line is not yet supported in ifx
[build] call run_selected(testsuites(is)%collect, test_name, error_unit, stat)
[build] -------------^
[build] compilation aborted for _deps\test-drive-build\test\CMakeFiles\test-drive-tester.dir\main.f90-pp.f90 (code 3)
[build] Intel(R) Fortran Compiler for applications running on Intel(R) 64, Version 2022.0.0 Build 20211123
Steps to reproduce:
Unpack archive stdlib-0.7.0.zip
Change directory to package root (cd .\stdlib)
Set up environment variables for Intel compiler (run setvars.bat)
Configure with cmake -S . -B build -G Ninja
Change directory to build directory (cd build)
Build with ninja
It's not clear which language feature is not supported by this version of ifx. Likewise, it's also not clear where to find test-drive or main.f90 in the source tree (I can find it in the build tree but that doesn't help if I need to modify the code for debugging...)
Reconfiguring with cmake -B build -S . -G Ninja -DBUILD_TESTING:Bool=OFF leads to a different error so bypassing tests doesn't help. This is the first error encountered in a minimal reference release build.
Expected Behaviour
The same code (stdlib-0.7.0.tar.gz) builds cleanly on RHEL 8.8 with ifx Version 2022.2.0 Build 20220730. This might be resolved by upgrading the compiler but this is on a work machine so I'm at the mercy of what our IT staff provides.
To build the Fortran standard library you need
- a Fortran 2008 compliant compiler, or better, a Fortran 2018 compliant compiler
(GCC Fortran and Intel Fortran compilers are known to work for stdlib)
- CMake version 3.14 or newer (alternatively Make can be used)
- a build backend for CMake, like Make or Ninja (the latter is recommended on Windows)
- the [fypp](https://github.com/aradi/fypp) preprocessor (used as meta-programming tool)
If we can isolate which feature is tripping up ifx, we can see if it falls under F2008 or later. If it's a F2008 feature, it may not be worth addressing because the compiler doesn't meet requirements. If it's a later feature, it should either be downgraded or requirements should be updated.
I understand that the Windows/Intel platform is difficult to test due to the cost and availability of the compiler. Hopefully this is an easily fixed edge case.
Description
stdlib-0.7.0 fails to build using
ifx
(Windows/Intel) intest-drive/main.f90
(?) withSteps to reproduce:
stdlib-0.7.0.zip
cd .\stdlib
)setvars.bat
)cmake -S . -B build -G Ninja
cd build
)ninja
It's not clear which language feature is not supported by this version of
ifx
. Likewise, it's also not clear where to findtest-drive
ormain.f90
in the source tree (I can find it in thebuild
tree but that doesn't help if I need to modify the code for debugging...)Reconfiguring with
cmake -B build -S . -G Ninja -DBUILD_TESTING:Bool=OFF
leads to a different error so bypassing tests doesn't help. This is the first error encountered in a minimal reference release build.Expected Behaviour
The same code (
stdlib-0.7.0.tar.gz
) builds cleanly on RHEL 8.8 withifx
Version 2022.2.0 Build 20220730. This might be resolved by upgrading the compiler but this is on a work machine so I'm at the mercy of what our IT staff provides.Version of stdlib
v0.7.0 release
Platform and Architecture
Windows x64
Additional Information
The text was updated successfully, but these errors were encountered: