https://bugs.linaro.org/show_bug.cgi?id=2211

            Bug ID: 2211
           Summary: clang fails with 32bit build for odp_timer.c
           Product: OpenDataPlane - linux- generic reference
           Version: v1.9
          Hardware: Other
                OS: Linux
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: ---
         Component: Timers
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
  Target Milestone: ---

use check-odp
CLANG=1 M32_ON_64=1  ./build.sh 

  CC       odp_weak.lo
  CC       pktio/ethtool.lo
odp_timer.c:110:1: error: bit-field '__error_if_negative' has negative width
(-1)
ODP_STATIC_ASSERT(sizeof(tick_buf_t) == 16, "sizeof(tick_buf_t) == 16");
^
./include/odp/api/debug.h:42:39: note: expanded from macro 'ODP_STATIC_ASSERT'
#define ODP_STATIC_ASSERT(cond, msg)  _Static_assert(cond, msg)
                                      ^
/usr/include/sys/cdefs.h:407:31: note: expanded from macro '_Static_assert'
      [!!sizeof (struct { int __error_if_negative: (expr) ? 2 : -1; })]
                              ^
1 error generated.
Makefile:823: recipe for target 'odp_timer.lo' failed

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
lng-odp mailing list
[email protected]
https://lists.linaro.org/mailman/listinfo/lng-odp

Reply via email to