fortran-lang / fpm

Fortran Package Manager (fpm)
https://fpm.fortran-lang.org
MIT License
844 stars 95 forks source link

Does fpm support lfrotran #1052

Closed faze-geek closed 2 weeks ago

faze-geek commented 2 weeks ago
(fpm) anurag@Anurags-MacBook-Air fpm % fpm -V build --compiler lfortran

 <INFO> BUILD_NAME: build/lfortran
 <INFO> COMPILER:  lfortran
 <INFO> C COMPILER:  cc
 <INFO> CXX COMPILER: cc
 <INFO> COMPILER OPTIONS:  --cpp
 <INFO> C COMPILER OPTIONS:  
 <INFO> CXX COMPILER OPTIONS: 
 <INFO> LINKER OPTIONS:  
 <INFO> INCLUDE DIRECTORIES:  [build/dependencies/fortran-regex/src]
[  0%]                fpm_strings.f90
 + lfortran -c ././src/fpm_strings.f90  --cpp -DFPM_RELEASE_VERSION=0.10.1 -Ibuild/dependencies/fortran-regex/src -J build/lfortran_43A8C28E1A912ACE -Ibuild/lfortran_43A8C28E1A912ACE -Ibuild/lfortran_959FBE65652EC680 -Ibuild/lfortran_070BA948A41052B2 -o build/lfortran_43A8C28E1A912ACE/fpm/src_fpm_strings.f90.o
<ERROR>:failed command lfortran -c ././src/fpm_strings.f90  --cpp -DFPM_RELEASE_VERSION=0.10.1 -Ibuild/dependencies/fortran-regex/src -J build/lfortran_43A8C28E1A912ACE -Ibuild/lfortran_43A8C28E1A912ACE -Ibuild/lfortran_959FBE65652EC680 -Ibuild/lfortran_070BA948A41052B2 -o build/lfortran_43A8C28E1A912ACE/fpm/src_fpm_strings.f90.o>build/lfortran_43A8C28E1A912ACE/fpm/src_fpm_strings.f90.o.log 2>&1
<ERROR> *run*:Invalid command line
STOP 1
faze-geek commented 2 weeks ago

Version -

(lf) anurag@Anurags-MacBook-Air lfortran % ./src/bin/lfortran --version       
LFortran version: 0.36.0-275-g2cfed3f5c
Platform: macOS ARM
Default target: arm64-apple-darwin23.3.0
perazz commented 2 weeks ago

It looks like you are trying to compile fpm from source code using LFortran. This is not supported (only gfortran and ifx can do it so far) yet, so, you should expect that problems may occur

faze-geek commented 2 weeks ago

Closing this for now. Do let me know if you plan to support source code compilation with Lfortran in the future !?