Skip to content

Instantly share code, notes, and snippets.

This log is saved to: C:\Users\chugi\AppData\Local\Temp\gdb-cmds10274819212708187465.log
NB build: 21-b15c9b7692b2764be5a997d056e2283b72ae9131
=thread-group-added,id="i1"
~"GNU gdb (GDB) 15.1.90.20240710-git\n"
~"Copyright (C) 2024 Free Software Foundation, Inc.\n"
~"License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law."
~"\nType \"show copying\" and \"show warranty\" for details.\n"
~"This GDB was configured as \"x86_64-unknown-haiku\".\n"
This log is saved to: C:\Users\chugi\AppData\Local\Temp\gdb-cmds5654615719044095433.log
NB build: 21-b15c9b7692b2764be5a997d056e2283b72ae9131
=thread-group-added,id="i1"
~"GNU gdb (GDB) 15.1.90.20240710-git\n"
~"Copyright (C) 2024 Free Software Foundation, Inc.\n"
~"License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law."
~"\nType \"show copying\" and \"show warranty\" for details.\n"
~"This GDB was configured as \"x86_64-unknown-haiku\".\n"
This log is saved to: C:\Users\chugi\AppData\Local\Temp\gdb-cmds1441430974825977309.log
NB build: 21-b15c9b7692b2764be5a997d056e2283b72ae9131
=thread-group-added,id="i1"
~"GNU gdb (GDB) 15.1.90.20240710-git\n"
~"Copyright (C) 2024 Free Software Foundation, Inc.\n"
~"License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law."
~"\nType \"show copying\" and \"show warranty\" for details.\n"
~"This GDB was configured as \"x86_64-unknown-haiku\".\n"
This log is saved to: C:\Users\chugi\AppData\Local\Temp\gdb-cmds13778298230989587987.log
NB build: 21-b15c9b7692b2764be5a997d056e2283b72ae9131
=thread-group-added,id="i1"
~"GNU gdb (GDB) 15.1.90.20240710-git\n"
~"Copyright (C) 2024 Free Software Foundation, Inc.\n"
~"License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law."
~"\nType \"show copying\" and \"show warranty\" for details.\n"
~"This GDB was configured as \"x86_64-unknown-haiku\".\n"
@X547
X547 / gist:d165a8d988258cf7e037eaac01c43118
Created July 6, 2024 17:53
Firefox Haiku build failure
/boot/data/packages/gecko-dev> ln -s haiku_mozconfig mozconfig
/boot/data/packages/gecko-dev> ./mach build
Mach and the build system store shared state in a common directory
on the filesystem. The following directory will be created:
/boot/home/.mozbuild
If you would like to use a different directory, hit CTRL+c, set the
MOZBUILD_STATE_PATH environment variable to the directory you'd like to
use, and run Mach again.
haikuporter coreutils
Checking if any dependency-infos need to be updated ...
Looking for stale dependency-infos ...
----------------------------------------------------------------------
sys-apps::coreutils-9.0
/Haiku-nvme/data/haikuports2/sys-apps/coreutils/coreutils-9.0.recipe
----------------------------------------------------------------------
Skipping download of source for coreutils-9.0.tar.xz
Validating checksum of coreutils-9.0.tar.xz
Unpacking source of coreutils-9.0.tar.xz
MODULE HaikuAppTest;
IMPORT S := SYSTEM, O := HaikuOS, P := HaikuPosix, C := HaikuCpp, CU := HaikuCppUtils, B := HaikuBeDecls, Kernel, IO := HaikuTerminal, TS := HostThreadSections;
TYPE
PtrView = POINTER TO View;
View = RECORD (B.BView) END;
PtrWindow = POINTER TO Window;
Window = RECORD (B.BWindow)
view: PtrView;
@X547
X547 / Build.sh
Last active January 18, 2023 13:24
Building RadeonGfx
#/bin/bash
set -e
rm -rf install
INSTALL="$PWD/install"
export PKG_CONFIG_PATH="$INSTALL/lib/pkgconfig:$PKG_CONFIG_PATH"
export PATH="$INSTALL/bin:$PATH"
build_package() {
@X547
X547 / ExternalAllocator.cpp
Last active October 21, 2022 11:40
ExternalAllocator
#include "ExternalAllocator.h"
#include <stdio.h>
#include <stdlib.h>
#define ROUNDDOWN(a, b) (((a) / (b)) * (b))
#define ROUNDUP(a, b) ROUNDDOWN((a) + (b) - 1, b)
static void Assert(bool cond) {if (!cond) abort();}
@X547
X547 / build.sh
Last active October 20, 2022 10:52
Haiku Wayland build scripts
#!sh
set -e
git clone --depth=1 -b inproc-haiku https://github.com/X547/wayland.git
git clone --depth=1 -b 1.26 https://github.com/wayland-project/wayland-protocols.git
git clone --depth=1 https://github.com/X547/wayland-server.git
git clone --depth=1 -b xkbcommon-1.4.1 https://github.com/xkbcommon/libxkbcommon.git
git clone --depth=1 -b xkeyboard-config-2.36 https://github.com/freedesktop/xkeyboard-config.git
git clone --depth=1 -b gtk-3-24-haiku https://github.com/X547/gtk.git gtk3