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
<x512[m]> <trungnt2910[m]> "The one that's living on the..." <- It loads guest runtime_loader compiled for riscv64.
<x512[m]> UserlandVM also have simple ELF loader just to load runtime_loader.
thomaslewis has left #haiku [#haiku]
mmu_man has quit [Ping timeout: 480 seconds]
<andreasdr[m]> Hi
<andreasdr[m]> Whats upppppppp?
thomaslewis has joined #haiku
thomaslewis has left #haiku [#haiku]
thomaslewis has joined #haiku
B2IA has joined #haiku
B2IA has quit []
B2IA has joined #haiku
sg94 has quit [Quit: Vision[]: i've been blurred!]
thomaslewis has left #haiku [#haiku]
thomaslewis has joined #haiku
sanzfc has joined #haiku
thomaslewis has left #haiku [#haiku]
thomaslewis has joined #haiku
HaikuUser has joined #haiku
HaikuUser has quit []
x10z has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<waddlesplash> mbrumbelow[m]: looks like https://dev.haiku-os.org/ticket/17819
x10z has joined #haiku
<sanzfc> What's the best browser for Haiku? Specially to watch YouTube videos
<trungnt2910[m]> <x512[m]> "It loads guest runtime_loader..." <- What about x86 on x86_64?
<trungnt2910[m]> Does it load one for x86?
<x512[m]> > <@trungnt2910:matrix.org> What about x86 on x86_64?
<x512[m]> > Does it load one for x86?
<x512[m]> For x86_64 host and x86 guest it will load x86 runtime_loader.
<x512[m]> UserlandVM do not load target application itself, it is loaded by guest runtime_loader.
<x512[m]> By gueat I mean everything running inside virtual machine.
<trungnt2910[m]> So to get anything working you must handle all syscalls by runtime_loader first?
<trungnt2910[m]> The one used by runtime_loader on the guest arch?
thomaslewis has left #haiku [#haiku]
<x512[m]> Yes. But for early testing it is possible to use UserlandVM built-in ELF loader. It is unable to run regular Haiku applications and it have no ability to resolve dependencies.
<trungnt2910[m]> Last question: Does this UserlandVM use anything Haiku-specific?
<trungnt2910[m]> Or can you get it run on other platforms with Sys-V ABI (Linux?) as long as you implement `Syscalls.cpp` correctly?
<x512[m]> > <@trungnt2910:matrix.org> Last question: Does this UserlandVM use anything Haiku-specific?
<x512[m]> > Or can you get it run on other platforms with Sys-V ABI (Linux?) as long as you implement `Syscalls.cpp` correctly?
<x512[m]> It use Haiku-specific API like create_area, thread API etc..
<x512[m]> In what direction you want to run it: run Haiku applications on Linux etc or run Linux applications in Haiku?
<trungnt2910[m]> x512[m]: Haiku on Linux.
<trungnt2910[m]> But the latter also seems fun.
<x512[m]> trungnt2910[m]: I think virtual machine is not needed for that. Modified libroot.so can be used.
<trungnt2910[m]> x512[m]: Is that binary compatible?
<x512[m]> trungnt2910[m]: Second is actually possible by implementing corresponding syscall dispatcher.
<x512[m]> trungnt2910[m]: You will need to load Haiku runtime_loader first. And implement libroot.so _kern_* functions as wrappers over Linux API.
<x512[m]> > <@trungnt2910:matrix.org> Is that binary compatible?
<x512[m]> * You will need to load Haiku runtime\_loader first. And implement libroot.so `_kern_*` functions as wrappers over Linux API.
<trungnt2910[m]> > load Haiku runtime_loader first.
<trungnt2910[m]> You mean compile Haiku a `runtime_loader` that works on Linux?
tuaris has quit [Read error: No route to host]
<x512[m]> > <@trungnt2910:matrix.org> > load Haiku runtime_loader first.... (full message at https://matrix.org/_matrix/media/r0/download/matrix.org/mGWNtppVimftNRobKVXCFgAs)
<trungnt2910[m]> * > load Haiku runtime\_loader first.
<trungnt2910[m]> You mean compile a Haiku `runtime_loader` that works on Linux?
tuaris has joined #haiku
<trungnt2910[m]> And yeah, why don't Haiku binaries refer to `runtime_loader` as its interpreter in its headers?
<x512[m]> Because kernel only load runtime_loader and never load target application.
<x512[m]> Kernel do not read target application headers.
<trungnt2910[m]> So executable files are just normal files that are opened with runtime_loader?
<x512[m]> Something like that.
thomaslewis has joined #haiku
<waddlesplash> trungnt2910[m]: it will be quite difficult to implement the port and area syscalls on Linux
<waddlesplash> you'd probably need some service running that could dispatch requests and manage them or something
<x512[m]> runtime_loader use special startup arguments format, not regular argc, argv.
<trungnt2910[m]> waddlesplash: What are "ports"?
<trungnt2910[m]> mach_ports?
<waddlesplash> no, ports
<trungnt2910[m]> Something like that?
<waddlesplash> they're the primary IPC mechanism on Haiku
<waddlesplash> they're something like message-based sockets
<trungnt2910[m]> Sounds sussily like mach_ports
<waddlesplash> basically all BMessages, app_server communication, etc. goes through them
<trungnt2910[m]> (the ones on Darwin?)
<waddlesplash> not really familiar with mach ports
x10z has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<trungnt2910[m]> me neither.
<trungnt2910[m]> I just happen to know a project that emulates the Darwin (MacOS) userland on Linux.
<trungnt2910[m]> And they have a "server" process that manages all the mach_ports and other stuff for MachO binaries.
x10z has joined #haiku
<trungnt2910[m]> Have any of you built the whole llvm12 recipe? How long did it take on your machine?
<x512[m]> trungnt2910[m]: Similar thing will be needed for Haiku.
<x512[m]> I managed to build llvm/clang14.
<trungnt2910[m]> lld?
<trungnt2910[m]> Could you build lld?
<x512[m]> Yes.
<trungnt2910[m]> Working?
<x512[m]> Yes.
<x512[m]> But some troubles with compiler driver integration.
thomaslewis has left #haiku [#haiku]
<x512[m]> Mold linker also produce functional Haiku executables.
<x512[m]> The thing to be careful is that `-shared` flag must be always passed to linker internally, PIE must be not used.
<trungnt2910[m]> Without the issue mentioned here?
thomaslewis has joined #haiku
<x512[m]> > <@trungnt2910:matrix.org> https://github.com/haikuports/haikuports/issues/7016
<x512[m]> > Without the issue mentioned here?
<x512[m]> That issue is still present I think.
<trungnt2910[m]> x512[m]: Is everything working? Why didn't you make a recipe?
<x512[m]> You can fool lld by passing some generic_elf target settings.
<x512[m]> trungnt2910[m]: It compiled without any changes.
<x512[m]> > <@trungnt2910:matrix.org> https://github.com/haikuports/haikuports/issues/7016
<x512[m]> > Without the issue mentioned here?
<x512[m]> This patch need to be completed to solve issue: https://github.com/haikuports/haikuports/pull/4813
<trungnt2910[m]> WIP since 2020
<trungnt2910[m]> Seems quite no-hope.
<x512[m]> Help is welcome.
<x512[m]> Patch do not apply to llvm14.
<trungnt2910[m]> I wish I could, don't understand what's going on there....
<x512[m]> trungnt2910: clang need to generate arguments passed to linker for each platform.
sanzfc has quit [Read error: Connection reset by peer]
<x512[m]> <trungnt2910[m]> "Seems quite no-hope." <- It seems to few developes interested in Clang for Haiku :(
thomaslewis has left #haiku [#haiku]
<x512[m]> s/to/too/, s/developes/developers/
HaikuUser has joined #haiku
HaikuUser has quit []
<trungnt2910[m]> x512[m]: For me I'm not interested (and actually trying to avoid working on it) simply because of the abysmally long compile time.
<trungnt2910[m]> Been putting this since 6:30 AM (my local time), now it's 10:15 AM.
thomaslewis has joined #haiku
<trungnt2910[m]> I'm using `haikuports -j8`, Haiku on an SSD drive, Hyper-V disabled host.
<trungnt2910[m]> And still abysmally slow.
<x512[m]> No hope to run Haiku natively?
<trungnt2910[m]> Nope, can't live without Windows.
<x512[m]> Dual boot?
<trungnt2910[m]> No, I need Windows on real-time.
<trungnt2910[m]> All those notifications, and chatting with friends on Discord and Meta Messenger, incoming mail,... all from Windows.
<x512[m]> I use 2 PC: tablet with Windows and desktop PC with Haiku.
<trungnt2910[m]> My laptop is my only device (apart from my Android phone).
<x512[m]> I have no smartphone.
x10z has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
x10z has joined #haiku
tuaris has quit [Read error: Connection reset by peer]
x10z has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tuaris has joined #haiku
x10z has joined #haiku
x10z has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
frkzoid has joined #haiku
thomaslewis has left #haiku [#haiku]
frkazoid333 has quit [Ping timeout: 480 seconds]
thomaslewis has joined #haiku
matt__ has joined #haiku
frkzoid has quit [Ping timeout: 480 seconds]
bbjimmy has quit [Read error: No route to host]
x10z has joined #haiku
<trungnt2910[m]> To the guy who maintains the LLVM recipe: Thank you very much for using a weird build layout instead of the official LLVM "monorepo" layout. Now I have to deal with 8 different source dirs and 6 different patchsets.
<x512[m]> UserlandVM is still functioal while I didn't touch it for some time.
<x512[m]> Of course it need a set of riscv64 Haiku binaries.
<trungnt2910[m]> How to build the x86 target on x86_64?
<trungnt2910[m]> I might look at it when the LLVM build is done.
<waddlesplash> trungnt2910[m]: the llvm recipe is probably "community maintained"
<waddlesplash> and in fact may predate the LLVM monorepo? wasn't that only introduced some years ago?
<waddlesplash> so, feel free to rewrite it to the official layout
<x512[m]> x86 is already included. Regular code flow with runtime_loader is not yet supported for x86 guest.
<trungnt2910[m]> waddlesplash: It already has the official layout as of LLVM 12.
<trungnt2910[m]> x512[m]: Simply because of missing syscalls right? If that's the case I can try implement the required ones and stubbing the rest.
<x512[m]> Also somew kernel support is missing.
<x512[m]> It one can find x86 emulator library, UserlandVM can be developed without kernel changes.
<waddlesplash> we shouldn't use an emulator
<waddlesplash> what kernel changes are needed? there's already a CODE32 descriptor
<trungnt2910[m]> waddlesplash: As of the current situation when very few components are being built, using the old format has some advantage.
<trungnt2910[m]> However, if my llvm-libunwind branch gets merged, the recipe will pull in libunwind, libcxx, **and** libcxxabi, all of which requires a different patchset.
<waddlesplash> err, we shouldn't be building libcxx right now?
<waddlesplash> we don't want two C++ libs
<x512[m]> x86 emulator can help to progress development while kernel support is not yet ready.
<x512[m]> And also for riscv/arm.
<waddlesplash> x512[m]: yes, what kernel support is needed, do we have any tickets about this?
<trungnt2910[m]> It is required for building libunwind (although it doesn't have any runtime dependency on it).
<waddlesplash> uhh, okay...
<x512[m]> It need GDT/LDT entry for 32 bit code segment.
<waddlesplash> x512[m]: already have that
<trungnt2910[m]> waddlesplash: If it's not available on the repo, then libunwind build will fail:... (full message at https://matrix.org/_matrix/media/r0/download/matrix.org/nZZuCsRmWbSNkrDiptpIfhVm)
x10z has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<trungnt2910[m]> And if we copied that libcxx into the special repo layout in the HaikuPorts recipe, then libcxx must also be built.
<waddlesplash> USER32_CODE_SEGMENT, USER32_CODE_SELECTOR
<waddlesplash> should already work?
<x512[m]> waddlesplash: You can try co compile UserlandVM and run it without passing any any arguments. It will run simple x86 test.
<waddlesplash> well, I don't know much about the LDT and descriptors
<waddlesplash> I just know we already have this set up :)
<x512[m]> I remembered: FS and GS register also need GDT/LDT entry.
<x512[m]> On x86_64 FSBASE/GSBASE registers are used so GDT is not needed, but it is needed for 32 bit mode.
<x512[m]> Code segment switching works already.
<x512[m]> The problem is TLS segment register.
<x512[m]> That is what currently happens if run 32 bit mode x86 test.
sharivegas has joined #haiku
<trungnt2910[m]> <waddlesplash> "we don't want two C++ libs" <- What's the problem with two C++ libs?
<waddlesplash> Bad Things happen when you try to run applications linked against different C++ libs
<trungnt2910[m]> waddlesplash: Shouldn't the same "Bad Things" happen on Windows and Linux too?
<trungnt2910[m]> That's the mistake of the developer of the project who links applications to different C++ libs.
<waddlesplash> on Windows the system ABI doesn't use C++
<waddlesplash> on Linux it also doesn't, mostly
<waddlesplash> on Haiku, it does, though we try to avoid usage of libstdc++ in the core APIs, there's still some
<waddlesplash> and more to the point it's linked in, so it'll always be there
<x512[m]> > <@trungnt2910:matrix.org> How to build the x86 target on x86_64?
<x512[m]> I might look at it when the LLVM build is done.
<x512[m]> I uploaded current 32 bit x86 test executable code.
ahto[m] has left #haiku [#haiku]
tuaris1 has joined #haiku
tuaris has quit [Read error: Connection reset by peer]
Begasus has joined #haiku
<Begasus> g'morning peeps
augiedoggie_ is now known as augiedoggie
<Begasus> ;)
<Begasus> like yours better augiedoggie ;)
<netpositive> morning
thomaslewis has left #haiku [#haiku]
<Begasus> morning netpositive
thomaslewis has joined #haiku
thomaslewis has left #haiku [#haiku]
thomaslewis has joined #haiku
<extrowerk> moin
thomaslewis has left #haiku [#haiku]
thomaslewis has joined #haiku
<andreasdr[m]> Good morning
thomaslewis has left #haiku [#haiku]
<Begasus> moin extrowerk andreasdr[m]
humdinger has joined #haiku
<andreasdr[m]> Good morning Begasus
<Begasus> moin humdinger :)
<humdinger> morning boys and girls
<andreasdr[m]> Good morning humdinger.
<Begasus> bugger, can't get DrumCircl to build ...
<Begasus_32> /boot/system/develop/headers/gnu/stdlib.h:13:15: fatal error: stdlib.h: No such file or directory
<Begasus_32> 13 | #include_next <stdlib.h>
<Begasus> 32bit with gcc11
<Begasus> checking the new changes on Weather humdinger :)
<humdinger> If you tested my previous patch, it may account for your inacurate forecast.
<humdinger> the location coordinates were rounded and therefore may not have been correct...
<humdinger> wrt DrumCircle, you do have $(STDCPPLIBS) in the makefile, I expect?
<Begasus> ah, will check that next
<Begasus> err ... the previous version showed the sun for today and wednesday, now it's Overcast and all gray again
<Begasus> well for today it should be right, wednesday it is over 32°C ;)
<humdinger> It would be nice to compare OpenMeteo to other weather sites, but all those site suck massively. And even more so on Web+.
<humdinger> So I won't...
<Begasus> nvm, just did a check with previous commit, shows the same now
thomaslewis has joined #haiku
<Begasus> no luck on DrumCircle
<Begasus> ps, Makefile generated by Paladin ;)
tuaris1 has quit [Quit: Leaving.]
<humdinger> strange. I annot close PRs or issues on github now. just silently fails when doing "comment & close".
<Begasus> saw it, had to close the PR myself there it seemed
HaikuUser has joined #haiku
HaikuUser has quit []
HaikuUser has joined #haiku
<HaikuUser> Hello
HaikuUser has quit []
<Begasus> short visit ;)
Begasus has quit [Ping timeout: 480 seconds]
humdinger has quit [Quit: Vision[]: Oi with the poodles already!!]
Begasus has joined #haiku
gouchi has joined #haiku
<Not-34b6> [haikuports/haikuports] Begasus pushed 1 commit to master [+2/-2/±0] https://github.com/haikuports/haikuports/compare/0052284a14c1...306414e10082
<Not-34b6> [haikuports/haikuports] extrowerk 306414e - 7kaa: bump version (#7043)
<Not-34b6> [haikuports/haikuports] Begasus pushed 1 commit to master [+0/-0/±1] https://github.com/haikuports/haikuports/compare/306414e10082...ef64678e030f
<Not-34b6> [haikuports/haikuports] Begasus ef64678 - trackgit, update srcGitRev with the latest changes (#7041)
tqh has joined #haiku
AlaskanEmily has quit [Remote host closed the connection]
<Begasus> PulkoMandy, with the Haiku backend for android_file_transfer_linux is libusb still used?
<Begasus> (with the upstreamed patch)*
<Begasus> nvm ;)
<Begasus> should read commit logs * ;)
Begasus_32 has quit [Quit: Vision[]: Gone to the dogs!]
gouchi has quit [Remote host closed the connection]
<Begasus> phone not detected
jmairboeck has joined #haiku
m199 has joined #haiku
tqh has quit [Remote host closed the connection]
Maturi0n_ has joined #haiku
matt__ has quit [Ping timeout: 480 seconds]
Maturi0n has quit [Ping timeout: 480 seconds]
mmu_man has joined #haiku
Begasus_32 has joined #haiku
frkazoid333 has joined #haiku
thomaslewis has left #haiku [#haiku]
tsesani has joined #haiku
tsesani has quit []
tqh has joined #haiku
thomaslewis has joined #haiku
thomaslewis has left #haiku [#haiku]
bbjimmy has joined #haiku
thomaslewis has joined #haiku
thomaslewis has left #haiku [#haiku]
<nekobot> [haiku/haiku] kallisti5 pushed 1 commit to master [hrev56263] - https://git.haiku-os.org/haiku/log/?qt=range&q=65462c8c81ee+%5E4043ac18675a
<nekobot> [haiku/haiku] 65462c8c81ee - accelerant/radeon_hd: Allow failure to init card
thomaslewis has joined #haiku
<nekobot> [haiku/haiku] kallisti5 pushed 1 commit to master [hrev56264] - https://git.haiku-os.org/haiku/log/?qt=range&q=62298adc0304+%5E65462c8c81ee
<nekobot> [haiku/haiku] 62298adc0304 - accelerant/radeon_hd: Add missing newline to error message
B2IA has quit [Quit: Vision[]: i've been blurred!]
B2IA has joined #haiku
thomaslewis has left #haiku [#haiku]
B2IA has quit [Quit: Vision[]: i've been blurred!]
B2IA has joined #haiku
thomaslewis has joined #haiku
thomaslewis has left #haiku [#haiku]
bbjimmy has quit [Read error: Connection reset by peer]
x10z has joined #haiku
bbjimmy has joined #haiku
HaikuUser has joined #haiku
HaikuUser has quit []
B2IA has quit [Quit: Vision[]: i've been blurred!]
B2IA has joined #haiku
mmu_man has quit [Ping timeout: 480 seconds]
HaikuUser has joined #haiku
HaikuUser has quit []
frkzoid has joined #haiku
aakashi2001 has joined #haiku
frkazoid333 has quit [Ping timeout: 480 seconds]
aakashi2001 has quit []
<trungnt2910[m]> Sus
<trungnt2910[m]> I wonder which `_Unwind` function this library will call.
<trungnt2910[m]> I mean, I wonder which `_Unwind` function this **binary** will call.
dpirate_ has joined #haiku
Maturi0n has joined #haiku
thomaslewis has joined #haiku
Maturi0n_ has quit [Ping timeout: 480 seconds]
Begasus_32 has quit [Quit: Vision[]: Gone to the dogs!]
thomaslewis has left #haiku [#haiku]
<Begasus> heading down, cu peeps
Begasus has quit [Quit: Leaving]
thomaslewis has joined #haiku
thomaslewis has left #haiku [#haiku]
gouchi has joined #haiku
aleksandr154745[m] has joined #haiku
qwebirc92304 has joined #haiku
qwebirc92304 has quit []
fjmorazan has joined #haiku
wicknix has quit [Read error: Connection reset by peer]
wicknix has joined #haiku
mmu_man has joined #haiku
x10z has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
AlaskanEmily has joined #haiku
vdamewood has joined #haiku
<Not-34b6> [haiku/website] waddlesplash pushed 1 commit to master [+1/-0/±0] https://github.com/haiku/website/compare/352032b10cff...e7d294863893
<Not-34b6> [haiku/website] waddlesplash e7d2948 - June activity/contract report.
vdamewood has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kescher has quit [Quit: Bye]
kescher has joined #haiku
m199 has quit [Remote host closed the connection]
m199 has joined #haiku
x10z has joined #haiku
jmairboeck has quit [Quit: Konversation terminated!]
ClaudioM has joined #haiku
HaikuUser has joined #haiku
<HaikuUser> hello
<HaikuUser> smone out there?
HaikuUser has quit []
B2IA has quit [Ping timeout: 480 seconds]
<andreasdr[m]> I am not here.
tqh has quit [Quit: Leaving]
mmu_man has quit [Ping timeout: 480 seconds]
gouchi has quit [Remote host closed the connection]
<andreasdr[m]> Sorry, was a joke. Whats up?
<rennj> cost of everything
<rennj> jit-just in time toyota style and covid dont mix
<rennj> now pay up for this awesome beos / haiku nft!!!!
<rennj> limited
mmu_man has joined #haiku
ClaudioM has quit [Quit: leaving]
B2IA has joined #haiku
thomaslewis has joined #haiku
thomaslewis has left #haiku [#haiku]
bjorkintosh has quit [Ping timeout: 480 seconds]
TMM has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
TMM has joined #haiku
tuaris has joined #haiku
mmu_man has quit [Ping timeout: 480 seconds]
thomaslewis has joined #haiku
x10z has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
thomaslewis has left #haiku [#haiku]