package/dc3dd: disable on riscv32
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Fri, 4 Jun 2021 18:47:06 +0000 (20:47 +0200)
committerYann E. MORIN <yann.morin.1998@free.fr>
Sat, 5 Jun 2021 10:00:54 +0000 (12:00 +0200)
Disable dc3dd on riscv32 because of the size of time_t (riscv32 has
never had a 32-bit time, and has always been 64-bit from the onset):

        In file included from getdate.y:40:
        verify.h:132:30: error: negative width in bit-field 'verify_error_if_negative_size__'
          132 |       (struct { unsigned int verify_error_if_negative_size__: (R) ? 1 : -1; }))
              |                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        verify.h:138:61: note: in expansion of macro 'verify_true'
          138 | # define verify(R) extern int (* verify_function__ (void)) [verify_true (R)]
              |                                                             ^~~~~~~~~~~
        getdate.y:116:1: note: in expansion of macro 'verify'
          116 | verify (LONG_MIN <= TYPE_MINIMUM (time_t) && TYPE_MAXIMUM (time_t) <= LONG_MAX);
              | ^~~~~~

Fixes:
 - http://autobuild.buildroot.org/results/267151dec9d2328a5f8c61ddf224219a4f617e5c

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
package/dc3dd/Config.in

index 0383897cd503dd3c3fcc477389f8bf691e5cb6e9..715451beb7aa1471add93030c04d8eac3ec02d39 100644 (file)
@@ -1,5 +1,6 @@
 config BR2_PACKAGE_DC3DD
        bool "dc3dd"
+       depends on !BR2_RISCV_32
        depends on BR2_TOOLCHAIN_HAS_THREADS
        depends on !BR2_TOOLCHAIN_USES_MUSL
        help
@@ -11,5 +12,6 @@ config BR2_PACKAGE_DC3DD
          https://sourceforge.net/projects/dc3dd/
 
 comment "dc3dd needs a glibc or uClibc toolchain w/ threads"
+       depends on !BR2_RISCV_32
        depends on !BR2_TOOLCHAIN_HAS_THREADS || \
                BR2_TOOLCHAIN_USES_MUSL