Skip to content

[BUG] configure fails to find FFTW, SuiteSparse, OpenMP, BLAS, LAPACK, OpenGL #302

@yurivict

Description

@yurivict

🐛 Bug report

Description of the bug

checking for Python ... /usr/ports/misc/madagascar/work/.bin/python
checking Python version ... 3.9.18
checking for RSFROOT ... /usr/local
checking for SCons ... /usr/local/bin/scons
checking SCons version ... v4.4.0.fc8d0ec215ee6cba8bc158ad40c099be0b598297
Running RSFROOT=/usr/local /usr/local/bin/scons  config ...
------------------------
scons: Reading SConscript files ...
checking platform ... (cached) posix [unknown]
checking for C compiler ... (cached) cc
checking if cc works ... yes
checking for ar ... (cached) ar
checking for rpc ... ['m']
checking complex support ... yes
checking for X11 headers ... /usr/X11R6/include
checking for X11 libraries ... /usr/X11R6/lib
checking for OpenGL ... no
checking for sfpen ... (cached) xtpen
checking for ppm ... no
checking for tiff ... no

  sfbyte2tif, sftif2byte, and tiffpen will not be built.
checking for GD (PNG) ... no

  gdpen will not be built.
checking for plplot ... no
checking for ffmpeg ... no
checking for cairo (PNG) ... no
checking for jpeg ... no

  sfbyte2jpg, sfjpg2byte, and jpegpen will not be built.
checking for BLAS ... no
checking for LAPACK ... no
checking for SWIG ... (cached) /usr/local/bin/swig
checking for numpy ... (cached) yes
checking API options ... (cached) []
checking for C++ compiler ... (cached) CC
checking if CC works ... yes
checking for MPICC ... (cached) /usr/local/bin/mpicc
checking if /usr/local/bin/mpicc works ... yes
checking for MPICXX ... (cached) /usr/local/bin/mpicxx
checking if /usr/local/bin/mpicxx works ... yes
checking for MPIRUN ... (cached) /usr/local/bin/mpirun
checking for Posix threads ... no
checking for OpenMP ... no
checking for CUDA ... (cached) no
checking for FFTW ... no
checking for SuiteSparse ... no
scons: done reading SConscript files.
usage: scons [OPTIONS] [VARIABLES] [TARGETS]

SCons Error: no such option: --build
------------------------
Done with configuration.

All these packages are installed and are easily discoverable.

Include and lib paths are set correctly in CFLAGS, CXXFLAGS, LDFLAGS, which is a convention.

I see that you wrote 2600+ lines in framework/configure.py to detect some of these packages and this code fails in SCons.
SCons is an anachronism, I recommend that you should use cmake.
With cmake finding all these packages would have been done correctly with fewer than 100 lines of cmake code.

To Reproduce
Run configure.

Revision: d729968
FreeBSD 13.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions