-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
ccache environment variable issue #4605
Comments
@oguzkaganozt cc. @xmfcx |
@sasakisasaki export PATH="/usr/lib/ccache/:$PATH" related: #4530 |
@HansRobo Thank you so much! I tried the provided commands and investigated what is the possible fix. I have a proposal for possible fix. I hope my idea will help to find the best idea.
(EDDITED) Perhaps, adding following lines might be able to handle more cases (my proposal):
Although adding these lines worked on my environment, maybe this affects in case of bare-metal (your check is appreciated 🙏 ).
I observed following error:
Thus, I guessed it might be needed to handle the case when the
|
@sasakisasaki |
#4530 assumes that ccache is installed using the same setup script, so the binary presence check may have been omitted.
There is also an option to suggest corrections to #4530 instead of creating new PR. |
@sasakisasaki @HansRobo @mebasoglu @oguzkaganozt I don't understand why we need to set ccache in path. On my local machine, If I follow these instructions: which installs the ccache with
Then everything works fine and I can check that all works by So, apt installation should put it in its right place anyways. Why did you need to redefine it? Could you install ccache with apt and try it with just these settings again? I tried the ansible script on a fresh ubuntu installation before and it shouldn't create an issue with compilation. |
@xmfcx Thank you so much for providing the detailed information! Yes, you are right. After following the procedure written in the provided link, I can see the Sorry for making a confusion. Please let me explain the flow why I observed the missing ccache. I hope this will make the current situation clear. Flow
According to setup-dev-env.sh, there is no ccache installation. Perhaps, Sorry if I'm saying something confusing again. I'll be happy for knowing/understanding your feedback. |
Thanks @sasakisasaki for providing detailed bug report💖, it's not your fault, we will investigate🩺. Line 79 in fb51159
autoware/ansible/playbooks/universe.yaml Line 42 in fb51159
autoware/ansible/roles/build_tools/tasks/main.yaml Lines 1 to 6 in fb51159
Following these steps, the I don't know why it didn't work for you but I will install on a fresh ubuntu again to see what happens and report here. |
Thank you @xmfcx for kindly showing how the ccache is installed. After understanding your feedback, I tried to replicate the situation why the Reasons
Then I could saw
This multiple trial did not create the
I did double-check if the ccache is installed after running:
So the root cause of missing cache is should be due to my fault 🙇 . Thank you very much for your kind feedback. From next time, I'll also check all the related scripts not only the shell script and also the ansible side too. |
@xmfcx (CC: @shmpwk ) I found my proposal in this message is not needed as following reasons.
This time, I learnt that being aware of the impact range by my fix is very important in the large-scale project. Again, thank you for your feedback. I'll close this issue when all the remaining discussions are done. |
So, for now we won't do any changes and all the PRs related to this discussion are either merged or closed. I'm closing this thread upon your comments. Thanks for bringing this to our attention! |
Checklist
Description
Hello! I'm a newcomer as the developer. I'm being so excited to work on this project! Just last week, I have started working with using this great work Autoware.
Maybe following my message contains something missing as I'm a beginner. I'll be happy if there'll be any feedback/comments!
As I saw the following issue during the compile time, please let me ask a question. Thank you so much in advance!!
Question
Issue:
Related PR
Expected behavior
Actual behavior
Steps to reproduce
Versions
Possible causes
Additional context
No response
The text was updated successfully, but these errors were encountered: