build fails in systemd-sonic-generator when SONIC_PROFILING_ON = y

88 views
Skip to first unread message

Raphael Tryster IL

unread,
Jul 25, 2021, 12:10:54 PM7/25/21
to sonicproject
I get the following build failure, even from a clean clone, and the cause seems to be that it happens if I uncomment this line in rules/config:

SONIC_PROFILING_ON = y

Is the fix or a workaround known?  Here is the error output from build:

make[3]: Entering directory '/sonic/src/systemd-sonic-generator'
dh_gencontrol -- -v1.0.0
dpkg-gencontrol: warning: debian/changelog(l3): found end of file where expected more change data or trailer
dpkg-gencontrol: warning: package systemd-sonic-generator: substitution variable ${shlibs:Depends} unused, but is defined
make[3]: Leaving directory '/sonic/src/systemd-sonic-generator'
dh_md5sums
dh_builddeb
dpkg-deb: building package 'systemd-sonic-generator' in '../systemd-sonic-generator_1.0.0_amd64.deb'.
make[2]: Leaving directory '/sonic/src/systemd-sonic-generator'
dpkg-genbuildinfo --build=binary --admindir=/sonic/dpkg/tmp.TZEMnqBdIi
dpkg-genbuildinfo: warning: debian/changelog(l3): found end of file where expected more change data or trailer
dpkg-genbuildinfo: warning: debian/changelog(l3): found end of file where expected more change data or trailer
dpkg-genchanges --build=binary >../systemd-sonic-generator_1.0.0_amd64.changes
dpkg-genchanges: warning: debian/changelog(l3): found end of file where expected more change data or trailer
dpkg-genchanges: warning: debian/changelog(l3): found end of file where expected more change data or trailer
dpkg-genchanges: warning: missing Section for binary package systemd-sonic-generator; using '-'
dpkg-genchanges: warning: missing Priority for binary package systemd-sonic-generator; using '-'
dpkg-genchanges: info: binary-only upload (no source code included)
dpkg-source --after-build .
dpkg-source: warning: systemd-sonic-generator/debian/changelog(l3): found end of file where expected more change data or trailer
dpkg-buildpackage: info: binary-only upload (no source included)
mv ../systemd-sonic-generator_1.0.0_amd64.deb /sonic/target/debs/buster/
rm ../systemd-sonic-generator-* ../systemd-sonic-generator_*
rm: cannot remove '../systemd-sonic-generator-*': No such file or directory
make[1]: *** [Makefile:14: /sonic/target/debs/buster/systemd-sonic-generator_1.0.0_amd64.deb] Error 1
make[1]: Leaving directory '/sonic/src/systemd-sonic-generator'
[ FAIL LOG END ] [ target/debs/buster/systemd-sonic-generator_1.0.0_amd64.deb ]
make: *** [slave.mk:428: target/debs/buster/systemd-sonic-generator_1.0.0_amd64.deb] Error 1

Raphael Tryster IL

unread,
Jul 26, 2021, 1:49:41 PM7/26/21
to sonicproject
Update: Fixing the changelog file(1 space at start of line, 2 spaces before day) eliminates some, but not all, of the errors, and the build still fails.

diff --git a/src/systemd-sonic-generator/debian/changelog b/src/systemd-sonic-generator/debian/changelog
index 1cc6c755e..17442f16b 100644
--- a/src/systemd-sonic-generator/debian/changelog
+++ b/src/systemd-sonic-generator/debian/changelog
@@ -1,3 +1,3 @@
 systemd-sonic-generator (1.0.0) UNRELEASED; urgency=medium
     * Initial version
-    -- Lawrence Lee <email address hidden> Tue, 23 Jul 2019 16:00:00 -0800
+ -- Lawrence Lee < email address hidden  >  Tue, 23 Jul 2019 16:00:00 -0800

make[3]: Entering directory '/sonic/src/systemd-sonic-generator'
dh_gencontrol -- -v1.0.0
dpkg-gencontrol: warning: package systemd-sonic-generator: substitution variable ${shlibs:Depends} unused, but is defined
make[3]: Leaving directory '/sonic/src/systemd-sonic-generator'
   dh_md5sums
   dh_builddeb
dpkg-deb: building package 'systemd-sonic-generator' in '../systemd-sonic-generator_1.0.0_amd64.deb'.
make[2]: Leaving directory '/sonic/src/systemd-sonic-generator'
 dpkg-genbuildinfo --build=binary --admindir=/sonic/dpkg/tmp.QpCJKXPbO0
 dpkg-genchanges --build=binary >../systemd-sonic-generator_1.0.0_amd64.changes
dpkg-genchanges: warning: missing Section for binary package systemd-sonic-generator; using '-'
dpkg-genchanges: warning: missing Priority for binary package systemd-sonic-generator; using '-'
dpkg-genchanges: info: binary-only upload (no source code included)
 dpkg-source --after-build .
dpkg-buildpackage: info: binary-only upload (no source included)
mv ../systemd-sonic-generator_1.0.0_amd64.deb /sonic/target/debs/buster/
rm ../systemd-sonic-generator-* ../systemd-sonic-generator_*
rm: cannot remove '../systemd-sonic-generator-*': No such file or directory
make[1]: *** [Makefile:14: /sonic/target/debs/buster/systemd-sonic-generator_1.0.0_amd64.deb] Error 1
make[1]: Leaving directory '/sonic/src/systemd-sonic-generator'
[  FAIL LOG END  ] [ target/debs/buster/systemd-sonic-generator_1.0.0_amd64.deb ]
make: *** [slave.mk:429: target/debs/buster/systemd-sonic-generator_1.0.0_amd64.deb] Error 1


Reply all
Reply to author
Forward
0 new messages