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

Docker file fails to compile #144

Open
matteobachetti opened this issue May 10, 2021 · 12 comments
Open

Docker file fails to compile #144

matteobachetti opened this issue May 10, 2021 · 12 comments

Comments

@matteobachetti
Copy link
Contributor

I tried to build the docker image by running

docker build .

in the docker directory, but it fails with

(...)
Step 8/28 : WORKDIR /code/presto/src
 ---> Running in 84532dfd21e5
Removing intermediate container 84532dfd21e5
 ---> 69090d2132a4
Step 9/28 : RUN make libpresto slalib
 ---> Running in 990c209e6eba
make: *** No rule to make target 'libpresto'.  Stop.
@scottransom
Copy link
Owner

Adding @NickSwainston to this since I'm a Docker noob. I'm playing around with it now, though,

@NickSwainston
Copy link
Contributor

You want to run the command from the base repo directory, not the docker directory, like so
docker build -f docker/Dockerfile .

@matteobachetti
Copy link
Contributor Author

Thanks @NickSwainston !

Now it fails because it doesn't find png.h, but this is weird, we are installing libpng-dev. Can it be due to some version mismatch?

=> [17/20] ADD docker/drivers.list /usr/local/pgplot                             0.0s 
 => ERROR [18/20] RUN /usr/local/src/pgplot/makemake /usr/local/src/pgplot linux  7.4s 
------                                                                                 
 > [18/20] RUN /usr/local/src/pgplot/makemake /usr/local/src/pgplot linux g77_gcc_aout &&     sed -i 's/FCOMPL=g77/FCOMPL=gfortran/' makefile &&     make &&     make cpg &&     make clean:
