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

ldgen: override LC_ALL to C before running objdump (IDFGH-6231) #7903

Closed
wants to merge 1 commit into from
Closed

Conversation

t123yh
Copy link
Contributor

@t123yh t123yh commented Nov 15, 2021

When using a Linux system configured with zh_CN.UTF-8 as $LANG, and running raw cmake command to build the project (rather than using idf.py build), output of objdump will be Chinese (like 在归档文件 libesp_pm.a 中), resulting in parsing error pyparsing.ParseException: Expected "In archive" (at char 0), (line:1, col:1) at entity.py line 129.

This commit forces objdump to use raw locale setting (C), to ensure it always make English output that's able to be parsed.

When using a Linux system configured with `zh_CN.UTF-8` as `$LANG`,
and running raw cmake command to build the project (rather than using
`idf.py build`), output of objdump will be Chinese
(like `在归档文件 libesp_pm.a 中`), resulting in parsing error
`pyparsing.ParseException: Expected "In archive" (at char 0), (line:1, col:1)`
at entity.py line 129.

This commit forces objdump to use raw locale setting (`C`), to ensure
it always make English output that's able to be parsed.
@CLAassistant
Copy link

CLAassistant commented Nov 15, 2021

CLA assistant check
All committers have signed the CLA.

@espressif-bot espressif-bot added the Status: Opened Issue is new label Nov 15, 2021
@github-actions github-actions bot changed the title ldgen: override LC_ALL to C before running objdump ldgen: override LC_ALL to C before running objdump (IDFGH-6231) Nov 15, 2021
@Alvin1Zhang
Copy link
Collaborator

Thanks for your contribution.

@espressif-bot espressif-bot added Status: In Progress Work is in progress and removed Status: Opened Issue is new labels Nov 15, 2021
@dobairoland
Copy link
Collaborator

Thank you for the PR. We are moving it into our internal test queue. This PR will be closed when it gets accepted or we will get back to you with requests to update.

@espressif-bot espressif-bot added Resolution: Done Issue is done internally Status: Done Issue is done internally and removed Status: In Progress Work is in progress labels Nov 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution: Done Issue is done internally Status: Done Issue is done internally
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants