osmart / hole2

Source code for HOLE program.
http://www.holeprogram.org
Apache License 2.0
30 stars 10 forks source link

Make error #1

Closed cyxu2017 closed 1 year ago

cyxu2017 commented 7 years ago

Hey,

I had an make error when trying to compile hole2. Does anyone have this problem before or know certain solutions.

I searched online and found that the issue might be fixed by specifying the location of these two libs. So I added -L /lib64/ into the makefile. But it seems that not working. Any suggestions will be appreciated.

Please find details below.

gfortran -fd-lines-as-comments -fbackslash -std=legacy -L /lib64/ -static -c addend.f ar -rcv hole.a addend.o a - addend.o gfortran -fd-lines-as-comments -fbackslash -std=legacy -L /lib64/ -static -c calper.f ar -rcv hole.a calper.o a - calper.o gfortran -fd-lines-as-comments -fbackslash -std=legacy -L /lib64/ -static -c cguess.f ar -rcv hole.a cguess.o a - cguess.o gfortran -fd-lines-as-comments -fbackslash -std=legacy -L /lib64/ -static -c cirova.f ar -rcv hole.a cirova.o a - cirova.o gfortran -fd-lines-as-comments -fbackslash -std=legacy -L /lib64/ -static -c coarea.f ar -rcv hole.a coarea.o a - coarea.o gfortran -fd-lines-as-comments -fbackslash -std=legacy -L /lib64/ -static -c concal.f ar -rcv hole.a concal.o a - concal.o gfortran -fd-lines-as-comments -fbackslash -std=legacy -L /lib64/ -static -c freda.f ar -rcv hole.a freda.o a - freda.o gfortran -fd-lines-as-comments -fbackslash -std=legacy -L /lib64/ -static -c get_rec_commands.f ar -rcv hole.a get_rec_commands.o a - get_rec_commands.o gfortran -fd-lines-as-comments -fbackslash -std=legacy -L /lib64/ -static -c h2dmap.f ar -rcv hole.a h2dmap.o a - h2dmap.o gfortran -fd-lines-as-comments -fbackslash -std=legacy -L /lib64/ -static -c hcapen.f ar -rcv hole.a hcapen.o a - hcapen.o gfortran -fd-lines-as-comments -fbackslash -std=legacy -L /lib64/ -static -c hcapgr.f ar -rcv hole.a hcapgr.o a - hcapgr.o gfortran -fd-lines-as-comments -fbackslash -std=legacy -L /lib64/ -static -c helefi.f ar -rcv hole.a helefi.o a - helefi.o gfortran -fd-lines-as-comments -fbackslash -std=legacy -L /lib64/ -static -c hocapd.f ar -rcv hole.a hocapd.o a - hocapd.o gfortran -fd-lines-as-comments -fbackslash -std=legacy -L /lib64/ -static -c hocapr.f ar -rcv hole.a hocapr.o a - hocapr.o gfortran -fd-lines-as-comments -fbackslash -std=legacy -L /lib64/ -static -c hodotb.f ar -rcv hole.a hodotb.o a - hodotb.o gfortran -fd-lines-as-comments -fbackslash -std=legacy -L /lib64/ -static -c hodotc.f ar -rcv hole.a hodotc.o a - hodotc.o gfortran -fd-lines-as-comments -fbackslash -std=legacy -L /lib64/ -static -c hodotu.f ar -rcv hole.a hodotu.o a - hodotu.o gfortran -fd-lines-as-comments -fbackslash -std=legacy -L /lib64/ -static -c hograp.f ar -rcv hole.a hograp.o a - hograp.o gfortran -fd-lines-as-comments -fbackslash -std=legacy -L /lib64/ -static -c holcal.f ar -rcv hole.a holcal.o a - holcal.o gfortran -fd-lines-as-comments -fbackslash -std=legacy -L /lib64/ -static -c holeen.f ar -rcv hole.a holeen.o a - holeen.o gfortran -fd-lines-as-comments -fbackslash -std=legacy -L /lib64/ -static -c hole.f ar -rcv hole.a hole.o a - hole.o gfortran -fd-lines-as-comments -fbackslash -std=legacy -L /lib64/ -static -c hollin.f ar -rcv hole.a hollin.o a - hollin.o gfortran -fd-lines-as-comments -fbackslash -std=legacy -L /lib64/ -static -c holset.f ar -rcv hole.a holset.o a - holset.o gfortran -fd-lines-as-comments -fbackslash -std=legacy -L /lib64/ -static -c homulf.f ar -rcv hole.a homulf.o a - homulf.o gfortran -fd-lines-as-comments -fbackslash -std=legacy -L /lib64/ -static -c honewp.f ar -rcv hole.a honewp.o a - honewp.o gfortran -fd-lines-as-comments -fbackslash -std=legacy -L /lib64/ -static -c honewv.f ar -rcv hole.a honewv.o a - honewv.o gfortran -fd-lines-as-comments -fbackslash -std=legacy -L /lib64/ -static -c hopegg.f ar -rcv hole.a hopegg.o a - hopegg.o gfortran -fd-lines-as-comments -fbackslash -std=legacy -L /lib64/ -static -c horadr.f ar -rcv hole.a horadr.o a - horadr.o gfortran -fd-lines-as-comments -fbackslash -std=legacy -L /lib64/ -static -c horchr.f ar -rcv hole.a horchr.o a - horchr.o gfortran -fd-lines-as-comments -fbackslash -std=legacy -L /lib64/ -static -c hosetg.f ar -rcv hole.a hosetg.o a - hosetg.o gfortran -fd-lines-as-comments -fbackslash -std=legacy -L /lib64/ -static -c hsbxen.f ar -rcv hole.a hsbxen.o a - hsbxen.o gfortran -fd-lines-as-comments -fbackslash -std=legacy -L /lib64/ -static -c hsbxmi.f ar -rcv hole.a hsbxmi.o a - hsbxmi.o gfortran -fd-lines-as-comments -fbackslash -std=legacy -L /lib64/ -static -c hsurfp.f ar -rcv hole.a hsurfp.o a - hsurfp.o gfortran -fd-lines-as-comments -fbackslash -std=legacy -L /lib64/ -static -c hydasc.f ar -rcv hole.a hydasc.o a - hydasc.o gfortran -fd-lines-as-comments -fbackslash -std=legacy -L /lib64/ -static -c labqpt.f ar -rcv hole.a labqpt.o a - labqpt.o gfortran -fd-lines-as-comments -fbackslash -std=legacy -L /lib64/ -static -c lastf.f ar -rcv hole.a lastf.o a - lastf.o gfortran -fd-lines-as-comments -fbackslash -std=legacy -L /lib64/ -static -c linter.f ar -rcv hole.a linter.o a - linter.o gfortran -fd-lines-as-comments -fbackslash -std=legacy -L /lib64/ -static -c lpause.f ar -rcv hole.a lpause.o a - lpause.o ln -s machine_dep.g77 machine_dep.f gfortran -fd-lines-as-comments -fbackslash -std=legacy -L /lib64/ -static -c machine_dep.f ar -rcv hole.a machine_dep.o a - machine_dep.o gfortran -fd-lines-as-comments -fbackslash -std=legacy -L /lib64/ -static -c make_pmap.f ar -rcv hole.a make_pmap.o a - make_pmap.o gfortran -fd-lines-as-comments -fbackslash -std=legacy -L /lib64/ -static -c newop.f ar -rcv hole.a newop.o a - newop.o gfortran -fd-lines-as-comments -fbackslash -std=legacy -L /lib64/ -static -c peg_writeall_header.f ar -rcv hole.a peg_writeall_header.o a - peg_writeall_header.o gfortran -fd-lines-as-comments -fbackslash -std=legacy -L /lib64/ -static -c ptgen.f ar -rcv hole.a ptgen.o a - ptgen.o gfortran -fd-lines-as-comments -fbackslash -std=legacy -L /lib64/ -static -c qgetbi.f ar -rcv hole.a qgetbi.o a - qgetbi.o gfortran -fd-lines-as-comments -fbackslash -std=legacy -L /lib64/ -static -c qhsp.f ar -rcv hole.a qhsp.o a - qhsp.o gfortran -fd-lines-as-comments -fbackslash -std=legacy -L /lib64/ -static -c qplot.f ar -rcv hole.a qplot.o a - qplot.o gfortran -fd-lines-as-comments -fbackslash -std=legacy -L /lib64/ -static -c qpspic.f ar -rcv hole.a qpspic.o a - qpspic.o gfortran -fd-lines-as-comments -fbackslash -std=legacy -L /lib64/ -static -c qpswr.f ar -rcv hole.a qpswr.o a - qpswr.o gfortran -fd-lines-as-comments -fbackslash -std=legacy -L /lib64/ -static -c qpt_conv.f ar -rcv hole.a qpt_conv.o a - qpt_conv.o gfortran -fd-lines-as-comments -fbackslash -std=legacy -L /lib64/ -static -c qptdot.f ar -rcv hole.a qptdot.o a - qptdot.o gfortran -fd-lines-as-comments -fbackslash -std=legacy -L /lib64/ -static -c qptins.f ar -rcv hole.a qptins.o a - qptins.o gfortran -fd-lines-as-comments -fbackslash -std=legacy -L /lib64/ -static -c qptkin.f ar -rcv hole.a qptkin.o a - qptkin.o gfortran -fd-lines-as-comments -fbackslash -std=legacy -L /lib64/ -static -c qpto.f ar -rcv hole.a qpto.o a - qpto.o gfortran -fd-lines-as-comments -fbackslash -std=legacy -L /lib64/ -static -c qptras.f ar -rcv hole.a qptras.o a - qptras.o gfortran -fd-lines-as-comments -fbackslash -std=legacy -L /lib64/ -static -c qptspl.f ar -rcv hole.a qptspl.o a - qptspl.o gfortran -fd-lines-as-comments -fbackslash -std=legacy -L /lib64/ -static -c qptsyb.f ar -rcv hole.a qptsyb.o a - qptsyb.o gfortran -fd-lines-as-comments -fbackslash -std=legacy -L /lib64/ -static -c qptvmd.f ar -rcv hole.a qptvmd.o a - qptvmd.o gfortran -fd-lines-as-comments -fbackslash -std=legacy -L /lib64/ -static -c qptvrm.f ar -rcv hole.a qptvrm.o a - qptvrm.o gfortran -fd-lines-as-comments -fbackslash -std=legacy -L /lib64/ -static -c qreadi.f ar -rcv hole.a qreadi.o a - qreadi.o gfortran -fd-lines-as-comments -fbackslash -std=legacy -L /lib64/ -static -c qusemx.f ar -rcv hole.a qusemx.o a - qusemx.o gfortran -fd-lines-as-comments -fbackslash -std=legacy -L /lib64/ -static -c ratcal.f ar -rcv hole.a ratcal.o a - ratcal.o gfortran -fd-lines-as-comments -fbackslash -std=legacy -L /lib64/ -static -c raten.f ar -rcv hole.a raten.o a - raten.o gfortran -fd-lines-as-comments -fbackslash -std=legacy -L /lib64/ -static -c ratesc.f ar -rcv hole.a ratesc.o a - ratesc.o gfortran -fd-lines-as-comments -fbackslash -std=legacy -L /lib64/ -static -c rcontr.f ar -rcv hole.a rcontr.o a - rcontr.o gfortran -fd-lines-as-comments -fbackslash -std=legacy -L /lib64/ -static -c readse.f ar -rcv hole.a readse.o a - readse.o gfortran -fd-lines-as-comments -fbackslash -std=legacy -L /lib64/ -static -c sbdclo.f ar -rcv hole.a sbdclo.o a - sbdclo.o gfortran -fd-lines-as-comments -fbackslash -std=legacy -L /lib64/ -static -c sbgen.f ar -rcv hole.a sbgen.o a - sbgen.o gfortran -fd-lines-as-comments -fbackslash -std=legacy -L /lib64/ -static -c sbgrow.f ar -rcv hole.a sbgrow.o a - sbgrow.o gfortran -fd-lines-as-comments -fbackslash -std=legacy -L /lib64/ -static -c sphpeg.f ar -rcv hole.a sphpeg.o a - sphpeg.o gfortran -fd-lines-as-comments -fbackslash -std=legacy -L /lib64/ -static -c sph_process.f ar -rcv hole.a sph_process.o a - sph_process.o gfortran -fd-lines-as-comments -fbackslash -std=legacy -L /lib64/ -static -c sph_process_read.f ar -rcv hole.a sph_process_read.o a - sph_process_read.o gfortran -fd-lines-as-comments -fbackslash -std=legacy -L /lib64/ -static -c sphqpc.f ar -rcv hole.a sphqpc.o a - sphqpc.o gfortran -fd-lines-as-comments -fbackslash -std=legacy -L /lib64/ -static -c sphqpu.f ar -rcv hole.a sphqpu.o a - sphqpu.o gfortran -fd-lines-as-comments -fbackslash -std=legacy -L /lib64/ -static -c sphtri.f ar -rcv hole.a sphtri.o a - sphtri.o gfortran -fd-lines-as-comments -fbackslash -std=legacy -L /lib64/ -static -c ssafn2.f ar -rcv hole.a ssafn2.o a - ssafn2.o gfortran -fd-lines-as-comments -fbackslash -std=legacy -L /lib64/ -static -c textat.f ar -rcv hole.a textat.o a - textat.o gfortran -fd-lines-as-comments -fbackslash -std=legacy -L /lib64/ -static -c trisphere.f ar -rcv hole.a trisphere.o a - trisphere.o gfortran -fd-lines-as-comments -fbackslash -std=legacy -L /lib64/ -static -c tsatr.f ar -rcv hole.a tsatr.o a - tsatr.o gfortran -fd-lines-as-comments -fbackslash -std=legacy -L /lib64/ -static -c tsradr.f ar -rcv hole.a tsradr.o a - tsradr.o gfortran -fd-lines-as-comments -fbackslash -std=legacy -L /lib64/ -static -c ut_strings.f ar -rcv hole.a ut_strings.o a - ut_strings.o gfortran -fd-lines-as-comments -fbackslash -std=legacy -L /lib64/ -static -c ut_vector.f ar -rcv hole.a ut_vector.o a - ut_vector.o gfortran -fd-lines-as-comments -fbackslash -std=legacy -L /lib64/ -static -c vdrcon.f ar -rcv hole.a vdrcon.o a - vdrcon.o gfortran -fd-lines-as-comments -fbackslash -std=legacy -L /lib64/ -static -c vdset.f ar -rcv hole.a vdset.o a - vdset.o gfortran -fd-lines-as-comments -fbackslash -std=legacy -L /lib64/ -static -c vdwdot.f ar -rcv hole.a vdwdot.o a - vdwdot.o gfortran -fd-lines-as-comments -fbackslash -std=legacy -L /lib64/ -static -c vmd_triangles_to_lines.f ar -rcv hole.a vmd_triangles_to_lines.o a - vmd_triangles_to_lines.o gfortran -fd-lines-as-comments -fbackslash -std=legacy -L /lib64/ -static -c whatu.f ar -rcv hole.a whatu.o a - whatu.o gfortran -fd-lines-as-comments -fbackslash -std=legacy -L /lib64/ -static -c wmolqp.f ar -rcv hole.a wmolqp.o a - wmolqp.o gfortran -fd-lines-as-comments -fbackslash -std=legacy -L /lib64/ -static -c wpdbsp.f ar -rcv hole.a wpdbsp.o a - wpdbsp.o gfortran makver.f -o makver.exe ./makver.exe a - vertim.o gfortran -fd-lines-as-comments -fbackslash -std=legacy -L /lib64/ -static hole.o hole.a -o ../exe/hole /usr/bin/ld: cannot find -lgfortran /usr/bin/ld: cannot find -lquadmath collect2: error: ld returned 1 exit status make: *** [../exe/hole] Error 1

orbeckst commented 1 year ago

Yes, PR #2 will fix this problem.

(Basically, replace -static with -static-libgfortran when compiling with gfortran)