Closed olexandr-konovalov closed 7 years ago
For some reason, the build cannot find any of the libraries:
Checking for C library readline... no
Checking for C library dl... no
Checking for C library ncurses... no
Checking for C library m... no
Of these, only -lm
is essential (that's where the linker errors come from), but it can't find that. Which should be impossible, as the check only tries to compile and link the program int main() { return 0; }
.
@rbehrends To compare, it works when built in Jenkins:
+ ./build.sh
scons: Entering directory `/data/gap-jenkins/workspace/GAP-merge-compilers/GAPCOPTS/64build/GAPREADLINE/readline/HPCMODE/hpcgap/label/gcc48/GAP-merge-snapshot/ward/build/lua-5.1.5'
scons: Reading SConscript files ...
Checking for C library readline... yes
Checking for GNU readline headers ... yes
Checking for C library dl... yes
Checking for C header file dlfcn.h... yes
Checking for C library ncurses... yes
Checking for C library m... yes
Checking whether linker supports -Wl,-E ... yes
scons: done reading SConscript files.
scons: Building targets ...
MakeLuaConf(["include/luaconf.h"], ["src/luaconf.h.in"])
...
We have figured out that this is due to different CFLAGS & LDFLAGS, and fixed that by calling
CFLAGS= LDFLAGS= ./build.sh
Duplicate of https://github.com/fingolfin/gap/issues/82 - that is perhaps more relevant here.
In PR https://github.com/fingolfin/gap/pull/81 I am trying to add Travis CI builds with
--enable-hpcgap
option. Building Lua fails as e.g. in https://travis-ci.org/fingolfin/gap/jobs/211320936 (see below). @rbehrends maybe you have an idea?