848daf274b
Add '--enable-log-bt=lvl' option to show simple backtrace in following form: thread.c: 346:spdk_io_device_register: *ERROR*: io_device 0xf2ef80 already registered *ERROR*: === BACKTRACE START === *ERROR*: 1: spdk_io_device_register() at 0x6d64df *ERROR*: 2: spdk_copy_engine_initialize() at 0x71059c *ERROR*: 3: spdk_copy_engine_subsystem_initialize() at 0x572ed0 *ERROR*: 4: spdk_subsystem_init_next() at 0x6ca756 *ERROR*: 5: spdk_subsystem_verify() at 0x6caba7 *ERROR*: 6: _spdk_event_queue_run_batch() at 0x6c1ffa *ERROR*: 7: _spdk_reactor_run() at 0x6c5349 *ERROR*: 8: spdk_reactors_start() at 0x6c784f *ERROR*: 9: spdk_app_start() at 0x6bf18e *ERROR*: === BACKTRACE END === This adds additional libunwind dependency so don't enable by default. Change-Id: Ice93d7571a000d8a57d2fedda7670c9a0b6ff7b7 Signed-off-by: Pawel Wodkowski <pawelx.wodkowski@intel.com> Reviewed-on: https://review.gerrithub.io/419726 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Chandler-Test-Pool: SPDK Automated Test System <sys_sgsw@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-by: Jim Harris <james.r.harris@intel.com>
66 lines
2.6 KiB
Bash
Executable File
66 lines
2.6 KiB
Bash
Executable File
#!/bin/sh
|
|
# Please run this script as root.
|
|
|
|
SYSTEM=`uname -s`
|
|
|
|
if [ -s /etc/redhat-release ]; then
|
|
# Includes Fedora, CentOS
|
|
if [ -f /etc/centos-release ]; then
|
|
# Add EPEL repository for CUnit-devel
|
|
yum --enablerepo=extras install -y epel-release
|
|
fi
|
|
yum install -y gcc gcc-c++ make CUnit-devel libaio-devel \
|
|
git astyle python-pep8 lcov python clang-analyzer libuuid-devel \
|
|
sg3_utils libiscsi-devel
|
|
yum install -y --allowerasing openssl-devel
|
|
# Additional (optional) dependencies for showing backtrace in logs
|
|
yum install libunwind-devel
|
|
# Additional dependencies for NVMe over Fabrics
|
|
yum install -y libibverbs-devel librdmacm-devel
|
|
# Additional dependencies for DPDK
|
|
yum install -y numactl-devel nasm
|
|
# Additional dependencies for building docs
|
|
yum install -y doxygen mscgen graphviz
|
|
# Additional dependencies for building pmem based backends
|
|
yum install -y libpmemblk-devel || true
|
|
# Additional dependencies for SPDK CLI
|
|
yum install -y python-configshell python-pexpect python3-configshell python3-pexpect
|
|
elif [ -f /etc/debian_version ]; then
|
|
# Includes Ubuntu, Debian
|
|
apt-get install -y gcc g++ make libcunit1-dev libaio-dev libssl-dev \
|
|
git astyle pep8 lcov clang uuid-dev sg3-utils libiscsi-dev
|
|
# Additional (optional) dependencies for showing backtrace in logs
|
|
apt-get install libunwind-dev
|
|
# Additional dependencies for NVMe over Fabrics
|
|
apt-get install -y libibverbs-dev librdmacm-dev
|
|
# Additional dependencies for DPDK
|
|
apt-get install -y libnuma-dev nasm
|
|
# Additional dependencies for building docs
|
|
apt-get install -y doxygen mscgen graphviz
|
|
# Additional dependencies for SPDK CLI
|
|
apt-get install -y python-pip python3-pip
|
|
pip install configshell_fb pexpect
|
|
pip3 install configshell_fb pexpect
|
|
elif [ -f /etc/SuSE-release ]; then
|
|
zypper install -y gcc gcc-c++ make cunit-devel libaio-devel libopenssl-devel \
|
|
git-core lcov python-base python-pep8 libuuid-devel sg3_utils
|
|
# Additional (optional) dependencies for showing backtrace in logs
|
|
zypper install libunwind-devel
|
|
# Additional dependencies for NVMe over Fabrics
|
|
zypper install -y rdma-core-devel
|
|
# Additional dependencies for DPDK
|
|
zypper install -y libnuma-devel nasm
|
|
# Additional dependencies for building pmem based backends
|
|
zypper install -y libpmemblk-devel
|
|
# Additional dependencies for building docs
|
|
zypper install -y doxygen mscgen graphviz
|
|
elif [ $SYSTEM = "FreeBSD" ] ; then
|
|
pkg install -y gmake cunit openssl git devel/astyle bash py27-pycodestyle \
|
|
python misc/e2fsprogs-libuuid sysutils/sg3_utils nasm
|
|
# Additional dependencies for building docs
|
|
pkg install -y doxygen mscgen graphviz
|
|
else
|
|
echo "pkgdep: unknown system type."
|
|
exit 1
|
|
fi
|