DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [Bug 812] [build]Meson build failed on OpenSuse15.3 with GCC 7.5.0/clang 11.0.1
@ 2021-09-23  6:19 bugzilla
  0 siblings, 0 replies; only message in thread
From: bugzilla @ 2021-09-23  6:19 UTC (permalink / raw)
  To: dev

https://bugs.dpdk.org/show_bug.cgi?id=812

            Bug ID: 812
           Summary: [build]Meson build failed on OpenSuse15.3 with GCC
                    7.5.0/clang 11.0.1
           Product: DPDK
           Version: 21.11
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: meson
          Assignee: dev@dpdk.org
          Reporter: longfengx.liang@intel.com
  Target Milestone: ---

1.DPDK version:
commit 68818c85d27d3d749affd97f5eaca1812735dfb4 (HEAD -> main)
Author: David Hunt <david.hunt@intel.com>
Date:   Tue Sep 21 12:50:15 2021 +0100

    Signed-off-by: David Hunt <david.hunt@intel.com>
    Acked-by: Bruce Richardson <bruce.richardson@intel.com>

2.OS version:
  OpenSuse15.3 /5.3.18-57-default
  gcc version:gcc (SUSE Linux) 7.5.0
  clang version: clang version 11.0.1

3.Test Setup:

gcc&meason build cmd:
CC=gcc meson --werror -Denable_kmods=True -Dlibdir=lib -Dexamples=all
--default-library=static x86_64-native-linuxapp-gcc
ninja -C x86_64-native-linuxapp-gcc/

clang&meson build cmd:
CC=clang meson --werror -Denable_kmods=True -Dlibdir=lib -Dexamples=all
--default-library=static x86_64-native-linuxapp-clang
ninja -C x86_64-native-linuxapp-clang/

4.gcc&clang used meson build failed output info:

gcc output info:
localhost:~/dpdk # ninja -C x86_64-native-linuxapp-gcc/
ninja: Entering directory `x86_64-native-linuxapp-gcc/'
[2930/2930] Generating rte_kni with a custom command
FAILED: kernel/linux/kni/rte_kni.ko
make -j4 -C /lib/modules/5.3.18-57-default/build
M=/root/dpdk/x86_64-native-linuxapp-gcc/kernel/linux/kni
src=/root/dpdk/kernel/linux/kni 'MODULE_CFLAGS=-include
/root/dpdk/config/rte_config.h -I/root/dpdk/lib/eal/include
-I/root/dpdk/lib/kni -I/root/dpdk/x86_64-native-linuxapp-gcc
-I/root/dpdk/kernel/linux/kni' modules
make: Entering directory '/usr/src/linux-5.3.18-57-obj/x86_64/default'
  CC [M]  /root/dpdk/x86_64-native-linuxapp-gcc/kernel/linux/kni/kni_net.o
  CC [M]  /root/dpdk/x86_64-native-linuxapp-gcc/kernel/linux/kni/kni_misc.o
/root/dpdk/kernel/linux/kni/kni_net.c:809:20: error: initialization from
incompatible pointer type [-Werror=incompatible-pointer-types]
  .ndo_tx_timeout = kni_net_tx_timeout,
                    ^~~~~~~~~~~~~~~~~~
/root/dpdk/kernel/linux/kni/kni_net.c:809:20: note: (near initialization for
‘kni_net_netdev_ops.ndo_tx_timeout’)
cc1: some warnings being treated as errors
make[2]: *** [/usr/src/linux-5.3.18-57/scripts/Makefile.build:287:
/root/dpdk/x86_64-native-linuxapp-gcc/kernel/linux/kni/kni_net.o] Error 1
make[1]: *** [/usr/src/linux-5.3.18-57/Makefile:1670:
_module_/root/dpdk/x86_64-native-linuxapp-gcc/kernel/linux/kni] Error 2
make: *** [../../../linux-5.3.18-57/Makefile:179: sub-make] Error 2
make: Leaving directory '/usr/src/linux-5.3.18-57-obj/x86_64/default'
ninja: build stopped: subcommand failed.

clang output info:
localhost:~/dpdk # ninja -C x86_64-native-linuxapp-clang/
ninja: Entering directory `x86_64-native-linuxapp-clang/'
[2932/2932] Generating rte_kni with a custom command
FAILED: kernel/linux/kni/rte_kni.ko
make -j4 -C /lib/modules/5.3.18-57-default/build
M=/root/dpdk/x86_64-native-linuxapp-clang/kernel/linux/kni
src=/root/dpdk/kernel/linux/kni 'MODULE_CFLAGS=-include
/root/dpdk/config/rte_config.h -I/root/dpdk/lib/eal/include
-I/root/dpdk/lib/kni -I/root/dpdk/x86_64-native-linuxapp-clang
-I/root/dpdk/kernel/linux/kni' modules
make: Entering directory '/usr/src/linux-5.3.18-57-obj/x86_64/default'
  CC [M]  /root/dpdk/x86_64-native-linuxapp-clang/kernel/linux/kni/kni_net.o
  CC [M]  /root/dpdk/x86_64-native-linuxapp-clang/kernel/linux/kni/kni_misc.o
/root/dpdk/kernel/linux/kni/kni_net.c:809:20: error: initialization from
incompatible pointer type [-Werror=incompatible-pointer-types]
  .ndo_tx_timeout = kni_net_tx_timeout,
                    ^~~~~~~~~~~~~~~~~~
/root/dpdk/kernel/linux/kni/kni_net.c:809:20: note: (near initialization for
‘kni_net_netdev_ops.ndo_tx_timeout’)
cc1: some warnings being treated as errors
make[2]: *** [/usr/src/linux-5.3.18-57/scripts/Makefile.build:288:
/root/dpdk/x86_64-native-linuxapp-clang/kernel/linux/kni/kni_net.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [/usr/src/linux-5.3.18-57/Makefile:1670:
_module_/root/dpdk/x86_64-native-linuxapp-clang/kernel/linux/kni] Error 2
make: *** [../../../linux-5.3.18-57/Makefile:179: sub-make] Error 2
make: Leaving directory '/usr/src/linux-5.3.18-57-obj/x86_64/default'
ninja: build stopped: subcommand failed.

-- 
You are receiving this mail because:
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-09-23  6:19 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-23  6:19 [dpdk-dev] [Bug 812] [build]Meson build failed on OpenSuse15.3 with GCC 7.5.0/clang 11.0.1 bugzilla

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).