matloff / qeML

40 stars 14 forks source link

fortran 2018? #9

Closed jimrothstein closed 9 months ago

jimrothstein commented 9 months ago

Errors installing qeML or several dependencies, such as minqa ?? Thx:

R version 4.3.1 (2023-06-16) Platform: x86_64-pc-linux-gnu (64-bit) Running under: Linux Mint 21.2

install.packages("minqa")
#> Installing package into '/home/jim/R/x86_64-pc-linux-gnu-library/4.3'
#> (as 'lib' is unspecified)
#> Warning in install.packages("minqa"): installation of package 'minqa' had
#> non-zero exit status
trying URL 'https://cloud.r-project.org/src/contrib/minqa_1.2.6.tar.gz'
Content type 'application/x-gzip' length 54493 bytes (53 KB)
==================================================
downloaded 53 KB

  -----------------------------------------  

* installing *source* package ‘minqa’ ...
** package ‘minqa’ successfully unpacked and MD5 sums checked
** using staged installation
** libs
using Fortran compiler: ‘GNU Fortran (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0’
using C++ compiler: ‘g++ (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0’
gfortran  -fpic  -g -O2  -c altmov.f -o altmov.o
altmov.f:42:72:

   42 |    10 HCOL(K)=ZERO
      |                                                                        1
Warning: Fortran 2018 deleted feature: DO termination statement which is not END DO or CONTINUE with label 10 at (1)
altmov.f:45:72:

   45 |       DO 20 K=1,NPT
      |                                                                        1
Warning: Fortran 2018 deleted feature: Shared DO termination label 20 at (1)
altmov.f:46:72:

   46 |    20 HCOL(K)=HCOL(K)+TEMP*ZMAT(K,J)
      |                                                                        1
Warning: Fortran 2018 deleted feature: DO termination statement which is not END DO or CONTINUE with label 20 at (1)
altmov.f:53:72:

<SNIP>

.
.
<SNIP>

Warning: Fortran 2018 deleted feature: Shared DO termination label 60 at (1)
g++ -std=gnu++17 -shared -L/opt/R/4.3.1/lib/R/lib -L/usr/local/lib -o minqa.so altmov.o bigden.o biglag.o bobyqa.o bobyqb.o lagmax.o minqa.o newuoa.o newuob.o prelim.o rescue.o trsapp.o trsbox.o trstep.o uobyqa.o uobyqb.o update.o updatebobyqa.o ----------------------------------------- -lgfortran -lm -lquadmath -L/opt/R/4.3.1/lib/R/lib -lR
g++: error: unrecognized command-line option ‘-----------------------------------------’
make: *** [/opt/R/4.3.1/lib/R/share/make/shlib.mk:10: minqa.so] Error 1
ERROR: compilation failed for package ‘minqa’
* removing ‘/home/jim/R/x86_64-pc-linux-gnu-library/4.3/minqa’

The downloaded source packages are in
    '/tmp/Rtmp3riSHb/downloaded_packages'
matloff commented 9 months ago

That's pretty weird. Try downloading the source from

https://cran.r-project.org/src/contrib/minqa_1.2.6.tar.gz

and then running (from the shell)

R CMD INSTALL -l /home/jim/R/x86_64-pc-linux-gnu-library/4.3 minqa_1.2.6.tar.gz

Norm

On Tue, Nov 21, 2023 at 10:37 PM jim @.***> wrote:

Errors installing qeML or several dependencies, such as minqa ?? Thx:

R version 4.3.1 (2023-06-16) Platform: x86_64-pc-linux-gnu (64-bit) Running under: Linux Mint 21.2

install.packages("minqa")#> Installing package into '/home/jim/R/x86_64-pc-linux-gnu-library/4.3'#> (as 'lib' is unspecified)#> Warning in install.packages("minqa"): installation of package 'minqa' had#> non-zero exit status

trying URL 'https://cloud.r-project.org/src/contrib/minqa_1.2.6.tar.gz' Content type 'application/x-gzip' length 54493 bytes (53 KB)

downloaded 53 KB


  • installing source package ‘minqa’ ... package ‘minqa’ successfully unpacked and MD5 sums checked using staged installation** libs using Fortran compiler: ‘GNU Fortran (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0’ using C++ compiler: ‘g++ (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0’ gfortran -fpic -g -O2 -c altmov.f -o altmov.o altmov.f:42:72:

    42 | 10 HCOL(K)=ZERO | 1 Warning: Fortran 2018 deleted feature: DO termination statement which is not END DO or CONTINUE with label 10 at (1) altmov.f:45:72:

    45 | DO 20 K=1,NPT | 1 Warning: Fortran 2018 deleted feature: Shared DO termination label 20 at (1) altmov.f:46:72:

    46 | 20 HCOL(K)=HCOL(K)+TEMP*ZMAT(K,J) | 1 Warning: Fortran 2018 deleted feature: DO termination statement which is not END DO or CONTINUE with label 20 at (1) altmov.f:53:72:

    ..

Warning: Fortran 2018 deleted feature: Shared DO termination label 60 at (1) g++ -std=gnu++17 -shared -L/opt/R/4.3.1/lib/R/lib -L/usr/local/lib -o minqa.so altmov.o bigden.o biglag.o bobyqa.o bobyqb.o lagmax.o minqa.o newuoa.o newuob.o prelim.o rescue.o trsapp.o trsbox.o trstep.o uobyqa.o uobyqb.o update.o updatebobyqa.o ----------------------------------------- -lgfortran -lm -lquadmath -L/opt/R/4.3.1/lib/R/lib -lR g++: error: unrecognized command-line option ‘-----------------------------------------’ make: ** [/opt/R/4.3.1/lib/R/share/make/shlib.mk:10: minqa.so] Error 1 ERROR: compilation failed for package ‘minqa’ removing ‘/home/jim/R/x86_64-pc-linux-gnu-library/4.3/minqa’

The downloaded source packages are in '/tmp/Rtmp3riSHb/downloaded_packages'

— Reply to this email directly, view it on GitHub https://github.com/matloff/qeML/issues/9, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABZ34ZIGCH44DUBCSAU5GGTYFWMRDAVCNFSM6AAAAAA7VWVJHGVHI2DSMVQWIX3LMV43ASLTON2WKOZSGAYDKNRXGIZDIMQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>

jimrothstein commented 9 months ago

Update: Similar ? I also can not install car, lme4 and several others. https://community.rstudio.com/t/failed-installing-package-agricolae-because-of-old-versions-of-rlang-dplyr-faststack/130923/8


~ characters causes strikeout in markdown; not in original.

R CMD INSTALL -l /home/jim/R/x86_64-pc-linux-gnu-library/4.3 minqa_1.2.6.tar.gz 2> result.txt

. . Warning: Fortran 2018 deleted feature: Shared DO termination label 60 at (1) g++: error: unrecognized command-line option ‘-----------------------------------------’ make: *** [/opt/R/4.3.1/lib/R/share/make/shlib.mk:10: minqa.so] Error 1 ERROR: compilation failed for package ‘minqa’ * removing ‘/home/jim/R/x86_64-pc-linux-gnu-library/4.3/minqa’
matloff commented 9 months ago

I urge you to contact Kate Mullen, maintainer of the minqa package. He should be able to help solve your problem.