DGL build from source errors

Hi,
I am trying to build DGL from source, but I keep running into this error. Any pointers on how I can resolve it?

38%] Built target gtest_main
In file included from send-zerocopy.c:15:
/usr/include/linux/ipv6.h:19:8: error: redefinition of ‘struct in6_pktinfo’
19 | struct in6_pktinfo {
| ^~~~~~~~~~~
In file included from /usr/include/arpa/inet.h:22,
from send-zerocopy.c:13:
/usr/include/netinet/in.h:538:8: note: originally defined here
538 | struct in6_pktinfo
| ^~~~~~~~~~~
In file included from send-zerocopy.c:15:
/usr/include/linux/ipv6.h:24:8: error: redefinition of ‘struct ip6_mtuinfo’
24 | struct ip6_mtuinfo {
| ^~~~~~~~~~~
In file included from /usr/include/arpa/inet.h:22,
from send-zerocopy.c:13:
/usr/include/netinet/in.h:545:8: note: originally defined here
545 | struct ip6_mtuinfo
| ^~~~~~~~~~~
make[4]: *** [send-zerocopy.t] Error 1
make[4]: *** Waiting for unfinished jobs…
make[3]: *** [all] Error 2
make[2]: *** [liburing-prefix/src/liburing-stamp/liburing-build] Error 2
make[1]: *** [CMakeFiles/liburing.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs…
[ 38%] Linking CXX static library …/…/…/lib/libgmock.a
[ 38%] Built target gmock
[ 38%] Linking CXX static library libdmlc.a
[ 38%] Built target dmlc

You need to provide your compiler name and version if you want us to be able to help. We build DGL daily with GCC 9.

Hi!
The gcc version is - gcc (Spack GCC) 10.3.0

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.