sstsimulator / sst-core

SST Structural Simulation Toolkit Parallel Discrete Event Core and Services
http://www.sst-simulator.org
Other
122 stars 87 forks source link

ncurses detection fails on ubuntu-22 / ubuntu-24 #1090

Open rkabrick opened 3 weeks ago

rkabrick commented 3 weeks ago

New Issue for sst-core

1 - Detailed description of problem or enhancement When trying to build sst-core on ubuntu (with ncurses installed via apt-get) the configure script fails to locate ncurses even with --with-curses option specified.

image

2 - Describe how to reproduce the issue On a fresh install of ubuntu do:

sudo apt install openmpi-bin openmpi-common libtool libtool-bin autoconf python3 python3-dev automake build-essential git libncurses-dev

3 - What Operating system(s) and versions

4 - What versions of external libraries (MPI, etc.) Tried with libncurses-dev, libncurses6, libncurses5, libncursesw5, libncursesw6

5 - Provide sha1 of all relevant SST repositories (sst-core, sst-elements, etc)

tags/v14.0.0_Final: 0693c06895c9b2be64232a9cd4d17795c0a5ad50

berquist commented 1 week ago

The problem is that https://github.com/sstsimulator/sst-core/blob/2f7b13d62a4e047c9dc6f5e0ae238bea41168169/config/sst_check_curses.m4#L50 evaluates the macro before the shell variable when the initially desired behavior was the other way around. The generated code is

LIBS="-l$CURSES_LIBS  $LIBS"

which then expands to -l-lncurses -ltinfo ... which is obviously wrong, but there is something about the library location or linker search paths on non-Ubuntu platforms where it works anyway.