alibuild
alibuild copied to clipboard
aliBuild and aliDoctor disagree on autotools (on CentOS 7)
on a CentOS7 machine, aliBuild and aliDoctor disagree on whether or not autotoolsshould be taken from the system :
[ dev ]{ alice-dev }~/alice/dev$ aliDoctor --defaults o2 autotools
SUCCESS: Package autotools will be picked up from the system.
==> The following packages will be picked up from the system:
- autotools
If this is not you want, you have to uninstall / unload them.
[ dev ]{ alice-dev }~/alice/dev$ aliBuild --defaults o2 build autotools
==> Packages will be built in the following order:
- [email protected]
Using cached build for defaults-release
==> Building [email protected]
^C==> autotools is being built (use --debug for full output)...
(the defaults are the same, not like in #479 ;-) )
What I can note, if I add some debug output at the end of the dockerStatusOutput function (in utilities.py) :
print("BEGIN TOTO cmd=%s\nEND TOTO"%cmd)
is that aliDoctor prints :
BEGIN TOTO cmd=brew() { true; }; #export PATH=$PATH:$(brew --prefix gettext || true)/bin;
which autoconf && which m4 && which automake && which makeinfo && which aclocal && which pkg-config && which autopoint && which libtool;
if [ $? -ne 0 ]; then printf "One or more autotools packages are missing on your system.\n * On a RHEL-compatible system you probably need: autoconf automake texinfo gettext gettext-devel libtool\n * On an Ubuntu-like system you probably need: autoconf automake autopoint texinfo gettext libtool libtool-bin pkg-config\n * On macOS you need: brew install autoconf automake gettext pkg-config"; exit 1; fi
END TOTO
while aliBuild prints :
BEGIN TOTO cmd=printf "#include <termcap.h>\n" | cc -xc - -c -o /dev/null
END TOTO
BEGIN TOTO cmd=type make
END TOTO
Incidentally, that's a problem because aliBuild is actually failing at compiling autotools afterwards ...
make[6]: Entering directory `/home/laurent/alice/dev/sw/BUILD/9c0e02463dd7a0f09a706cbe2e39d2a4f6bf0464/autotools/pkg-config-0.29.2/glib/glib'
CC libglib_2_0_la-gallocator.lo
CC libglib_2_0_la-gcache.lo
CC libglib_2_0_la-gcompletion.lo
CC libglib_2_0_la-grel.lo
CC libglib_2_0_la-gthread-deprecated.lo
CC libglib_2_0_la-garray.lo
CC libglib_2_0_la-gasyncqueue.lo
CC libglib_2_0_la-gatomic.lo
CC libglib_2_0_la-gbacktrace.lo
CC libglib_2_0_la-gbase64.lo
CC libglib_2_0_la-gbitlock.lo
CC libglib_2_0_la-gbookmarkfile.lo
CC libglib_2_0_la-gbytes.lo
CC libglib_2_0_la-gcharset.lo
CC libglib_2_0_la-gchecksum.lo
CC libglib_2_0_la-gconvert.lo
CC libglib_2_0_la-gdataset.lo
CC libglib_2_0_la-gdate.lo
CC libglib_2_0_la-gdatetime.lo
CC libglib_2_0_la-gdir.lo
CC libglib_2_0_la-genviron.lo
gconvert.c:61:2: error: #error GNU libiconv not in use but included iconv.h is from libiconv
#error GNU libiconv not in use but included iconv.h is from libiconv
versions used
[ dev ]{ alice-dev }~/alice/dev$ aliBuild version; pip --version; python --version
aliBuild version: 1.7.1 (slc7_x86-64)
pip 20.3.3 from /home/laurent/alice/dev/.venv/dev/lib/python3.8/site-packages/pip (python 3.8)
Python 3.8.6