sonic-buildimage icon indicating copy to clipboard operation
sonic-buildimage copied to clipboard

SONIC Buildimage Fails to Build (Barefoot)

Open Aevyz opened this issue 1 year ago • 4 comments

Description

Hey, I attempted to build my own Sonic Image, however there appears to be some issues and my build appears to fail. I attempted builds on Ubuntu Focal on the Master Branch.

It fails at the point

dh_auto_configure: error: ./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-tr
acking --disable-static --disable-python2 returned exit code 1
make[2]: *** [debian/rules:55: override_dh_auto_configure] Error 25
make[2]: Leaving directory '/sonic/src/sonic-sairedis'
make[1]: *** [debian/rules:46: build] Error 2
make[1]: Leaving directory '/sonic/src/sonic-sairedis'
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2
[  FAIL LOG END  ] [ target/debs/bullseye/syncd_1.0.0_amd64.deb ]
make: *** [slave.mk:754: target/debs/bullseye/syncd_1.0.0_amd64.deb] Error 1
make: *** Waiting for unfinished jobs....
[ 01 ] [ target/debs/bullseye/linux-headers-5.10.0-23-2-common_5.10.179-3_all.deb ]
make[1]: *** [Makefile.work:604: all] Error 2
make[1]: Leaving directory '/home/dockhand/demo/sonic-buildimage'
make: *** [Makefile:41: all] Error 2

Steps to reproduce the issue:

  1. git clone
  2. make init
  3. make configure PLATFORM=barefoot
  4. make SONIC_BUILD_JOBS=64 all (fails at this step)

modprobe overlay was done of course

I tried this on multiple branches (master, 202305 and a couple others), all failed at the exact same spot with syncd being the culprit.

What seems odd, is that the build linked to from the project's barefoot badge appears to fail at a similar spot, also noting a failure in syncd

The system has more than enough RAM (100GB+) and Harddrive Space (900GB), so that should not be a problem.

Describe the results you received:

Failed Build

Describe the results you expected:

Successful Build

Log of Build (in comment due to length restriction)

I only attached one build log since I did not see the point of posting 3 similar build logs. If you regardless wish to see the logs, please tell me and I'll attach them as well

Thanks for taking the time to view my issue :)

Aevyz avatar Oct 24 '23 16:10 Aevyz