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

Minor bux fixes #210

Merged
merged 5 commits into from
Jan 7, 2022
Merged

Minor bux fixes #210

merged 5 commits into from
Jan 7, 2022

Conversation

jj16791
Copy link
Contributor

@jj16791 jj16791 commented Jan 7, 2022

This PR contains some minor bug fixes including:

  • An issue whereby fresh clones/installs of SimEng which had no specialFiles directory. It would fail in the RemoveExistingSFDir function of SpecialFileDirGen.cc due to No such file or directory error.
  • Removal of use of the getdents64 system call in favour of custom implementation to avoid re-occurring unpredictable issues whereby builds fail due to the system calls inclusion.

@jj16791 jj16791 added the bug Something isn't working label Jan 7, 2022
@jj16791 jj16791 requested a review from FinnWilkinson January 7, 2022 11:43
Comment on lines 24 to 28
"mkdir -p " + specialFilesParentDir_ + "/specialFiles/";
const std::string rm_input =
"rm -r " + specialFilesParentDir_ + "/specialFiles/*";
system(rm_input.c_str());
system(mk_input.c_str());
Copy link
Contributor

Choose a reason for hiding this comment

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

Need to swap the two system calls around

@jj16791 jj16791 changed the title Changed specialFiles dir reset to consider fresh clones Minor bux fixes Jan 7, 2022
…ation to avoid re-occurring issues with certain environments unpredictably erroring on its inclusion
Copy link
Contributor

@FinnWilkinson FinnWilkinson left a comment

Choose a reason for hiding this comment

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

All looks good to me

@FinnWilkinson FinnWilkinson linked an issue Jan 7, 2022 that may be closed by this pull request
@jj16791 jj16791 merged commit c366d8f into dev Jan 7, 2022
@jj16791 jj16791 deleted the specialFiles-dir-fix branch January 7, 2022 16:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Compilation fails on '::getdents64'
2 participants