#22 0.276 For additional information, read file /usr/local/src/pgplot/sys_linux/aaaread.me
#22 0.276 Reading configuration file: /usr/local/src/pgplot/sys_linux/g77_gcc_aout.conf
#22 0.276 Selecting uncommented drivers from ./drivers.list
#22 0.282 Found drivers GIDRIV NUDRIV PNDRIV PSDRIV TTDRIV VTDRIV XWDRIV
#22 0.303 Copying color database.
#22 0.305 Creating make file: makefile
#22 0.307 Determining object file dependencies.
#22 0.348 gfortran -c -Wall -O /usr/local/src/pgplot/src/pgarro.f
#22 0.382 gfortran -c -Wall -O /usr/local/src/pgplot/src/pgask.f
#22 0.405 gfortran -c -Wall -O /usr/local/src/pgplot/src/pgaxis.f
#22 0.448 gfortran -c -Wall -O /usr/local/src/pgplot/src/pgaxlg.f
#22 0.459 /usr/local/src/pgplot/src/pgaxlg.f:85:14:
#22 0.459 
#22 0.459    85 |       NSUBT = DVMAJ/DVMIN
#22 0.459       |              1
#22 0.459 Warning: Possible change of value in conversion from REAL(4) to INTEGER(4) at (1) [-Wconversion]
#22 0.491 gfortran -c -Wall -O /usr/local/src/pgplot/src/pgband.f
#22 0.524 gfortran -c -Wall -O /usr/local/src/pgplot/src/pgbbuf.f
#22 0.549 gfortran -c -Wall -O /usr/local/src/pgplot/src/pgbeg.f
#22 0.558 /usr/local/src/pgplot/src/pgbeg.f:4:34:
#22 0.558 
#22 0.558     4 |       INTEGER FUNCTION PGBEG (UNIT, FILE, NXSUB, NYSUB)
#22 0.558       |                                  1
#22 0.558 Warning: Unused dummy argument 'unit' at (1) [-Wunused-dummy-argument]
#22 0.575 gfortran -c -Wall -O /usr/local/src/pgplot/src/pgbin.f
#22 0.604 gfortran -c -Wall -O /usr/local/src/pgplot/src/pgbox.f
#22 0.745 gfortran -c -Wall -O /usr/local/src/pgplot/src/pgbox1.f
#22 0.766 gfortran -c -Wall -O /usr/local/src/pgplot/src/pgcirc.f
#22 0.797 gfortran -c -Wall -O /usr/local/src/pgplot/src/pgcl.f
#22 0.806 /usr/local/src/pgplot/src/pgcl.f:2:33:
#22 0.806 
#22 0.806     2 |       SUBROUTINE PGCL (K, X, Y, Z)
#22 0.806       |                                 1
#22 0.806 Warning: Unused dummy argument 'z' at (1) [-Wunused-dummy-argument]
#22 0.829 gfortran -c -Wall -O /usr/local/src/pgplot/src/pgclos.f
#22 0.851 gfortran -c -Wall -O /usr/local/src/pgplot/src/pgcn01.f
#22 0.861 /usr/local/src/pgplot/src/pgcn01.f:1:33:
#22 0.861 
#22 0.861     1 |       SUBROUTINE PGCN01(Z, MX, MY, IA, IB, JA, JB, Z0, PLOT,
#22 0.861       |                                 1
#22 0.861 Warning: Unused dummy argument 'my' at (1) [-Wunused-dummy-argument]
#22 0.891 gfortran -c -Wall -O /usr/local/src/pgplot/src/pgcnsc.f
#22 0.948 gfortran -c -Wall -O /usr/local/src/pgplot/src/pgconb.f
#22 0.956 /usr/local/src/pgplot/src/pgconb.f:61:72:
#22 0.956 
#22 0.956    61 |       DO 130 I=I1+1,I2
#22 0.956       |                                                                        1
#22 0.956 Warning: Fortran 2018 deleted feature: Shared DO termination label 130 at (1)
#22 1.003 gfortran -c -Wall -O /usr/local/src/pgplot/src/pgconf.f
#22 1.051 gfortran -c -Wall -O /usr/local/src/pgplot/src/pgconl.f
#22 1.081 gfortran -c -Wall -O /usr/local/src/pgplot/src/pgcons.f
#22 1.090 /usr/local/src/pgplot/src/pgcons.f:64:72:
#22 1.090 
#22 1.090    64 |       DO 130 I=I1+1,I2
#22 1.090       |                                                                        1
#22 1.090 Warning: Fortran 2018 deleted feature: Shared DO termination label 130 at (1)
#22 1.134 gfortran -c -Wall -O /usr/local/src/pgplot/src/pgcont.f
#22 1.157 gfortran -c -Wall -O /usr/local/src/pgplot/src/pgconx.f
#22 1.191 gfortran -c -Wall -O /usr/local/src/pgplot/src/pgcp.f
#22 1.199 /usr/local/src/pgplot/src/pgcp.f:2:33:
#22 1.199 
#22 1.199     2 |       SUBROUTINE PGCP (K, X, Y, Z)
#22 1.199       |                                 1
#22 1.199 Warning: Unused dummy argument 'z' at (1) [-Wunused-dummy-argument]
#22 1.215 gfortran -c -Wall -O /usr/local/src/pgplot/src/pgctab.f
#22 1.257 gfortran -c -Wall -O /usr/local/src/pgplot/src/pgcurs.f
#22 1.283 gfortran -c -Wall -O /usr/local/src/pgplot/src/pgdraw.f
#22 1.302 gfortran -c -Wall -O /usr/local/src/pgplot/src/pgebuf.f
#22 1.323 gfortran -c -Wall -O /usr/local/src/pgplot/src/pgend.f
#22 1.346 gfortran -c -Wall -O /usr/local/src/pgplot/src/pgenv.f
#22 1.377 gfortran -c -Wall -O /usr/local/src/pgplot/src/pgeras.f
#22 1.400 gfortran -c -Wall -O /usr/local/src/pgplot/src/pgerr1.f
#22 1.432 gfortran -c -Wall -O /usr/local/src/pgplot/src/pgerrb.f
#22 1.469 gfortran -c -Wall -O /usr/local/src/pgplot/src/pgerrx.f
#22 1.502 gfortran -c -Wall -O /usr/local/src/pgplot/src/pgerry.f
#22 1.530 gfortran -c -Wall -O /usr/local/src/pgplot/src/pgetxt.f
#22 1.551 gfortran -c -Wall -O /usr/local/src/pgplot/src/pgfunt.f
#22 1.582 gfortran -c -Wall -O /usr/local/src/pgplot/src/pgfunx.f
#22 1.612 gfortran -c -Wall -O /usr/local/src/pgplot/src/pgfuny.f
#22 1.642 gfortran -c -Wall -O /usr/local/src/pgplot/src/pggray.f
#22 1.672 gfortran -c -Wall -O /usr/local/src/pgplot/src/pghi2d.f
#22 1.720 gfortran -c -Wall -O /usr/local/src/pgplot/src/pghis1.f
#22 1.736 /usr/local/src/pgplot/src/pghis1.f:47:0:
#22 1.736 
#22 1.736    47 |       END
#22 1.736       | 
#22 1.736 Warning: 'xn' may be used uninitialized in this function [-Wmaybe-uninitialized]
#22 1.736 /usr/local/src/pgplot/src/pghis1.f:23:0:
#22 1.736 
#22 1.736    23 |       REAL XN
#22 1.736       | 
#22 1.736 note: 'xn' was declared here
#22 1.746 gfortran -c -Wall -O /usr/local/src/pgplot/src/pghist.f
#22 1.755 /usr/local/src/pgplot/src/pghist.f:69:17:
#22 1.755 
#22 1.755    69 |           IBIN = (DATA(I)-DATMIN)/(DATMAX-DATMIN)*NBIN+1
#22 1.755       |                 1
#22 1.755 Warning: Possible change of value in conversion from REAL(4) to INTEGER(4) at (1) [-Wconversion]
#22 1.787 gfortran -c -Wall -O /usr/local/src/pgplot/src/pghtch.f
#22 1.833 gfortran -c -Wall -O /usr/local/src/pgplot/src/pgiden.f
#22 1.862 gfortran -c -Wall -O /usr/local/src/pgplot/src/pgimag.f
#22 1.891 gfortran -c -Wall -O /usr/local/src/pgplot/src/pginit.f
#22 1.915 gfortran -c -Wall -O /usr/local/src/pgplot/src/pglab.f
#22 1.937 gfortran -c -Wall -O /usr/local/src/pgplot/src/pglcur.f
#22 1.973 gfortran -c -Wall -O /usr/local/src/pgplot/src/pgldev.f
#22 2.004 gfortran -c -Wall -O /usr/local/src/pgplot/src/pglen.f
#22 2.034 gfortran -c -Wall -O /usr/local/src/pgplot/src/pgline.f
#22 2.064 gfortran -c -Wall -O /usr/local/src/pgplot/src/pgmove.f
#22 2.084 gfortran -c -Wall -O /usr/local/src/pgplot/src/pgmtxt.f
#22 2.129 gfortran -c -Wall -O /usr/local/src/pgplot/src/pgncur.f
#22 2.154 /usr/local/src/pgplot/src/pgncur.f:124:0:
#22 2.154 
#22 2.154   124 |           CALL PGPT(1,X(J),Y(J),SYMBOL)
#22 2.154       | 
#22 2.154 Warning: 'j' may be used uninitialized in this function [-Wmaybe-uninitialized]
#22 2.170 gfortran -c -Wall -O /usr/local/src/pgplot/src/pgnoto.f
#22 2.196 gfortran -c -Wall -O /usr/local/src/pgplot/src/pgnpl.f
#22 2.220 gfortran -c -Wall -O /usr/local/src/pgplot/src/pgnumb.f
#22 2.231 /usr/local/src/pgplot/src/pgnumb.f:145:72:
#22 2.231 
#22 2.231   145 |               WORK = '0'//TEMP
#22 2.231       |                                                                        1
#22 2.231 Warning: CHARACTER expression will be truncated in assignment (20/21) at (1) [-Wcharacter-truncation]
#22 2.231 /usr/local/src/pgplot/src/pgnumb.f:150:72:
#22 2.231 
#22 2.231   150 |               WORK = '00'//TEMP
#22 2.231       |                                                                        1
#22 2.231 Warning: CHARACTER expression will be truncated in assignment (20/22) at (1) [-Wcharacter-truncation]
#22 2.252 /usr/local/src/pgplot/src/pgnumb.f:155:0:
#22 2.252 
#22 2.252   155 |               TEMP = WORK(2:ND)
#22 2.252       | 
#22 2.252 Warning: '__builtin_memcpy' reading 20 bytes from a region of size 19 [-Wstringop-overflow=]
#22 2.252 /usr/local/src/pgplot/src/pgnumb.f:156:0:
#22 2.252 
#22 2.252   156 |               WORK(3:ND+1) = TEMP
#22 2.252       | 
#22 2.252 Warning: '__builtin_memcpy' writing 20 bytes into a region of size 18 overflows the destination [-Wstringop-overflow=]
#22 2.300 gfortran -c -Wall -O /usr/local/src/pgplot/src/pgolin.f
#22 2.330 gfortran -c -Wall -O /usr/local/src/pgplot/src/pgopen.f
#22 2.355 /usr/local/src/pgplot/src/pgopen.f:150:0:
#22 2.355 
#22 2.355   150 |             REQ = DEFDEV(1:LDEFDE)
#22 2.355       | 
#22 2.355 Warning: '__builtin_memcpy' reading 256 bytes from a region of size 128 [-Wstringop-overflow=]
#22 2.385 gfortran -c -Wall -O /usr/local/src/pgplot/src/pgpage.f
#22 2.425 gfortran -c -Wall -O /usr/local/src/pgplot/src/pgpanl.f
#22 2.453 gfortran -c -Wall -O /usr/local/src/pgplot/src/pgpap.f
#22 2.483 gfortran -c -Wall -O /usr/local/src/pgplot/src/pgpixl.f
#22 2.511 gfortran -c -Wall -O /usr/local/src/pgplot/src/pgpnts.f
#22 2.538 gfortran -c -Wall -O /usr/local/src/pgplot/src/pgpoly.f
#22 2.575 gfortran -c -Wall -O /usr/local/src/pgplot/src/pgpt.f
#22 2.595 gfortran -c -Wall -O /usr/local/src/pgplot/src/pgpt1.f
#22 2.615 gfortran -c -Wall -O /usr/local/src/pgplot/src/pgptxt.f
#22 2.624 /usr/local/src/pgplot/src/pgptxt.f:65:5:
#22 2.624 
#22 2.624    65 |    30 CALL PGEBUF
#22 2.624       |     1
#22 2.624 Warning: Label 30 at (1) defined but not used [-Wunused-label]
#22 2.650 gfortran -c -Wall -O /usr/local/src/pgplot/src/pgqah.f
#22 2.674 gfortran -c -Wall -O /usr/local/src/pgplot/src/pgqcf.f
#22 2.699 gfortran -c -Wall -O /usr/local/src/pgplot/src/pgqch.f
#22 2.723 gfortran -c -Wall -O /usr/local/src/pgplot/src/pgqci.f
#22 2.743 gfortran -c -Wall -O /usr/local/src/pgplot/src/pgqcir.f
#22 2.764 gfortran -c -Wall -O /usr/local/src/pgplot/src/pgqclp.f
#22 2.786 gfortran -c -Wall -O /usr/local/src/pgplot/src/pgqcol.f
#22 2.805 gfortran -c -Wall -O /usr/local/src/pgplot/src/pgqcr.f
#22 2.824 gfortran -c -Wall -O /usr/local/src/pgplot/src/pgqcs.f
#22 2.848 gfortran -c -Wall -O /usr/local/src/pgplot/src/pgqdt.f
#22 2.878 gfortran -c -Wall -O /usr/local/src/pgplot/src/pgqfs.f
#22 2.899 gfortran -c -Wall -O /usr/local/src/pgplot/src/pgqhs.f
#22 2.922 gfortran -c -Wall -O /usr/local/src/pgplot/src/pgqid.f
#22 2.942 gfortran -c -Wall -O /usr/local/src/pgplot/src/pgqinf.f
#22 2.986 gfortran -c -Wall -O /usr/local/src/pgplot/src/pgqitf.f
#22 3.010 gfortran -c -Wall -O /usr/local/src/pgplot/src/pgqls.f
#22 3.032 gfortran -c -Wall -O /usr/local/src/pgplot/src/pgqlw.f
#22 3.053 gfortran -c -Wall -O /usr/local/src/pgplot/src/pgqndt.f
#22 3.075 gfortran -c -Wall -O /usr/local/src/pgplot/src/pgqpos.f
#22 3.096 gfortran -c -Wall -O /usr/local/src/pgplot/src/pgqtbg.f
#22 3.120 gfortran -c -Wall -O /usr/local/src/pgplot/src/pgqtxt.f
#22 3.149 gfortran -c -Wall -O /usr/local/src/pgplot/src/pgqvp.f
#22 3.173 gfortran -c -Wall -O /usr/local/src/pgplot/src/pgqvsz.f
#22 3.200 gfortran -c -Wall -O /usr/local/src/pgplot/src/pgqwin.f
#22 3.228 gfortran -c -Wall -O /usr/local/src/pgplot/src/pgrect.f
#22 3.257 gfortran -c -Wall -O /usr/local/src/pgplot/src/pgrnd.f
#22 3.265 /usr/local/src/pgplot/src/pgrnd.f:36:13:
#22 3.265 
#22 3.265    36 |       ILOG = XLOG
#22 3.265       |             1
#22 3.265 Warning: Possible change of value in conversion from REAL(4) to INTEGER(4) at (1) [-Wconversion]
#22 3.283 gfortran -c -Wall -O /usr/local/src/pgplot/src/pgrnge.f
#22 3.307 gfortran -c -Wall -O /usr/local/src/pgplot/src/pgsah.f
#22 3.329 gfortran -c -Wall -O /usr/local/src/pgplot/src/pgsave.f
#22 3.361 gfortran -c -Wall -O /usr/local/src/pgplot/src/pgscf.f
#22 3.382 gfortran -c -Wall -O /usr/local/src/pgplot/src/pgsch.f
#22 3.413 gfortran -c -Wall -O /usr/local/src/pgplot/src/pgsci.f
#22 3.433 gfortran -c -Wall -O /usr/local/src/pgplot/src/pgscir.f
#22 3.458 gfortran -c -Wall -O /usr/local/src/pgplot/src/pgsclp.f
#22 3.483 gfortran -c -Wall -O /usr/local/src/pgplot/src/pgscr.f
#22 3.511 gfortran -c -Wall -O /usr/local/src/pgplot/src/pgscrl.f
#22 3.538 gfortran -c -Wall -O /usr/local/src/pgplot/src/pgscrn.f
#22 3.578 gfortran -c -Wall -O /usr/local/src/pgplot/src/pgsfs.f
#22 3.600 gfortran -c -Wall -O /usr/local/src/pgplot/src/pgshls.f
#22 3.621 gfortran -c -Wall -O /usr/local/src/pgplot/src/pgshs.f
#22 3.647 gfortran -c -Wall -O /usr/local/src/pgplot/src/pgsitf.f
#22 3.670 gfortran -c -Wall -O /usr/local/src/pgplot/src/pgslct.f
#22 3.692 gfortran -c -Wall -O /usr/local/src/pgplot/src/pgsls.f
#22 3.712 gfortran -c -Wall -O /usr/local/src/pgplot/src/pgslw.f
#22 3.731 gfortran -c -Wall -O /usr/local/src/pgplot/src/pgstbg.f
#22 3.753 gfortran -c -Wall -O /usr/local/src/pgplot/src/pgsubp.f
#22 3.781 gfortran -c -Wall -O /usr/local/src/pgplot/src/pgsvp.f
#22 3.807 gfortran -c -Wall -O /usr/local/src/pgplot/src/pgswin.f
#22 3.829 gfortran -c -Wall -O /usr/local/src/pgplot/src/pgtbox.f
#22 3.854 /usr/local/src/pgplot/src/pgtbox.f:767:11:
#22 3.854 
#22 3.854   767 |       NT = TMIN / TICK
#22 3.854       |           1
#22 3.854 Warning: Possible change of value in conversion from REAL(4) to INTEGER(4) at (1) [-Wconversion]
#22 4.070 gfortran -c -Wall -O /usr/local/src/pgplot/src/pgtext.f
#22 4.092 gfortran -c -Wall -O /usr/local/src/pgplot/src/pgtick.f
#22 4.140 gfortran -c -Wall -O /usr/local/src/pgplot/src/pgtikl.f
#22 4.169 gfortran -c -Wall -O /usr/local/src/pgplot/src/pgupdt.f
#22 4.191 gfortran -c -Wall -O /usr/local/src/pgplot/src/pgvect.f
#22 4.243 gfortran -c -Wall -O /usr/local/src/pgplot/src/pgvsiz.f
#22 4.272 gfortran -c -Wall -O /usr/local/src/pgplot/src/pgvstd.f
#22 4.311 gfortran -c -Wall -O /usr/local/src/pgplot/src/pgvw.f
#22 4.346 gfortran -c -Wall -O /usr/local/src/pgplot/src/pgwedg.f
#22 4.377 /usr/local/src/pgplot/src/pgwedg.f:184:0:
#22 4.377 
#22 4.377   184 |         IF (IMAGE) THEN
#22 4.377       | 
#22 4.377 Warning: 'image' may be used uninitialized in this function [-Wmaybe-uninitialized]
#22 4.415 gfortran -c -Wall -O /usr/local/src/pgplot/src/pgwnad.f
#22 4.447 gfortran -c -Wall -O /usr/local/src/pgplot/src/pgadvance.f
#22 4.468 gfortran -c -Wall -O /usr/local/src/pgplot/src/pgbegin.f
#22 4.493 gfortran -c -Wall -O /usr/local/src/pgplot/src/pgcurse.f
#22 4.515 gfortran -c -Wall -O /usr/local/src/pgplot/src/pglabel.f
#22 4.535 gfortran -c -Wall -O /usr/local/src/pgplot/src/pgmtext.f
#22 4.559 gfortran -c -Wall -O /usr/local/src/pgplot/src/pgncurse.f
#22 4.585 gfortran -c -Wall -O /usr/local/src/pgplot/src/pgpaper.f
#22 4.607 gfortran -c -Wall -O /usr/local/src/pgplot/src/pgpoint.f
#22 4.627 gfortran -c -Wall -O /usr/local/src/pgplot/src/pgptext.f
#22 4.647 gfortran -c -Wall -O /usr/local/src/pgplot/src/pgvport.f
#22 4.665 gfortran -c -Wall -O /usr/local/src/pgplot/src/pgvsize.f
#22 4.684 gfortran -c -Wall -O /usr/local/src/pgplot/src/pgvstand.f
#22 4.703 gfortran -c -Wall -O /usr/local/src/pgplot/src/pgwindow.f
#22 4.724 gfortran -c -Wall -O /usr/local/src/pgplot/src/grarea.f
#22 4.748 gfortran -c -Wall -O /usr/local/src/pgplot/src/grbpic.f
#22 4.773 gfortran -c -Wall -O /usr/local/src/pgplot/src/grchsz.f
#22 4.795 gfortran -c -Wall -O /usr/local/src/pgplot/src/grclip.f
#22 4.816 gfortran -c -Wall -O /usr/local/src/pgplot/src/grclos.f
#22 4.838 gfortran -c -Wall -O /usr/local/src/pgplot/src/grclpl.f
#22 4.866 gfortran -c -Wall -O /usr/local/src/pgplot/src/grctoi.f
#22 4.889 gfortran -c -Wall -O /usr/local/src/pgplot/src/grcurs.f
#22 4.898 /usr/local/src/pgplot/src/grcurs.f:96:15:
#22 4.898 
#22 4.898    96 |           IX = RBUF(1)
#22 4.898       |               1
#22 4.898 Warning: Possible change of value in conversion from REAL(4) to INTEGER(4) at (1) [-Wconversion]
#22 4.899 /usr/local/src/pgplot/src/grcurs.f:97:15:
#22 4.899 
#22 4.899    97 |           IY = RBUF(2)
#22 4.899       |               1
#22 4.899 Warning: Possible change of value in conversion from REAL(4) to INTEGER(4) at (1) [-Wconversion]
#22 4.929 gfortran -c -Wall -O /usr/local/src/pgplot/src/grdot0.f
#22 4.956 gfortran -c -Wall -O /usr/local/src/pgplot/src/grdot1.f
#22 4.989 gfortran -c -Wall -O /usr/local/src/pgplot/src/grdtyp.f
#22 5.022 gfortran -c -Wall -O /usr/local/src/pgplot/src/gresc.f
#22 5.048 gfortran -c -Wall -O /usr/local/src/pgplot/src/grepic.f
#22 5.072 gfortran -c -Wall -O /usr/local/src/pgplot/src/gretxt.f
#22 5.096 gfortran -c -Wall -O /usr/local/src/pgplot/src/grfa.f
#22 5.149 gfortran -c -Wall -O /usr/local/src/pgplot/src/grfao.f
#22 5.173 gfortran -c -Wall -O /usr/local/src/pgplot/src/grgfil.f
#22 5.190 /usr/local/src/pgplot/src/grgfil.f:63:0:
#22 5.190 
#22 5.190    63 |                L = L+LD
#22 5.190       | 
#22 5.190 Warning: 'ld' may be used uninitialized in this function [-Wmaybe-uninitialized]
#22 5.217 gfortran -c -Wall -O /usr/local/src/pgplot/src/grgray.f
#22 5.248 gfortran -c -Wall -O /usr/local/src/pgplot/src/grimg0.f
#22 5.273 gfortran -c -Wall -O /usr/local/src/pgplot/src/grimg1.f
#22 5.313 gfortran -c -Wall -O /usr/local/src/pgplot/src/grimg2.f
#22 5.359 gfortran -c -Wall -O /usr/local/src/pgplot/src/grimg3.f
#22 5.381 /usr/local/src/pgplot/src/grimg3.f:84:0:
#22 5.381 
#22 5.381    84 |               IF (VALUE.GT.RAND) CALL GRDOT0(REAL(IX),REAL(IY))
#22 5.381       | 
#22 5.381 Warning: 'value' may be used uninitialized in this function [-Wmaybe-uninitialized]
#22 5.402 gfortran -c -Wall -O /usr/local/src/pgplot/src/grinit.f
#22 5.431 gfortran -c -Wall -O /usr/local/src/pgplot/src/gritoc.f
#22 5.460 gfortran -c -Wall -O /usr/local/src/pgplot/src/grlen.f
#22 5.493 gfortran -c -Wall -O /usr/local/src/pgplot/src/grlin0.f
#22 5.522 gfortran -c -Wall -O /usr/local/src/pgplot/src/grlin1.f
#22 5.554 gfortran -c -Wall -O /usr/local/src/pgplot/src/grlin2.f
#22 5.576 gfortran -c -Wall -O /usr/local/src/pgplot/src/grlin3.f
#22 5.603 gfortran -c -Wall -O /usr/local/src/pgplot/src/grlina.f
#22 5.627 gfortran -c -Wall -O /usr/local/src/pgplot/src/grmcur.f
#22 5.649 gfortran -c -Wall -O /usr/local/src/pgplot/src/grmker.f
#22 5.698 gfortran -c -Wall -O /usr/local/src/pgplot/src/grmova.f
#22 5.719 gfortran -c -Wall -O /usr/local/src/pgplot/src/grmsg.f
#22 5.740 gfortran -c -Wall -O /usr/local/src/pgplot/src/gropen.f
#22 5.751 /usr/local/src/pgplot/src/gropen.f:97:72:
#22 5.751 
#22 5.751    97 |       GRFILE(IDENT) = FFILE
#22 5.751       |                                                                        1
#22 5.751 Warning: CHARACTER expression will be truncated in assignment (90/128) at (1) [-Wcharacter-truncation]
#22 5.751 /usr/local/src/pgplot/src/gropen.f:106:13:
#22 5.751 
#22 5.751   106 |       GROPEN=RBUF(2)
#22 5.751       |             1
#22 5.751 Warning: Possible change of value in conversion from REAL(4) to INTEGER(4) at (1) [-Wconversion]
#22 5.751 /usr/local/src/pgplot/src/gropen.f:112:20:
#22 5.751 
#22 5.751   112 |       GRUNIT(IDENT)=RBUF(1)
#22 5.751       |                    1
#22 5.751 Warning: Possible change of value in conversion from REAL(4) to INTEGER(4) at (1) [-Wconversion]
#22 5.751 /usr/local/src/pgplot/src/gropen.f:121:20:
#22 5.751 
#22 5.751   121 |       GRMNCI(IDENT)=RBUF(5)
#22 5.751       |                    1
#22 5.751 Warning: Possible change of value in conversion from REAL(4) to INTEGER(4) at (1) [-Wconversion]
#22 5.751 /usr/local/src/pgplot/src/gropen.f:122:20:
#22 5.751 
#22 5.751   122 |       GRMXCI(IDENT)=RBUF(6)
#22 5.751       |                    1
#22 5.751 Warning: Possible change of value in conversion from REAL(4) to INTEGER(4) at (1) [-Wconversion]
#22 5.751 /usr/local/src/pgplot/src/gropen.f:133:22:
#22 5.751 
#22 5.751   133 |       GRXMXA(IDENT) = RBUF(2)
#22 5.751       |                      1
#22 5.751 Warning: Possible change of value in conversion from REAL(4) to INTEGER(4) at (1) [-Wconversion]
#22 5.751 /usr/local/src/pgplot/src/gropen.f:134:22:
#22 5.751 
#22 5.751   134 |       GRYMXA(IDENT) = RBUF(4)
#22 5.751       |                      1
#22 5.751 Warning: Possible change of value in conversion from REAL(4) to INTEGER(4) at (1) [-Wconversion]
#22 5.752 /usr/local/src/pgplot/src/gropen.f:3:41:
#22 5.752 
#22 5.752     3 |       INTEGER FUNCTION GROPEN (TYPE,DUMMY,FILE,IDENT)
#22 5.752       |                                         1
#22 5.752 Warning: Unused dummy argument 'dummy' at (1) [-Wunused-dummy-argument]
#22 5.782 gfortran -c -Wall -O /usr/local/src/pgplot/src/grpage.f
#22 5.791 /usr/local/src/pgplot/src/grpage.f:51:27:
#22 5.791 
#22 5.791    51 |           GRXMXA(GRCIDE) = RBUF(2)
#22 5.791       |                           1
#22 5.791 Warning: Possible change of value in conversion from REAL(4) to INTEGER(4) at (1) [-Wconversion]
#22 5.791 /usr/local/src/pgplot/src/grpage.f:52:27:
#22 5.791 
#22 5.791    52 |           GRYMXA(GRCIDE) = RBUF(4)
#22 5.791       |                           1
#22 5.791 Warning: Possible change of value in conversion from REAL(4) to INTEGER(4) at (1) [-Wconversion]
#22 5.805 gfortran -c -Wall -O /usr/local/src/pgplot/src/grpars.f
#22 5.847 gfortran -c -Wall -O /usr/local/src/pgplot/src/grpixl.f
#22 5.857 /usr/local/src/pgplot/src/grpixl.f:106:7:
#22 5.857 
#22 5.857   106 |      1       XMIN,XMAX,YMIN,YMAX)
#22 5.857       |       1
#22 5.857 Warning: Nonconforming tab character at (1) [-Wtabs]
#22 5.858 /usr/local/src/pgplot/src/grpixl.f:125:7:
#22 5.858 
#22 5.858   125 |      1       XMIN, XMAX, YMIN, YMAX)
#22 5.858       |       1
#22 5.858 Warning: Nonconforming tab character at (1) [-Wtabs]
#22 5.859 /usr/local/src/pgplot/src/grpixl.f:170:7:
#22 5.859 
#22 5.859   170 |      1       XMIN, XMAX, YMIN, YMAX)
#22 5.859       |       1
#22 5.859 Warning: Nonconforming tab character at (1) [-Wtabs]
#22 5.859 /usr/local/src/pgplot/src/grpixl.f:67:14:
#22 5.859 
#22 5.859    67 |          IL = I1 + (GRXMIN(GRCIDE) - XMIN) * (I2 - I1 + 1) / XPIX
#22 5.859       |              1
#22 5.859 Warning: Possible change of value in conversion from REAL(4) to INTEGER(4) at (1) [-Wconversion]
#22 5.859 /usr/local/src/pgplot/src/grpixl.f:76:14:
#22 5.859 
#22 5.859    76 |          IR = I2 - (XMAX - GRXMAX(GRCIDE)) * (I2 - I1 + 1) / XPIX + 1
#22 5.859       |              1
#22 5.859 Warning: Possible change of value in conversion from REAL(4) to INTEGER(4) at (1) [-Wconversion]
#22 5.860 /usr/local/src/pgplot/src/grpixl.f:86:14:
#22 5.860 
#22 5.860    86 |          JB = J1 + (GRYMIN(GRCIDE) - YMIN) * (J2 - J1 + 1) / YPIX
#22 5.860       |              1
#22 5.860 Warning: Possible change of value in conversion from REAL(4) to INTEGER(4) at (1) [-Wconversion]
#22 5.860 /usr/local/src/pgplot/src/grpixl.f:95:14:
#22 5.860 
#22 5.860    95 |          JT = J2 - (YMAX - GRYMAX(GRCIDE)) * (J2 - J1 + 1) / YPIX + 1
#22 5.860       |              1
#22 5.860 Warning: Possible change of value in conversion from REAL(4) to INTEGER(4) at (1) [-Wconversion]
#22 5.890 gfortran -c -Wall -O /usr/local/src/pgplot/src/grpocl.f
#22 5.909 /usr/local/src/pgplot/src/grpocl.f:83:0:
#22 5.909 
#22 5.909    83 |       ELSE IF ((EDGE.EQ.3 .OR. EDGE.EQ.4) .AND.
#22 5.909       | 
#22 5.909 Warning: 'sy' may be used uninitialized in this function [-Wmaybe-uninitialized]
#22 5.909 /usr/local/src/pgplot/src/grpocl.f:76:0:
#22 5.909 
#22 5.909    76 |       IF ((EDGE.EQ.1 .OR. EDGE.EQ.2) .AND.
#22 5.909       | 
#22 5.909 Warning: 'sx' may be used uninitialized in this function [-Wmaybe-uninitialized]
#22 5.909 /usr/local/src/pgplot/src/grpocl.f:83:0:
#22 5.909 
#22 5.909    83 |       ELSE IF ((EDGE.EQ.3 .OR. EDGE.EQ.4) .AND.
#22 5.909       | 
#22 5.909 Warning: 'fy' may be used uninitialized in this function [-Wmaybe-uninitialized]
#22 5.909 /usr/local/src/pgplot/src/grpocl.f:76:0:
#22 5.909 
#22 5.909    76 |       IF ((EDGE.EQ.1 .OR. EDGE.EQ.2) .AND.
#22 5.909       | 
#22 5.909 Warning: 'fx' may be used uninitialized in this function [-Wmaybe-uninitialized]
#22 5.927 gfortran -c -Wall -O /usr/local/src/pgplot/src/grprom.f
#22 5.946 gfortran -c -Wall -O /usr/local/src/pgplot/src/grpxpo.f
#22 5.978 gfortran -c -Wall -O /usr/local/src/pgplot/src/grpxps.f
#22 6.014 gfortran -c -Wall -O /usr/local/src/pgplot/src/grpxpx.f
#22 6.056 gfortran -c -Wall -O /usr/local/src/pgplot/src/grpxre.f
#22 6.094 gfortran -c -Wall -O /usr/local/src/pgplot/src/grqcap.f
#22 6.120 gfortran -c -Wall -O /usr/local/src/pgplot/src/grqci.f
#22 6.141 gfortran -c -Wall -O /usr/local/src/pgplot/src/grqcol.f
#22 6.161 gfortran -c -Wall -O /usr/local/src/pgplot/src/grqcr.f
#22 6.186 gfortran -c -Wall -O /usr/local/src/pgplot/src/grqdev.f
#22 6.212 gfortran -c -Wall -O /usr/local/src/pgplot/src/grqdt.f
#22 6.245 gfortran -c -Wall -O /usr/local/src/pgplot/src/grqfnt.f
#22 6.268 gfortran -c -Wall -O /usr/local/src/pgplot/src/grqls.f
#22 6.288 gfortran -c -Wall -O /usr/local/src/pgplot/src/grqlw.f
#22 6.315 gfortran -c -Wall -O /usr/local/src/pgplot/src/grqpos.f
#22 6.335 gfortran -c -Wall -O /usr/local/src/pgplot/src/grqtxt.f
#22 6.378 gfortran -c -Wall -O /usr/local/src/pgplot/src/grqtyp.f
#22 6.403 gfortran -c -Wall -O /usr/local/src/pgplot/src/grquit.f
#22 6.426 gfortran -c -Wall -O /usr/local/src/pgplot/src/grrec0.f
#22 6.437 /usr/local/src/pgplot/src/grrec0.f:90:15:
#22 6.437 
#22 6.437    90 |       NLINES = ABS((YMAX-YMIN)/DY)
#22 6.437       |               1
#22 6.437 Warning: Possible change of value in conversion from REAL(4) to INTEGER(4) at (1) [-Wconversion]
#22 6.464 gfortran -c -Wall -O /usr/local/src/pgplot/src/grrect.f
#22 6.491 gfortran -c -Wall -O /usr/local/src/pgplot/src/grsci.f
#22 6.518 gfortran -c -Wall -O /usr/local/src/pgplot/src/grscr.f
#22 6.550 gfortran -c -Wall -O /usr/local/src/pgplot/src/grscrl.f
#22 6.576 gfortran -c -Wall -O /usr/local/src/pgplot/src/grsetc.f
#22 6.597 gfortran -c -Wall -O /usr/local/src/pgplot/src/grsets.f
#22 6.604 /usr/local/src/pgplot/src/grsets.f:34:26:
#22 6.604 
#22 6.604    34 |           GRXMXA(IDENT) = RBUF(2)
#22 6.604       |                          1
#22 6.604 Warning: Possible change of value in conversion from REAL(4) to INTEGER(4) at (1) [-Wconversion]
#22 6.605 /usr/local/src/pgplot/src/grsets.f:35:26:
#22 6.605 
#22 6.605    35 |           GRYMXA(IDENT) = RBUF(4)
#22 6.605       |                          1
#22 6.605 Warning: Possible change of value in conversion from REAL(4) to INTEGER(4) at (1) [-Wconversion]
#22 6.606 /usr/local/src/pgplot/src/grsets.f:40:13:
#22 6.606 
#22 6.606    40 |           IX=RBUF(2)
#22 6.606       |             1
#22 6.606 Warning: Possible change of value in conversion from REAL(4) to INTEGER(4) at (1) [-Wconversion]
#22 6.606 /usr/local/src/pgplot/src/grsets.f:41:13:
#22 6.606 
#22 6.606    41 |           IY=RBUF(4)
#22 6.606       |             1
#22 6.606 Warning: Possible change of value in conversion from REAL(4) to INTEGER(4) at (1) [-Wconversion]
#22 6.624 gfortran -c -Wall -O /usr/local/src/pgplot/src/grsfnt.f
#22 6.649 gfortran -c -Wall -O /usr/local/src/pgplot/src/grsize.f
#22 6.673 gfortran -c -Wall -O /usr/local/src/pgplot/src/grskpb.f
#22 6.694 gfortran -c -Wall -O /usr/local/src/pgplot/src/grslct.f
#22 6.716 gfortran -c -Wall -O /usr/local/src/pgplot/src/grsls.f
#22 6.744 gfortran -c -Wall -O /usr/local/src/pgplot/src/grslw.f
#22 6.769 gfortran -c -Wall -O /usr/local/src/pgplot/src/grsyds.f
#22 6.811 gfortran -c -Wall -O /usr/local/src/pgplot/src/grsymk.f
#22 6.849 gfortran -c -Wall -O /usr/local/src/pgplot/src/grsyxd.f
#22 6.873 gfortran -c -Wall -O /usr/local/src/pgplot/src/grterm.f
#22 6.893 gfortran -c -Wall -O /usr/local/src/pgplot/src/grtext.f
#22 6.903 /usr/local/src/pgplot/src/grtext.f:3:31:
#22 6.903 
#22 6.903     3 |       SUBROUTINE GRTEXT (CENTER,ORIENT,ABSXY,X0,Y0,STRING)
#22 6.903       |                               1
#22 6.903 Warning: Unused dummy argument 'center' at (1) [-Wunused-dummy-argument]
#22 6.920 /usr/local/src/pgplot/src/grtext.f:169:0:
#22 6.920 
#22 6.920   169 |          STEMP = '% End "' // STRING(1:SLEN) // '"'
#22 6.920       | 
#22 6.920 Warning: 'slen' may be used uninitialized in this function [-Wmaybe-uninitialized]
#22 6.919 gfortran -c -Wall -O /usr/local/src/pgplot/src/grtoup.f
#22 6.944 gfortran -c -Wall -O /usr/local/src/pgplot/src/grtrim.f
#22 6.968 gfortran -c -Wall -O /usr/local/src/pgplot/src/grtrn0.f
#22 6.995 gfortran -c -Wall -O /usr/local/src/pgplot/src/grtxy0.f
#22 7.017 gfortran -c -Wall -O /usr/local/src/pgplot/src/grvct0.f
#22 7.047 gfortran -c -Wall -O /usr/local/src/pgplot/src/grwarn.f
#22 7.069 gfortran -c -Wall -O /usr/local/src/pgplot/src/grxhls.f
#22 7.099 gfortran -c -Wall -O /usr/local/src/pgplot/src/grxrgb.f
#22 7.125 gfortran -c -Wall -O grexec.f
#22 7.153 gfortran -c -Wall -O /usr/local/src/pgplot/drivers/gidriv.f
#22 7.167 /usr/local/src/pgplot/drivers/gidriv.f:574:72:
#22 7.167 
#22 7.167   574 |          DO 100 K=0,4095
#22 7.167       |                                                                        1
#22 7.167 Warning: Fortran 2018 deleted feature: Shared DO termination label 100 at (1)
#22 7.168 /usr/local/src/pgplot/drivers/gidriv.f:575:72:
#22 7.168 
#22 7.168   575 |   100       CODE(K,M)=0
#22 7.168       |                                                                        1
#22 7.168 Warning: Fortran 2018 deleted feature: DO termination statement which is not END DO or CONTINUE with label 100 at (1)
#22 7.169 /usr/local/src/pgplot/drivers/gidriv.f:619:72:
#22 7.169 
#22 7.169   619 |          DO 330 K=0,4095
#22 7.169       |                                                                        1
#22 7.169 Warning: Fortran 2018 deleted feature: Shared DO termination label 330 at (1)
#22 7.169 /usr/local/src/pgplot/drivers/gidriv.f:620:72:
#22 7.169 
#22 7.169   620 |   330       CODE(K,M)=0
#22 7.169       |                                                                        1
#22 7.169 Warning: Fortran 2018 deleted feature: DO termination statement which is not END DO or CONTINUE with label 330 at (1)
#22 7.171 /usr/local/src/pgplot/drivers/gidriv.f:465:15:
#22 7.171 
#22 7.171   465 |          VAL = ICOL-256
#22 7.171       |               1
#22 7.171 Warning: Possible change of value in conversion from INTEGER(4) to INTEGER(1) at (1) [-Wconversion]
#22 7.171 /usr/local/src/pgplot/drivers/gidriv.f:467:15:
#22 7.171 
#22 7.171   467 |          VAL = ICOL
#22 7.171       |               1
#22 7.171 Warning: Possible change of value in conversion from INTEGER(4) to INTEGER(1) at (1) [-Wconversion]
#22 7.171 /usr/local/src/pgplot/drivers/gidriv.f:248:72:
#22 7.171 
#22 7.171   248 |      :     CALL GRGI03(1, 1, BX, BY, 0, BX, BY, %VAL(PIXMAP))
#22 7.171       |                                                                        1
#22 7.171 Warning: Type mismatch in argument 'pixmap' at (1); passed INTEGER(4) to INTEGER(1) [-Wargument-mismatch]
#22 7.171 /usr/local/src/pgplot/drivers/gidriv.f:422:15:
#22 7.171 
#22 7.171   422 |          VAL = ICOL-256
#22 7.171       |               1
#22 7.171 Warning: Possible change of value in conversion from INTEGER(4) to INTEGER(1) at (1) [-Wconversion]
#22 7.171 /usr/local/src/pgplot/drivers/gidriv.f:424:15:
#22 7.171 
#22 7.171   424 |          VAL = ICOL
#22 7.171       |               1
#22 7.171 Warning: Possible change of value in conversion from INTEGER(4) to INTEGER(1) at (1) [-Wconversion]
#22 7.172 /usr/local/src/pgplot/drivers/gidriv.f:266:72:
#22 7.172 
#22 7.172   266 |      :     CALL GRGI01(IX0, IY0, IX1, IY1, IC, BX, BY, %VAL(PIXMAP))
#22 7.172       |                                                                        1
#22 7.172 Warning: Type mismatch in argument 'pixmap' at (1); passed INTEGER(4) to INTEGER(1) [-Wargument-mismatch]
#22 7.172 /usr/local/src/pgplot/drivers/gidriv.f:275:72:
#22 7.172 
#22 7.172   275 |      :     CALL GRGI01(IX0, IY0, IX0, IY0, IC, BX, BY, %VAL(PIXMAP))
#22 7.172       |                                                                        1
#22 7.172 Warning: Type mismatch in argument 'pixmap' at (1); passed INTEGER(4) to INTEGER(1) [-Wargument-mismatch]
#22 7.173 /usr/local/src/pgplot/drivers/gidriv.f:675:21:
#22 7.173 
#22 7.173   675 |       BLKOUT(BOUT) = J
#22 7.173       |                     1
#22 7.173 Warning: Possible change of value in conversion from INTEGER(4) to INTEGER(1) at (1) [-Wconversion]
#22 7.173 /usr/local/src/pgplot/drivers/gidriv.f:613:23:
#22 7.173 
#22 7.173   613 |       CODE(OLDPRE,EXT)=TABLE
#22 7.173       |                       1
#22 7.173 Warning: Possible change of value in conversion from INTEGER(4) to INTEGER(2) at (1) [-Wconversion]
#22 7.173 /usr/local/src/pgplot/drivers/gidriv.f:630:24:
#22 7.173 
#22 7.173   630 |             BLKOUT(0) = BOUT-256
#22 7.173       |                        1
#22 7.173 Warning: Possible change of value in conversion from INTEGER(4) to INTEGER(1) at (1) [-Wconversion]
#22 7.173 /usr/local/src/pgplot/drivers/gidriv.f:632:24:
#22 7.173 
#22 7.173   632 |             BLKOUT(0) = BOUT
#22 7.173       |                        1
#22 7.173 Warning: Possible change of value in conversion from INTEGER(4) to INTEGER(1) at (1) [-Wconversion]
#22 7.174 /usr/local/src/pgplot/drivers/gidriv.f:288:72:
#22 7.174 
#22 7.174   288 |      :                  %VAL(WORK))
#22 7.174       |                                                                        1
#22 7.174 Warning: Type mismatch in argument 'pixmap' at (1); passed INTEGER(4) to INTEGER(1) [-Wargument-mismatch]
#22 7.174 /usr/local/src/pgplot/drivers/gidriv.f:304:11:
#22 7.174 
#22 7.174   304 |       IC = RBUF(1)
#22 7.174       |           1
#22 7.174 Warning: Possible change of value in conversion from REAL(4) to INTEGER(4) at (1) [-Wconversion]
#22 7.174 /usr/local/src/pgplot/drivers/gidriv.f:341:10:
#22 7.174 
#22 7.174   341 |       I = RBUF(1)
#22 7.174       |          1
#22 7.174 Warning: Possible change of value in conversion from REAL(4) to INTEGER(4) at (1) [-Wconversion]
#22 7.174 /usr/local/src/pgplot/drivers/gidriv.f:367:72:
#22 7.174 
#22 7.174   367 |      :     CALL GRGI03(IX0, IY0, IX1, IY1, IC, BX, BY, %VAL(PIXMAP))
#22 7.174       |                                                                        1
#22 7.174 Warning: Type mismatch in argument 'pixmap' at (1); passed INTEGER(4) to INTEGER(1) [-Wargument-mismatch]
#22 7.174 /usr/local/src/pgplot/drivers/gidriv.f:486:12:
#22 7.174 
#22 7.174   486 |          IC=RBUF(N)
#22 7.174       |            1
#22 7.174 Warning: Possible change of value in conversion from REAL(4) to INTEGER(4) at (1) [-Wconversion]
#22 7.174 /usr/local/src/pgplot/drivers/gidriv.f:489:25:
#22 7.174 
#22 7.174   489 |          PIXMAP(I+N-3,J)=IC
#22 7.174       |                         1
#22 7.174 Warning: Possible change of value in conversion from INTEGER(4) to INTEGER(1) at (1) [-Wconversion]
#22 7.174 /usr/local/src/pgplot/drivers/gidriv.f:378:72:
#22 7.174 
#22 7.174   378 |       CALL GRGI04(NBUF, RBUF, BX, BY, %VAL(PIXMAP), MAXIDX)
#22 7.174       |                                                                        1
#22 7.174 Warning: Type mismatch in argument 'pixmap' at (1); passed INTEGER(4) to INTEGER(1) [-Wargument-mismatch]
#22 7.175 /usr/local/src/pgplot/drivers/gidriv.f:394:10:
#22 7.175 
#22 7.175   394 |       I = RBUF(1)
#22 7.175       |          1
#22 7.175 Warning: Possible change of value in conversion from REAL(4) to INTEGER(4) at (1) [-Wconversion]
#22 7.286 gfortran -c -Wall -O /usr/local/src/pgplot/drivers/nudriv.f
#22 7.299 /usr/local/src/pgplot/drivers/nudriv.f:162:10:
#22 7.299 
#22 7.299   162 |       I = RBUF(2) - 67890
#22 7.299       |          1
#22 7.299 Warning: Possible change of value in conversion from REAL(4) to INTEGER(4) at (1) [-Wconversion]
#22 7.299 /usr/local/src/pgplot/drivers/nudriv.f:308:10:
#22 7.299 
#22 7.299   308 |       I = RBUF(1)
#22 7.299       |          1
#22 7.299 Warning: Possible change of value in conversion from REAL(4) to INTEGER(4) at (1) [-Wconversion]
#22 7.299 /usr/local/src/pgplot/drivers/nudriv.f:360:10:
#22 7.299 
#22 7.299   360 |       I = RBUF(1)
#22 7.299       |          1
#22 7.299 Warning: Possible change of value in conversion from REAL(4) to INTEGER(4) at (1) [-Wconversion]
#22 7.353 make: *** No rule to make target 'png.h', needed by 'pndriv.o'.  Stop.
------
executor failed running [/bin/sh -c /usr/local/src/pgplot/makemake /usr/local/src/pgplot linux g77_gcc_aout &&     sed -i 's/FCOMPL=g77/FCOMPL=gfortran/' makefile &&     make &&     make cpg &&     make clean]: exit code: 2
➜  presto git:(master) ✗ 

