All of lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Monjalon <thomas.monjalon@6wind.com>
To: dev@dpdk.org
Subject: reminder: each patch must compile
Date: Tue, 04 Apr 2017 14:25:53 +0200	[thread overview]
Message-ID: <3506601.nCfr7NKSpQ@xps13> (raw)

Let's remind the obvious:
	a patch must never break the compilation of any area of code

It happens to have some break with some kernels or architectures,
but it should be an exception and fixed quickly when it is discovered.

I am seeing more and more patches which cannot be applied because of
obvious compilation issues. It makes loosing time to everyone.

If you are not sure how to test the compilation,
devtools/test-build.sh is the recommended tool.

It can be configured in ~/.config/dpdk/devel.config
to adapt the options to your environment.
Example for x86 compilation:

if echo $DPDK_TARGET | grep -q '^i686' ; then
    export DPDK_DEP_ARCHIVE=y
    export DPDK_DEP_ZLIB=y
    export DPDK_DEP_PCAP=y
    export DPDK_DEP_SSL=y
    export DPDK_DEP_MOFED=y
    export DPDK_DEP_CFLAGS="-I$mlxdep/include"
    export DPDK_DEP_LDFLAGS="-L$mlxdep/lib32"
    export LIBSSO_SNOW3G_PATH=$root/libsso/libsso32-snow3g-0.3.1
    export PQOS_INSTALL_PATH=$root/libqos/install/lib32
elif echo $DPDK_TARGET | grep -q '^x86_64' ; then
    export DPDK_DEP_ARCHIVE=y
    export DPDK_DEP_ZLIB=y
    export DPDK_DEP_PCAP=y
    export DPDK_DEP_SSL=y
    export DPDK_DEP_MOFED=y
    export DPDK_DEP_NUMA=y
    export DPDK_DEP_SZE=y
    export DPDK_DEP_ISAL_CRYPTO=y
    export DPDK_DEP_CFLAGS="-I$mlxdep/include -I$szedep/include"
    export DPDK_DEP_LDFLAGS="-L$mlxdep/lib -L$szedep/lib64 -rpath=$szedep/lib64"
    export AESNI_MULTI_BUFFER_LIB_PATH=$root/aesni/intel-ipsec-mb
    export LIBSSO_SNOW3G_PATH=$root/libsso/libsso-snow3g-0.3.1
    export LIBSSO_KASUMI_PATH=$root/libsso/libsso-kasumi-0.3.1
    export LIBSSO_ZUC_PATH=$root/libsso/libsso-zuc-0.1.1
    export PQOS_INSTALL_PATH=$root/libqos/install/lib
fi
export DPDK_BUILD_TEST_CONFIGS='x86_64-native-linuxapp-clang+shared+next+debug i686-native-linuxapp-gcc+default'

You are also welcome to add some automatic checks in the distributed CI,
which will be shown in patchwork.

Thanks for your attention

                 reply	other threads:[~2017-04-04 12:25 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=3506601.nCfr7NKSpQ@xps13 \
    --to=thomas.monjalon@6wind.com \
    --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.