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

Error when running elfshaker extract: *FATAL*: Some files in the repository have been removed or modified unexpectedly! #11

Open
HighCommander4 opened this issue Feb 22, 2023 · 4 comments

Comments

@HighCommander4
Copy link
Contributor

After trying to follow the instructions at https://github.com/elfshaker/manyclangs#x86-64, when I get to the elfshaker extract command, I get the following error:

$ elfshaker extract 20211130-02660T231245-9b704d31b54a616
[WARN (main) 130.625487ms]: File /home/nr/manyclangs/link.sh is more recent than the current HEAD!
[ERROR (main) 132.172898ms]: FATAL: Some files in the repository have been removed or modified unexpectedly! You can use --force to skip this check, but this might result in DATA LOSS!

I don't really understand the error -- what repository is it talking about?

As best I can remember, I haven't done anything since a previous occasion when the command was successful, besides downloading a different month's set of builds.

@HighCommander4
Copy link
Contributor Author

Adding --force does seem to result in a usable clang binary.

@HighCommander4
Copy link
Contributor Author

And subsequent runs of elfshaker extract are successful without --force.

@peterwaller-arm
Copy link
Contributor

Hi, thanks for reporting. The 'repository' in this case would be the 'elfshaker repository' (by analogy with a git repository).

If I take the message at face value, it suggests that link.sh was modified since you last extracted. Is it possible it was opened in a text editor for example? There could be bugs, though.

I'll leave this issue open for now, but if you are able to make a minimal reproducer which reliably recreates the issue, please file it in the elfshaker repository.

@HighCommander4
Copy link
Contributor Author

If I take the message at face value, it suggests that link.sh was modified since you last extracted. Is it possible it was opened in a text editor for example?

Not that I can recall, but it's possible.

I was initially hesitant to try --force due to the scary "DATA LOSS" warning; perhaps there's an opportunity to clarify that the potential for data loss is limited to maybe having to redownload a batch of clang builds, which would make it less scary.

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

No branches or pull requests

2 participants