[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1023692: gcc-arm-linux-gnueabihf: Compiling anything with <math.h> fails: error: '_Float128' is not supported on this target



Package: gcc-arm-linux-gnueabihf
Version: 4:12.2.0-1
Severity: important
X-Debbugs-Cc: none, Dima Kogan <dkogan@debian.org>

Hi. I have a "tst.c" which has just one line:

  #include <math.h>

Cross-compiling it doesn't work:

  $ arm-linux-gnueabihf-gcc-12 -c -o tst.o tst.c

  In file included from tst.c:1:
  /usr/include/bits/mathcalls-helper-functions.h:20:40: error: '_Float128' is not supported on this target
     20 | __MATHDECL_ALIAS (int, __fpclassify,, (_Mdouble_ __value), fpclassify)
        |                                        ^~~~~~~~~
  /usr/include/bits/mathcalls-helper-functions.h:24:37: error: '_Float128' is not supported on this target
     24 | __MATHDECL_ALIAS (int, __signbit,, (_Mdouble_ __value), signbit)
        |                                     ^~~~~~~~~
  /usr/include/bits/mathcalls-helper-functions.h:29:35: error: '_Float128' is not supported on this target
     29 | __MATHDECL_ALIAS (int, __isinf,, (_Mdouble_ __value), isinf)
        |                                   ^~~~~~~~~
  /usr/include/bits/mathcalls-helper-functions.h:33:36: error: '_Float128' is not supported on this target
     33 | __MATHDECL_ALIAS (int, __finite,, (_Mdouble_ __value), finite)
        |                                    ^~~~~~~~~
  /usr/include/bits/mathcalls-helper-functions.h:37:35: error: '_Float128' is not supported on this target
     37 | __MATHDECL_ALIAS (int, __isnan,, (_Mdouble_ __value), isnan)
        |                                   ^~~~~~~~~
  /usr/include/bits/mathcalls-helper-functions.h:41:37: error: '_Float128' is not supported on this target
     41 | __MATHDECL_ALIAS (int, __iseqsig,, (_Mdouble_ __x, _Mdouble_ __y), iseqsig);
        |                                     ^~~~~~~~~
  /usr/include/bits/mathcalls-helper-functions.h:41:52: error: '_Float128' is not supported on this target
     41 | __MATHDECL_ALIAS (int, __iseqsig,, (_Mdouble_ __x, _Mdouble_ __y), iseqsig);
        |                                                    ^~~~~~~~~
  /usr/include/bits/mathcalls-helper-functions.h:44:41: error: '_Float128' is not supported on this target
     44 | __MATHDECL_ALIAS (int, __issignaling,, (_Mdouble_ __value), issignaling)
        |                                         ^~~~~~~~~

This should work.

Thanks


-- System Information:
Debian Release: bookworm/sid
  APT prefers unstable
  APT policy: (800, 'unstable'), (700, 'testing'), (500, 'unstable-debug'), (500, 'stable')
merged-usr: no
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.18.0-4-amd64 (SMP w/4 CPU threads; PREEMPT)
Locale: LANG=en_US.utf-8, LC_CTYPE=en_US.utf-8 (charmap=UTF-8) (ignored: LC_ALL set to en_US.utf-8), LANGUAGE=en_US.utf-8
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages gcc-arm-linux-gnueabihf depends on:
ii  cpp-arm-linux-gnueabihf     4:12.2.0-1
ii  gcc-12-arm-linux-gnueabihf  12.2.0-3cross2

Versions of packages gcc-arm-linux-gnueabihf recommends:
pn  libc6-dev-armhf-cross | libc-dev-armhf-cross  <none>

Versions of packages gcc-arm-linux-gnueabihf suggests:
ii  autoconf                 2.71-2
ii  automake                 1:1.16.5-1.3
ii  bison                    2:3.8.2+dfsg-1
ii  flex                     2.6.4-8
ii  gcc-doc                  5:12.1.0-1
pn  gdb-arm-linux-gnueabihf  <none>
ii  libtool                  2.4.7-4
ii  make                     4.3-4.1
ii  manpages-dev             5.13-1

-- no debconf information


Reply to: