Alan, thanks for pointing me to that PR. That "--with-termlib" is the problem. With that option the symbols are stripped on a separate library file (libtinfo.a) and the linking fails when building against the ncurses-6.0.eb build.
Since this is not a local problem I have created a dedicated issue here: https://github.com/hpcugent/easybuild-easyconfigs/issues/4049 DV On Jan 18 2017, at 3:12 pm, Alan O'Cais <[email protected]> wrote: This sounds like it might be somehow related to https://github.com/hpcugent/easybuild-easyconfigs/pull/3545 On 18 Jan 2017 9:05 pm, "Vanzo, Davide" <[email protected]<mailto:[email protected]>> wrote: When trying to build Python-2.7.12-foss-2016b it fails with the error below. ========= gcc -L/usr/software/software/Core/GCCcore/5.4.0/lib64 -L/usr/software/software/Core/GCCcore/5.4.0/lib -L/usr/software/software/Compiler/GCC/5.4.0-2.26/OpenBLAS/0.2.18-LAPACK-3.6.1/lib -L/usr/software/software/MPI/GCC/5.4.0-2.26/OpenMPI/1.10.3/ScaLAPACK/2.0.2-OpenBLAS-0.2.18-LAPACK-3.6.1/lib -L/usr/software/software/MPI/GCC/5.4.0-2.26/OpenMPI/1.10.3/FFTW/3.3.4/lib -L/usr/software/software/Compiler/GCC/5.4.0-2.26/bzip2/1.0.6/lib -L/usr/software/software/Core/zlib/1.2.8/lib -L/usr/software/software/Compiler/GCC/5.4.0-2.26/libreadline/6.3/lib -L/usr/software/software/Core/ncurses/6.0/lib -L/usr/software/software/Compiler/GCC/5.4.0-2.26/SQLite/3.13.0/lib -L/usr/software/software/Compiler/GCC/5.4.0-2.26/Tk/8.6.5/lib -L/usr/software/software/Compiler/GCC/5.4.0-2.26/GMP/6.1.1/lib -L/usr/software/software/Compiler/GCC/5.4.0-2.26/libffi/3.2.1/lib64 -L/usr/software/software/Compiler/GCC/5.4.0-2.26/libffi/3.2.1/lib -Xlinker -export-dynamic -o python \ Modules/python.o \ -L. -lpython2.7 -ldl -lm -lpthread -lutil /usr/software/software/Compiler/GCC/5.4.0-2.26/libreadline/6.3/lib/libreadline.a /usr/software/software/Core/ncurses/6.0/lib/libncurses.a -lm ./libpython2.7.so<http://libpython2.7.so>: error: undefined reference to 'tputs' ./libpython2.7.so<http://libpython2.7.so>: error: undefined reference to 'tgoto' ./libpython2.7.so<http://libpython2.7.so>: error: undefined reference to 'tgetnum' ./libpython2.7.so<http://libpython2.7.so>: error: undefined reference to 'PC' ./libpython2.7.so<http://libpython2.7.so>: error: undefined reference to 'BC' ./libpython2.7.so<http://libpython2.7.so>: error: undefined reference to 'UP' ./libpython2.7.so<http://libpython2.7.so>: error: undefined reference to 'tgetent' ./libpython2.7.so<http://libpython2.7.so>: error: undefined reference to 'tgetstr' ./libpython2.7.so<http://libpython2.7.so>: error: undefined reference to 'tgetflag' collect2: error: ld returned 1 exit status make: *** [python] Error 1 ========== The weird thing is that libreadline.a contains such symbols when checking with readelf. Has anyone had this problem before? On a side note, while digginig into libreadline and ncurses, I noticed that although we want libreadline linked to our custom version of ncurses 6.0, it gets actually linked to the system ncurses library. This can be solved by modifying the easyconfig to read as follows: preconfigopts = 'env LDFLAGS="-lncurses -L$EBROOTNCURSES/lib"' Is it just me having this problem or can be something worth enhancing? -- Davide Vanzo, PhD Application Developer Adjunct Assistant Professor of Chemical and Biomolecular Engineering Advanced Computing Center for Research and Education (ACCRE) Vanderbilt University - Hill Center 201 (615)-875-9137 www.accre.vanderbilt.edu<http://www.accre.vanderbilt.edu> ------------------------------------------------------------------------------------------------ ------------------------------------------------------------------------------------------------ Forschungszentrum Juelich GmbH 52425 Juelich Sitz der Gesellschaft: Juelich Eingetragen im Handelsregister des Amtsgerichts Dueren Nr. HR B 3498 Vorsitzender des Aufsichtsrats: MinDir Dr. Karl Eugen Huthmacher Geschaeftsfuehrung: Prof. Dr.-Ing. Wolfgang Marquardt (Vorsitzender), Karsten Beneke (stellv. Vorsitzender), Prof. Dr.-Ing. Harald Bolt, Prof. Dr. Sebastian M. Schmidt ------------------------------------------------------------------------------------------------ ------------------------------------------------------------------------------------------------

