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
HaikuUser has joined #haiku
HaikuUser has quit []
m199 has quit [Ping timeout: 480 seconds]
m199 has joined #haiku
<trungnt2910[m]> Does HaikuPorts buildmaster even _run_ the recipe tests?
<trungnt2910[m]> And has anyone ever run the LLVM 12 tests on Haiku?
<trungnt2910[m]> Some tests are failing on my machine, and I'm sure it's not related to the stuff I have added.
macdude22 has joined #haiku
bjorkintosh has joined #haiku
m199 has quit [Remote host closed the connection]
m199 has joined #haiku
<x512[m]> trungnt2910: No I think?
<trungnt2910[m]> So it's normal for the tests to fail?
<x512[m]> Can you upload tests log?
Maturi0n_ has joined #haiku
<trungnt2910[m]> Do they produce some type of log file?
thomaslewis has joined #haiku
<trungnt2910[m]> I'm currently on 22% and the ETA is in... 6 hours.
<trungnt2910[m]> So many of them are failing that its flooding my console.
Maturi0n has quit [Ping timeout: 480 seconds]
<trungnt2910[m]> s/its/they're/
<x512[m]> I don't think that it is worth to run all tests. Especially if running in virtual machine.
christech has joined #haiku
sanzfc has joined #haiku
<trungnt2910[m]> x512[m]: I should just go with the recipe then?
<trungnt2910[m]> Forget about the tests?
<x512[m]> LLVM port for Haiku is probably not test ready to pass all tests.
<x512[m]> s/test//
wicknix has quit [Read error: Connection reset by peer]
wicknix has joined #haiku
thomaslewis has left #haiku [#haiku]
christech has quit [Remote host closed the connection]
x10z has joined #haiku
wicknix has quit [Remote host closed the connection]
wicknix has joined #haiku
sanzfc has left #haiku [#haiku]
<x512[m]> trungnt2910: Have you tried to run UserlandVM?
<trungnt2910[m]> x512[m]: yes, it called Abort.
<x512[m]> You need to compile test 32 bit application if you want to test 32 bit x86.
<trungnt2910[m]> x512[m]: How?
<trungnt2910[m]> And why `mold` in the meson file?
<x512[m]> To link 32 bit executable on x86_64 system.
<trungnt2910[m]> mold is not available on HaikuPorts though.
<trungnt2910[m]> Could you send the binary?
<x512[m]> Or compile it from here with `make -j4`: https://github.com/X547/mold.
<trungnt2910[m]> x512[m]: This comes with all the deps, right?
<trungnt2910[m]> trungnt2910[m]: (Though I originally meant the binary for the x86 tests)
<x512[m]> That means that test work as expected.
<trungnt2910[m]> Nice
<trungnt2910[m]> I'll mess around when I'm back to x86_64 (currently on 32 bit to do some stuff).
<trungnt2910[m]> This line still scares me though.
<x512[m]> It need some kernel code to setup 32 bit TLS segment. FSBASE/GSBASE do not work in 32 bit mode.
<trungnt2910[m]> So currently anything with TLS will fail, right (That's what I'm scared of).
<x512[m]> Yes.
<x512[m]> Addking needed kernel code is not difficult.
<trungnt2910[m]> And if I remember correctly `malloc` and friends _loves_ TLS.
<trungnt2910[m]> So getting a full x86 `runtime_loader` is out of the question...
<x512[m]> TLS support need to be added first.
nephele has quit [Ping timeout: 480 seconds]
<trungnt2910[m]> I want to get this library working for 32 bit x86 too.
<trungnt2910[m]> This thing is also magic:... (full message at https://matrix.org/_matrix/media/r0/download/matrix.org/EDUHKlPsNhxePqfVqlKGQwfw)
<x512[m]> That magic numbers should come from commpage, but not yet implemented.
<x512[m]> I can get magic numbers for 32 bit a bit later today.
<Not-34b6> [haikuports/haikuports] augiedoggie pushed 1 commit to master [+0/-0/±1] https://github.com/haikuports/haikuports/compare/ef64678e030f...09d4e7eedb8e
<Not-34b6> [haikuports/haikuports] augiedoggie 09d4e7e - emacs: bump git rev (#7046)
<trungnt2910[m]> But what does it mean? Size of some specific structures?
<x512[m]> Offsets on stack.
<x512[m]> Kernel push this structure when signal happens: headers/private/kernel/ksignal.h:50
<trungnt2910[m]> Your code doesn't work anyway:... (full message at https://matrix.org/_matrix/media/r0/download/matrix.org/rZWmCJXMPIVMWRZAXKSJvkxv)
<trungnt2910[m]> *unwinding 1 frame.
<x512[m]> trungnt2910: What compile options have you used?
<x512[m]> It may need async exceptions option.
<trungnt2910[m]> x512[m]: g++ signal_unwind.pass.cpp -o signal_unwind.pass -lunwind
<trungnt2910[m]> <x512[m]> "Addking needed kernel code is..." <- Which part of the kernel?
<trungnt2910[m]> Patchset looks sus.
<trungnt2910[m]> x86_64 rebase failed.
<x512[m]> This is older patch for 32 bit support: https://review.haiku-os.org/c/haiku/+/2874. It use another approach: implement 32 bit support on kernel side, not userland side. It is abandoned by original author.
<x512[m]> Some parts of that patch can be reused, especially TLS segment setup.
<x512[m]> Original author is Jerome Duval (korli).
<x512[m]> My plan is support all non native architectures in userland with UserlandVM. Use hardware CPU support if possible, if not (ARM/RISC-V -> x86 etc.), use software CPU emulation/JIT.
<x512[m]> Also note that UserlandVM x86 support can't handle syscall instructions, it use special trampoline function to come back from guest. But this is not a problem because Haiku x86 use trampoline function in commpage for syscalls.
thomaslewis has joined #haiku
thomaslewis has left #haiku [#haiku]
thomaslewis has joined #haiku
frkzoid has quit [Read error: Connection reset by peer]
frkzoid has joined #haiku
thomaslewis has left #haiku [#haiku]
thomaslewis has joined #haiku
thomaslewis has left #haiku [#haiku]
rennj has quit [Ping timeout: 480 seconds]
m199 has quit [Ping timeout: 480 seconds]
m199 has joined #haiku
x10z has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rennj has joined #haiku
frkazoid333 has joined #haiku
frkzoid has quit [Ping timeout: 480 seconds]
Begasus has joined #haiku
<Begasus> g'morning peeps
<netpositive> morning Begasus
<Begasus> morning netpositive
Begasus_32 has joined #haiku
AD_MOS2 has joined #haiku
AD_MOS has quit [Ping timeout: 480 seconds]
AlaskanEmily has quit [Remote host closed the connection]
tuaris has quit [Remote host closed the connection]
thomaslewis has joined #haiku
aleksandr154745[m] has left #haiku [#haiku]
thomaslewis has left #haiku [#haiku]
mmu_man has joined #haiku
Diver has quit [Quit: Leaving.]
Diver has joined #haiku
jmairboeck has joined #haiku
lockywolf has joined #haiku
mmu_man has quit [Ping timeout: 480 seconds]
mmu_man has joined #haiku
austin987 has quit [Ping timeout: 480 seconds]
frkzoid has joined #haiku
mmu_man has quit [Ping timeout: 480 seconds]
frkazoid333 has quit [Ping timeout: 480 seconds]
frkazoid333 has joined #haiku
frkzoid has quit [Ping timeout: 480 seconds]
TMM has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
TMM has joined #haiku
Anarchos has joined #haiku
<Anarchos> hello
mmu_man has joined #haiku
mmu_man has quit [Ping timeout: 480 seconds]
<nekobot> [haiku/haiku] pulkomandy pushed 1 commit to master [hrev56265] - https://git.haiku-os.org/haiku/log/?qt=range&q=26a39bed4ac4+%5E62298adc0304
<nekobot> [haiku/haiku] 26a39bed4ac4 - PCI: Allow initialization to be deferred.
m199 has quit [Remote host closed the connection]
m199 has joined #haiku
<Anarchos> how can i help to advance tickets for beta4 ?
HaikuUser has joined #haiku
HaikuUser has quit []
<trungnt2910[m]> Funny when Haiku `runtime_loader` can be `dlopen`ed as a Linux dynamic library.
gouchi has joined #haiku
<x512[m]> I also managed to run nested runtime_loader's on Haiku with multiple levels of nesting
<trungnt2910[m]> listxattr("rld heap", 0x7fffd5843268, 6) = -1 ENOENT (No such file or directory)
<trungnt2910[m]> lmao
<trungnt2910[m]> (I know this is due to different syscall numbers on Linux and Haiku, but lol)
thomaslewis has left #haiku [#haiku]
Anarchos has quit [Quit: Vision[]: i've been blurred!]
frkazoid333 has quit [Ping timeout: 480 seconds]
<trungnt2910[m]> I don't care about graphics for now.
<trungnt2910[m]> Just need a good cross-compiling environment without using a cross-compiler.
gouchi has quit [Remote host closed the connection]
<x512[m]> Maybe it is easier to properly setup cross compiler (root directory etc.)?
TMM has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
<waddlesplash> yeah, you can't
<waddlesplash> fully featured haikuporter depends on packagefs chroots
<waddlesplash> you can run a mostly-featured cross compiler for haikuporter only on Haiku itself
<x512[m]> So packagefs will be also needed to be ported on Linux (FUSE?).
<mmu_man> hmm, it could be possible to mimic this with extracting packages somewhere and use bind mounts maybe?
<waddlesplash> x512[m]: or ... just use Haiku? :-p
<x512[m]> Fixed RadeonGfx crashed clients team cleanup today. The problem is that TeamState is reference counted, but team_id -> TeamState map do not acquire reference so it is possible that last reference is released during map lookup. Solved by overriding FirstReferenceAcquired, LastReferenceReleased and 2 flags (finalized, reacquired).
<x512[m]> waddlesplash: You said about DRM port recently, but do you have any plans? DRM port will be difficult I think. It need deep Linux kernel knowledge.
<x512[m]> I think that it is fine to have both native and DRM drivers, but I know no candidates able to do DRM port.
<waddlesplash> yeah. I do intend to make the attempt
<waddlesplash> Linux APIs are not that badly documented, and I've gotten pretty good at compatibility layers between FreeBSD network & Xlibe
<waddlesplash> plus there's the BSD linuxkpi layer I can use as a reference
Begasus_32 has quit [Quit: Vision[]: Gone to the dogs!]
thomaslewis has joined #haiku
<trungnt2910[m]> <x512[m]> "Maybe it is easier to properly..." <- ~How to build llvm with cross compiler~
thomaslewis has left #haiku [#haiku]
<trungnt2910[m]> <waddlesplash> "fully featured haikuporter..." <- Thought it was possible to run HaikuPorter without chroot?
m199 has quit [Ping timeout: 480 seconds]
<waddlesplash> trungnt2910[m]: only in bootstrap mode
<waddlesplash> it's not possible to build normal packages this way
m199 has joined #haiku
<waddlesplash> and most of HaikuPorts is in no way set up for cross compilation at all
<x512[m]> waddlesplash: Even if DRM will be ported, It will be good to not hardcode Haiku to DRM API and use driver independent API instead like drm.accelerant.
x10z has joined #haiku
<x512[m]> <trungnt2910[m]> "~How to build llvm with cross..." <- As usual CMake srossbuild?
<x512[m]> s/srossbuild/crossbuild/
<x512[m]> It is not a problem if not use Haikuporter.
<x512[m]> PulkoMandy: What is current actual branch of WebKit?
<trungnt2910[m]> Another problem that Haiku userland may solve: GitHub actions.
<trungnt2910[m]> Basically, use my poor little laptop just to read manga and throw every big build job to an Ubuntu VM on GitHub Actions.
thomaslewis has joined #haiku
thomaslewis has left #haiku [#haiku]
AlaskanEmily has joined #haiku
<Begasus> going down here, cu peeps!
Begasus has quit [Quit: Leaving]
x10z has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<PulkoMandy> x512[m], there is a branch called haiku in github.com/haiku/haikuwebkit
<PulkoMandy> I pushed commits to it yesterday so it is up to date with upstream
<PulkoMandy> there are several branches attempting to build webkit2 but they are all broken in various ways
<PulkoMandy> and old
<x512[m]> PulkoMandy: What is status of Webkit2?
<PulkoMandy> it's broken as I just said. In the main branch it doesn't compile at all, it's old code from 2010
<PulkoMandy> completely out of sync with current webkit2 code
<x512[m]> I have some experience of interprosess bitmap passing with VideoStreams.
<PulkoMandy> in the other branches we tried resyncing it, it builds, but it's broken at runtime
<PulkoMandy> in the gsoc 2019 one there was enough working to render google homepage, but the code is a mess with too much changes to webkit internals
<x512[m]> Does it use OpenGL hardware acceleration?
<PulkoMandy> in the later webkit2 branch I tried to clean this up, but I did not manage to get all the processes to talk to each other
<PulkoMandy> no
<PulkoMandy> let's get it running first :)
<x512[m]> If something exists that compiles, I may try to get it running.
<PulkoMandy> the inter process communication is written to use BLooper, but it's a bit complicated to start it up because it needs to talk to a specific BLooper inside each process. In Linux it uses pipes or posix sockets, which you can create before forking, and then each side of the fork can use one end of it and start talking using that
<x512[m]> Does it use fork()?
<PulkoMandy> but with BLooper we don't have something like that, so we start each team and then we have to figure out a way to get them to communicate
<PulkoMandy> no, all native APIs, it uses BRoster::Launch to start the other teams in Haiku
<PulkoMandy> all that can be changed, I don't know what's best. We could find a way to make this work, or we could throw it all away and do things more POSIX style, I don't know if that would be a problem later or not
<x512[m]> BRoster::Launch can pass initial message that can be used to establish communication.
<PulkoMandy> yes, the main problem isn't really lacking APIs in Haiku, it's mainly fitting it into the API of WebKit. At least because I did not attempt making any changes to that API
<PulkoMandy> we could probably change it if we do it in a way that doesn't break anything for the other OS, but I did not have much time to reseach that
<PulkoMandy> and of course I always end up spending more time rebasing the branches and trying to keep them building so anyone can start looking into it, than I spend actually working on things
<x512[m]> My VideoStreams is based on Application Kit. I worried about latency, but it seems fine.
<x512[m]> Is there Webkit2 branch exists that compiles?
<PulkoMandy> this one should build and is the most up to date: https://github.com/haiku/haikuwebkit/tree/webkit2
<PulkoMandy> the last of these worked enough to render some webpages before crashing, but the code is a bit messy (it was exeprimenting with various ways to do things)
frkzoid has joined #haiku
thomaslewis has joined #haiku
<x512[m]> Takes a lot of time and RAM.
<trungnt2910[m]> ~As expected for a web engine~
<waddlesplash> x512[m]: yes, I agree, but we need a new accelerant api
<waddlesplash> when are you going to open source radeongfx so we can work on designing that?
<x512[m]> Of course.
<x512[m]> My RadeonGfx currently mostly expose libdrm compatible API (drmMmap, drmMunmap, drmIoctl).
<x512[m]> waddlesplash: Will you able to actually run it? Or looking sources is enough?
macdude22 has quit [Quit: Textual IRC Client: www.textualapp.com]
macdude22 has joined #haiku
<extrowerk> i am working not too frequently with recipes, but as far as i know, this should work "make install PREFIX=$prefix MANPREFIX=$manDir" but i get:
<extrowerk> mkdir -p /packages/sbase-0.0~git-1/.self/bin
<extrowerk> mkdir: mkdir /packages/sbase-0.0~git-1: Read-only file system
<extrowerk> why?
<extrowerk> maybe the ~ causes this?
thomaslewis has left #haiku [#haiku]
matt__ has joined #haiku
frkzoid has quit [Ping timeout: 480 seconds]
MajorBiscuit has joined #haiku
MajorBiscuit has quit []
<PulkoMandy> it seems to be trying to write to /packages, so it looks like PREFIX= is not working
<PulkoMandy> it should be writing to $PREFIX/packages instead
m199 has quit [Ping timeout: 480 seconds]
m199 has joined #haiku
thomaslewis has joined #haiku
x10z has joined #haiku
vdamewood has joined #haiku
vdamewood_ has joined #haiku
vdamewood has quit [Ping timeout: 480 seconds]
frkzoid has joined #haiku
matt__ has quit [Ping timeout: 480 seconds]
bbjimmy has quit [Quit: Vision[]: i've been blurred!]
x10z has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
augiedoggie has quit [Quit: Bye]
bbjimmy has joined #haiku
bbjimmy_64 has joined #haiku
bbjimmy_64 has quit []
x10z has joined #haiku
augiedoggie has joined #haiku
JakeSays1 has quit [Remote host closed the connection]
B2IA has quit [Ping timeout: 480 seconds]
x10z has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
thomaslewis has left #haiku [#haiku]
nephele has joined #haiku
gouchi has joined #haiku
x10z has joined #haiku
tuaris has joined #haiku
thomaslewis has joined #haiku
HaikuUser has joined #haiku
HaikuUser is now known as stickman
stickman is now known as stickman68
x10z has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
stickman68 has quit [Ping timeout: 480 seconds]
B2IA has joined #haiku
tqh has joined #haiku
ClaudioM has joined #haiku
thomaslewis has left #haiku [#haiku]
thomaslewis has joined #haiku
jmairboeck has quit [Quit: Konversation terminated!]
thomaslewis has left #haiku [#haiku]
mmu_man has joined #haiku
matt__ has joined #haiku
B2IA has quit [Quit: Vision[]: i've been blurred!]
ClaudioM has quit [Quit: leaving]
B2IA has joined #haiku
tqh has quit [Quit: Leaving]
frkzoid has quit [Ping timeout: 480 seconds]
gouchi has quit [Remote host closed the connection]
rennj has quit [Ping timeout: 480 seconds]
rennj has joined #haiku
thomaslewis has joined #haiku
mmu_man has quit [Ping timeout: 480 seconds]
mmu_man has joined #haiku
mmu_man has quit [Ping timeout: 480 seconds]
thomaslewis has left #haiku [#haiku]
thomaslewis has joined #haiku
thomaslewis has left #haiku [#haiku]
thomaslewis has joined #haiku
m199 has quit [Remote host closed the connection]
JakeSays has joined #haiku
thomaslewis has left #haiku [#haiku]
B2IA has quit [Ping timeout: 480 seconds]
thomaslewis has joined #haiku
HaikuUser has joined #haiku
HaikuUser has left #haiku [#haiku]
thomaslewis has left #haiku [#haiku]
thomaslewis has joined #haiku