Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@OliLay
Copy link
Collaborator

@OliLay OliLay commented Aug 10, 2022

We deployed homcc to some other machines than our dev-machines for testing and one issue occurred on some of them:
In the Saola Wiki (https://wiki.saola.cloud/guides/tips-and-tricks.html), we describe adding following to the .bashrc:

if [ -d "/usr/lib/ccache" ]; then
  PATH="/usr/lib/ccache:$PATH"
  if [ -d "/usr/lib/distcc" ]; then
    export CCACHE_PREFIX="distcc"
  fi
fi

Some team members have this in place, while some others don't. (Simon and me did not add this to our .bashrc)
Due to this change of PATH, the homcc call to the compiler to get the target architecture fails somehow.
We address this issue by changing the call to the compiler to an absolute one instead of using a normalized call. This resolves the issue, even if the previous snippet was added to the .bashrc.

@OliLay OliLay marked this pull request as ready for review August 10, 2022 13:02
@spirsch spirsch merged commit 295b331 into main Aug 12, 2022
@spirsch spirsch deleted the fix-compiler-normalization-issue branch August 12, 2022 06:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants