PF4Public / gentoo-overlay

Personal Gentoo overlay
79 stars 19 forks source link

[Musl] chromium-based: perfetto build error #375

Open Kawanaao opened 3 weeks ago

Kawanaao commented 3 weeks ago

Hello! I wanted to build for musl cromite and vscode, but I encountered a problem that perfetto in all packages related to chromium (cromite, electron) causes a compilation error related to the redefinition of structures from linux-headers, created an issue in perfetto, bug was fixed, but can this patch be applied to current versions of applications that use perfetto? Thanks!

PF4Public commented 3 weeks ago

but can this patch be applied to current versions of applications that use perfetto?

Have you tried? Unfortunately I don't have any system with musl.

Kawanaao commented 3 weeks ago

but can this patch be applied to current versions of applications that use perfetto?

Have you tried? Unfortunately I don't have any system with musl.

I honestly can't understand where to insert the patch, perfetto remains uninitialized when cloning, where can apply it?

UPD: found where they are used, applied the patch and waiting for compilation

Kawanaao commented 3 weeks ago

Yea, the patch helped, but apparently this requires a separate PR, since within the same perfetto, errors related to cdefs.h arose

PF4Public commented 3 weeks ago

I'd be happy to help if I knew how I could be of help :)

Kawanaao commented 3 weeks ago

I'd be happy to help if I knew how I could be of help :)

hah, there is no limit to human hope ;) hoped that if make the compiler think that it works on glibc via define __GLIBC__ then clang will somehow apply libc-compat and everything will be wonderful :h