<PaulFertser>
karlp: hm, I've heard about ccache breaking things but I could never understand what specifally can lead to that.
<PaulFertser>
Regarding packaging, once libjaylink is merged, I plan to send another patch to OpenOCD Makefile to +libjaylink to be future-proof and make it easier to build newer-than-0.12.0 versions.
<karlp>
I mean, if you fix my ccache issue, I can just merge them together...
<karlp>
with +libjaylink from the beginning.
<karlp>
I'm just rebuilding it with ccache on again, to get you a config.log, the compile log, which includes where it attempts to run configure is in the paste.centos.org link above..
<karlp>
am I correct in thinking that, right now, you can have openocd built against _either_ the internal libjaylink, if you don't have libjaylink explicitly selected in .config, or against libjaylink, if you did?
<karlp>
are those currently the same version? so this "doesn't matter" ?
<PaulFertser>
karlp: 0.12.0 will by default use external libjaylink, if it's not found, internal. Current master will by default (without special configure options) use only external libjaylink if available, else jlink support will be disabled.
<PaulFertser>
Currently internal is the same 0.3.1 that's the last release from libjaylink upstream.
<PaulFertser>
karlp: you pasted configure log but not from jimtcl which failed.
<karlp>
huh, 0.11 fails here in this tree as well.
<karlp>
guess I haven't built it for a while :)
<PaulFertser>
karlp: why is it ccache_cc ? On Jenkins I do export CC="ccache gcc"; export CXX="ccache g++"
<PaulFertser>
Same for export CC="ccache clang"
<PaulFertser>
And it looks like some other env variable sets ccache for you, and it gets appended.
<karlp>
this is just "use ccache? y/n" in "Advanced config options" in menuconfig.
<PaulFertser>
Interesting, never tried it.
<karlp>
it's "default" for me, for years now.
<PaulFertser>
I will try.
<PaulFertser>
karlp: reproduced, will dig, thank you! Not sure if I need to put a note on github pull request now so that it's not merged by someone else?
nerozero has quit [Ping timeout: 260 seconds]
Hawk777 has joined #openocd
<karlp>
I've assigned them tomyself, so hopefully mangix et all will leave it for a couple of days at least.
<karlp>
I don't use my powers much, but i have them, so I can work on these ones at least :)
<karlp>
I will have "all day" tomorrow for it as well, but I'm not setup at home for this right now.
<PaulFertser>
karlp: I have a workaround but I want to understand more, specifically, why it doesn't fail on jenkins.
<PaulFertser>
OK, I see, it runs something like "ccache ccache x86_64-w64-mingw32-gcc ..." and that's ok for ccache...
<PaulFertser>
I do not think jimtcl is in the wrong here trying to use ccache automatically if it's present in the PATH.
<PaulFertser>
karlp: I propose to rename tools/ccache/files/ccache_cc to cc_cache (and same for cxx) and also make the corresponding change to rules.mk.
<PaulFertser>
karlp: or even removing the wrappers altogether, why can't it be TARGET_CC:= "ccache $(TARGET_CC_NOCACHE)" ?
<karlp>
take it up with openwrt. I'm not going to be the one solving that sory...
<karlp>
I believe jim shouild use CC when it's been set, not go "hurhur, I are smrat, I'm going to do ccache $CC"
<karlp>
but really, that's all an openwrt thing, I just don't feel comfortable merging it personally when it won't build like that :|
Deneb has joined #openocd
<Deneb>
how does one access a global const from within a class?
<Deneb>
I am getting 'fileTypes' is not defined'. 'fileTypes is defined as a global const within the same .js file.
<Deneb>
oops, posten in the wrong channel! My apologies!
<karlp>
PaulFertser: also, this is literally the first project I've had fail with ccache in openwrt... ever.
<PaulFertser>
karlp: fair enough
<karlp>
I packaged openocd-next for internal use at some stage, so I must have had it working v0.11.0-411-gc3993d318 at least.
<karlp>
perhaps I didn't "clean" sufficiently when I was rebuilidng 0.11 earlier this afternoon.
<karlp>
it's quite possible that openwrt's ccache wrappers are not as required as they were 10 years ago too... :)
<karlp>
but yeah, not my circus there.
marex has quit [*.net *.split]
marex has joined #openocd
<PaulFertser>
karlp: I'm going to send https://termbin.com/tvyr6 which allows to build OpenOCD with ccache enabled.
<PaulFertser>
btw, libjaylink is not affected, so probably it can be merged before this ccache story is decided.
<karlp>
true, I just wanted to test it running :)
<PaulFertser>
This patch allows the build to happen nicely without any tweaks.
<karlp>
it looks good to me, if tomorrow is clear I can re-reun my builds with your patch, and endorse it at least. but... :)
dliviu has quit [Quit: Going away]
dliviu has joined #openocd
wingsorc__ has joined #openocd
merethan_ has quit [Remote host closed the connection]