Hi Team,
I am facing build error while doing sonic build,
Logs are given below
rohit123@labuser:/home/rohit/mlnx_build/sonic-buildimage$ sudo make
SONiC Build System
Build Configuration
"CONFIGURED_PLATFORM" : "mellanox"
"SONIC_CONFIG_PRINT_DEPENDENCIES" : ""
"SONIC_CONFIG_BUILD_JOBS" : "1"
"SONIC_CONFIG_MAKE_JOBS" : "4"
"DEFAULT_USERNAME" : "admin"
"DEFAULT_PASSWORD" : "YourPaSsWoRd"
"ENABLE_DHCP_GRAPH_SERVICE" : ""
"SHUTDOWN_BGP_ON_START" : ""
"SONIC_CONFIG_DEBUG" : ""
"ROUTING_STACK" : "quagga"
"ENABLE_SYNCD_RPC" : ""
"ENABLE_ORGANIZATION_EXTENSIONS" : "y"
[ FAIL LOG START ] [ target/debs/sonic-device-data_1.0-1_all.deb ]
make[1]: Entering directory '/sonic/src/sonic-device-data'
pushd ./src
# Remove any stale data
sudo rm -rf ./device
# Create a new dir and copy all ONIE-platform-string-named dirs into it
mkdir ./device
sudo chmod 777 -R ./device
cp -r ../../../device/*/* ./device/
sudo chmod 777 -R ./device
# Build the package
sudo dpkg-buildpackage -rfakeroot -b -us -uc
popd
sudo mv sonic-device-data_1.0-1_all.deb /sonic/target/debs/
/sonic/src/sonic-device-data/src /sonic/src/sonic-device-data
dpkg-buildpackage: warning: using a gain-root-command while being root
dpkg-buildpackage: source package sonic-device-data
dpkg-buildpackage: source version 1.0-1
dpkg-buildpackage: source distribution UNRELEASED
dpkg-buildpackage: source changed by Joe LeVeque <jolevequ@microsoft.com>
dpkg-source --before-build src
dpkg-buildpackage: host architecture amd64
fakeroot debian/rules clean
dh clean
dh_testdir
dh_auto_clean
dh_clean
debian/rules build
dh build
dh_testdir
dh_auto_configure
dh_auto_build
dh_auto_test
fakeroot debian/rules binary
dh binary
dh_testroot
dh_prep
dh_auto_install
dh_install
/sonic/src/sonic-device-data/src/debian/install: 1: /sonic/src/sonic-device-data/src/debian/install: device/: Permission denied
dh_install: problem reading debian/install:
debian/rules:6: recipe for target 'binary' failed
make: *** [binary] Error 126
dpkg-buildpackage: error: fakeroot debian/rules binary gave error exit status 2
Makefile:8: recipe for target '/sonic/target/debs/sonic-device-data_1.0-1_all.deb' failed
make[1]: *** [/sonic/target/debs/sonic-device-data_1.0-1_all.deb] Error 2
make[1]: Leaving directory '/sonic/src/sonic-device-data'
[ FAIL LOG END ] [ target/debs/sonic-device-data_1.0-1_all.deb ]
slave.mk:180: recipe for target 'target/debs/sonic-device-data_1.0-1_all.deb' failed
make: *** [target/debs/sonic-device-data_1.0-1_all.deb] Error 1
Makefile:74: recipe for target 'all' failed
make: *** [all] Error 2
rohit123@labuser:/home/rohit/mlnx_build/sonic-buildimage$
Hi Team,
I am facing build error while doing sonic build,
Logs are given below