@scottransom
Copy link
Owner

@NickSwainston So I'm curious about this. I looked at the Dockerfile and see that you have PGPLOT being installed from scratch (which @matteobachetti is having problems with). Is there a reason for that? The Ubuntu pgplot5 package has all that is needed for PRESTO (and also, I believe, for most other astro packages. So I think that whole part of the Docker install could be skipped (and note that you could skip the Tempo2 install, as well, as that isn't needed by PRESTO -- although if you are making a general-purpose pulsar-software image it should certainly be there!)

The only thing you need on Ubuntu PGPLOT-wise is the following environment variable set before you compile PRESTO:

export PGPLOT_DIR=/usr/lib/pgplot

And, one other thing. I tested installing full PRESTO on a completely clean Ubuntu 20.04 last year, and this command gets all of the packages needed for compilation and running:

apt install git build-essential libfftw3-bin libfftw3-dev pgplot5 libglib2.0-dev libcfitsio-bin libcfitsio-dev libpng-dev gfortran tcsh autoconf libx11-dev python3-dev python3-numpy python3-pip

@NickSwainston
Copy link
Contributor

I just made a pull request (#145) that fixes the bug and address your comments. I no longer install pgplot from scratch. I think I only did this because I got errors due to the missing PGPLOT_DIR environmental variable. I also removed tempo2 to make the image as minimal as possible, as I can add that in my version of the image.

@matteobachetti
Copy link
Contributor Author

It worked!

Building 942.7s (18/18) FINISHED  

Thanks @NickSwainston!

@scottransom, do you think it would be possible to get this built on Docker Hub or similar? This would save a lot of time to users and, also, allow to use it straight away in cloud computing environments.

@scottransom
Copy link
Owner

Sounds like a great idea to me, although since I haven't been a Docker user I have no idea what that entails. I can poke around. But if you guys have ideas, please let me know!

@matteobachetti
Copy link
Contributor Author

It is fairly easy. You start by creating a Docker Hub repo, e.g.

https://hub.docker.com/repository/docker/matteobachetti/presto

and log in from your Docker client.

Once you build the software locally, you can tag it

docker build -f docker/Dockerfile . -t matteobachetti/presto

and push to Docker Hub as I did here:

docker push matteobachetti/presto:latest 

That's it!
There is also a way to build it at every push from Github, like you do in CI, and it's just a matter of writing a YAML config file. I don't know what's the current limit on processing time, it was ~an hour a few years ago

@scottransom
Copy link
Owner

Hmmm. This doesn't seem to be working for me. I'm getting a GLIBC error when the build tries to run the test code:

Successfully installed cycler-0.10.0 future-0.18.2 kiwisolver-1.3.1 matplotlib-3.4.2 pillow-8.2.0 presto-4.0 pyparsing-2.4.7 pyslalib-1.0.4 python-dateutil-2.8.1 six-1.16.0
Traceback (most recent call last):
  File "tests/test_presto_python.py", line 3, in <module>
    from presto import presto
  File "/usr/local/lib/python3.8/dist-packages/presto/presto/__init__.py", line 5, in <module>
    from .prestoswig import *
  File "/usr/local/lib/python3.8/dist-packages/presto/presto/prestoswig.py", line 11, in <module>
    import _presto
ImportError: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found (required by /code/presto/lib/libpresto.so)
The command '/bin/sh -c pip3 install /code/presto &&     sed -i 's/env python/env python3/' /code/presto/bin/*py &&     python3 tests/test_presto_python.py' returned a non-zero code: 1

@scottransom
Copy link
Owner

Ah-ha... I think I see the issue. My system is running Ubuntu 21.04, but the Docker build is for Ubuntu 20.04. During the build, docker saw that my PRESTO C-libraries were already compiled, and so it simply copied the PRESTO stuff into the docker without rebuilding. But that is with a different GLIBC. So I think need to force a "make cleaner" in the Docker build to prevent that. I'll see if I can make the patch and test it.

@scottransom
Copy link
Owner

Another question: many of the PRESTO applications bring up x-windows and need X-based interactivity. What is the recommended way to do that? I'm seeing a ton of possible solutions, none of which seem really straightforward and really depend on what your main system (i.e. OS) is running.

@yangwugu
Copy link

I also made an error when executing dockerfile. My error occurred when installing tempo, as shown in the figure.

`>Step 18/22 : RUN git clone git://github.com/nanograv/tempo.git && cd tempo && ./prepare && ./configure && make && make install
---> Running in 08f91e7714ac
Cloning into 'tempo'...
configure.ac:6: installing 'config/compile'
configure.ac:24: installing 'config/config.guess'
configure.ac:24: installing 'config/config.sub'
configure.ac:3: installing 'config/install-sh'
configure.ac:3: installing 'config/missing'
src/Makefile.am: installing 'config/depcomp'
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking whether make supports the include directive... yes (GNU style)
checking dependency style of gcc... gcc3
checking for gfortran... gfortran
checking whether we are using the GNU Fortran 77 compiler... yes
checking whether gfortran accepts -g... yes
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking whether byte ordering is bigendian... no
checking malloc.h usability... yes
checking malloc.h presence... yes
checking for malloc.h... yes
checking build system type... aarch64-unknown-linux-gnu
checking host system type... aarch64-unknown-linux-gnu
checking how to get verbose linking output from gfortran... -v
checking for Fortran 77 libraries of gfortran... -L/usr/lib/gcc/aarch64-linux-gnu/9 -L/usr/lib/gcc/aarch64-linux-gnu/9/../../../aarch64-linux-gnu -L/usr/lib/gcc/aarch64-linux-gnu/9/../../../../lib -L/lib/aarch64-linux-gnu -L/lib/../lib -L/usr/lib/aarch64-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/aarch64-linux-gnu/9/../../.. -lgfortran -lm
checking for dummy main to link with Fortran 77 libraries... none
checking for Fortran 77 name-mangling scheme... lower case, underscore, no extra underscore
checking if sgemm_ is being linked in already... no
checking for sgemm_ in -lopenblas... no
checking for ATL_xerbla in -latlas... no
checking for sgemm_ in -lblas... no
checking for sgemm_ in -lmkl... no
checking for sgemm_ in -framework vecLib... no
checking for sgemm_ in -lcxml... no
checking for sgemm_ in -ldxml... no
checking for sgemm_ in -lscs... no
checking for sgemm_ in -lcomplib.sgimath... no
checking for sgemm_ in -lblas... (cached) no
checking for sgemm_ in -lblas... (cached) no
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating tempo.cfg
config.status: creating src/config.h
config.status: creating clock/Makefile
config.status: creating ephem/Makefile
config.status: creating test/Makefile
config.status: creating tzpar/Makefile
config.status: creating util/print_resid/Makefile
config.status: executing depfiles commands

Tempo is ready to be compiled. Please run 'make'.

'make install' will copy 'tempo' to /usr/local/bin.

Making all in src
make[1]: Entering directory '/home/soft/tempo/src'
gfortran -g -O2 -ffixed-form -ffixed-line-length-none -std=legacy -c -o a1ut1f.o a1ut1f.f
gfortran -g -O2 -ffixed-form -ffixed-line-length-none -std=legacy -c -o a1utcf.o a1utcf.f
gfortran -g -O2 -ffixed-form -ffixed-line-length-none -std=legacy -c -o ang.o ang.f
gfortran -g -O2 -ffixed-form -ffixed-line-length-none -std=legacy -c -o arrtim.o arrtim.f
gfortran -g -O2 -ffixed-form -ffixed-line-length-none -std=legacy -c -o atimfake.o atimfake.f
gfortran -g -O2 -ffixed-form -ffixed-line-length-none -std=legacy -c -o bigendian.o bigendian.f
gfortran -g -O2 -ffixed-form -ffixed-line-length-none -std=legacy -c -o blkdbat.o blkdbat.f
gfortran -g -O2 -ffixed-form -ffixed-line-length-none -std=legacy -c -o bnrybt.o bnrybt.f
gfortran -g -O2 -ffixed-form -ffixed-line-length-none -std=legacy -c -o bnrybtx.o bnrybtx.f
gfortran -g -O2 -ffixed-form -ffixed-line-length-none -std=legacy -c -o bnrydd.o bnrydd.f
gfortran -g -O2 -ffixed-form -ffixed-line-length-none -std=legacy -c -o bnryddgr.o bnryddgr.f
gfortran -g -O2 -ffixed-form -ffixed-line-length-none -std=legacy -c -o bnryddk.o bnryddk.f
gfortran -g -O2 -ffixed-form -ffixed-line-length-none -std=legacy -c -o bnryddt.o bnryddt.f
bnryddt.f:123:10:

46 | do 20 i=1,4
| 2
......
123 | 20 trb(i)=-d2bar
| 1
Warning: Array reference at (1) out of bounds (4 > 3) in loop beginning at (2)
bnryddt.f:123:0:

123 | 20 trb(i)=-d2bar
|
Warning: iteration 3 invokes undefined behavior [-Waggressive-loop-optimizations]
bnryddt.f:46:0:

46 | do 20 i=1,4
|
note: within this loop
gfortran -g -O2 -ffixed-form -ffixed-line-length-none -std=legacy -c -o bnryddfwhiecc.o bnryddfwhiecc.f
gfortran -g -O2 -ffixed-form -ffixed-line-length-none -std=legacy -c -o bnryeh.o bnryeh.f
gfortran -g -O2 -ffixed-form -ffixed-line-length-none -std=legacy -c -o bnryell1.o bnryell1.f
gfortran -g -O2 -ffixed-form -ffixed-line-length-none -std=legacy -c -o bnrymss.o bnrymss.f
gfortran -g -O2 -ffixed-form -ffixed-line-length-none -std=legacy -c -o bnrydds.o bnrydds.f
bnrydds.f:50:15:

50 | real10 frb, tt0, tt, orbits
| 1
Error: Old-style type declaration REAL
10 not supported at (1)
make[1]: Leaving directory '/home/soft/tempo/src'
make[1]: *** [Makefile:478: bnrydds.o] Error 1
make: *** [Makefile:359: all-recursive] Error 1
`

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

No branches or pull requests

4 participants