Description
ENV: ubuntu24.04 kernel 6.8.0-41-generic,
make init
make configure PLATFORM=broadcom
http_proxy=[your_proxy] https_proxy=[your_proxy] no_proxy=[your_no_proxy] make target/sonic-broadcom.bin
Build start time: Mon Mar 10 00:18:36 UTC 2025
[ REASON ] : target/debs/bookworm/libnl-3-200_3.7.0-0.2+b1sonic1_amd64.deb does not exist
[ FLAGS FILE ] : []
[ FLAGS DEPENDS ] : []
[ FLAGS DIFF ] : []
make[1]: Entering directory '/sonic/src/libnl3'
Obtaining the libnl3
rm -rf ./libnl3-3.7.0
dget https://deb.debian.org/debian/pool/main/libn/libnl3/libnl3_3.7.0-0.2.dsc
pushd libnl3-3.7.0
Create a git repository here for stg to apply patches
git init
git add -f *
git commit -qm "initial commit"
Apply patch series
stg init
stg import -s ../patch/series
DPKG_GENSYMBOLS_CHECK_LEVEL=0 dpkg-buildpackage -rfakeroot -b -us -uc -j128 --admindir /sonic/dpkg/tmp.uGd3udcLfT
popd
mv libnl-3-dev_3.7.0-0.2+b1sonic1_amd64.deb libnl-genl-3-200_3.7.0-0.2+b1sonic1_amd64.deb libnl-genl-3-dev_3.7.0-0.2+b1sonic1_amd64.deb libnl-route-3-200_3.7.0-0.2+b1sonic1_amd64.deb libnl-route-3-dev_3.7.0-0.2+b1sonic1_amd64.deb libnl-nf-3-200_3.7.0-0.2+b1sonic1_amd64.deb libnl-nf-3-dev_3.7.0-0.2+b1sonic1_amd64.deb libnl-cli-3-200_3.7.0-0.2+b1sonic1_amd64.deb libnl-cli-3-dev_3.7.0-0.2+b1sonic1_amd64.deb libnl-3-200_3.7.0-0.2+b1sonic1_amd64.deb /sonic/target/debs/bookworm/
dget: retrieving https://deb.debian.org/debian/pool/main/libn/libnl3/libnl3_3.7.0-0.2.dsc
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0
100 3329 100 3329 0 0 2688 0 0:00:01 0:00:01 --:--:-- 2686
dget: using existing libnl3_3.7.0.orig.tar.gz
dget: using existing libnl3_3.7.0.orig.tar.gz.asc
dget: using existing libnl3_3.7.0-0.2.debian.tar.xz
libnl3_3.7.0-0.2.dsc:
Good signature found
validating libnl3_3.7.0.orig.tar.gz
validating libnl3_3.7.0.orig.tar.gz.asc
validating libnl3_3.7.0-0.2.debian.tar.xz
All files validated successfully.
dpkg-source: info: extracting libnl3 in libnl3-3.7.0
dpkg-source: info: unpacking libnl3_3.7.0.orig.tar.gz
dpkg-source: info: unpacking libnl3_3.7.0-0.2.debian.tar.xz
dpkg-source: info: using patch list from debian/patches/series
dpkg-source: info: applying debian/etc-libnl-3.diff
dpkg-source: info: applying debian/no-symvers.diff
dpkg-source: info: applying debian/__nl_cache_ops_lookup-unstatic.diff
dpkg-source: info: applying debian/_nl_socket_generate_local_port_no_release.diff
dpkg-source: info: applying debian/tca_set_kind.diff
/sonic/src/libnl3/libnl3-3.7.0 /sonic/src/libnl3
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m
Initialized empty Git repository in /sonic/src/libnl3/libnl3-3.7.0/.git/
dpkg-buildpackage: info: source package libnl3
dpkg-buildpackage: info: source version 3.7.0-0.2+b1sonic1
dpkg-buildpackage: info: source distribution unstable
dpkg-buildpackage: info: source changed by SONiC Build [email protected]
dpkg-source --before-build .
dpkg-buildpackage: info: host architecture amd64
fakeroot debian/rules clean
make[2]: Entering directory '/sonic/src/libnl3/libnl3-3.7.0'
make[2]: warning: jobserver unavailable: using -j1. Add '+' to parent make rule.
dh clean
dh_clean
make[2]: Leaving directory '/sonic/src/libnl3/libnl3-3.7.0'
debian/rules build
make[2]: Entering directory '/sonic/src/libnl3/libnl3-3.7.0'
make[2]: warning: jobserver unavailable: using -j1. Add '+' to parent make rule.
dh build
dh_update_autotools_config
dh_autoreconf
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, 'build-aux'.
libtoolize: copying file 'build-aux/ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
libtoolize: copying file 'm4/libtool.m4'
libtoolize: copying file 'm4/ltoptions.m4'
libtoolize: copying file 'm4/ltsugar.m4'
libtoolize: copying file 'm4/ltversion.m4'
libtoolize: copying file 'm4/lt~obsolete.m4'
configure.ac:67: warning: The macro `AM_PROG_LIBTOOL' is obsolete.
configure.ac:67: You should run autoupdate.
m4/libtool.m4:101: AM_PROG_LIBTOOL is expanded from...
configure.ac:67: the top level
configure.ac:45: installing 'build-aux/compile'
configure.ac:43: installing 'build-aux/missing'
Makefile.am: installing 'build-aux/depcomp'
dh_auto_configure
./configure --build=x86_64-linux-gnu --prefix=/usr --includedir=${prefix}/include --mandir=${prefix}/share/man --infodir=${prefix}/share/info --sysconfdir=/etc --localstatedir=/var --disable-option-checking --disable-silent-rules --libdir=${prefix}/lib/x86_64-linux-gnu --runstatedir=/run --disable-maintainer-mode --disable-dependency-tracking
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a race-free mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
checking whether make supports the include directive... yes (GNU style)
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether the compiler supports GNU C... yes
checking whether gcc accepts -g... yes
checking for gcc option to enable C11 features... none needed
checking whether gcc understands -c and -o together... yes
checking dependency style of gcc... none
checking for ar... ar
checking the archiver (ar) interface... ar
checking for gcc... (cached) gcc
checking whether the compiler supports GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to enable C11 features... (cached) none needed
checking whether gcc understands -c and -o together... (cached) yes
checking dependency style of gcc... (cached) none
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking how to print strings... printf
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for file... file
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for archiver @file support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for a working dd... /usr/bin/dd
checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1
checking for mt... mt
checking if mt is a manifest tool... no
checking for stdio.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for strings.h... yes
checking for sys/stat.h... yes
checking for sys/types.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for flex... flex
checking for bison... bison -y
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for check >= 0.9.0... yes
checking for dlfcn.h... (cached) yes
checking for pthread_mutex_lock in -lpthread... yes
checking for strerror_l... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating libnl-3.0.pc
config.status: creating libnl-route-3.0.pc
config.status: creating libnl-genl-3.0.pc
config.status: creating libnl-nf-3.0.pc
config.status: creating libnl-cli-3.0.pc
config.status: creating libnl-xfrm-3.0.pc
config.status: creating libnl-idiag-3.0.pc
config.status: creating python/setup.py
config.status: creating include/netlink/version.h
config.status: creating lib/defs.h
config.status: executing depfiles commands
config.status: executing libtool commands
NOTE
There have been some changes starting with 3.2 regarding where and how libnl
is being installed on the system in order to allow multiple libnl versions
to be installed in parallel:
- Headers will be installed in ${prefix}/include/libnl3, therefore
you will need to add "-I/usr/include/libnl3" to CFLAGS
- The library basename was renamed to libnl-3, i.e. the SO names become
libnl-3.so., libnl-route-3.so, etc.
- libtool versioning was assumed, to ease detection of compatible library
versions.
If you are using pkg-config for detecting and linking against the library
things will continue magically as if nothing every happened. If you are
linking manually you need to adapt your Makefiles or switch to using
pkg-config files.
dh_auto_build
make -j128
make[3]: Entering directory '/sonic/src/libnl3/libnl3-3.7.0'
..............................................................................................
..............................................................................................
make[4]: 'tests/libnl-test-util.la' is up to date.
/bin/bash ./libtool --tag=CC --mode=link gcc -g -O2 -ffile-prefix-map=/sonic/src/libnl3/libnl3-3.7.0=. -fstack-protector-strong -Wformat -Werror=format-security -Wl,-z,relro -o tests/check-all tests/check_all-check-all.o tests/check_all-cksuite-all-addr.o tests/check_all-cksuite-all-attr.o tests/check_all-cksuite-all-ematch-tree-clone.o tests/check_all-cksuite-all-netns.o lib/libnl-3.la lib/libnl-nf-3.la lib/libnl-genl-3.la lib/libnl-route-3.la tests/libnl-test-util.la -lcheck_pic -lrt -lm -lsubunit -lpthread
/bin/bash ./libtool --tag=CC --mode=link gcc -g -O2 -ffile-prefix-map=/sonic/src/libnl3/libnl3-3.7.0=. -fstack-protector-strong -Wformat -Werror=format-security -static -Wl,-z,relro -o tests/check-direct tests/check_direct-check-direct.o lib/libnl-3.la lib/libnl-nf-3.la lib/libnl-genl-3.la lib/libnl-route-3.la tests/libnl-test-util.la -lcheck_pic -lrt -lm -lsubunit -lpthread
libtool: link: gcc -g -O2 -ffile-prefix-map=/sonic/src/libnl3/libnl3-3.7.0=. -fstack-protector-strong -Wformat -Werror=format-security -Wl,-z -Wl,relro -o tests/check-direct tests/check_direct-check-direct.o lib/.libs/libnl-3.a lib/.libs/libnl-nf-3.a lib/.libs/libnl-genl-3.a lib/.libs/libnl-route-3.a tests/.libs/libnl-test-util.a /sonic/src/libnl3/libnl3-3.7.0/lib/.libs/libnl-nf-3.a /sonic/src/libnl3/libnl3-3.7.0/lib/.libs/libnl-genl-3.a /sonic/src/libnl3/libnl3-3.7.0/lib/.libs/libnl-route-3.a /sonic/src/libnl3/libnl3-3.7.0/lib/.libs/libnl-3.a -lcheck_pic -lrt -lm -lsubunit -lpthread
libtool: link: gcc -g -O2 -ffile-prefix-map=/sonic/src/libnl3/libnl3-3.7.0=. -fstack-protector-strong -Wformat -Werror=format-security -Wl,-z -Wl,relro -o tests/.libs/check-all tests/check_all-check-all.o tests/check_all-cksuite-all-addr.o tests/check_all-cksuite-all-attr.o tests/check_all-cksuite-all-ematch-tree-clone.o tests/check_all-cksuite-all-netns.o lib/.libs/libnl-3.so lib/.libs/libnl-nf-3.so lib/.libs/libnl-genl-3.so lib/.libs/libnl-route-3.so tests/.libs/libnl-test-util.a /sonic/src/libnl3/libnl3-3.7.0/lib/.libs/libnl-nf-3.so /sonic/src/libnl3/libnl3-3.7.0/lib/.libs/libnl-genl-3.so /sonic/src/libnl3/libnl3-3.7.0/lib/.libs/libnl-route-3.so /sonic/src/libnl3/libnl3-3.7.0/lib/.libs/libnl-3.so -lcheck_pic -lrt -lm -lsubunit -lpthread
make[4]: Leaving directory '/sonic/src/libnl3/libnl3-3.7.0'
make check-TESTS
make[4]: Entering directory '/sonic/src/libnl3/libnl3-3.7.0'
make[5]: Entering directory '/sonic/src/libnl3/libnl3-3.7.0'
PASS: tests/check-direct
FAIL: tests/check-all
libnl 3.7.0: ./test-suite.log
TOTAL: 2
PASS: 1
SKIP: 0
XFAIL: 0
FAIL: 1
XPASS: 0
ERROR: 0
.. contents:: :depth: 2
FAIL: tests/check-all
Running suite(s): main
Abstract addresses
Netlink attributes
Clone ematch tree
netns
37%: Checks: 29, Failures: 18, Errors: 0
tests/nl-test-util.c:151:S:Core:cache_and_clone:0: assert(_r == 0) failed (errno=1, Operation not permitted)
tests/nl-test-util.c:151:S:Core:test_create_iface:0: assert(_r == 0) failed (errno=1, Operation not permitted)
tests/nl-test-util.c:151:S:Core:test_create_iface:1: assert(_r == 0) failed (errno=1, Operation not permitted)
tests/nl-test-util.c:151:S:Core:test_create_iface:2: assert(_r == 0) failed (errno=1, Operation not permitted)
tests/nl-test-util.c:151:S:Core:test_create_iface:3: assert(_r == 0) failed (errno=1, Operation not permitted)
tests/nl-test-util.c:151:S:Core:test_create_iface:4: assert(_r == 0) failed (errno=1, Operation not permitted)
tests/nl-test-util.c:151:S:Core:test_create_iface:5: assert(_r == 0) failed (errno=1, Operation not permitted)
tests/nl-test-util.c:151:S:Core:test_create_iface:6: assert(_r == 0) failed (errno=1, Operation not permitted)
tests/nl-test-util.c:151:S:Core:test_create_iface:7: assert(_r == 0) failed (errno=1, Operation not permitted)
tests/nl-test-util.c:151:S:Core:test_create_iface:8: assert(_r == 0) failed (errno=1, Operation not permitted)
tests/nl-test-util.c:151:S:Core:test_create_iface:9: assert(_r == 0) failed (errno=1, Operation not permitted)
tests/nl-test-util.c:151:S:Core:test_create_iface:10: assert(_r == 0) failed (errno=1, Operation not permitted)
tests/nl-test-util.c:151:S:Core:test_create_iface:11: assert(_r == 0) failed (errno=1, Operation not permitted)
tests/nl-test-util.c:151:S:Core:test_create_iface:12: assert(_r == 0) failed (errno=1, Operation not permitted)
tests/nl-test-util.c:151:S:Core:test_create_iface:13: assert(_r == 0) failed (errno=1, Operation not permitted)
tests/nl-test-util.c:151:S:Core:test_create_iface:14: assert(_r == 0) failed (errno=1, Operation not permitted)
tests/nl-test-util.c:151:S:Core:test_create_iface:15: assert(_r == 0) failed (errno=1, Operation not permitted)
tests/nl-test-util.c:151:S:Core:test_create_iface:16: assert(_r == 0) failed (errno=1, Operation not permitted)
FAIL tests/check-all (exit status: 1)
============================================================================
Testsuite summary for libnl 3.7.0
TOTAL: 2
PASS: 1
SKIP: 0
XFAIL: 0
FAIL: 1
XPASS: 0
ERROR: 0
============================================================================
See ./test-suite.log
make[5]: *** [Makefile:6814: test-suite.log] Error 1
make[5]: Leaving directory '/sonic/src/libnl3/libnl3-3.7.0'
make[4]: *** [Makefile:6922: check-TESTS] Error 2
make[4]: Leaving directory '/sonic/src/libnl3/libnl3-3.7.0'
make[3]: *** [Makefile:7141: check-am] Error 2
make[3]: Leaving directory '/sonic/src/libnl3/libnl3-3.7.0'
dh_auto_test: error: make -j128 check "TESTSUITEFLAGS=-j128 --verbose" VERBOSE=1 returned exit code 2
make[2]: *** [debian/rules:4: build] Error 25
make[2]: Leaving directory '/sonic/src/libnl3/libnl3-3.7.0'
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2
make[1]: *** [Makefile:17: /sonic/target/debs/bookworm/libnl-3-200_3.7.0-0.2+b1sonic1_amd64.deb] Error 2
make[1]: Leaving directory '/sonic/src/libnl3'
Activity