Skip to content

Conversation

@clounix-sw
Copy link

@clounix-sw clounix-sw commented Sep 25, 2025

Why I did it

If the previous compilation exited abnormally during the installation process, the subsequent compilation process(ex: make target/xxx.bin SONIC_BUILD_JOBS=8) may enter a deadlock state because the file lock($(DEBS_PATH)/dpkg_lock) may not be deleted.

Work item tracking
  • Microsoft ADO (number only):

How I did it

Deleted the file lock before starting installation.

How to verify it

The compilation always be OK though the previous compilation exited abnormally during the installation process.

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

  • 202205
  • 202211
  • 202305
  • 202311
  • 202405
  • 202411
  • 202505

Tested branch (Please provide the tested image version)

Description for the changelog

Link to config_db schema for YANG module changes

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

@mssonicbld
Copy link
Collaborator

/azp run Azure.sonic-buildimage

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@longwu-clounix longwu-clounix force-pushed the Fix-compilation-dead-lock branch from 13776e1 to dde4f1b Compare September 25, 2025 06:08
@mssonicbld
Copy link
Collaborator

/azp run Azure.sonic-buildimage

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@clounix-sw clounix-sw marked this pull request as draft September 25, 2025 07:52
@longwu-clounix longwu-clounix force-pushed the Fix-compilation-dead-lock branch from dde4f1b to 47d3f6f Compare September 25, 2025 09:13
@mssonicbld
Copy link
Collaborator

/azp run Azure.sonic-buildimage

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@clounix-sw clounix-sw marked this pull request as ready for review September 25, 2025 09:52
@longwu-clounix longwu-clounix force-pushed the Fix-compilation-dead-lock branch from 47d3f6f to 5dc14fa Compare September 26, 2025 05:26
@mssonicbld
Copy link
Collaborator

/azp run Azure.sonic-buildimage

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@clounix-sw clounix-sw marked this pull request as draft September 26, 2025 05:31
Why I did it
If the previous compilation exited abnormally during the installation
process, the subsequent compilation process(ex: make target/xxx.bin
SONIC_BUILD_JOBS=4) may enter a deadlock state because the file
lock(`$(DEBS_PATH)/dpkg_lock`) may not be deleted.

How I did it
Try to deleted the file lock before starting compilation.

How to verify it
The compilation always be OK though the previous compilation exited
abnormally during the installation process.

Signed-off-by: Long Wu <[email protected]>
@longwu-clounix longwu-clounix force-pushed the Fix-compilation-dead-lock branch from 5dc14fa to 7e7c5fa Compare September 26, 2025 05:33
@mssonicbld
Copy link
Collaborator

/azp run Azure.sonic-buildimage

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@clounix-sw clounix-sw marked this pull request as ready for review September 28, 2025 01:49
@clounix-sw
Copy link
Author

@xumia @qiluo-msft could you please review this PR? Thank you~

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants