libera/#maemo/ Thursday, 2020-12-10

brolin_empeyCatButts: My former colleague said he thinks the model of Windows Mobile smartphone he had is the HTC Touch: https://en.wikipedia.org/wiki/HTC_Touch06:58
CatButtshttps://elixir.bootlin.com/linux/v2.6.29/source/include/linux/netfilter_ipv4/ipt_MARK.h12:59
CatButtshttps://elixir.bootlin.com/linux/v2.6.29/source/include/linux/netfilter_ipv4/ipt_mark.h12:59
CatButtscase sensitive filenames, nice13:00
CatButtsrenaming them(and the includes) is easy13:02
KotCzarnywell, you know those are 2 different files, right?13:02
CatButtsbut problem comes when you distribute sourcecode relying on modified ones13:02
CatButtsyes13:02
KotCzarnyjust use ntfs13:03
KotCzarnyinstead of fat13:03
CatButtsI am using ntfs13:03
KotCzarnyntfs is case sensitive last time i checked13:03
CatButtsfile winapi needs to explicitly request case sensitivity13:03
CatButtsguess how often that happens :p13:04
CatButtsalso, you have registry setting negating that request and giving you case insensitive anyway13:04
CatButtsalso, windows 10 added a mechanism for setting per-folder(non recursive) case sensitivity13:05
CatButtsalso, I don't care about windows 1013:05
bencohhonestly I wouldn't even try at that point13:07
CatButtswhy, because a few headers were badly named?13:08
bencohI had the very same issue back when I tried to build a linux kernel from macosx (hfs was mostly case-insensitive back then)13:08
bencohbecause I suspect there will be more13:08
bencohand there's nothing to gain from the experience13:09
CatButtshttp://cat.butt.care:3434/these_ones.png13:09
bencohoh and, you'll have to bang your head against the whole kernel build process13:09
bencohI mean, makefile defines relying on script resulsts13:09
CatButtshmmm, ouch13:10
bencohI dunno how many of those there were back in 200913:10
bencohbut honestly I wouldn't even think of it in 202013:11
CatButtsthankfully, I like my things simple13:11
CatButtsthough, will be problem when compiling someone else's application13:11
CatButtsif gcc has defines for telling which host platform it is running on, then that is my solution to renamed header13:13
bencohto be honest it looks better than I thought after looking at the makefile13:13
bencohbut you'll still have work to do there13:13
CatButts> and there's nothing to gain from the experience13:16
CatButtsI get to be lazy and comfortable afterward13:16
CatButtsbut you know what they say, about lazy people ending up running more13:16
CatButtshaha13:17
KotCzarnyyou wouldnt be doing it if lazy13:17
CatButtsare there any parameters I should care of when operating ARM gcc crosscompiler, compared to gcc for PC?14:57
KotCzarnyon crosscompilation yes14:57
KotCzarnywhen native it finds them out itself14:57
CatButtssay, for a hello_world.c14:57
CatButtsconsole printf14:58
KotCzarnycompile, test14:58
KotCzarnyif it doesnt work, then yes14:58
CatButtsI'll find out after putting together bastard GCC14:58
CatButtsbut I have a feeling it won't work14:58
bencohfor basic stuff it should work almost out of the box14:59
bencohassuming the toolchain is properly set up, and sysroot is found in expected place14:59
bencoh(when build kernels you don't even need any sysroot)15:00
bencohbuilding*15:00
CatButtsapplications15:00
CatButtssysroot is GCC's base folder, yes?15:01
KotCzarnydont forget to pass ARCH=arm when building kernel15:01
CatButtsah yeah, one more thing to ask, default functions15:04
bencohsysroot is more than that15:04
CatButtson windows, there are 3 of them15:04
bencohit contains target libs/headers as well15:05
CatButtsint main() for console, WinMain() for GUI applications, DllMain() for dlls15:05
CatButtswhat's it like on linux?15:05
KotCzarnymain()15:05
CatButtsjust the one15:06
KotCzarnyand for gui it just depends what toolkit you use15:06
KotCzarnymost likely qt515:06
CatButtsyeah no15:06
CatButtsthe compiler name is no longer gcc.exe/gcc15:19
CatButtshttp://cat.butt.care:3434/ohwellitried.png15:31
CatButtsI am close though, as I have hello world printf running, from unaltered GCC 4.915:48
CatButtsand now transplant works16:57
CatButtsapparently I am only partially done as the bulk of headers and libs are with scratchbox18:24
CatButtshow does SB interact with GCC, regarding the sysroot18:25
bencohit's ... pretty awful tbh18:27
bencohSB replaces the "default" (ARM-native) compiler with the toolchain's ARM crosscompiler18:28
CatButtsoh, it duplicates gcc18:31
CatButtsall this time, I've been toying with default gcc headers and libs18:31
KotCzarnysb inteacts with gcc.. a lot18:33
KotCzarny;)18:33
bencohit's not just gcc by the way18:35
CatButtssoo, SB is an overcomplicated monster that keeps things simple, and attempting a 2nd transplant over gcc folders might result in patient death18:38
CatButtsI assume that if a specific header/lib is found both in gcc and scratchbox, the one in SB will take precedence, yes?21:45
KotCzarnyask gcc about paths22:14
* enyc meows23:02
* CatButts farts23:09

Generated by irclog2html.py 2.17.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!