Skip to content

Minor bux fixes#210

Merged
jj16791 merged 5 commits intodevfrom
specialFiles-dir-fix
Jan 7, 2022
Merged

Minor bux fixes#210
jj16791 merged 5 commits intodevfrom
specialFiles-dir-fix

Conversation

@jj16791
Copy link
Copy Markdown
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 thread src/lib/SpecialFileDirGen.cc Outdated
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
Copy Markdown
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
Copy Markdown
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