-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue in SONiC Custom Build on 202305 #17548
Comments
Hi @ridahanif96 , |
Hi @hasan-alkama , |
@ridahanif96 |
Following are build Error Details: Build Configuration "SONIC_DPKG_CACHE_METHOD" : "none" [ FAIL LOG START ] [ target/debs/buster/libnl-3-200_3.5.0-1_amd64.deb ] Obtaining the libnl3rm -rf ./libnl3-3.5.0 You are in 'detached HEAD' state. You can look around, make experimental If you want to create a new branch to retain commits you create, you may git checkout -b HEAD is now at 7b167ef8 libnl-3.5.0 release from some unknown reason CDBS does not remove the builddirrm -rf debian/build Remove any stale filesrm -rf ./hiredis-0.14.1 Get hiredis release, debian filesdget -u http://http.debian.net/debian/pool/main/h/hiredis/hiredis_0.14.1-1.dsc Build source and Debian packagespushd ./hiredis-0.14.1 Move the newly-built .deb packages to the destination directorymv libhiredis0.14_0.14.1-1_amd64.deb libhiredis0.14-dbgsym_0.14.1-1_amd64.deb libhiredis-dev_0.14.1-1_amd64.deb /sonic/target/debs/buster/ download debian libyangwget -NO "libyang2_2.0.112-6.dsc" https://sonicstorage.blob.core.windows.net/debian/pool/main/liby/libyang/libyang2_2.0.112-6.dsc Enable large file support for 32-bit archecho 'add_definitions(-D_FILE_OFFSET_BITS=64)' >> CMakeLists.txt Move the newly-built .deb packages to the destination directorymv libyang2_2.0.112-6_amd64.deb libyang2-dev_2.0.112-6_amd64.deb libyang2-dbgsym_2.0.112-6_amd64.deb libyang2-tools_2.0.112-6_amd64.deb libyang2-tools-dbgsym_2.0.112-6_amd64.deb /sonic/target/debs/buster/ --2023-12-20 18:20:18-- https://sonicstorage.blob.core.windows.net/debian/pool/main/liby/libyang/libyang2_2.0.112-6.dsc
2023-12-20 18:20:19 (44.0 MB/s) - 'libyang2_2.0.112-6.dsc' saved [2267/2267] mkdir: cannot create directory '/vcache/sonic-slave-buster/web': Permission denied --2023-12-20 18:20:22-- https://sonicstorage.blob.core.windows.net/debian/pool/main/liby/libyang/libyang2_2.0.112.orig.tar.gz
100K .......... .......... .......... .......... .......... 14% 222K 4s 2023-12-20 18:20:24 (576 KB/s) - 'libyang2_2.0.112.orig.tar.gz' saved [1075307/1075307] mkdir: cannot create directory '/vcache/sonic-slave-buster/web': Permission denied --2023-12-20 18:20:26-- https://sonicstorage.blob.core.windows.net/debian/pool/main/liby/libyang/libyang2_2.0.112-6.debian.tar.xz
2023-12-20 18:20:26 (104 MB/s) - 'libyang2_2.0.112-6.debian.tar.xz' saved [11468/11468] dpkg-source: info: extracting libyang2 in libyang2-2.0.112 CMAKE_REQUIRED_LIBRARIES is set to:
For compatibility with CMake 3.11 and below this check is ignoring it. -- Looking for sys/types.h - found
-- Build files have been written to: /sonic/src/libyang2/libyang2-2.0.112/obj-x86_64-linux-gnu real 0m47.453s |
What I did: |
@losha228 , Hi, I have tried same set of commands for 202211 , it also failed for 202211 Can you please guide! Build Configuration "SONIC_DPKG_CACHE_METHOD" : "none" make: Nothing to be done for 'buster'. Build Configuration "SONIC_DPKG_CACHE_METHOD" : "none" basename: missing operand
Current default time zone: 'Etc/UTC'
dpkg: error processing package initramfs-tools-core (--install):
Configuration file '/etc/initramfs-tools/update-initramfs.conf', does not exist on system. Configuration file '/etc/kernel/postinst.d/initramfs-tools', does not exist on system. Configuration file '/etc/kernel/postrm.d/initramfs-tools', does not exist on system.
|
Description
I am trying to custom Build SONiC Image with enabled Kubernetes features in VS Platform for 202305 image. I am facing make 2 errors.
Describe the results you received:
Following are details for my logs:
make SONIC_BUILD_JOBS=4 all
+++ --- Making all --- +++
./scripts/run_with_retry make EXTRA_DOCKER_TARGETS=all BLDENV=buster -f Makefile.work buster
make[1]: Entering directory '/home/rida-laptop/Music/BuildSONIC/sonic-buildimage'
"SECURE_UPGRADE_PROD_SIGNING_TOOL": ""
~/Music/BuildSONIC/sonic-buildimage/src/sonic-build-hooks ~/Music/BuildSONIC/sonic-buildimage
make[2]: Entering directory '/home/rida-laptop/Music/BuildSONIC/sonic-buildimage/src/sonic-build-hooks'
dpkg-deb: building package 'sonic-build-hooks' in 'buildinfo/sonic-build-hooks_1.0_all.deb'.
make[2]: Leaving directory '/home/rida-laptop/Music/BuildSONIC/sonic-buildimage/src/sonic-build-hooks'
[ 01 ] [ target/debs/buster/libnl-3-200_3.5.0-1_amd64.deb ]
[ 02 ] [ target/debs/buster/libyang2_2.0.112-6_amd64.deb ]
[ 03 ] [ target/debs/buster/libhiredis0.14_0.14.1-1_amd64.deb ]
[ 04 ] [ target/python-wheels/buster/redis_dump_load-1.1-py2-none-any.whl ]
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality.
Defaulting to user installation because normal site-packages is not writeable
Processing /sonic/src/redis-dump-load
Requirement already satisfied: redis in /usr/local/lib/python2.7/dist-packages (from redis-dump-load==1.1) (3.5.3)
Building wheels for collected packages: redis-dump-load
Building wheel for redis-dump-load (setup.py) ... done
Installing collected packages: redis-dump-load
WARNING: The scripts redis-dump and redis-load are installed in '/var/rida-laptop/.local/bin' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Successfully installed redis-dump-load-1.1
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality.
Found existing installation: redis-dump-load 1.1
Uninstalling redis-dump-load-1.1:
Successfully uninstalled redis-dump-load-1.1
Removing patch ../redis-dump-load.patch/0002-Fix-setup.py-for-test-and-bdist_wheel.patch
Restoring setup.py
[ 01 ] [ target/debs/buster/libnl-3-200_3.5.0-1_amd64.deb ]
[ 01 ] [ target/debs/buster/libnl-3-200_3.5.0-1_amd64.deb ]
[ 01 ] [ target/debs/buster/libnl-3-200_3.5.0-1_amd64.deb ]
[ 02 ] [ target/debs/buster/libyang2_2.0.112-6_amd64.deb ]
[ 03 ] [ target/debs/buster/socat_1.7.4.1-3_amd64.deb ]
[ 04 ] [ target/python-wheels/buster/redis_dump_load-1.1-py3-none-any.whl ]
Defaulting to user installation because normal site-packages is not writeable
Processing /sonic/src/redis-dump-load
Preparing metadata (setup.py) ... done
Requirement already satisfied: redis in /usr/local/lib/python3.7/dist-packages (from redis-dump-load==1.1) (5.0.1)
Requirement already satisfied: async-timeout>=4.0.2 in /usr/local/lib/python3.7/dist-packages (from redis->redis-dump-load==1.1) (4.0.3)
Requirement already satisfied: importlib-metadata>=1.0 in /usr/local/lib/python3.7/dist-packages (from redis->redis-dump-load==1.1) (6.7.0)
Requirement already satisfied: typing-extensions in /usr/local/lib/python3.7/dist-packages (from redis->redis-dump-load==1.1) (4.7.1)
Requirement already satisfied: zipp>=0.5 in /usr/local/lib/python3.7/dist-packages (from importlib-metadata>=1.0->redis->redis-dump-load==1.1) (3.15.0)
Building wheels for collected packages: redis-dump-load
Building wheel for redis-dump-load (setup.py) ... done
Created wheel for redis-dump-load: filename=redis_dump_load-1.1-py3-none-any.whl size=12583 sha256=ee6e21f3c1914b96c7d4769497fbcf74406afd9885603a49f3839083fa8d7194
Stored in directory: /var/rida-laptop/.cache/pip/wheels/d5/ef/61/d6974a619b1d31c63bd5140f94aadb7b1cdeeeb14325100bc5
Successfully built redis-dump-load
Installing collected packages: redis-dump-load
WARNING: The scripts redis-dump and redis-load are installed in '/var/rida-lap[ 01 ] [ target/debs/buster/libnl-3-200_3.5.0-1_amd64.deb ]
[ 02 ] [ target/debs/buster/socat_1.7.4.1-3_amd64.deb ]
[ 03 ] [ target/python-wheels/buster/redis_dump_load-1.1-py3-none-any.whl ]
[ 04 ] [ target/python-wheels/buster/swsssdk-2.0.1-py2-none-any.whl ]
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality.
Defaulting to user installation because normal site-packages is not writeable
Processing /sonic/src/sonic-py-swsssdk
Requirement already satisfied: redis-dump-load in /usr/local/lib/python2.7/dist-packages (from swsssdk==2.0.1) (1.1)
Requirement already satisfied: redis>=3.5.3 in /usr/local/lib/python2.7/dist-packages (from swsssdk==2.0.1) (3.5.3)
Building wheels for collected packages: swsssdk
Building wheel for swsssdk (setup.py) ... done
Created wheel for swsssdk: filename=swsssdk-2.0.1-py2-none-any.whl size=19169 sha256=9a7619d2382bf49b1e1062328b1256dd413bd78d95a13dab103ab22c04b830d1
Stored in directory: /var/rida-laptop/.cache/pip/wheels/54/ba/62/ce8c32f66f6c2147eee7453657452279114b97185906689032
Successfully built swsssdk
Installing collected packages: swsssdk
Successfully installed swsssdk-2.0.1
Found existing installation: redis-dump-load 1.1
Uninstalling redis-dump-load-1.1:
Successfully uninstalled redis-dump-load-1.1
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality.
Found existing installation: swsssdk 2.0.1
Uninstalling swsssdk-2.0.1:
Successfully uninstalled swsssdk-2.0.1
Removing patch ../redis-dump-load.patch/0002-Fix-setup.py-for-test-and-bdist_wheel.patch
Restoring setup.py
[ 01 ] [ target/debs/buster/libnl-3-200_3.5.0-1_amd64.deb ]
[ 01 ] [ target/debs/buster/libnl-3-200_3.5.0-1_amd64.deb ]
[ 01 ] [ target/debs/buster/libnl-3-200_3.5.0-1_amd64.deb ]
[ 01 ] [ target/debs/buster/libnl-3-200_3.5.0-1_amd64.deb ]
[ 01 ] [ target/debs/buster/libnl-3-200_3.5.0-1_amd64.deb ]
[ 01 ] [ target/debs/buster/libnl-3-200_3.5.0-1_amd64.deb ]
[ 02 ] [ target/debs/buster/socat_1.7.4.1-3_amd64.deb ]
[ 03 ] [ target/python-wheels/buster/swsssdk-2.0.1-py3-none-any.whl ]
Defaulting to user installation because normal site-packages is not writeable
Processing /sonic/src/sonic-py-swsssdk
Preparing metadata (setup.py) ... done
Requirement already satisfied: redis-dump-load in /usr/local/lib/python3.7/dist-packages (from swsssdk==2.0.1) (1.1)
Requirement already satisfied: redis>=4.5.4 in /usr/local/lib/python3.7/dist-packages (from swsssdk==2.0.1) (5.0.1)
Requirement already satisfied: async-timeout>=4.0.2 in /usr/local/lib/python3.7/dist-packages (from redis>=4.5.4->swsssdk==2.0.1) (4.0.3)
Requirement already satisfied: importlib-metadata>=1.0 in /usr/local/lib/python3.7/dist-packages (from redis>=4.5.4->swsssdk==2.0.1) (6.7.0)
Requirement already satisfied: typing-extensions in /usr/local/lib/python3.7/dist-packages (from redis>=4.5.4->swsssdk==2.0.1) (4.7.1)
Requirement already satisfied: zipp>=0.5 in /usr/local/lib/python3.7/dist-packages (from importlib-metadata>=1.0->redis>=4.5.4->swsssdk==2.0.1) (3.15.0)
Building wheels for collected packages: swsssdk
Building wheel for swsssdk (setup.py) ... done
Created wheel for swsssdk: filename=swsssdk-2.0.1-py3-none-any.whl size=19171 sha256=f76836eb10358e76c3a46ee067af53db769f78991be9cc632b40bc578ad930a5
Stored in directory: /var/rida-laptop/.cache/pip/wheels/2c/e6/db/688a26378c477c406e7f905f3747d21c607f53061c679e9f05
Successfully built swsssdk
Installing collected packages: swsssdk
Successfully installed swsssdk-2.0.1
[ FAIL LOG START ] [ target/debs/buster/libyang_1.0.73_amd64.deb ]
Build start time: Mon Dec 18 12:52:02 UTC 2023
[ REASON ] : target/debs/buster/libyang_1.0.73_amd64.deb does not exist
[ FLAGS FILE ] : []
[ FLAGS DEPENDS ] : []
[ FLAGS DIFF ] : []
make[1]: warning: -j8 forced in submake: resetting jobserver mode.
make[1]: Entering directory '/sonic/src/libyang'
rm -fr ./libyang-1.0.73
git clone https://github.com/CESNET/libyang.git libyang-1.0.73
pushd libyang-1.0.73
git checkout tags/v1.0-r4 -b libyang
stg init
stg import -s ../patch/series
dpkg-buildpackage -rfakeroot -b -us -uc -j8 --admindir /sonic/dpkg/tmp.47nA4eQRYR
popd
mv libyang-dev_1.0.73_amd64.deb libyang-dbgsym_1.0.73_amd64.deb python3-yang_1.0.73_amd64.deb libyang-cpp_1.0.73_amd64.deb libyang_1.0.73_amd64.deb /sonic/target/debs/buster/
Cloning into 'libyang-1.0.73'...
error: RPC failed; curl 92 HTTP/2 stream 0 was not closed cleanly: CANCEL (err 8)
fatal: the remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
make[1]: *** [Makefile:10: /sonic/target/debs/buster/libyang_1.0.73_amd64.deb] Error 128
make[1]: Leaving directory '/sonic/src/libyang'
[ FAIL LOG END ] [ target/debs/buster/libyang_1.0.73_amd64.deb ]
make: *** [slave.mk:684: target/debs/buster/libyang_1.0.73_amd64.deb] Error 1
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality.
make[1]: *** [Makefile.work:602: buster] Error 2
make[1]: Leaving directory '/home/rida-laptop/Music/BuildSONIC/sonic-buildimage'
make: *** [Makefile:40: all] Error 2
Describe the results you expected:
I have tried this build in different platform environments and experience similar behavior with make2 errors.
The text was updated successfully, but these errors were encountered: