Errors on Compilation in Ubuntu

Hello,

I got such errors when compiling the FreeFem++ in ubuntu 18.1:

File “/home/ylnz7/FreeFem-sources/3rdparty/ff-petsc/petsc
3.12.2/config/BuildSystem/nargs.py”, line 360, in setValue
raise ValueError('Invalid directory: ‘+str(dir)+’ for key '+str(self.key))
test -f petsc-3.12.2/fr/lib/petsc/conf/petscvariables
Makefile:237: recipe for target ‘petsc-3.12.2/tag-conf-real’ failed
make: *** [petsc-3.12.2/tag-conf-real] Error 1

what should I do?

Could you please share your FreeFEM config.log? We are not dispatching the correct options to PETSc configure which makes it crash. Thanks.

You may also want to to compile the develop branch.

Thanks for the reply! Below is the log file I found. Not sure if I truly understand your advice. What do you mean exactly “the develop branch”? Thanks.

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

Running config.status.

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

This file was extended by FreeFEM config.status 4.4-3, which was
generated by GNU Autoconf 2.69. Invocation command line was

CONFIG_FILES =
CONFIG_HEADERS =
CONFIG_LINKS =
CONFIG_COMMANDS =
$ …/…/config.status --file=Makefile.inc:Makefile-PETSc.inc

on LAPTOP-6I03JEAE

config.status:1202: creating Makefile.inc

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

Running config.status.

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

This file was extended by FreeFEM config.status 4.4-3, which was
generated by GNU Autoconf 2.69. Invocation command line was

CONFIG_FILES =
CONFIG_HEADERS =
CONFIG_LINKS =
CONFIG_COMMANDS =
$ …/…/config.status --file=Makefile.inc:Makefile-PETSc.inc

on LAPTOP-6I03JEAE

config.status:1202: creating Makefile.inc

This is not the full file FreeFem-sources/config.log (it should have around 10k lines of text). To use the develop branch, try git clone -b develop https://github.com/FreeFem/FreeFem-sources. If you don’t have Git, download instead this archive.

I see. Please check the attached log file.

config.log (448.0 KB)

And also I tried the develop branch, it faced the same problems.

You don’t have BLAS installed on your system. Please install BLAS, then try again.

I tried
git clone http://github.com/Reference-LAPACK/lapack

and ./reconfigure and make check, it gives me the following errors

Makefile:50: recipe for target ‘dggath’ failed
make[8]: *** [dggath] Error 127
make[8]: Leaving directory ‘/home/ylnz7/FreeFem-sources/3rdparty/scotch/scotch_6.0.4/src/scotch’
Makefile:90: recipe for target ‘ptscotch’ failed
make[7]: *** [ptscotch] Error 2
make[7]: Leaving directory ‘/home/ylnz7/FreeFem-sources/3rdparty/scotch/scotch_6.0.4/src/scotch’
Makefile:98: recipe for target ‘ptscotch’ failed
make[6]: *** [ptscotch] Error 2
make[6]: Leaving directory ‘/home/ylnz7/FreeFem-sources/3rdparty/scotch/scotch_6.0.4/src’
Makefile:68: recipe for target ‘scotch_6.0.4/FAIT-mpi’ failed
make[5]: *** [scotch_6.0.4/FAIT-mpi] Error 2
make[5]: Leaving directory ‘/home/ylnz7/FreeFem-sources/3rdparty/scotch’
Makefile:54: recipe for target ‘FAIRE’ failed
make[4]: *** [FAIRE] Error 2
make[4]: Leaving directory ‘/home/ylnz7/FreeFem-sources/3rdparty/scotch’
Makefile:932: recipe for target ‘compile-dir’ failed
make[3]: *** [compile-dir] Error 2
make[3]: Leaving directory ‘/home/ylnz7/FreeFem-sources/3rdparty’
Makefile:942: recipe for target ‘tag-compile-pkg’ failed
make[2]: *** [tag-compile-pkg] Error 1
make[2]: Leaving directory ‘/home/ylnz7/FreeFem-sources/3rdparty’
Makefile:577: recipe for target ‘install-recursive’ failed
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory ‘/home/ylnz7/FreeFem-sources/3rdparty’
Makefile:784: recipe for target ‘install-recursive’ failed
make: *** [install-recursive] Error 1

Could you paste your new config.log, please?

Sure. Here it is.

config.log (445.8 KB)

Where did you install BLAS and LAPACK? It can’t be found by FreeFEM configure.

I installed it under home/username/

Then, you need to pass this information to FreeFEM ./configure. Add -help to see the appropriate options.

Another solution would be to go into FreeFem-sources/3rdparty/blas, do make, and then go back to PETSc compilation.

Hello, have you ever solved this problem and what you did? Could you please give some suggestions in detail. Thanks a lot.
I met the same problem, when installing FreeFem. And I have try to solve it for many days…no progress at all…

What is you problem?

i have met the same trouble with him. When i complie FreeFEM in CENTOS7 according to README.md step by step.
When I proceeding this step ‘make petsc-slepc’ in /3rdparty/ff-petsc , it occurs the trouble tip:

TESTING: checkLib from config.packages.BlasLapack(config/BuildSystem/c*******************************************************************************
UNABLE to CONFIGURE with GIVEN OPTIONS (see configure.log for details):

You set a value for --with-blaslapack-lib=, but [’-lblas’] cannot be used


make: *** [Makefile:210:petsc-3.13.0/tag-conf-real] 错误 1

in centos system.

I find this man had the same problem here, and I haven’t understand what he did for solving this problem.

Did he solve it? And what he did in details?

Could you please share you config.log and 3rdparty/ff-petsc/petsc-3.13.0/configure.log?