Skip to content

Build failure in fortran_test.c using Intel compiler ifort/ifx #234

@dmt4

Description

@dmt4

Describe the bug

The cmake build (the only option now it seems) fails with ifort 21.1 for having multiple definitions of main in fortran_test.c.

This compiler message seems important:

ifort: command line warning #10434: option '-nofor_main' use with underscore is deprecated; use '-nofor-main' instead

To Reproduce

mkdir b
cd b
CC=icc CXX=icpc FC=ifort cmake .. -Dspglib_WITH_Fortran=ON
make

Expected behavior

Uneventful completion

Environment

  • Spglib's version: commit 1b1729c (the latest on devel at time of writing)
  • Intel compilers version 2021.1

Additional context

I suspect the appropriate version of '-nofor_main' or actual f main need to be used.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions