Skip to content
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

[Meson] Compile packages in oblivion #253

Merged
merged 6 commits into from
Feb 12, 2024
Merged

Conversation

amontoison
Copy link
Member

@amontoison amontoison commented Feb 8, 2024

What should I do with the following folders and files?

  • oblivion/cpu_time
  • oblivion/trimsqp/toy1.F90
  • oblivion/nllsrt/nllsrtma.F90

cpu_time is an empty shell, we should probably remove it.

Many packages don't compile or are not working with 64-bit integers.
I added a meson.build for each package in oblivion BUT only ism is compiled by Meson.

@amontoison
Copy link
Member Author

@nimgould

[152/694] Compiling Fortran object libgalahad_single.so.p/meson-generated_single_qps.f90.o
FAILED: libgalahad_single.so.p/meson-generated_single_qps.f90.o libgalahad_single.so.p/galahad_qps_single.mod 
gfortran -Ilibgalahad_single.so.p -I. -I.. -Iinclude -I../include -I../src/dum/include -Isrc/ampl -I../src/ampl -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -O0 -g -fopenmp -fPIC -DGALAHAD_SINGLE -DSPRAL_SINGLE -DDUMMY_SMUMPS -DDUMMY_MKL_PARDISO -DDUMMY_PARDISO -DDUMMY_PASTIXF -DDUMMY_SPMF -DDUMMY_WSMP -DDUMMY_MPI -DDUMMY_HSL -Jlibgalahad_single.so.p -o libgalahad_single.so.p/meson-generated_single_qps.f90.o -c libgalahad_single.so.p/single_qps.f90
../src/oblivion/qps/qps.F90:170:11:

  170 |           row_norm( i ) = ABS( scale%row_scale( i ) ) * SQRT( row_norm( i ) )
      |           1
Error: Unclassifiable statement at (1)
../src/oblivion/qps/qps.F90:174:24:

  174 |           IF ( row_norm( i ) /= zero )                                         &
      |                        1
Error: Syntax error in IF-expression at (1)
../src/oblivion/qps/qps.F90:181:9:

  181 |       END DO
      |         1
Error: Expecting END SUBROUTINE statement at (1)
../src/oblivion/qps/qps.F90:70:36:

   70 |       SUBROUTINE QPS_initialize( map, control )
      |                                    1
Error: Symbol ‘map’ at (1) has no IMPLICIT type
../src/oblivion/qps/qps.F90:70:45:

   70 |       SUBROUTINE QPS_initialize( map, control )
      |                                             1
Error: Symbol ‘control’ at (1) has no IMPLICIT type
../src/oblivion/qps/qps.F90:36:48:

   36 |       PUBLIC :: QPS_initialize, QPS_get_scalings, QPS_apply, QPS_restore
      |                                                1
Error: Symbol ‘qps_get_scalings’ at (1) has no IMPLICIT type
[157/694] Compiling Fortran object libgalahad_single.so.p/meson-generated_single_space.f90.o
ninja: build stopped: subcommand failed.
[171/649] Compiling Fortran object libgalahad_single.so.p/meson-generated_single_nllsrt.f90.o
FAILED: libgalahad_single.so.p/meson-generated_single_nllsrt.f90.o libgalahad_single.so.p/galahad_nllsrt_single.mod 
gfortran -Ilibgalahad_single.so.p -I. -I.. -Iinclude -I../include -I../src/dum/include -Isrc/ampl -I../src/ampl -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -O0 -g -fopenmp -fPIC -DGALAHAD_SINGLE -DSPRAL_SINGLE -DDUMMY_SMUMPS -DDUMMY_MKL_PARDISO -DDUMMY_PARDISO -DDUMMY_PASTIXF -DDUMMY_SPMF -DDUMMY_WSMP -DDUMMY_MPI -DDUMMY_HSL -Jlibgalahad_single.so.p -o libgalahad_single.so.p/meson-generated_single_nllsrt.f90.o -c libgalahad_single.so.p/single_nllsrt.f90
../src/oblivion/nllsrt/nllsrt.F90:35:59:

   35 |                              gamma2=2.0_rp_, eps_m=10.0_wp**(-15)
      |                                                           1
Error: Missing kind-parameter at (1)
[370/644] Compiling Fortran object libgalahad_single.so.p/meson-generated_single_s2qp.f90.o
FAILED: libgalahad_single.so.p/meson-generated_single_s2qp.f90.o libgalahad_single.so.p/galahad_s2qp_single.mod 
gfortran -Ilibgalahad_single.so.p -I. -I.. -Iinclude -I../include -I../src/dum/include -Isrc/ampl -I../src/ampl -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -O0 -g -fopenmp -fPIC -DGALAHAD_SINGLE -DSPRAL_SINGLE -DDUMMY_SMUMPS -DDUMMY_MKL_PARDISO -DDUMMY_PARDISO -DDUMMY_PASTIXF -DDUMMY_SPMF -DDUMMY_WSMP -DDUMMY_MPI -DDUMMY_HSL -Jlibgalahad_single.so.p -o libgalahad_single.so.p/meson-generated_single_s2qp.f90.o -c libgalahad_single.so.p/single_s2qp.f90
../src/oblivion/s2qp/s2qp.F90:780:16:

  780 |  INTEGER ( KINDS = ip_) :: error
      |                1
