ChanServ changed the topic of #haiku to: Open-source operating system that specifically targets personal computing. | https://haiku-os.org | Nightlies: https://download.haiku-os.org | Bugtracker: https://dev.haiku-os.org | SCM: https://git.haiku-os.org/ | Logs: https://oftc.irclog.whitequark.org/haiku | Matrix: #haiku:matrix.org | XMPP: #haiku%irc.oftc.net@irc.jabberfr.org
x10z has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bbjimmy has joined #haiku
x10z has joined #haiku
<nekobot> [haiku/haiku] jessicah pushed 2 commits to master [hrev56156] - https://git.haiku-os.org/haiku/log/?qt=range&q=8a30322767ff+%5E2823fe54e1cf
<nekobot> [haiku/haiku] f89204718306 - kernel.h: don't include user address tests in boot loader
<nekobot> [haiku/haiku] 8a30322767ff - libroot: move catopen/catgets/catclose out of libbe
ClaudioM has joined #haiku
x10z has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<trungnt2910[m]> <x512[m]> "2:27 AM here :)" <- I'm OK with staying up late but my angry parents aren't lol.
<trungnt2910[m]> Anyway I tested the libgcc_s.
<trungnt2910[m]> Haiku with it! (It doesn't with your patched libroot and stubbed libgcc_s).
ablyss has quit [Quit: Leaving]
ablyss has joined #haiku
ClaudioM has quit [Quit: leaving]
ablyss has quit [Quit: Leaving]
pimix has joined #haiku
pimix has left #haiku [#haiku]
Gautam has joined #haiku
Gautam has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
skirst has joined #haiku
probono9 has quit [Quit: The Lounge - https://thelounge.github.io]
probono9 has joined #haiku
Begasus has joined #haiku
<Begasus> g'morning peeps
Gautam has joined #haiku
Gautam_ has joined #haiku
Gautam has quit [Ping timeout: 480 seconds]
Skipp_OSX has joined #haiku
Skipp_OSX has quit []
Gautam_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
humdinger has joined #haiku
<netpositive> morning
* humdinger yawns... morning
<Begasus> morning netpositive humdinger :)
Begasus_32 has joined #haiku
<Begasus_32> thread 'main' panicked at 'not implemented: The target haiku- is not supported yet', src/build_targets.rs:109:18
<Begasus> still some work needed :)
thomaslewis has joined #haiku
Gautam has joined #haiku
selfish- has quit [Ping timeout: 480 seconds]
Gautam has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Gautam has joined #haiku
thomaslewis has left #haiku [#haiku]
Gautam has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
humdinger has quit [Quit: Vision[]: Oi with the poodles already!!]
ablyss has joined #haiku
AlaskanEmily has quit [Remote host closed the connection]
thomaslewis has joined #haiku
skirst has quit []
jmairboeck has joined #haiku
Gautam has joined #haiku
Andreasraute0211 has joined #haiku
<Andreasraute0211> Hello
Andreasraute0211 has quit []
<Begasus> Installing pkg-config file
<Begasus> Installing header file
<Begasus> Installing static library
<Begasus> Installing shared library
<Begasus> Progress! :)
<rennj> what app is this?
<Begasus> rav1e build with cargo-c
<Begasus> not an app, bin:lib:header ...
<rennj> rust foo
<Begasus> right, and haven't even started on the recipe for rav1e :P
<rennj> blah...
<rennj> hmm well next phones soc's from qualcomm will support AV1
<rennj> Qualcomm, which is planning to add support for AV1 to its upcoming flagship Snapdragon mobile processor, Protocol has learned from a source who has seen spec sheets for the chip. Internally known as SM8550, the chip is expected to be introduced at the end of this year at the earliest,
<rennj> The chip's Adreno video-processing unit will support native AV1 decode, something that none of Qualcomm's previous chips have offered.
<rennj> you going for ffmpeg support i assume rav1e librav1e
<rennj> --enable-librav1e
<rennj> guess im going to have to dump my 2019 os here soon..everything is old
<rennj> see genode-platforms-22-05 they got that sucker using linux driver and on phinephone
<Begasus> well the idea is to have it available, if sommeone wants to add it to ffmpeg they can atleast try it
<rennj> 200 page pdf explaining the port to phinephone, jtag debugging etc..im impressed they can just hoover in the linux drivers without mods...
<rennj> all the benefits of work people do in linux, and genode has wifi stack and all
<rennj> i might have to give that os a try
<Begasus> ;)
<rennj> works on computers and phone soc
<rennj> grrr pinephone..only phone worth owning
<Begasus> no fancy stuff on my phone, just basic stuff is all I need there
<rennj> physical switches for all the radio devices in the phone...cant trust bmc...apple phones dont really power off...
<rennj> find-my-iphone...apple phone never is truly off
<rennj> nso group loves it i bet
<rennj> nso pegasus zero click spyware...
<rennj> i got kaiOS flip phone right now, its linux kernel/firefox os continuation
<rennj> but i dont use it but for phone calls
<Begasus> isn't it suppose to be used as such? ;)
<rennj> never launched the browser or youtube app or visit their app store
<rennj> nah it has bluetooth gps
<Begasus> ah, misread :)
<rennj> think some maps foobar all
<rennj> i just make phone calls, the sms from flipphone keypad is worthless
<Begasus> bleutooth is handy when driving the car
<rennj> and tracking beacons in stores..as you walk around...
<rennj> no thanks..
<rennj> im going to dump it here soon..it was temp phone
<rennj> $30 bucks for phone, $30 bucks per month
<Begasus> jikes
<rennj> unlimited talk/txt, 5GB data permonth that compounds
<Begasus> ah, I don't do data on mine (don't want to be online all the time)
<rennj> i got 15GB now of data, since i dont use it only 3months old..i could adb into it..or something play around
<rennj> they got kaios forums people messing with the phone
<rennj> i dont do data either..like i said...
<rennj> for $50 a month i could get android phone i think unlimited across the board..calls/txt/data
<rennj> LG phone or something..
<rennj> not sure i would trust any of google os shit...my android 2.x phone i degoogled..rom replacement and all..but that was like 2007
<rennj> the pinephone boot from SD
<rennj> multiple version of linux work on it
<rennj> thats what i should just order and buy
Gautam has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<rennj> old allwinner soc from 2015 i dont care if its not cutting edge
<rennj> its more about taking back some control of the device
<rennj> i do miss having fm radio..my motorola phones both had working fm radio..
<rennj> moto charm in 2007, and moto E in 2013..i still have the motoE but 3G is dead here
<rennj> i got like 8+ years out of the motoE..only reason i got kaios phone was cause 3G was shutdown here
<rennj> it still works...just no cell
Hannah has quit []
<Begasus> nice :)
Hannah has joined #haiku
Gautam has joined #haiku
tuaris has quit [Read error: Connection reset by peer]
<rennj> nice
<rennj> now try 10 real-time
<rennj> i saw that on the page the 11 possible speed options
<rennj> 38frames is pretty small
Forza has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
<rennj> av1 the future standard..
<Begasus> well ... can't play the ivf file since there is no support for it yet ;)
<rennj> AOMedia Video 1 (AV1) is an open, royalty-free video coding format initially designed for video transmissions over the Internet.
<rennj> you can rebuild ffmpeg and --enable-librav1e now
<rennj> and ffplay or whatever
Gautam has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Begasus> think that would be something for this evening (I can let it run overnight then) :)
Forza has joined #haiku
<rennj> In 2018, Facebook conducted testing that approximated real world conditions, and the AV1 reference encoder achieved 34%, 46.2% and 50.3% higher data compression than libvpx-vp9, x264 High profile, and x264 Main profile respectively.[3]
<Begasus> but I still don't have a recipe/package for it yet
<rennj> i knew about av1, coming down the pipe, i just expect it so soon..phones have it in 2023 anyway..
<Begasus> heh
<rennj> open, royalty-free is the big thing, besides nice compression
<Begasus> from Gentoo: LICENSE="0BSD Apache-2.0 Apache-2.0-with-LLVM-exceptions BSD BSD-2 Boost-1.0 ISC MIT UoI-NCSA Unlicense ZLIB"
<Begasus> others only mention: License: BSD-2-Clause
<phschafft> always a bit sad that I have so little contract with the av1 guys. they are kind of the team. :(
<rennj> transcode all my movies into av1 and get back some ssd space
<rennj> forced living with 500GB for over decade..im always deleting stuff
<rennj> movies first then audio..never books
<Begasus> k, reproducing steps first ... 1. build libgit2 again (install) 2. create patchset for cargo-c (supporting haiku) and rebuild/install ...
<rennj> you did nasm also..
<rennj> that was depend
<Begasus> nasm already good, no rebuild/update needed there (only needed for rav1d)
<Begasus> rav1e*
<rennj> core i5 build box, gets by with 6GB of ram?
<rennj> i saw screenshot of yours haiku about shot...
Gautam has joined #haiku
<Begasus> ah :)
<Begasus> good enough for me
<rennj> laptop?
<Begasus> yes, one from the kids that bought a newer one, so I collected it ;)
<rennj> repurposed
<Begasus> right, had a faulty power cable (still holds Windows on it, but running Haiku now through external HD drive)
<rennj> The Alliance published a reference implementation written in C and assembly language (aomenc, aomdec) as free software under the terms of the BSD 2-Clause License
<rennj> did you build those 2 programs also?
<rennj> hmm might be option..
<Begasus> rennj, https://ibb.co/WfjXjHz (sometimes my setup here, atm only 2 laptops running) :)
<rennj> i use have 21" montiors around me just like that
<rennj> coupld sun boxes and such
<Begasus> did some work on nasm and yasm a long time ago
<Begasus> lol rennj
<Begasus> 2 to 3 is enough for me :P
<rennj> 3 is fine..more than enough
<Begasus> nielx[m], atm I "think" the rust crates are extracted to ~/.cargo and remain there even after cleaning a build, is that intentialnal?
<rennj> acer and 2 hp's sacrilege..no crapple/lenovo haha
<rennj> i probably go with the hp dev one ryzen laptop...
<rennj> see how much ram it can hold 32GB min
<rennj> $1,099 or perhaps asus ryzen gaming laptop..
<rennj> course hp laptops have had tons of battery recalls...
<x512[m]> This need to be moved to Haiku assert.h: https://github.com/X547/mesa/commit/b84ae8f9a38ba0f5787b4778e281688911e9d89b
<rennj> so you can do some preprocessor macro abuse
<Begasus> not this one, it freezes with FB, YT ...
<Begasus> k, libgit2 OK, patchset created for cargo-c ... rebuild
Gautam has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Begasus> heading out, time for the grandchildren, cu later
<rennj> later
Skyl3r has quit [Quit: ZNC 1.7.2+deb3 - https://znc.in]
Gautam has joined #haiku
<andreasdr[m]> Good morning.
Gautam has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Gautam has joined #haiku
<ermo[m]> "It's a brimful of Asha on a ... 45"
<ermo[m]> ?
<ermo[m]> ¯\_(ツ)_/¯
<ermo[m]> https://www.youtube.com/watch?v=lM7H0ooV_o8 (if anyone was curious)
<x512[m]> trungnt2910: Experimental result and disassembly. It should be replaced with symbol address.
<x512[m]> That code allow to throw exception from signal handler.
<trungnt2910[m]> I'm calling `_Unwind_backtrace` and this is preventing the function from succeeding (libunwind thinks that it's at the top of the stack).
<x512[m]> Are you sure that eh_frame info is correctly registered?
<trungnt2910[m]> 1. How to ensure that?
<trungnt2910[m]> 2. What has it got to do with `COMMPAGE_ENTRY_X86_SIGNAL_HANDLER`?
bbjimmy has quit [Read error: No route to host]
<x512[m]> Are you calling _Unwind_backtrace inside signal handler?
<x512[m]> If not, COMMPAGE_ENTRY_X86_SIGNAL_HANDLER is not relevant.
<trungnt2910[m]> Strange, it used to succeed once, using your patched libroot.
<x512[m]> Then it is likely eh_frame registration problem.
<x512[m]> It is not implemented in regular LLVM libunwind.
Skyl3r has joined #haiku
<trungnt2910[m]> It is implemented.
<x512[m]> It is empty stub in default LLVM libunwind.
<trungnt2910[m]> I'm building my libunwind from this source.
<x512[m]> __register_frame_info
<trungnt2910[m]> I applied your patch.
<x512[m]> Is it separate libunwind or a part of libroot?
<trungnt2910[m]> x512[m]: It's a separate library.
<trungnt2910[m]> I'm currently letting it fake "libgcc_s.so.1"
<x512[m]> So it is located in libgcc_s.so.1?
<trungnt2910[m]> x512[m]: Yes.
<x512[m]> It also can be missing initialization code in libunwind_02.pass.
Gautam has quit [Remote host closed the connection]
<x512[m]> Is it linked with crtbeginS.o?
<x512[m]> What will happen if compile test code with `gcc libunwind_02.c -o libunwind_02`?
<trungnt2910[m]> x512[m]: You mean compiling libunwind_02.pass.cpp?
<x512[m]> trungnt2910[m]: Yes. With g++ in case of C++.
<trungnt2910[m]> > <@trungnt2910:matrix.org> ```... (full message at https://matrix.org/_matrix/media/r0/download/matrix.org/cVqNrVPcpOHXyIrhwAFyZMDd)
<trungnt2910[m]> It will call _Unwind_Backtrace from the "real" library and succeed.
<x512[m]> trungnt2910[m]: Real libgcc_s can be also overridden.
<trungnt2910[m]> x512[m]: When I override it with my fake libgcc_s, it uses the "fake" function correctly.
<trungnt2910[m]> > <@trungnt2910:matrix.org> ```... (full message at https://matrix.org/_matrix/media/r0/download/matrix.org/fwNvjgivQAtsRBscgWxHtLfu)
<trungnt2910[m]> Does libroot actually have any special properties in the commpage?
<trungnt2910[m]> s/properties/property/
<x512[m]> It should be not relevant if signal handlers are not used.
<x512[m]> Reaching that code means that unwind frame information lookup failed.
<trungnt2910[m]> On Haiku where should it look for the unwind frame information?
<x512[m]> You can try adding printf in __register_frame_info to ensure that eh_frame registration is performed.
<x512[m]> Unwind frame information is registerd with __register_frame_info function.
<trungnt2910[m]> <x512[m]> "You can try adding printf in..." <- ```... (full message at https://matrix.org/_matrix/media/r0/download/matrix.org/cbASdeFNhsSVVhLbDwhRhlxm)
<trungnt2910[m]> When should `__register_frame_info` be called?
<x512[m]> During initialization of libunwind_02.pass before calling main. First argument should point inside libunwind_02.pass eh_frame section.
<x512[m]> Calling code is located in crtbeginS.o.
bbjimmy has joined #haiku
<x512[m]> Are libroot version working?
<trungnt2910[m]> The libroot version is still working here.
<x512[m]> It may be some initialization order problem. libroot itself import libgcc_s. It results cyclic import and may cause weird problem. If was one of reasons why I put libunwind code inside libroot.
<x512[m]> libroot also have eh_frame and call __register_frame_info.
<x512[m]> The best solution will probably be putting libunwind inside libroot and compile libgcc_s without unwind support.
<trungnt2910[m]> x512[m]: I tried your solution but boot fails with some divide by zero error.
<trungnt2910[m]> It fails right when the first usermode process loads.
<x512[m]> Have you tried to recompile real libgcc_s without unwind support?
<x512[m]> libgcc_s is a part of GCC.
<x512[m]> HaikuPorts have a build recipe for GCC.
<x512[m]> trungnt2910[m]: That is probably caused by compilerrt code that is not properly configured to be fully compatible with libgcc_s.
Gautam has joined #haiku
<trungnt2910[m]> <x512[m]> "It may be some initialization..." <- ```... (full message at https://matrix.org/_matrix/media/r0/download/matrix.org/JBphIqKAnyKteVYbtSrFStYC)
<x512[m]> I think that it is impossible to make libunwind to not import anything, it use malloc at least.
<x512[m]> <trungnt2910[m]> "I tried your solution but boot..." <- Did you get stack trace?
<x512[m]> It may be easy to fix.
bbjimmy has quit [Quit: Vision[]: i've been blurred!]
bbjimmy has joined #haiku
Gautam has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cp- has quit [Quit: Disappeared in a puff of smoke]
cp- has joined #haiku
cp- has quit []
cp- has joined #haiku
Gautam has joined #haiku
<trungnt2910[m]> <x512[m]> "Did you get stack trace?" <- https://pastebin.com/MG4rEjbU
<trungnt2910[m]> I managed to get this crash report.
<trungnt2910[m]> <x512[m]> "I think that it is impossible to..." <- Doesn't the real libgcc need to deal with memory too?
<x512[m]> trungnt2910[m]: It seems do not call malloc when registering eh_frame.
pimix has joined #haiku
pimix has left #haiku [#haiku]
x10z has joined #haiku
_Dario_ has joined #haiku
selfish has joined #haiku
Gautam_ has joined #haiku
Gautam has quit [Ping timeout: 480 seconds]
dcatt has joined #haiku
pimix has joined #haiku
x10z has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
x10z has joined #haiku
Gautam_ has quit [Read error: No route to host]
x10z has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
x10z has joined #haiku
<trungnt2910[m]> How can I debug something in this state?
x10z has quit []
<x512[m]> trungnt2910[m]: bt <enter>
<x512[m]> Already done...
x10z has joined #haiku
<x512[m]> Problem seems to be in __mpn_divrem.
<trungnt2910[m]> x512[m]: I already did :)
<trungnt2910[m]> Well knowing the stack trace can point me at the bug in the source...
<trungnt2910[m]> x512[m]: Is it the function's problem, or is the problem actually back in __printf_fp?
<trungnt2910[m]> And why?
<x512[m]> trungnt2910[m]: Like because of improper implementation of non-unwind functions of libgcc_s in https://review.haiku-os.org/c/haiku/+/5332.
<x512[m]> s/Like/Likely/, s/libgcc_s/libgcc\_s/
<trungnt2910[m]> So __mpn_divrem links to these functions?
x10z has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Gautam has joined #haiku
Gautam has quit []
Gautam has joined #haiku
ablyss has quit [Quit: Leaving]
<trungnt2910[m]> <x512[m]> "Function list: https://review...." <- So the bug is related to some functions in the old libroot being removed?
ablyss has joined #haiku
<x512[m]> trungnt2910[m]: Bug is related to one of libgcc_s functions unrelated to unwind.
<x512[m]> Something like __udivmoddi4.
<x512[m]> It is currently implemented using compilerrt code in my patch. Maybe something is improperly configured (wrong defines etc.).
<Begasus> k, patch for cargo-c sent upstream :)
Gautam has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Begasus> speaking of, when building rav1e in Terminal I see "Libs.private: -lbsd -lgcc_s -lroot -lnetwork -lbsd" in the *.pc file (haven't seen -lgcc_s passing by so not sure what is needed for it, guess I'll find out later)
Maturi0n has joined #haiku
Maturi0n_ has quit [Ping timeout: 480 seconds]
Gautam has joined #haiku
Gautam has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Gautam has joined #haiku
<Begasus> all down :) https://ibb.co/Gpv3zpx
pimix has quit [Ping timeout: 480 seconds]
<Begasus_32> f******** FB :/
<Begasus_32> heading down here, got a build for rav1e running (that will continue), food in a bit
<Begasus_32> cu peeps!
Begasus_32 has quit [Quit: Vision[]: Gone to the dogs!]
Begasus has quit [Ping timeout: 480 seconds]
pimix has joined #haiku
Gautam has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
x10z has joined #haiku
pimix has left #haiku [#haiku]
ablyss has quit [Quit: Leaving]
Gautam has joined #haiku
dcatt has quit [Ping timeout: 480 seconds]
x10z has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
HaikuUser has joined #haiku
HaikuUser2 has joined #haiku
itanium686 has joined #haiku
Gautam has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ablyss has joined #haiku
xet7 has quit [Remote host closed the connection]
xet7 has joined #haiku
itanium686 has quit [Quit: Vision[]: i've been blurred!]
HaikuUser2 has quit [Quit: Vision[]: i've been blurred!]
HaikuUser has quit [Quit: Vision[]: i've been blurred!]
_Dario_ has quit [Quit: Vision[]: i've been blurred!]
ablyss has quit [Quit: Leaving]
jmairboeck has quit [Quit: Konversation terminated!]
aeryndunham has joined #haiku
tuaris has joined #haiku
ablyss has joined #haiku
ZoeLain has joined #haiku
<ZoeLain> hi
Gautam has joined #haiku
Gautam has quit [Ping timeout: 480 seconds]
<ZoeLain> rather quiet in here?
HaikuUser has joined #haiku
HaikuUser has quit []