-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build error: Error: Invalid type-spec (./src/M_strings.f90:9602:34) #2
Comments
Unfortunately not all Programming Environments support all the standard-defined types. In this case it looks like your does not support 128-bit types. To handle this properly requires using a preprocessor in Fortran currently, which fpm(1) has not selected. |
Thank you for making the changes. I can confirm M_strings it now builds successfully! I am still working on the original goal of building Thanks again for your help :) |
UPDATED: Found a couple of other similar issues and it appears this is a
gfortran
and Apple Silicon M1 CPU (arm64) problem - so nothing directly / specifically to do with the M_strings.f90. For reference see:If you wan to close this issue that is fine - hopefully it will be useful anyway in case another person finds the same problem.
ORGINAL REPORT BELOW:
Hi
I am new to Fortran - so apologies in advance if this is some newbie error!
I was trying to build fpm-search that depends on M_strings. It was failing to build due to a problem with M_strings.
I have re-downloaded M_strings by cloning the repo directly, and following the instructions in the 'Readme.md' for the gfortran complier.
In the
src
sub-directory, I runmake clean
and thenmake F90=gfortran gfortran
. Below is a copy of the output:I also tried to build with
fpm build
(after runningmake clean
first - if that makes any difference!). The output then is as below:The error using both approaches look like the same issue, but that's is about as far as my wisdom on the matter goes!
Is it a source code problem - or user error?
The build is being done on a Apple Mac mini (Apple Silicon M1 - arm64) version 11.5.2 (Big Sur) using
gfortran
installed frombrew
- version info below:% gfortran -v Using built-in specs. COLLECT_GCC=gfortran COLLECT_LTO_WRAPPER=/opt/homebrew/Cellar/gcc/11.2.0/libexec/gcc/aarch64-apple-darwin20/11.1.0/lto-wrapper Target: aarch64-apple-darwin20 Configured with: ../configure --prefix=/opt/homebrew/Cellar/gcc/11.2.0 --libdir=/opt/homebrew/Cellar/gcc/11.2.0/lib/gcc/11 --disable-nls --enable-checking=release --enable-languages=c,c++,objc,obj-c++,fortran --program-suffix=-11 --with-gmp=/opt/homebrew/opt/gmp --with-mpfr=/opt/homebrew/opt/mpfr --with-mpc=/opt/homebrew/opt/libmpc --with-isl=/opt/homebrew/opt/isl --with-zstd=/opt/homebrew/opt/zstd --with-pkgversion='Homebrew GCC 11.2.0' --with-bugurl=https://github.com/Homebrew/homebrew-core/issues --build=aarch64-apple-darwin20 --with-system-zlib --disable-multilib --with-native-system-header-dir=/usr/include --with-sysroot=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 11.1.0 (Homebrew GCC 11.2.0)
Thanks
Simon
The text was updated successfully, but these errors were encountered: