Skip to content

Build error with ifx on Windows #1060

@LaplaceSoda

Description

@LaplaceSoda

Description

After updating stdlib, the following error occurs when compiling to stdlib_system.c using fpm run --compiler ifx --flag "-Qmkl":

stdlib_system.c(174,38): error: call to undeclared function 'S_ISREG'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
  174 |     return _stat(path, &buf) == 0 && S_ISREG(buf.st_mode);
      |                                      ^

Environment

Windows + Intel oneAPI 2024.2 + fpm 0.11.0

Intel(R) Fortran Compiler for applications running on Intel(R) 64, Version 2024.2.0 Build 20240602
Copyright (C) 1985-2024 Intel Corporation. All rights reserved.

Version

fpm will fetch the latest version from the stdlib-fpm branch

[dependencies]
openmp = "*"
stdlib = { git = "https://github.com/fortran-lang/stdlib", branch = "stdlib-fpm", preprocess.cpp.macros = [
    "STDLIB_EXTERNAL_BLAS",
    "STDLIB_EXTERNAL_LAPACK",
] }

Expected Behaviour

Compile normally like the previous versions

Version of stdlib

latest

Platform and Architecture

Windows

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions