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

[build] [debug] [201911] compile failed when enable SONIC_DEBUGGING_ON or SONIC_PROFILING_ON #5982

Open
tim-rj opened this issue Nov 20, 2020 · 4 comments · May be fixed by #6058
Open

[build] [debug] [201911] compile failed when enable SONIC_DEBUGGING_ON or SONIC_PROFILING_ON #5982

tim-rj opened this issue Nov 20, 2020 · 4 comments · May be fixed by #6058
Assignees

Comments

@tim-rj
Copy link
Contributor

tim-rj commented Nov 20, 2020

Description

compile failed locally when enable SONIC_DEBUGGING_ON or SONIC_PROFILING_ON

Steps to reproduce the issue:

  1. set SONIC_DEBUGGING_ON = y (or SONIC_PROFILING_ON = y )
  2. make target/sonic-broadcom.bin
  3. compile failed

Describe the results you received:

/sonic/src/monit
mv: cannot stat 'monit-dbgsym_5.20.0-6_amd64.deb': No such file or directory
Makefile:9: recipe for target '/sonic/target/debs/stretch/monit_5.20.0-6_amd64.d                                                                                                          eb' failed
make[1]: *** [/sonic/target/debs/stretch/monit_5.20.0-6_amd64.deb] Error 1
make[1]: Leaving directory '/sonic/src/monit'
[  FAIL LOG END  ] [ target/debs/stretch/monit_5.20.0-6_amd64.deb ]
slave.mk:335: recipe for target 'target/debs/stretch/monit_5.20.0-6_amd64.deb' f                                                                                                          ailed
make: *** [target/debs/stretch/monit_5.20.0-6_amd64.deb] Error 1
make[1]: *** [Makefile.work:211: target/sonic-broadcom.bin] Error 2
make[1]: Leaving directory '/home/sdk/ssp/sonic-sym'
make: *** [Makefile:7: target/sonic-broadcom.bin] Error 2


Describe the results you expected:

ONE MACRO to enable symbol for all components and compile successful

Additional information you deem important (e.g. issue happens only occasionally):

If I run 'make target/debs/stretch/monit-dbgsym_5.20.0-6_amd64.deb ' after compile failed, it will success, but 'make target/sonic-broadcom.bin' will fall again for other component noting the linkly error 'cant stat xxx-dbgsym_xxx.deb'.

All the codes are open source ,we change nothing. what can we do to fix such problem?

@tim-rj
Copy link
Contributor Author

tim-rj commented Nov 23, 2020

I found that in issue log, no dbgsym deb is built:

1023    dh_md5sums
1024    dh_builddeb
1025 dpkg-deb: building package 'monit' in '../monit_5.20.0-6_amd64.deb'.
1026 make[2]: Leaving directory '/sonic/src/monit/monit'
1027  dpkg-genbuildinfo --build=binary
1028  dpkg-genchanges --build=binary >../monit_5.20.0-

compare the normal log:

   dh_gencontrol
   dh_md5sums
   dh_builddeb
dpkg-deb: building package 'monit-dbgsym' in '../monit-dbgsym_5.20.0-6_amd64.deb'.
dpkg-deb: building package 'monit' in '../monit_5.20.0-6_amd64.deb'.
make[2]: Leaving directory '/sonic/src/monit/monit'
 dpkg-genbuildinfo --build=binary
 dpkg-genchanges --build=binary >../monit_5.20.0-6_amd64.changes

@tim-rj
Copy link
Contributor Author

tim-rj commented Nov 24, 2020

This is actually an issue, i will plan to fix it soon.

@zhangyanzhao
Copy link
Collaborator

How to make this workaround work completely to fix the issue of #6413 ?

@zhangyanzhao
Copy link
Collaborator

Nvidia and MSFT members will have a discussion on this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment