Skip to content

Commit

Permalink
ci: fix build issues for gcc14
Browse files Browse the repository at this point in the history
Added C Flags to build. Fixed Python packages installations in Ubuntu
24.04.

Signed-off-by: Nagendra T P <ntp@marvell.com>
Change-Id: I8c6a722bc815f9b4595c84d5f2a3ae9441f9c1d1
Reviewed-on: https://sj1git1.cavium.com/c/IP/SW/dataplane/dpu-offload/+/144073
Tested-by: sa_ip-toolkits-Jenkins <sa_ip-toolkits-jenkins@marvell.com>
Reviewed-by: Pavan Nikhilesh Bhagavatula <pbhagavatula@marvell.com>
  • Loading branch information
Nagendra T P authored and jerinjacobk committed Jan 27, 2025
1 parent 46abd6a commit 44eae61
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 26 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/build-cn10k-nginx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,14 +64,16 @@ jobs:
shell: /bin/bash
install: |
apt-get update -q -y
apt-get install -y build-essential gcc meson ccache git doxygen apt-utils
apt-get install -y apt-utils python3-sphinx-rtd-theme python3-pip
apt-get install -y python3-pyelftools python3-setuptools python3-wheel
apt-get install -y build-essential meson ccache git doxygen
apt-get install -y build-essential ccache git software-properties-common
apt-get install -y libnl-3-dev libnl-route-3-dev libnl-xfrm-3-dev
apt-get install -y sphinx-common python3-sphinx-rtd-theme pkg-config
apt-get install -y sphinx-common pkg-config
apt-get install -y libarchive-dev libbsd-dev libbpf-dev
apt-get install -y libfdt-dev libjansson-dev autoconf dh-autoreconf
apt-get install -y libssl-dev ninja-build python3-pip
apt-get install -y python3-pyelftools python3-setuptools python3-wheel zlib1g-dev
apt-get install -y libssl-dev ninja-build
apt-get install -y zlib1g-dev
apt-get install -y gcc-14 bzip2-doc icu-devtools libacl1-dev libattr1-dev
apt-get install -y libbz2-dev libgmp-dev libgmpxx4ldbl libicu-dev liblz4-dev
apt-get install -y liblzma-dev libxml2-dev libzstd-dev nettle-dev wget lsb-release
Expand All @@ -94,7 +96,7 @@ jobs:
for patch in ${BASE_DIR}/patches/nginx/deps/openssl/${OPENSSL_PATCH_VERSION}/*.patch; do
patch -p1 < "$patch"
done
./Configure --prefix=$PWD/install linux-aarch64
CFLAGS="-Wno-error=implicit-function-declaration" ./Configure --prefix=$PWD/install linux-aarch64
until make; do echo "Building OpenSSL failed, retrying"; done
make install
mkdir -p "${PWD}/install/usr/lib/cn10k/openssl-${OPENSSL_VERSION}"
Expand Down Expand Up @@ -146,7 +148,7 @@ jobs:
done
chmod +x configure
mkdir install
./configure --with-pcre=${PCRE_PATH} --with-http_ssl_module --without-http_gzip_module --with-cc-opt="-DNGX_SECURE_MEM -I/usr/lib/cn10k/openssl-${OPENSSL_VERSION}/include -Wno-error=deprecated-declarations" --with-threads --with-file-aio --with-ld-opt="-Wl,-rpath=/usr/lib/cn10k/openssl-${OPENSSL_VERSION}/lib -L/usr/lib/cn10k/openssl-${OPENSSL_VERSION}/lib -lssl -lcrypto" --add-dynamic-module=modules/nginx_cpt_module/
./configure --with-pcre=${PCRE_PATH} --with-http_ssl_module --without-http_gzip_module --with-cc-opt="-DNGX_SECURE_MEM -I/usr/lib/cn10k/openssl-${OPENSSL_VERSION}/include -Wno-error=deprecated-declarations -Wno-error=implicit-function-declaration" --with-threads --with-file-aio --with-ld-opt="-Wl,-rpath=/usr/lib/cn10k/openssl-${OPENSSL_VERSION}/lib -L/usr/lib/cn10k/openssl-${OPENSSL_VERSION}/lib -lssl -lcrypto" --add-dynamic-module=modules/nginx_cpt_module/
until make; do make clean;echo "Building NGINX failed, retrying"; done
DESTDIR=${PWD}/install/ make install
mkdir -p "${PWD}/install/DEBIAN"
Expand Down
13 changes: 8 additions & 5 deletions .github/workflows/build-cn10k-openssl-engine.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,14 +73,16 @@ jobs:
shell: /bin/bash
install: |
apt-get update -q -y
apt-get install -y build-essential gcc meson ccache git doxygen apt-utils
apt-get install -y apt-utils python3-sphinx-rtd-theme python3-pip
apt-get install -y python3-pyelftools python3-setuptools python3-wheel
apt-get install -y build-essential meson ccache git doxygen
apt-get install -y build-essential ccache git software-properties-common
apt-get install -y libnl-3-dev libnl-route-3-dev libnl-xfrm-3-dev
apt-get install -y sphinx-common python3-sphinx-rtd-theme pkg-config
apt-get install -y sphinx-common pkg-config
apt-get install -y libarchive-dev libbsd-dev libbpf-dev
apt-get install -y libfdt-dev libjansson-dev autoconf dh-autoreconf
apt-get install -y libssl-dev ninja-build python3-pip
apt-get install -y python3-pyelftools python3-setuptools python3-wheel zlib1g-dev
apt-get install -y libssl-dev ninja-build
apt-get install -y zlib1g-dev
apt-get install -y gcc-14 bzip2-doc icu-devtools libacl1-dev libattr1-dev
apt-get install -y libbz2-dev libgmp-dev libgmpxx4ldbl libicu-dev liblz4-dev
apt-get install -y liblzma-dev libxml2-dev libzstd-dev nettle-dev wget lsb-release
Expand All @@ -103,7 +105,7 @@ jobs:
for patch in ${BASE_DIR}/patches/nginx/deps/openssl/${OPENSSL_PATCH_VERSION}/*.patch; do
patch -p1 < "$patch"
done
./Configure linux-aarch64
CFLAGS="-Wno-error=implicit-function-declaration" ./Configure linux-aarch64
until make; do echo "Building OpenSSL failed, retrying"; done
cd ..
export OPENSSL_INSTALL=$BASE_DIR/openssl-${OPENSSL_VERSION}
Expand All @@ -115,6 +117,7 @@ jobs:
echo "CPT_PKG_VERSION=`cat CPT_PKG_VERSION`" >> "${BASE_DIR}/artifacts/env"
source /artifacts/env
export DPDK_INSTALL=/
export CFLAGS="-Wno-error=implicit-function-declaration"
make OTX2=y OSSL_CONF=y DPDK_PC=$DPDK_INSTALL/usr/lib/aarch64-linux-gnu/pkgconfig/
mkdir -p "${PWD}/install/usr/local/lib/engines-1.1/"
cp -r "${PWD}/dpdk_engine.so" "${PWD}/install/usr/local/lib/engines-1.1/."
Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/build-cn10k-ovs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,14 +68,16 @@ jobs:
shell: /bin/bash
install: |
apt-get update -q -y
apt-get install -y build-essential gcc meson ccache git doxygen apt-utils
apt-get install -y apt-utils python3-sphinx-rtd-theme python3-pip
apt-get install -y python3-pyelftools python3-setuptools python3-wheel
apt-get install -y build-essential meson ccache git doxygen
apt-get install -y build-essential ccache git software-properties-common
apt-get install -y libnl-3-dev libnl-route-3-dev libnl-xfrm-3-dev
apt-get install -y sphinx-common python3-sphinx-rtd-theme pkg-config
apt-get install -y sphinx-common pkg-config
apt-get install -y libarchive-dev libbsd-dev libbpf-dev
apt-get install -y libfdt-dev libjansson-dev autoconf dh-autoreconf
apt-get install -y libssl-dev ninja-build python3-pip
apt-get install -y python3-pyelftools python3-setuptools python3-wheel zlib1g-dev
apt-get install -y libssl-dev ninja-build
apt-get install -y zlib1g-dev
apt-get install -y gcc-14 bzip2-doc icu-devtools libacl1-dev libattr1-dev
apt-get install -y libbz2-dev libgmp-dev libgmpxx4ldbl libicu-dev liblz4-dev
apt-get install -y liblzma-dev libxml2-dev libzstd-dev nettle-dev wget lsb-release
Expand Down
14 changes: 8 additions & 6 deletions .github/workflows/build-cn9k-nginx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,14 +64,16 @@ jobs:
shell: /bin/bash
install: |
apt-get update -q -y
apt-get install -y build-essential gcc meson ccache git doxygen apt-utils
apt-get install -y apt-utils python3-sphinx-rtd-theme python3-pip
apt-get install -y python3-pyelftools python3-setuptools python3-wheel
apt-get install -y build-essential meson ccache git doxygen
apt-get install -y build-essential ccache git software-properties-common
apt-get install -y libnl-3-dev libnl-route-3-dev libnl-xfrm-3-dev
apt-get install -y sphinx-common python3-sphinx-rtd-theme pkg-config
apt-get install -y sphinx-common pkg-config
apt-get install -y libarchive-dev libbsd-dev libbpf-dev
apt-get install -y libfdt-dev libjansson-dev autoconf dh-autoreconf
apt-get install -y libssl-dev ninja-build python3-pip
apt-get install -y python3-pyelftools python3-setuptools python3-wheel zlib1g-dev
apt-get install -y libssl-dev ninja-build
apt-get install -y zlib1g-dev
apt-get install -y gcc-14 bzip2-doc icu-devtools libacl1-dev libattr1-dev
apt-get install -y libbz2-dev libgmp-dev libgmpxx4ldbl libicu-dev liblz4-dev
apt-get install -y liblzma-dev libxml2-dev libzstd-dev nettle-dev wget lsb-release
Expand All @@ -94,7 +96,7 @@ jobs:
for patch in ${BASE_DIR}/patches/nginx/deps/openssl/${OPENSSL_PATCH_VERSION}/*.patch; do
patch -p1 < "$patch"
done
./Configure --prefix=$PWD/install linux-aarch64
CFLAGS="-Wno-error=implicit-function-declaration" ./Configure --prefix=$PWD/install linux-aarch64
until make; do echo "Building OpenSSL failed, retrying"; done
make install
mkdir -p "${PWD}/install/usr/lib/cn9k/openssl-${OPENSSL_VERSION}"
Expand Down Expand Up @@ -146,7 +148,7 @@ jobs:
done
chmod +x configure
mkdir install
./configure --with-pcre=${PCRE_PATH} --with-http_ssl_module --without-http_gzip_module --with-cc-opt="-DNGX_SECURE_MEM -I/usr/lib/cn9k/openssl-${OPENSSL_VERSION}/include -Wno-error=deprecated-declarations" --with-threads --with-file-aio --with-ld-opt="-Wl,-rpath=/usr/lib/cn9k/openssl-${OPENSSL_VERSION}/lib -L/usr/lib/cn9k/openssl-${OPENSSL_VERSION}/lib -lssl -lcrypto" --add-dynamic-module=modules/nginx_cpt_module/
./configure --with-pcre=${PCRE_PATH} --with-http_ssl_module --without-http_gzip_module --with-cc-opt="-DNGX_SECURE_MEM -I/usr/lib/cn10k/openssl-${OPENSSL_VERSION}/include -Wno-error=deprecated-declarations -Wno-error=implicit-function-declaration" --with-threads --with-file-aio --with-ld-opt="-Wl,-rpath=/usr/lib/cn10k/openssl-${OPENSSL_VERSION}/lib -L/usr/lib/cn10k/openssl-${OPENSSL_VERSION}/lib -lssl -lcrypto" --add-dynamic-module=modules/nginx_cpt_module/
until make; do make clean;echo "Building NGINX failed, retrying"; done
DESTDIR=${PWD}/install/ make install
mkdir -p "${PWD}/install/DEBIAN"
Expand Down
13 changes: 8 additions & 5 deletions .github/workflows/build-cn9k-openssl-engine.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,14 +73,16 @@ jobs:
shell: /bin/bash
install: |
apt-get update -q -y
apt-get install -y build-essential gcc meson ccache git doxygen apt-utils
apt-get install -y apt-utils python3-sphinx-rtd-theme python3-pip
apt-get install -y python3-pyelftools python3-setuptools python3-wheel
apt-get install -y build-essential meson ccache git doxygen
apt-get install -y build-essential ccache git software-properties-common
apt-get install -y libnl-3-dev libnl-route-3-dev libnl-xfrm-3-dev
apt-get install -y sphinx-common python3-sphinx-rtd-theme pkg-config
apt-get install -y sphinx-common pkg-config
apt-get install -y libarchive-dev libbsd-dev libbpf-dev
apt-get install -y libfdt-dev libjansson-dev autoconf dh-autoreconf
apt-get install -y libssl-dev ninja-build python3-pip
apt-get install -y python3-pyelftools python3-setuptools python3-wheel zlib1g-dev
apt-get install -y libssl-dev ninja-build
apt-get install -y zlib1g-dev
apt-get install -y gcc-14 bzip2-doc icu-devtools libacl1-dev libattr1-dev
apt-get install -y libbz2-dev libgmp-dev libgmpxx4ldbl libicu-dev liblz4-dev
apt-get install -y liblzma-dev libxml2-dev libzstd-dev nettle-dev wget lsb-release
Expand All @@ -103,7 +105,7 @@ jobs:
for patch in ${BASE_DIR}/patches/nginx/deps/openssl/${OPENSSL_PATCH_VERSION}/*.patch; do
patch -p1 < "$patch"
done
./Configure linux-aarch64
CFLAGS="-Wno-error=implicit-function-declaration" ./Configure linux-aarch64
until make; do echo "Building OpenSSL failed, retrying"; done
cd ..
export OPENSSL_INSTALL=$BASE_DIR/openssl-${OPENSSL_VERSION}
Expand All @@ -115,6 +117,7 @@ jobs:
echo "CPT_PKG_VERSION=`cat CPT_PKG_VERSION`" >> "${BASE_DIR}/artifacts/env"
source /artifacts/env
export DPDK_INSTALL=/
export CFLAGS="-Wno-error=implicit-function-declaration"
make OTX2=y OSSL_CONF=y DPDK_PC=$DPDK_INSTALL/usr/lib/aarch64-linux-gnu/pkgconfig/
mkdir -p "${PWD}/install/usr/local/lib/engines-1.1/"
cp -r "${PWD}/dpdk_engine.so" "${PWD}/install/usr/local/lib/engines-1.1/."
Expand Down

0 comments on commit 44eae61

Please sign in to comment.