# Error on openblas when installing on Ubuntu 24

**URL:** <https://community.freefem.org/t/error-on-openblas-when-installing-on-ubuntu-24/4206>\
**Category:** FreeFEM installation\
**Created:** [February 2, 2026, 3:45pm UTC](https://community.freefem.org/t/error-on-openblas-when-installing-on-ubuntu-24/4206 "2026-02-02T15:45:04Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![fb77](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.freefem.org/fb77/32/3796_2.png) [@fb77](https://community.freefem.org/u/fb77)\
**Post date:** [February 2, 2026, 3:45pm UTC](https://community.freefem.org/t/error-on-openblas-when-installing-on-ubuntu-24/4206/1 "2026-02-02T15:45:04Z")

</div>

@prj  
Dear Pierre,  
When installing FreeFem++ from sources (develop branch) to a new computer with Ubuntu 24, I get an error when running `make petsc-slepc`.  
It gives

```auto
=============================================================================================
                      Compiling OpenBLAS; this may take several minutes
=============================================================================================

*********************************************************************************************
           UNABLE to CONFIGURE with GIVEN OPTIONS (see configure.log for details):
---------------------------------------------------------------------------------------------
  Error running make on
  /home/fbouchut/FreeFem/FreeFem-sources/3rdparty/ff-petsc/petsc-3.24.4/fr/externalpackages/git.openblas
*********************************************************************************************

make: *** [Makefile:222 : petsc-3.24.4/tag-conf-real] Erreur 1

```

The configure.log (in 3rdparty/ff-petsc/petsc-3.24.4) is  
[configure.log](https://community.freefem.org/uploads/short-url/bAKNM9QP7B9AJI0YIAXykxNx0Fj.log) (1.9 MB)  
Do you have a way to solve the issue?

---

<div class="post-metadata">

**Author:** ![prj](https://avatars.discourse-cdn.com/v4/letter/p/ecae2f/32.png) [@prj](https://community.freefem.org/u/prj)\
**Post date:** [February 2, 2026, 7:44pm UTC](https://community.freefem.org/t/error-on-openblas-when-installing-on-ubuntu-24/4206/2 "2026-02-02T19:44:59Z")

</div>

Could you maybe try with GCC 14 or GCC 15 (instead of what looks like GCC 13)?

---

<div class="post-metadata">

**Author:** ![fb77](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.freefem.org/fb77/32/3796_2.png) [@fb77](https://community.freefem.org/u/fb77)\
**Post date:** [February 4, 2026, 9:50am UTC](https://community.freefem.org/t/error-on-openblas-when-installing-on-ubuntu-24/4206/3 "2026-02-04T09:50:05Z")

</div>

Thank you for your reply  
my gcc version is 13.3.0  
I am a bit scared to update gcc, since it is the one that has been installed with the installation of ubuntu.  
Indeed I have an “old” computer that I upgraded from ubuntu 22 to ubuntu 24 in january. It compiled the FreeFem develop banch successfully after this upgrade. It has also the gcc version 13.3.0  
Then now I have a new computer, freshly installed with ubuntu 24, but it fails to compile FreeFem (it stops at OpenBLAS).  
It is a bit mysterious. The old one is a HP EliteBook, the new one is a Lenovo Think Pad P14s.  
Thus now instead of installing from source I have installed the FF 4.15 master branch from the .deb.  
It works, but later it could be a problem if I am not able to install from source…

---

<div class="post-metadata">

**Author:** ![prj](https://avatars.discourse-cdn.com/v4/letter/p/ecae2f/32.png) [@prj](https://community.freefem.org/u/prj)\
**Post date:** [February 4, 2026, 12:06pm UTC](https://community.freefem.org/t/error-on-openblas-when-installing-on-ubuntu-24/4206/4 "2026-02-04T12:06:53Z")

</div>

The issue comes from the compiler flags being passed to OpenBLAS. You could simply install OpenBLAS via aptitude and let PETSc compile the rest if you don’t feel like updating your compiler. I don’t know whether this particular issue has been reported to the OpenBLAS developers and if there is a fix coming in a newer release.

---

<div class="post-metadata">

**Author:** ![fb77](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.freefem.org/fb77/32/3796_2.png) [@fb77](https://community.freefem.org/u/fb77)\
**Post date:** [February 11, 2026, 11:49am UTC](https://community.freefem.org/t/error-on-openblas-when-installing-on-ubuntu-24/4206/5 "2026-02-11T11:49:28Z")

</div>

I have finally succeeded in installing Petsc and FreeFem from sources. The update of gcc had no effect so I came back to the default 13.3.0  
I installed the openblas library by  
`sudo apt-get install libopenblas-dev`  
Then I had another error related to a conflict with openmpi, that I solved by removing some part of openmpi  
`sudo apt-get remove libopenmpi-dev`  
(but not removing `openmpi-bin`)  
After that the installation into a personal location with the `--prefix` option to `configure` worked.

---

<div class="post-metadata">

**Author:** ![prj](https://avatars.discourse-cdn.com/v4/letter/p/ecae2f/32.png) [@prj](https://community.freefem.org/u/prj)\
**Post date:** [February 11, 2026, 3:28pm UTC](https://community.freefem.org/t/error-on-openblas-when-installing-on-ubuntu-24/4206/6 "2026-02-11T15:28:58Z")

</div>

I’ve bumped the OpenBLAS version yesterday in PETSc ([configure updates and MUMPS housekeeping (!9017) · Merge requests · PETSc / petsc · GitLab](https://gitlab.com/petsc/petsc/-/merge_requests/9017)), maybe the compiler is solved there (and this will be available in the next PETSc release at the end of March).
