#flex-dev Logs
Jun 29 2025
#flex-dev Calendar
05:32 AM JT-Cave: morning
06:31 AM rdtsc: morning
06:56 AM rdtsc: cross-compiling gets complicated quick... https://manpages.debian.org/bookworm/dpkg-dev/dpkg-architecture.1.en.html
07:33 AM rdtsc: ok, so trying to set a system environment variable CC from within build.py silently fails. looks like it will have to be rewritten as a bash script.
07:43 AM Tom_L: still working on it?
08:17 AM Tom_L: 79 / 95
08:45 AM rdtsc: still getting a warning with the CC environment variable and exact-same-size output. I don't think it's cross-compiling properly.
09:23 AM Tom_L: rdtsc, what is the end goal here? to build a flex deb?
09:48 AM Tom_L: i should have gotten into the shipping business. cost me $96 now for a package that normally would have been $35
09:56 AM rdtsc: just to build an amd64 flex binary from arm64
09:56 AM rdtsc: bash script to cross-compile from arm64 to amd64: https://paste.debian.net/1383193/
09:56 AM rdtsc: output: https://paste.debian.net/1383192/
09:57 AM rdtsc: no more errors, but file sizes are still exactly the same
09:57 AM Tom_L: maybe you're overthinking it
09:57 AM rdtsc: a 'warning' in linux seems to mean 'duck and cover' heheh
09:58 AM Tom_L: my build line is very simple
09:58 AM Tom_L: one sec
09:59 AM Tom_L: jt helped make a .py one for me and i also use a bash script
10:01 AM Tom_dev: you want to build the flex deb on arm for amd64:
10:01 AM Tom_dev: DEB_BUILD_OPTIONS=crossbuildcanrunhostbinaries dpkg-buildpackage -us -uc -b --host-arch amd64
10:01 AM Tom_dev: that's it
10:01 AM Tom_L: i built one and installed it
10:02 AM Tom_L: just change the --host-arch for the others on different platforms
10:02 AM Tom_L: amd64 on amd64 is just dpkg-buildpackage -us -uc
10:03 AM Tom_L: it's hard to find much about that build option
10:05 AM rdtsc: that seems to work, but gives a: dpkg-architecture: warning: specified GNU system type x86_64-linux-gnu does not match CC system type aarch64-linux-gnu, try setting a correct CC environment variable
10:05 AM rdtsc: this whole ordeal was to get rid of that warning lol
10:05 AM Tom_L: i've never had a problem with it
10:06 AM Tom_L: you've installed my builds?
10:06 AM rdtsc: yes, always worked fine
10:06 AM Tom_L: i wouldn't worry too much about it
10:07 AM Tom_L: i get a load of 'warnings' building bit files but they work
10:07 AM Tom_L: just kinda gotta pay attention to what they warn
10:09 AM lcnc-relay: <roguish> good morning
10:09 AM Tom_L: hot one
10:10 AM lcnc-relay: <roguish> yeah, forecast upper 80's today
10:10 AM Tom_L: 95
10:10 AM Tom_L: was 79 at 8am
10:14 AM lcnc-relay: <roguish> you probably have high humidity tooo
10:15 AM lcnc-relay: <roguish> now at 8 am, it's 74 and rising, and 51%
10:15 AM Tom_L: says 58%
10:15 AM lcnc-relay: <roguish> not too horrible
11:44 AM JT-Cave: Tom_L, just fixed 7i76eu inputs and outputs in mesact
11:49 AM JT-Cave: nap time now that that's fixed
11:49 AM JT-Cave: I may dream up a way to fix my derailleur cable in my sleep
11:59 AM lcnc-relay: <roguish> ride time, before the heat kicks in.....
11:59 AM lcnc-relay: <roguish> bbl
12:27 PM Tom_L: PR #150 mesact
02:09 PM lcnc-relay: <roguish> well, 21 miles later....
02:13 PM JT-Shop: geez there must be a thousand shimano shift cables to choose from...
02:14 PM lcnc-relay: <roguish> the metal ball end is the important part. then gotta be long enough
02:14 PM lcnc-relay: <roguish> that's the cable. housing is different.
02:15 PM lcnc-relay: <roguish> where are ya looking ?
02:15 PM JT-Shop: jenson
02:16 PM JT-Shop: the cable is breaking up back at the adjustment nut at the derailleur
02:16 PM lcnc-relay: <roguish> haven't heard of them
02:16 PM JT-Shop: so the derailleur is not shifting smooth
02:16 PM JT-Shop: first one to pop up I have no clue about them
02:17 PM lcnc-relay: <roguish> I just changed my out a month ago.... still need a little adjustment as the cable stretches
02:17 PM JT-Shop: looks like 1.25mm in diameter
02:18 PM JT-Shop: gotta look up a park video on how to take the shifter apart to see the cable end
02:18 PM lcnc-relay: <roguish> is that the cable itself, or the housing?
02:18 PM JT-Shop: the cable has a couple of broken strands
02:18 PM lcnc-relay: <roguish> definitely time for a change out.
02:18 PM JT-Shop: the outer housing is very short by the derailleur
02:21 PM lcnc-relay: <roguish> I usually buy 2 or 3 cables at a time..... like to have spares around.
02:23 PM lcnc-relay: <roguish> oh, and brake cables are thicker than shifter cables. don't get 'em mixed up
02:23 PM JT-Shop: yup they look cheap enough to have a spare
02:23 PM Tom_L: make an aluminum mold and put your own lead ends on if you can't find one
02:24 PM JT-Shop: I have shimano drop bar shifters
02:24 PM Tom_L: a little stretch but possible
02:25 PM lcnc-relay: <roguish> what ya mean drop bar shifters ?
02:25 PM JT-Shop: just repeating what part tools calls them
02:26 PM JT-Shop: https://www.youtube.com/watch?v=Jde0YvDIPfI
02:26 PM lcnc-relay: <roguish> this is usuall like the cables I get.
02:26 PM lcnc-relay: <roguish> https://jauriarts.org/_heisenbridge/media/matrix.org/moDcyVXvWsrcYWCvEKlwwwYk/z3cDfgPtNLI/image.png
02:26 PM lcnc-relay: <roguish> JT-Shop: ah, ok. those are regular....
02:27 PM lcnc-relay: <roguish> do you know the model of the shifter? dura ace, ultegra, or ?????
02:28 PM JT-Shop: I have the cylinder shape end
02:28 PM JT-Shop: hmm, let me look
02:28 PM lcnc-relay: <roguish> my cable ends are small cylinder shapes, not balls
02:29 PM JT-Shop: shimano Claris Double
02:30 PM lcnc-relay: <roguish> those are good
02:32 PM lcnc-relay: <roguish> gotta pull the rubber hood back a bit. then push the big lever back and forth like you're shifting , and you should be able to see the cable end.
02:32 PM JT-Shop: not on mine, you just shift to the highest gear and pull the brake to expose the end
02:32 PM lcnc-relay: <roguish> ya may need to do it a few times just to figure it all out.....
02:32 PM lcnc-relay: <roguish> ya got it then...
02:33 PM lcnc-relay: <roguish> you're set
02:33 PM JT-Shop: https://youtu.be/Jde0YvDIPfI?t=293
02:33 PM JT-Shop: I have that type
02:35 PM lcnc-relay: <roguish> those are different than my ancient dura ace
02:35 PM lcnc-relay: <roguish> ok, time to ice my back for a bit....
02:35 PM lcnc-relay: <roguish> bbl
02:39 PM JT-Shop: https://www.amazon.com/Shimano-Optislick-Derailleur-Cable/dp/B01D9OER66
02:44 PM JT-Shop: https://www.amazon.com/SHIMANO-Optislick-Derailleur-Cable-Housing/dp/B01J5PIOQ2?crid=1VJ2259ZJRO8P&dib=eyJ2IjoiMSJ9.MMbs14bfBQgG8zKUjQNux34jS54hgQvBxvvm3FIVQGBxMBoICddzUR25KzErl-2FSzg8pLiL57hUn3PsYLgFj46qawdOH3kmeTGXSMFtY-3RzwxeoCpwbHgNJRB1aN3z9c4ZAQP_TgnRLs_iu088eRMLPCGxuOX8vvTJE7AgIPf5mGwZE7Yve1Q17g-xamVmls403rUhOCYvFckVpl5xoF_P6lTTARbQkMsiQrnMo8Zgqk07Jnr8kqj8e08q69hKCdH1XbX-yb44kdFj7l8j5K0io-RTNFlSeqpy49hKKew.QbQ8y6khTFbEHqnfMNqK-yUH0nXL5C5GLfeaIbFwGB0&di
02:44 PM JT-Shop: b_tag=se&keywords=SHIMANO+Optislick+Derailleur+Cable&qid=1751225477&s=sporting-goods&sprefix=shimano+optislick+derailleur+cable%2Csporting%2C139
02:49 PM JT-Shop: https://www.amazon.com/SHIMANO-Optislick-Derailleur-Cable-Housing/dp/B01J5PIOQ2
02:49 PM JT-Shop: dang they are getting creative and now have multiple &
02:50 PM JT-Shop: even copy without site tracking in firefox fails to remove the tracking crap
05:24 PM JT-Shop: I think I'll see if the local bike shop has the shimano cable set before ordering... in the mean time I'll try and work around it but cutting off the broken cable wires
05:27 PM JT-Shop: by not but
05:30 PM lcnc-relay: <roguish> going to a local shop is good. ask advice, and buy the cables.
05:30 PM lcnc-relay: <roguish> that's usually what I do.
05:33 PM lcnc-relay: <roguish> crap, 92 now. may be too hot to sit on the deck with a rum 'n tonic
05:34 PM xxcoder: high 80s f here
05:34 PM xxcoder: and I agree, 92c is too hot
05:34 PM xxcoder: ;)
05:34 PM JT-Shop: 92°C is pretty hot
05:34 PM JT-Shop: 85°F here
05:34 PM lcnc-relay: <roguish> it's americano F
05:36 PM lcnc-relay: <roguish> if you wan C, to chat with Roy
05:36 PM JT-Shop: LOL
05:36 PM JT-Shop: but he doesn't hang out here
05:36 PM JT-Shop: did you look at the cable link?
05:37 PM xxcoder: my issue is never about which units :D just on not using unit charactor or symbol
05:38 PM JT-Shop: I think https://www.amazon.com/SHIMANO-Optislick-Derailleur-Cable-Housing/dp/B01J5PIOQ2 is the correct cable for me
05:42 PM lcnc-relay: <roguish> go for it.
05:58 PM Tom_L: amazon has a pretty good return policy
05:58 PM Tom_L: especially if you have a UPS store nearby
05:58 PM Tom_L: take it in, they scan your phone and you walk out
05:58 PM lcnc-relay: <roguish> gotta watch the particular item. but most are....
06:01 PM lcnc-relay: <roguish> i print out the qr code thing. never let 'em get near my phone
06:01 PM Tom_L: nothing quite like fresh corn on the cob
06:01 PM Tom_L: unless it's roasted on the grille
06:02 PM JT-Shop: fresh corn on the cob in foil with onions salt pepper and butter on the grill
06:03 PM Tom_L: did you see the PR?
06:03 PM JT-Shop: not yet... I mean I saw you did one but have not been down in the cave
06:03 PM Tom_L: ok
06:04 PM JT-Shop: I so glad pcw gave me the clue about the binary byte order
06:04 PM Tom_L: yeah i saw that earlier
06:04 PM Tom_L: won't remember it but did see it
06:06 PM Tom_L: you had the byte order backward?
06:06 PM Tom_L: isn't that something to do with endian?
06:06 PM JT-Shop: I built the binary number backwards
06:06 PM Tom_L: lo byte on the right hi on the left
06:06 PM JT-Shop: if you use hex yup little or big is different
06:07 PM JT-Shop: what I had to do is use reverse(range(16)) to scan the output types to get the bit
06:08 PM JT-Shop: what fooled be was if they are all the same it turns out correct
06:08 PM JT-Shop: but if you have some different then byte order is important
06:09 PM Tom_L: some processors are little endian and some are big and it makes a big difference
06:09 PM Tom_L: i forget which is 'harvard'
06:11 PM Tom_L: intel are little-endian
06:11 PM Tom_L: motorola is big-endian
06:11 PM Tom_L: fwiw
06:12 PM Tom_L: meaning the high byte is stored in the lowest memory address
06:12 PM JT-Shop: isn't that a C thing?
06:12 PM Tom_L: i'm not sure that as much as the architecture design
06:13 PM Tom_L: and the addressing
06:13 PM JT-Shop: I'm not using any hex addressing just generating the hex string from the bit string
06:14 PM Tom_L: the cpu see it all the same as bits
06:14 PM Tom_L: it's kinda like the => <= in hal
06:14 PM Tom_L: it's there for us
06:15 PM Tom_L: you can express a value any way you like, hex, decimal, binary etc
06:15 PM JT-Shop: yup not using the hex in code at all just converting a bit string to hex and putting that in the io.hal file
06:15 PM JT-Shop: it's a setp line for the 7i76eu only
06:15 PM Tom_L: i sometimes would use binary on avr to make sure i was getting the right bits set
06:15 PM Tom_L: for my own sanity
06:22 PM Tom_L: http://tom-itx.no-ip.biz:443/~webpage/avr/c_bits/bits_index.php
06:23 PM Tom_L: i thought that was pretty good on bit manipulation
06:23 PM Tom_L: and the macros near the bottom