haproxy icon indicating copy to clipboard operation
haproxy copied to clipboard

armhf cross build fails

Open chipitsine opened this issue 3 years ago • 0 comments

Tool Name and Version

gcc cross compile

Code Report

cross-compilation (arm-linux-gnueabihf, libc6-dev-armhf-cross) 

build link: https://github.com/chipitsine/haproxy/runs/7714104570?check_suite_focus=true

  CC      src/fd.o
In file included from include/haproxy/api-t.h:36,
                 from include/haproxy/api.h:33,
                 from src/fd.c:90:
src/fd.c: In function ‘fd_rm_from_fd_list’:
src/fd.c:209:87: error: passing argument 3 of ‘__ha_cas_dw’ discards ‘volatile’ qualifier from pointer target type [-Werror=discarded-array-qualifiers]
  209 |    unlikely(!_HA_ATOMIC_DWCAS(((long *)&fdtab[fd].update), (uint32_t *)&cur_list.u32, &next_list.u32))
      |                                                                                       ^~~~~~~~~~~~~~
include/haproxy/compiler.h:173:40: note: in definition of macro ‘unlikely’
  173 | #define unlikely(x) (__builtin_expect((x) != 0, 0))
      |                                        ^
src/fd.c:209:14: note: in expansion of macro ‘_HA_ATOMIC_DWCAS’
  209 |    unlikely(!_HA_ATOMIC_DWCAS(((long *)&fdtab[fd].update), (uint32_t *)&cur_list.u32, &next_list.u32))
      |              ^~~~~~~~~~~~~~~~
compilation terminated due to -Wfatal-errors.

Additional Information

No response

Output of haproxy -vv

no

chipitsine avatar Aug 07 '22 16:08 chipitsine