SONiC build failed because of bulleye 11.4

814 views
Skip to first unread message

Daniel Luong

unread,
Aug 22, 2022, 11:57:15 AM8/22/22
to sonicproject
Please help to fix the build issue!

The build for SONiC master, 201111 and possibly other branches have been broken because of the release of bulleye 11.4 in August. The official azure build server still shows successful but if you freshly check out the code, the build would fail, at least in my several attempts. The reason is that in bulleye slave build docker, the libsnmp40 is 5.9+dfsg-4+b1 while the code build depends on 5.9+dfsg-3+b1. The official build (azure pipelines) is still working because they keep the existing slave build docker. 

I checked out 201111 branch and run the following commands:
make init
make configure PLATFORM=broadcom
make SONIC_BUILD_JOBS=4 all

Build Error:

dpkg: error processing package libsnmp-dev (--install):
 dependency problems - leaving unconfigured
Processing triggers for man-db (2.9.4-2) ...
Errors were encountered while processing:
 libsnmp-dev
(Reading database ... 203354 files and directories currently installed.)
Preparing to unpack .../libsnmp-dev_5.9+dfsg-3+b1_amd64.deb ...
Unpacking libsnmp-dev (5.9+dfsg-3+b1) over (5.9+dfsg-3+b1) ...
dpkg: dependency problems prevent configuration of libsnmp-dev:
 libsnmp-dev depends on libnetsnmptrapd40 (= 5.9+dfsg-3+b1); however:
  Version of libnetsnmptrapd40:amd64 on system is 5.9+dfsg-4+deb11u1.

Hafiz Mati ur Rahman

unread,
Aug 22, 2022, 12:35:18 PM8/22/22
to Daniel Luong, sonicproject
Hi Daniel 
                Which Ubuntu version you using. 

.

--
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/27c5567d-8b2b-4b5d-a355-732aca0861bfn%40googlegroups.com.
Message has been deleted
Message has been deleted
Message has been deleted
Message has been deleted
Message has been deleted
Message has been deleted
Message has been deleted
Message has been deleted

Daniel Luong

unread,
Aug 22, 2022, 2:57:19 PM8/22/22
to sonicproject

Ubuntu 20.04.3 LTS

Masaru OKI

unread,
Aug 22, 2022, 3:40:03 PM8/22/22
to Daniel Luong, sonicproject
In my environment,
docker image prune --all
and make again, then build successfully.

2022年8月23日(火) 0:57 Daniel Luong <daniel...@ipinfusion.com>:

Daniel Luong

unread,
Aug 22, 2022, 3:43:29 PM8/22/22
to sonicproject
Thanks Masaru for your suggestion!

What Ubuntu version are u using?

I also did "docker system prune -f --all" and start everything from code checkout, make init, make config, etc,
But it does not work for me with Ubuntu 20.04.3

Masaru OKI

unread,
Aug 22, 2022, 3:44:48 PM8/22/22
to Daniel Luong, sonicproject
Ubuntu 20.04LTS.

2022年8月23日(火) 4:43 Daniel Luong <daniel...@ipinfusion.com>:

Daniel Luong

unread,
Aug 22, 2022, 4:03:40 PM8/22/22
to sonicproject
Thanks, 
I have the same Ubuntu build version. So i am not sure why that  libnetsnmptrapd40 issue happens with me, but not with you.

Daniel Luong

unread,
Aug 22, 2022, 4:13:09 PM8/22/22
to sonicproject
Hi Masaru,
I am building broadcom AMD64  target. What's about you?

Masaru OKI

unread,
Aug 22, 2022, 7:12:05 PM8/22/22
to Daniel Luong, sonicproject
Hi,
I have built a Broadcom aMD64 target on the master branch. 

2022年8月23日(火) 5:13 Daniel Luong <daniel...@ipinfusion.com>:

Daniel Luong

unread,
Aug 22, 2022, 9:59:03 PM8/22/22
to sonicproject
Hi All,

I downgraded my docker engine and it works fine now. Thank you for your help!
Ubuntu version:  20.04.3
Docker version: 19.03.9 (downgraded from 20.10.17)

Sudharshan S

unread,
Aug 31, 2022, 11:12:27 AM8/31/22
to sonicproject
hi Daniel,
           I was facing the same issue and I came across this thread. As per your above comment, I downgraded the docker version to 19.03.9
Server: Docker Engine - Community
 Engine:
  Version:          19.03.9
  API version:      1.40 (minimum version 1.12)
  Go version:       go1.13.10
  Git commit:       9d988398e7
  Built:            Fri May 15 00:23:53 2020
  OS/Arch:          linux/amd64
  Experimental:     false

But I still face the same issue. Could you please share the list of steps after the downgrade?

Thanks,
Sudharshan

daniel...@ipinfusion.com

unread,
Aug 31, 2022, 12:28:54 PM8/31/22
to Sudharshan S, sonicproject

Hi Sudharshan,

 

I removed all docker packages and reinstall again.

There is an option to select docker-ce engine version

 

sudo apt-get install docker-ce=<VERSION_STRING> docker-ce-cli=<VERSION_STRING> containerd.io docker-compose-plugin

 

From this installation guide:

https://docs.docker.com/engine/install/ubuntu/

 

 

If you have already the right docker-ce version, I recommend to remove all docker container and image:

$docker system prune -a

 

And check out the fresh code and build it from scratch.

 

Daniel


.

kannan selvaraj

unread,
Sep 1, 2022, 8:38:33 AM9/1/22
to daniel...@ipinfusion.com, Sudharshan S, sonicproject
Hi,

Above patch is one of the related issue fixed in latest 202111 builds. Please see if this helps.

Thanks,
Kannan.S

Sudharshan S

unread,
Sep 1, 2022, 8:43:40 AM9/1/22
to kannan selvaraj, daniel...@ipinfusion.com, sonicproject
Thank you Daniel and Kannan. This would really help me get unblocked.

Thanks,
Sudharshan
Reply all
Reply to author
Forward
0 new messages