On Wed, 9 Aug 2023 12:36:59 GMT, Jan Kratochvil <jkratoch...@openjdk.org> wrote:

>> https://bugs.openjdk.org/browse/JDK-8313374
>> --enable-ccache's CCACHE_BASEDIR breaks builds
>
> Jan Kratochvil has updated the pull request incrementally with one additional 
> commit since the last revision:
> 
>   Use true/false for REWRITE_PATHS_RELATIVE and initialize it
>    - suggested by Erik Joelsson

Maybe your setup does not reproduce this problem. Still the most simple ccache 
setup does reproduce the problem. And the problem is known and described above. 
So why it should not be fixed?
I sure know how to workaround this bug. As this fix has not yet landed I use 
`--disable-ccache` and hide from the `configure` script I am in fact using 
ccache.

#! /bin/bash
# openjdk: export PATH="$(echo "$PATH"|sed 
's#:/usr/lib64/ccache:#:'$HOME'/ccache:#')";bash configure 
--disable-precompiled-headers --disable-ccache
set -ex
rm -rf ~/ccache
mkdir ~/ccache
cd ~/ccache
for i in /usr/lib64/ccache/*;do
  j=`basename $i`
  echo -e '#! /bin/bash\nexport PATH="$(echo "$PATH"|sed 
s#:$HOME/ccache:#:#)"\nexec '$i' "$@"' >$j
  chmod +x $j
done
echo done

-------------

PR Comment: https://git.openjdk.org/jdk/pull/15080#issuecomment-1676236678

Reply via email to