Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

recipe for target 'binary-syncd' failed #840

Open
lilili-2333 opened this issue Jun 15, 2021 · 3 comments
Open

recipe for target 'binary-syncd' failed #840

lilili-2333 opened this issue Jun 15, 2021 · 3 comments

Comments

@lilili-2333
Copy link

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
Copy link
Collaborator

kcudnik commented Jun 15, 2021

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
Copy link

HarshaF1 commented Jul 6, 2022

@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
Copy link
Collaborator

kcudnik commented Jul 19, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants