https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69134
Bug ID: 69134 Summary: building a mips-cross compiler with in-tree mpfr-2.4.2 fails Product: gcc Version: 6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: bootstrap Assignee: unassigned at gcc dot gnu.org Reporter: bernd.edlinger at hotmail dot de Target Milestone: --- ../gcc-trunk/configure --prefix=/home/ed/gnu/mips-linux-gnu --target=mips-linux-gnu --enable-languages=c,c++,fortran,ada --host=mips-linux-gnu make ... /bin/bash ./libtool --tag=CC --mode=compile mips-linux-gnu-gcc -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_LOCALE_H=1 -DHAVE_WCHAR_H=1 -DHAVE_STDARG=1 -DHAVE_SYS_TIME_H=1 -DHAVE_STDINT_H=1 -DHAVE_VA_COPY=1 -DHAVE_SETLOCALE=1 -DHAVE_GETTIMEOFDAY=1 -DHAVE_LONG_LONG=1 -DHAVE_INTMAX_T=1 -DMPFR_HAVE_FESETROUND=1 -DHAVE_ROUND=1 -DHAVE_TRUNC=1 -DHAVE_FLOOR=1 -DHAVE_CEIL=1 -DHAVE_NEARBYINT=1 -DLT_OBJDIR=\".libs/\" -DHAVE_ATTRIBUTE_MODE=1 -DHAVE_ALLOCA_H=1 -I. -I../../gcc-trunk/mpfr -I/home/ed/gnu/gcc-build-mips2/./gmp -g -O2 -MT mul.lo -MD -MP -MF .deps/mul.Tpo -c -o mul.lo ../../gcc-trunk/mpfr/mul.c libtool: compile: mips-linux-gnu-gcc -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_LOCALE_H=1 -DHAVE_WCHAR_H=1 -DHAVE_STDARG=1 -DHAVE_SYS_TIME_H=1 -DHAVE_STDINT_H=1 -DHAVE_VA_COPY=1 -DHAVE_SETLOCALE=1 -DHAVE_GETTIMEOFDAY=1 -DHAVE_LONG_LONG=1 -DHAVE_INTMAX_T=1 -DMPFR_HAVE_FESETROUND=1 -DHAVE_ROUND=1 -DHAVE_TRUNC=1 -DHAVE_FLOOR=1 -DHAVE_CEIL=1 -DHAVE_NEARBYINT=1 -DLT_OBJDIR=\".libs/\" -DHAVE_ATTRIBUTE_MODE=1 -DHAVE_ALLOCA_H=1 -I. -I../../gcc-trunk/mpfr -I/home/ed/gnu/gcc-build-mips2/./gmp -g -O2 -MT mul.lo -MD -MP -MF .deps/mul.Tpo -c ../../gcc-trunk/mpfr/mul.c -o mul.o In file included from ../../gcc-trunk/mpfr/mpfr-impl.h:87:0, from ../../gcc-trunk/mpfr/mul.c:24: ../../gcc-trunk/mpfr/mul.c: In function 'mpfr_mul': ../../gcc-trunk/mpfr/mpfr-longlong.h:1016:3: error: impossible constraint in 'asm' __asm__ ("multu %2,%3" : "=l" (w0), "=h" (w1) : "d" (u), "d" (v)) ^ ../../gcc-trunk/mpfr/mul.c:315:11: note: in expansion of macro 'umul_ppmm' umul_ppmm (tmp[1], tmp[0], MPFR_MANT (b)[0], MPFR_MANT (c)[0]); ^~~~~~~~~ ../../gcc-trunk/mpfr/mpfr-longlong.h:1016:3: error: impossible constraint in 'asm' __asm__ ("multu %2,%3" : "=l" (w0), "=h" (w1) : "d" (u), "d" (v)) ^ ../../gcc-trunk/mpfr/mul.c:322:11: note: in expansion of macro 'umul_ppmm' umul_ppmm (tmp[1], tmp[0], MPFR_MANT (b)[0], MPFR_MANT (c)[0]); ^~~~~~~~~ ../../gcc-trunk/mpfr/mpfr-longlong.h:1016:3: error: impossible constraint in 'asm' __asm__ ("multu %2,%3" : "=l" (w0), "=h" (w1) : "d" (u), "d" (v)) ^ ../../gcc-trunk/mpfr/mul.c:323:11: note: in expansion of macro 'umul_ppmm' umul_ppmm (tmp[2], t, MPFR_MANT (b)[1], MPFR_MANT (c)[0]); ^~~~~~~~~ ../../gcc-trunk/mpfr/mpfr-longlong.h:1016:3: error: impossible constraint in 'asm' __asm__ ("multu %2,%3" : "=l" (w0), "=h" (w1) : "d" (u), "d" (v)) ^ ../../gcc-trunk/mpfr/mul.c:332:11: note: in expansion of macro 'umul_ppmm' umul_ppmm (tmp[1], tmp[0], MPFR_MANT (b)[0], MPFR_MANT (c)[0]); ^~~~~~~~~ ../../gcc-trunk/mpfr/mpfr-longlong.h:1016:3: error: impossible constraint in 'asm' __asm__ ("multu %2,%3" : "=l" (w0), "=h" (w1) : "d" (u), "d" (v)) ^ ../../gcc-trunk/mpfr/mul.c:333:11: note: in expansion of macro 'umul_ppmm' umul_ppmm (tmp[2], t1, MPFR_MANT (b)[1], MPFR_MANT (c)[0]); ^~~~~~~~~ ../../gcc-trunk/mpfr/mpfr-longlong.h:1016:3: error: impossible constraint in 'asm' __asm__ ("multu %2,%3" : "=l" (w0), "=h" (w1) : "d" (u), "d" (v)) ^ ../../gcc-trunk/mpfr/mul.c:336:11: note: in expansion of macro 'umul_ppmm' umul_ppmm (t1, t2, MPFR_MANT (b)[0], MPFR_MANT (c)[1]); ^~~~~~~~~ ../../gcc-trunk/mpfr/mpfr-longlong.h:1016:3: error: impossible constraint in 'asm' __asm__ ("multu %2,%3" : "=l" (w0), "=h" (w1) : "d" (u), "d" (v)) ^ ../../gcc-trunk/mpfr/mul.c:337:11: note: in expansion of macro 'umul_ppmm' umul_ppmm (tmp[3], t3, MPFR_MANT (b)[1], MPFR_MANT (c)[1]); ^~~~~~~~~ make[3]: *** [mul.lo] Error 1 make[3]: Leaving directory `/home/ed/gnu/gcc-build-mips2/mpfr' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/home/ed/gnu/gcc-build-mips2/mpfr' make[1]: *** [all-mpfr] Error 2 make[1]: Leaving directory `/home/ed/gnu/gcc-build-mips2' make: *** [all] Error 2 I thought we disable inline asm for in-tree gmp and mpfr.