Bug#439573: gdc-4.1 - FTBFS: make[3]: *** [all] Error 2
> 4 errors with exactly the same unusable error message.
you should try to rebuild with DEB_BUILD_OPTIONS=parallel=1 to have
readable logs.
The powerpc build should be fixed on next upload, otherwise upstream
configure script stop build if arch isn't i386, amd64, powerpc or
ppc64.
In src/libphobos/configure.in:
AC_MSG_CHECKING([for fpclassify and signbit])
AC_TRY_COMPILE([
#ifndef fpclassify
static void fpclassify(int x, int y) { }
#endif
#ifndef signbit
static void signbit(int x, int y) { }
#endif
#include <math.h>],
[int x = fpclassify(4.2);
int y = signbit(1.1);
int z = FP_NAN + FP_INFINITE + FP_ZERO + FP_SUBNORMAL + FP_NORMAL;],
[AC_MSG_RESULT([yes])
d_have_fpsb=1],
[AC_MSG_RESULT([no])])
case "$d_target_os" in
# use fpmath on Linux
linux*) d_have_fpsb=''
;;
esac
if test -n "$d_have_fpsb"; then
AC_DEFINE(HAVE_FP_CLASSIFY_SIGNBIT,1,[Define to 1 fpclassify and
signbit are available])
D_EXTRA_OBJS="$D_EXTRA_OBJS gcc/cbridge_math.o"
else
case "$target_cpu" in
i*86 ) ;;
powerpc* ) ;;
ppc* ) ;;
x86_64 ) ;;
*) AC_MSG_ERROR([Missing fpclassify and signbit]) ;;
esac
D_EXTRA_OBJS="$D_EXTRA_OBJS internal/fpmath.o"
fi
Then we got this error:
> checking for fpclassify and signbit... yes
> configure: error: Missing fpclassify and signbit
You can remove this test (about line 5702 in src/libphobos/configure)
and see if you are able to link executables from some D sources.
Here is a the classic "hello world" in D so you can investigate on
s390 (or others archs unsupported by upstream):
import std.stdio;
void main() {
writefln("Hello, world!");
return 0;
}
(just test it links fine, there are some issues with fpclassify and
signbit in libphobos and libm, at least on sparc, even if they are not
called in sources here)
Have a nice day,
Arthur.
Reply to: