Building master with target/sonic-broadcom.bin fails

540 views
Skip to first unread message

Branislav Kirilov

unread,
Aug 15, 2022, 7:07:25 AM8/15/22
to sonicproject
I'm trying to build current master, but failing and I wonder what I'm missing.

Build fails with 
Make: *** No rule to make target 'target/docker-fpm-frr.gz', needed by 'target/sonic-broadcom.bin'.  Stop.

After installing build OS ubuntu 20 I do:

sudo apt-get install -y ca-certificates curl gnupg git lsb-release python3-pip
sudo pip3 install j2cli
sudo mkdir -p /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt-get update && sudo apt-get install docker-ce docker-ce-cli containerd.io docker-compose-plugin

sudo usermod -aG docker ${USER}

git clone https://github.com/Azure/sonic-buildimage.git

make init
make configure PLATFORM=broadcom
NOJESSIE=1 NOSTRETCH=1 NOBUSTER=1 NOBULLSEYE=0 make SONIC_BUILD_JOBS=1 target/sonic-broadcom.bin

Please help, on how to debug this further or let me know if I'm doing something wrong in these simple steps I've posted. 
I've also tried building for buster or even stretch, but it fails with other errors.

Masaru OKI

unread,
Aug 16, 2022, 6:29:00 PM8/16/22
to Branislav Kirilov, sonicproject
With NOSTRETCH=1 NOBUSTER=0 NOBULLSEYE=0, build successfully.

2022年8月15日(月) 20:07 Branislav Kirilov <boge...@gmail.com>:
--
You received this message because you are subscribed to the Google Groups "sonicproject" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonicproject...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonicproject/3fba1336-6ada-4a0d-8ac9-a7010d58f4f5n%40googlegroups.com.

Ashwin H

unread,
Aug 17, 2022, 2:58:19 AM8/17/22
to sonicproject
+1.. I also faced same build error. and then enabled buster along with bullseye(just with bullseye it fails).. 

Do we reuse packages across debian versions ? 

Branislav Kirilov

unread,
Aug 17, 2022, 4:28:25 AM8/17/22
to sonicproject
With stretch I get this error

fatal: There is nothing to exclude from by :(exclude) patterns.
Perhaps you forgot to add either ':/' or '.' ?
"SONIC_DPKG_CACHE_METHOD"         : "none"

make: Nothing to be done for 'stretch'.
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.
DEPRECATION: Python 3.5 reached the end of its life on September 13th, 2020. Please upgrade your Python as Python 3.5 is no longer maintained. pip 21.0 will drop support for Python 3.5 in January 2021. pip 21.0 will remove support for this functionality.
make[1]: Leaving directory '/home/user/compile/sonic-buildimage'
BLDENV=bullseye make -f Makefile.work docker-cleanup
make[1]: Entering directory '/home/user/compile/sonic-buildimage'
make[1]: Leaving directory '/home/user/compile/sonic-buildimage'

Reply all
Reply to author
Forward
0 new messages