facebookincubator / katran

A high performance layer 4 load balancer
GNU General Public License v2.0
4.75k stars 504 forks source link

run `bash build_katran.sh` error. #174

Closed liusy58 closed 1 year ago

liusy58 commented 2 years ago

Hi,sir, after I enter the command bash build_katran.sh I got the following error:

In file included from /home/bigdataflow/lsy/katran/_build/deps/include/bpf/bpf.h:31:0,
                 from /home/bigdataflow/lsy/katran/katran/lib/BaseBpfAdapter.h:24,
                 from /home/bigdataflow/lsy/katran/katran/lib/BaseBpfAdapter.cpp:17:
/home/bigdataflow/lsy/katran/katran/lib/BaseBpfAdapter.cpp: In static member function ‘static int katran::BaseBpfAdapter::createNamedBpfMap(const string&, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, int)’:
/home/bigdataflow/lsy/katran/katran/lib/BaseBpfAdapter.cpp:200:3: sorry, unimplemented: non-trivial designated initializers not supported
   LIBBPF_OPTS(
   ^
/home/bigdataflow/lsy/katran/katran/lib/BaseBpfAdapter.cpp:200:3: sorry, unimplemented: non-trivial designated initializers not supported
/home/bigdataflow/lsy/katran/katran/lib/BaseBpfAdapter.cpp:200:3: error: conversion from ‘void’ to non-scalar type ‘bpf_map_create_opts’ requested
   LIBBPF_OPTS(
   ^
/home/bigdataflow/lsy/katran/katran/lib/BaseBpfAdapter.cpp: In static member function ‘static int katran::BaseBpfAdapter::testXdpProg(int, int, void*, uint32_t, void*, uint32_t*, uint32_t*, uint32_t*, void*, uint32_t, void*, uint32_t*)’:
/home/bigdataflow/lsy/katran/katran/lib/BaseBpfAdapter.cpp:456:3: sorry, unimplemented: non-trivial designated initializers not supported
   LIBBPF_OPTS(
   ^
/home/bigdataflow/lsy/katran/katran/lib/BaseBpfAdapter.cpp:456:3: sorry, unimplemented: non-trivial designated initializers not supported
/home/bigdataflow/lsy/katran/katran/lib/BaseBpfAdapter.cpp:456:3: sorry, unimplemented: non-trivial designated initializers not supported
/home/bigdataflow/lsy/katran/katran/lib/BaseBpfAdapter.cpp:456:3: sorry, unimplemented: non-trivial designated initializers not supported
/home/bigdataflow/lsy/katran/katran/lib/BaseBpfAdapter.cpp:456:3: error: conversion from ‘void’ to non-scalar type ‘bpf_test_run_opts’ requested

I am using ubuntu 20.04.

lima1756 commented 2 years ago

which version of gcc are you using?

liusy58 commented 2 years ago

I am using clang12 ;-)

lima1756 commented 2 years ago

Hi! Sorry for the delay, have been trying to reproduce this but haven't been able, can you submit the full output when running ./build_katran.sh?