GALAHAD icon indicating copy to clipboard operation
GALAHAD copied to clipboard

update Makefiles for an HSL-free install

Open dpo opened this issue 3 years ago • 2 comments

Attempt to address #6.

@nimgould I hacked together the solution in this pull request. It allowed the build to complete, but is it the correct way to do it?

dpo avatar Oct 08 '22 01:10 dpo

I'm working on this atm. This needs both compilation of the dummy versions of the HSL archive codes, but also a replacement default solver. The latter is, I am afraid, overly distributed throughout the library and I need to tidy this up. I suspect your changed files mirror mine, but I will check

nimgould avatar Oct 08 '22 12:10 nimgould

Actually, after the changes here, I still have a build error:

 Compiling hsl_ma97s                    /usr/bin/sed -f /Users/dpo/dev/ralna/GALAHAD/seds/ma97_bug.sed /Users/dpo/dev/ralna/GALAHAD/src/dum/hsl_ma97s.f90 > /Users/dpo/dev/ralna/GALAHAD/objects/mac64.osx.gfo/single/hsl_ma97s.f90
cd /Users/dpo/dev/ralna/GALAHAD/objects/mac64.osx.gfo/single ; gfortran-12 -o hsl_ma97s.o -c -fPIC -fno-second-underscore -flat_namespace -O  -I/Users/dpo/dev/ralna/GALAHAD/modules/mac64.osx.gfo/single   -fopenmp hsl_ma97s.f90
cd /Users/dpo/dev/ralna/GALAHAD/objects/mac64.osx.gfo/single ; /usr/bin/ar -rcu /Users/dpo/dev/ralna/GALAHAD/objects/mac64.osx.gfo/single/libgalahad_hsl.a hsl_ma97s.o ; /bin/rm -f hsl_ma97s.f90 hsl_ma97s.o
sls.o
make[2]: sls.o: No such file or directory
make[2]: *** [/Users/dpo/dev/ralna/GALAHAD/objects/mac64.osx.gfo/single/libgalahad_hsl.a(hsl_ma97s.o)] Error 1
make[1]: *** [make_ma97] Error 2
make: *** [all_standalone_single] Error 2

Strangely, if I cd $GALAHAD/src and make, the build continues and completes.

As far as I can tell, the error is due to lines 245, 269 and 282 of ma97/makemaster, which have the form

$(RMARFILE) sls.o

dpo avatar Oct 09 '22 01:10 dpo

I think this is all outdated now.

dpo avatar Oct 26 '22 21:10 dpo