sonic-net / sonic-sairedis

SAI object interface to Redis database, as used in the SONiC project
Other
56 stars 266 forks source link

recipe for target 'binary-syncd' failed #840

Open lilili-2333 opened 3 years ago

lilili-2333 commented 3 years ago

sonic-buildimage branch 201911 sonic-sairedis branch e438b0d the error occurs when running override_dh_auto_configure, log shows syncd_1.0.0_amd64.deb.log I compared it to another branch 202012 and found out that:

configure: exit 1 dh_auto_configure: ./configure --build=x86_64-linux-gnu --prefix=/usr --includedir=\${prefix}/include --mandir=\${prefix}/share/man --infodir=\${prefix}/share/info --sysconfdir=/etc --localstatedir=/var --disable-silent-rules --libdir=\${prefix}/lib/x86_64-linux-gnu --libexecdir=\${prefix}/lib/x86_64-linux-gnu --disable-maintainer-mode --disable-dependency-tracking returned exit code 1 debian/rules:59: recipe for target 'override_dh_auto_configure' failed make[2]: *** [override_dh_auto_configure] Error 2 make[2]: Leaving directory '/sonic/src/sonic-sairedis'

the above errors are fine and as same as 202012 version. However the e438b0d commit then quit the compilation :

debian/rules:34: recipe for target 'binary-syncd' failed make[1]: [binary-syncd] Error 2 make[1]: Leaving directory '/sonic/src/sonic-sairedis' dpkg-buildpackage: error: fakeroot debian/rules binary-syncd gave error exit status 2 [ FAIL LOG END ] [ target/debs/stretch/syncd_1.0.0_amd64.deb ] slave.mk:360: recipe for target 'target/debs/stretch/syncd_1.0.0_amd64.deb' failed make: [target/debs/stretch/syncd_1.0.0_amd64.deb] Error 1 Makefile.work:202: recipe for target 'all' failed make[1]: [all] Error 2 make[1]: leaving directory“/home/sonics/sonic_201911/sonic-buildimage” Makefile:6: recipe for target 'all' failed make: [all] Error 2

kcudnik commented 3 years ago
checking for main in -lsai... no
configure: error: libsai is required for syncd

how do you compile this ? seems like you missed to install libsai

HarshaF1 commented 2 years ago

@kcudnik , Could you please provide an example on how to install libsai for broadcom ? I am trying to build standalone sairedis debian packages for broadcom XGS.

kcudnik commented 2 years ago

you could you use dpkg to install packages, "dpkg -i *deb" this should do the trick, in the directory you have brcm packages