All of lore.kernel.org
 help / color / mirror / Atom feed
From: bugzilla@dpdk.org
To: dev@dpdk.org
Subject: [dpdk-dev] [Bug 812] [build]Meson build failed on OpenSuse15.3 with GCC 7.5.0/clang 11.0.1
Date: Thu, 23 Sep 2021 06:19:45 +0000	[thread overview]
Message-ID: <bug-812-3@http.bugs.dpdk.org/> (raw)

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.

                 reply	other threads:[~2021-09-23  6:19 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-812-3@http.bugs.dpdk.org/ \
    --to=bugzilla@dpdk.org \
    --cc=dev@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.