NishanthMenon changed the topic of #openocd to: this is the place to discuss all things OpenOCD | Logs: https://libera.irclog.whitequark.org/openocd/
tsal has quit [Ping timeout: 272 seconds]
tsal has joined #openocd
Hawk777 has joined #openocd
nerozero has joined #openocd
Hawk777 has quit [Quit: Leaving.]
zjason` is now known as zjason
PsySc0rpi0n has joined #openocd
wingsorc has quit [Ping timeout: 256 seconds]
Haohmaru has joined #openocd
merethan_ has joined #openocd
wingsorc has joined #openocd
<PaulFertser> So someone will have to package libjaylink for Homebrew.
<PaulFertser> Just noticed Jenkins is building mingw targets without capstone, hm.
<karlp> PaulFertser: one super tiny thing, for libjayink, on line 38 and line 45 you have different glob patterns for the library?
<karlp> is that intentional?
<karlp> the final install won't install a ".so" by itself?
<karlp> only a versioned one?
<karlp> a current owrt system has a weird mix, some with .so, .so.n and .so.n.xyz, and some with only .so.n and .so.n.xyz
* karlp shrugs
<PaulFertser> borneoa_: build machine updated to provide libjaylink for all the targets.
<PaulFertser> karlp: good point, I guess I copied from hidapi assuming it's already sane. Guess so* should be used uniformly?
<karlp> I don't really know what's _right_ I just normally try and go for at least self consistent :)
<karlp> what does jaylink install build? does it build a .so symlink? or only the versioned ones?
<karlp> does openocd find the versioned one correctly?
<karlp> if it does, I'm ok with moving on with it :)
<PaulFertser> karlp: .so symlink is installed, yes. OpenOCD calls linker with -ljaylink so it's up to the linker to use the right name.
<PaulFertser> Updated, thank you again for the review.
<karlp> you really haven't run tested this? :)
<karlp> I can take both openocd and libjaylink,
<karlp> just going to build those real quick.
<karlp> I take it users who had openocd=y in their config with older openwrt are going to lose libjaylink now unless they manually select it right?
<karlp> that seems like the only right path, just checking I understand.
<karlp> you're doing a hard select on +libftdi1 and +hidapi and +libgpiod, but not libjaylink?
<karlp> I don't really mind what you want to do there, there's no good way of "suggests" in openwrt's world that I'm aware of :)
<karlp> woops, failed to compile for me.
<karlp> configure: error: ./configure.gnu failed for jimtcl
<karlp> this is after pulling your openocd 0.12 and libjaylink package updates, selecting openocd, and make package/openocd/{clean,compile}
<karlp> looks like jimtcl think's it's building for teh host or something?
<PaulFertser> karlp: no, current openocd 0.12.0 will build with internal libjaylink just fine.
<PaulFertser> karlp: but after libjaylink is added to repository I can add it to dependencies
<PaulFertser> karlp: and yes, indeed I haven't runtested it. No usecase, sorry...
<PaulFertser> Odd stuff, it builds on buildbots and builds for me locally.
<karlp> do you use ccache?
<PaulFertser> karlp: no
<PaulFertser> (I mean I use it Jenkins for OpenOCD but not for testing OpenWrt makefiles)
* karlp tires without ccache
<karlp> it would be my first personal failure if it is this :)
<PaulFertser> I'd also check config.log to see how exactly it failed
<karlp> yep, it's busted with ccache. I'm going to say that's a "you" problem though, I'm not going to merge it when it doesn't build for me :)
<PaulFertser> borneoa_: btw, fascinating http://www.efton.sk/STM32/gotcha/index.html
<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> here's config.log: https://paste.centos.org/view/98a01e9c
<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> ccache recursion gone wild somewhere...
<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> karlp: https://github.com/ccache/ccache/blob/master/src/ccache.cpp#L2105 and https://github.com/ccache/ccache/blob/master/src/Util.cpp#L802 makes it treat anything that starts with "ccache" (including ccache_cc) to be a chain of ccache invocations which should be ignored and so the next argument is expected to be the compiler. I think OpenWrt is wrong here in calling the wrapper ccache_cc , as
<PaulFertser> that's breaking ccache assumptions.
ChanServ has quit [shutting down]
Haohmaru has quit []
ChanServ has joined #openocd
<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]
merethan_ has joined #openocd
_franck_8 has joined #openocd
_franck_ has quit [Ping timeout: 252 seconds]
_franck_8 is now known as _franck_