Skip to content

[Build]: Fix gmock not found issue in debian stretch slave container#9669

Merged
xumia merged 2 commits intosonic-net:masterfrom
xumia:fix-gmock-issue
Jan 5, 2022
Merged

[Build]: Fix gmock not found issue in debian stretch slave container#9669
xumia merged 2 commits intosonic-net:masterfrom
xumia:fix-gmock-issue

Conversation

@xumia
Copy link
Copy Markdown
Collaborator

@xumia xumia commented Jan 4, 2022

Why I did it

Fix the gmock not found issue in debian stretch slave container.
Some of platforms, such as naphos, innovium, have such issue.

See https://dev.azure.com/mssonic/build/_build/results?buildId=62861&view=logs&j=1111c693-39b7-5a16-3aee-406c790b3886&t=d6851b2d-8b22-5ce8-7267-f54b7a47081b

2022-01-03T09:03:27.8890266Z /usr/bin/ld: cannot find -lgmock
2022-01-03T09:03:27.8891526Z /usr/bin/ld: cannot find -lgmock_main
2022-01-03T09:03:27.8892509Z collect2: error: ld returned 1 exit status
2022-01-03T09:03:27.8893983Z Makefile:467: recipe for target 'tests' failed
2022-01-03T09:03:27.8895220Z make[4]: *** [tests] Error 1
2022-01-03T09:03:27.8896751Z make[4]: Leaving directory '/sonic/src/sonic-swss-common/tests'
2022-01-03T09:03:27.8898681Z Makefile:439: recipe for target 'all-recursive' failed
2022-01-03T09:03:27.8900527Z make[3]: *** [all-recursive] Error 1
2022-01-03T09:03:27.8901915Z make[3]: Leaving directory '/sonic/src/sonic-swss-common'
2022-01-03T09:03:27.8903525Z Makefile:371: recipe for target 'all' failed
2022-01-03T09:03:27.8904463Z make[2]: *** [all] Error 2
2022-01-03T09:03:27.8905338Z make[2]: Leaving directory '/sonic/src/sonic-swss-common'
2022-01-03T09:03:27.8910445Z dh_auto_build: make -j4 returned exit code 2

How I did it

How to verify it

Which release branch to backport (provide reason below if selected)

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106

Description for the changelog

A picture of a cute animal (not mandatory but encouraged)

@xumia xumia added Build Request for 202111 Branch For PRs being requested for 202111 branch labels Jan 4, 2022
@xumia xumia requested a review from lguohan as a code owner January 4, 2022 05:13
@xumia xumia requested a review from qiluo-msft January 4, 2022 05:14
qiluo-msft
qiluo-msft previously approved these changes Jan 4, 2022
@qiluo-msft qiluo-msft self-requested a review January 4, 2022 05:25
# For lockfile
procmail \
# For gmock
libgmock-dev -t stretch-backports \
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

stretch-backports

This option will impact all the packages in the same command line.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, we should add a new command to install the backport package.

@xumia xumia merged commit 2c42552 into sonic-net:master Jan 5, 2022
@xumia xumia deleted the fix-gmock-issue branch January 5, 2022 00:06
xumia added a commit that referenced this pull request Jan 5, 2022
…9669)

Fix the gmock not found issue in debian stretch slave container.
Some of platforms, such as naphos, innovium, have such issue.
@xumia xumia added Included in 202111 Branch and removed Request for 202111 Branch For PRs being requested for 202111 branch labels Jan 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants