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 fails on master branch #5692

Closed
iMasaruOki opened this issue Oct 22, 2020 · 5 comments · Fixed by #5809
Closed

Build fails on master branch #5692

iMasaruOki opened this issue Oct 22, 2020 · 5 comments · Fixed by #5809
Assignees
Labels

Comments

@iMasaruOki
Copy link
Contributor

Description

Build fails on master branch.

Steps to reproduce the issue:

  1. make all

Describe the results you received:

make: execvp: /bin/bash: Argument list too long
make: *** [http://slave.mk:389: target/debs/buster/sonic-device-data_1.0-1_all.deb] Error 127

Describe the results you expected:

build successful.

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

tested on ommit 97b33e4

@iMasaruOki
Copy link
Contributor Author

Only parallel build are affected.

@lguohan
Copy link
Collaborator

lguohan commented Oct 22, 2020

can you print out more information. what are those arguments?

@lguohan lguohan added the Build label Oct 22, 2020
@iMasaruOki
Copy link
Contributor Author

I had misunderstanding the problem.

I'm tested some cases.

  • In my (source is modified) tree, build fails with JOBS=1. (note: dpkg cache are enabled)

  • Build twice without clean are successful.

  • In unmodified master, build successful.

  • In master with JOBS=8 (without dpkg cache), build successful.

  • In master with dpkg cache, build fails.

It seems to be dpkg cache problem.
I'll try remove all cache files and rebuild.

@lguohan
Copy link
Collaborator

lguohan commented Nov 4, 2020

@lguohan
Copy link
Collaborator

lguohan commented Nov 4, 2020

@iMasaruOki , what cache mode are you using RWCACHE or RCACHE?

lguohan pushed a commit that referenced this issue Nov 4, 2020
…5809)

Fix #5692
It fixes the folling error when DPKG cache enabled.

make: execvp: /bin/bash: Argument list too long
make: *** [slave.mk:389: target/debs/buster/sonic-device-data_1.0-1_all.deb] Error 127

- Why I did it
Number of dependent file list is more than 2K which causes bash arg long error.

- How I did it
Used file operation to store the dependency list.
santhosh-kt pushed a commit to santhosh-kt/sonic-buildimage that referenced this issue Feb 25, 2021
…onic-net#5809)

Fix sonic-net#5692
It fixes the folling error when DPKG cache enabled.

make: execvp: /bin/bash: Argument list too long
make: *** [slave.mk:389: target/debs/buster/sonic-device-data_1.0-1_all.deb] Error 127

- Why I did it
Number of dependent file list is more than 2K which causes bash arg long error.

- How I did it
Used file operation to store the dependency list.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
2 participants