after fail go to cext/src:
CC="ccache gcc" make
works as expected.
my system is Linux, openSUSE 12.2 milestone 3, x86_64.
Can you show how this is failing for you? It works fine for me on Mac OS X. https://gist.github.com/2785635
your gist shows that code was compiled with
It looks like CC was ignored in this way, when I repeated your steps I got:
I see. 220.127.116.11 fails for me on the same spot (with a slightly different error message).
Does it work for you on the master? (Since I doubt that there will be another 1.6.x release, we should focus on the master branch.)
It's better as the paths look more sane - but still failing https://gist.github.com/464aeb5404cc8c3163b6
To think, we take ccache into account if it is available. See https://github.com/jruby/jruby/blob/ab78ce9179fa13d2610cf9a04632d475651ddd35/cext/src/Makefile#L55
It seems to me that my ccache fails differently from yours when ccache invokes a program that doesn't meet the expectations.
my ccache version is 3.1.7
for me what happens is that
uses CC with ccache inside,
maybe $(CC) could be changed to:
which ensures there is no ccache duplication? - I have tested it on my machine and it worked.
Would you like to put a patch together, so we can give you credit for the fix?
Right now the behavior changes depending on the platform, Makefile is vulnerable for existing user environment.
I guess solution could be to reset environment on top and overwrite platform differences after.