fortran-lang/stdlib

fpm stdlib build error under windows 11, 64 bit system

kapil-iitk opened this issue · 0 comments

Description

I am unable to build and compile code. It is showing the following error under Windows 11 (64-bit system). I am using gfortran. Also, is there any way I can generate a static library (such as stdlib.a so that I can use)?

C:\Users\USER\Downloads\stdlib-master>fpm build
stdlib_array.f90 done.
stdlib_kinds.f90 done.
stdlib_version.f90 done.
stdlib_specialfunctions.f90 done.
stdlib_ascii.f90 done.
stdlib_hash_32bit.f90 failed.
[ 0%] Compiling...
..\src\temp\stdlib_hash_32bit.f90:25:30:

25 | pow32_over_phi = int( z'9E3779B9', int32 )
| 1
Error: Arithmetic overflow converting INTEGER(16) to INTEGER(4) at (1). This check can be disabled with the option '-fno-range-check'
compilation terminated due to -fmax-errors=1.
Compilation failed for object " src_temp_stdlib_hash_32bit.f90.o "
stopping due to failed compilation
STOP 1

Expected Behaviour

Should have to compile the code.

Version of stdlib

0.7.0

Platform and Architecture

Windows 11, 64 bit

Additional Information

No response