Error: Symbol ‘kinds’ at (1) has no IMPLICIT type
../src/oblivion/s2qp/s2qp.F90:8232:16:

 8232 |  INTEGER ( KINDS = ip_) :: i, j, nbreak, inheap, iter, ibreakp
      |                1
Error: Symbol ‘kinds’ at (1) has no IMPLICIT type
../src/oblivion/s2qp/s2qp.F90:9063:16:

 9063 |  INTEGER ( KINDS = ip_) :: i
      |                1
Error: Symbol ‘kinds’ at (1) has no IMPLICIT type
../src/oblivion/s2qp/s2qp.F90:9174:16:

 9174 |  INTEGER ( KINDS = ip_) :: i
      |                1
Error: Symbol ‘kinds’ at (1) has no IMPLICIT type
../src/oblivion/s2qp/s2qp.F90:9182:5:

 9182 |  DO i = 1, m
      |     1
Error: Symbol ‘i’ at (1) has no IMPLICIT type
../src/oblivion/s2qp/s2qp.F90:9070:5:

 9070 |  DO i = 1, m
      |     1
Error: Symbol ‘i’ at (1) has no IMPLICIT type
../src/oblivion/s2qp/s2qp.F90:8263:5:

 8263 |  do i = 1, m
      |     1
Error: Symbol ‘i’ at (1) has no IMPLICIT type
../src/oblivion/s2qp/s2qp.F90:8682:14:

 8682 |        ibreakp = IBREAK(nbreak)
      |              1
Error: Symbol ‘ibreakp’ at (1) has no IMPLICIT type; did you mean ‘breakp’?
../src/oblivion/s2qp/s2qp.F90:8480:49:

 8480 |  CALL SORT_heapsort_build( nbreak, BREAKP, inheap, ix = IBREAK )
      |                                                 1
Error: Symbol ‘inheap’ at (1) has no IMPLICIT type; did you mean ‘infeas’?
../src/oblivion/s2qp/s2qp.F90:8488:5:

 8488 |  iter    = 0
      |     1
Error: Symbol ‘iter’ at (1) has no IMPLICIT type
../src/oblivion/s2qp/s2qp.F90:8397:11:

 8397 |        DO j = 1,2
      |           1
Error: Symbol ‘j’ at (1) has no IMPLICIT type
../src/oblivion/s2qp/s2qp.F90:8258:7:

 8258 |  nbreak       = 0
      |       1
Error: Symbol ‘nbreak’ at (1) has no IMPLICIT type; did you mean ‘lbreak’?
../src/oblivion/s2qp/s2qp.F90:859:6:

  859 |  error = control%error
      |      1
Error: Symbol ‘error’ at (1) has no IMPLICIT type
[371/644] Compiling Fortran object libgalahad_single.so.p/meson-generated_single_trimsqp.f90.o
FAILED: libgalahad_single.so.p/meson-generated_single_trimsqp.f90.o libgalahad_single.so.p/galahad_trimsqp_single.mod 
gfortran -Ilibgalahad_single.so.p -I. -I.. -Iinclude -I../include -I../src/dum/include -Isrc/ampl -I../src/ampl -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -O0 -g -fopenmp -fPIC -DGALAHAD_SINGLE -DSPRAL_SINGLE -DDUMMY_SMUMPS -DDUMMY_MKL_PARDISO -DDUMMY_PARDISO -DDUMMY_PASTIXF -DDUMMY_SPMF -DDUMMY_WSMP -DDUMMY_MPI -DDUMMY_HSL -Jlibgalahad_single.so.p -o libgalahad_single.so.p/meson-generated_single_trimsqp.f90.o -c libgalahad_single.so.p/single_trimsqp.f90
../src/oblivion/trimsqp/trimsqp.F90:1139:49:

 1139 |   CALL SPACE_resize_array( nlp%m, data%JxSsteer,
      |                                                 1
Error: Syntax error in argument list at (1)
../src/oblivion/trimsqp/trimsqp.F90:3683:8:

 3683 |       ' decrease_full      ratio   accept   success' )
      |        1
Error: Invalid character in name at (1)

@amontoison amontoison merged commit d0b48c1 into ralna:master Feb 12, 2024
18 of 19 checks passed
@amontoison amontoison deleted the oblivion branch February 12, 2024 04:13
@nimgould
Copy link
Contributor

Yes, as it says at the top of the fortran file ... ** BROKEN ** DO NOT USE **

I have no plans to fix things such as this at the moment, so please exclude

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants