Open ANaumann85 opened 5 years ago
@ANaumann85 Can you provide some more information about the OS on which you're seeing this problem?
It is an ubuntu 18.04.3, easybuild version is 4.0.1, framework and easyblocks give the same version numbers
If I remember correctly, this is one of the things that the glibc version in Ubuntu 18.04 does, where it defines CHAR_WIDTH
and friends whenever the build is sufficiently GNU-ish.
See: https://sourceware.org/ml/libc-alpha/2016-09/msg00225.html https://github.com/ampl/mp/issues/108 https://github.com/fmtlib/fmt/issues/398 https://github.com/fmtlib/fmt/commit/abbefd71666055daac9e14e78262620f9e845850
Renaming the names in the embedded fmtlib
seems to be upstream's solution.
I tried to compile the package AMPL-MP-3.1.0 with foss-2017a and easybuild 4.0.1. With the original sources, I got the compiler error messages
I renamed the variable from CHAR_WIDTH to CHAR_WIDTH_AMPL_FORMAT_H , which solved the problem for me. The changes are documented in the appended patch.
charWidth.patch.zip