You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SONIC saithrift compilation is failing for bookworm. it seems for bookworm "python3 setup.py install ---prefix <>" install the package to different location compared to bullseye when prefix is other than /usr/local, it appends addition local and puts packages in dist-packages compare to site-packages
It installs the package at below location:
/sonic/src/sonic-sairedis/SAI/debian/usr/local/local/lib/python3.11/dist-packages/
Due to this path difference sonic compilation fails with below error as it does not find files in
debian/usr/local/lib/python3*/site-packages/* at the time of dh_install.
SONIC saithrift compilation is failing for bookworm. it seems for bookworm "python3 setup.py install ---prefix <>" install the package to different location compared to bullseye when prefix is other than /usr/local, it appends addition local and puts packages in dist-packages compare to site-packages
bullseye:
/sonic/src/sonic-sairedis/SAI/test/saithriftv2$ python3 setup.py install --prefix /sonic/src/sonic-sairedis/SAI/debian/usr/local
bookworm:
/sonic/src/sonic-sairedis/SAI/test/saithriftv2$ python3 setup.py install --prefix /sonic/src/sonic-sairedis/SAI/debian/usr/local
Due to this path difference sonic compilation fails with below error as it does not find files in
debian/usr/local/lib/python3*/site-packages/* at the time of dh_install.
Build error:
make[4]: Leaving directory '/sonic/src/sonic- sairedis/SAI/test/saithriftv2'
make[3]: Leaving directory '/sonic/src/sonic-sairedis/SAI'
make[2]: Leaving directory '/sonic/src/sonic-sairedis/SAI'
dh_install
dh_install: warning: Compatibility levels before 10 are deprecated (level 9 in use)
install -m0755 -d debian/saiserver/usr/sbin
cp --reflink=auto -a ./debian/usr/sbin/saiserver debian/saiserver/usr/sbin/
install -m0755 -d debian/libsaithrift-dev/usr/include
cp --reflink=auto -a ./debian/usr/include/switch_sai_rpc_server.h debian/libsaithrift-dev/usr/include/
install -m0755 -d debian/libsaithrift-dev/usr/lib
cp --reflink=auto -a ./debian/usr/lib/librpcserver.a debian/libsaithrift-dev/usr/lib/
dh_install: warning: Cannot find (any matches for) "debian/usr/local/lib/python3*/site-packages/" (tried in ., debian/tmp)
dh_install: warning: python-saithrift missing files:
debian/usr/local/lib/python3/site-packages/*
dh_install: error: missing files, aborting
make[1]: *** [debian/rules:27: binary] Error 25
make[1]: Leaving directory '/sonic/src/sonic-sairedis/SAI'
dpkg-buildpackage: error: fakeroot debian/rules binary subprocess returned exit status 2
[ FAIL LOG END ] [ target/debs/bookworm/libsaithrift-dev_0.9.4_amd64.deb ]
The text was updated successfully, but these errors were encountered: