Skip to content

Instantly share code, notes, and snippets.

@raw-bin
raw-bin / gist:4290e6b75bf65df09d467dcf8f23e542
Created September 24, 2020 19:32
onivim2 compile failure on macOS Catalina with macports
[19:52:48] jagran01@C02CC502MD6T /Users/jagran01/Work/repos/oni2
> esy bootstrap
info building libvim@8.10869.59@d41d8cd9
info building esy-libtools@github:revery-ui/esy-libtools#c9eb685@d41d8cd9
info building esy-skia@github:revery-ui/esy-skia#a3785f9@d41d8cd9
error: build failed with exit code: 1
build log:
# esy-build-package: building: esy-skia@github:revery-ui/esy-skia#a3785f9
# esy-build-package: pwd: /Users/jagran01/.esy/3/b/esy_skia-b4348b22
# esy-build-package: running: 'bash' './esy/build.sh' 'darwin' '/Users/jagran01/.esy/3________________________________________________________________/i/esy_libjpeg_turbo-dc3b4679'
@raw-bin
raw-bin / gist:58d431af744a2a24500bf048aacb1833
Created July 20, 2020 13:18
Error: libncurses.6.dylib invalid code signature while building fish shell from source on macOS
dyld: Library not loaded: /opt/local/lib/libncurses.6.dylib
Referenced from: /Users/raw-bin/Work/repos/fish-shell/build/./fish
Reason: no suitable image found. Did find:
/opt/local/lib/libncurses.6.dylib: code signature in (/opt/local/lib/libncurses.6.dylib) not valid for use in process using Library Validation: mapped file has no cdhash, completely unsigned? Code has to be at least ad-hoc signed.
/opt/local/lib/libncurses.6.dylib: stat() failed with errno=1
/opt/local/lib/libncurses.6.dylib: code signature in (/opt/local/lib/libncurses.6.dylib) not valid for use in process using Library Validation: mapped file has no cdhash, completely unsigned? Code has to be at least ad-hoc signed.
@raw-bin
raw-bin / gist:4022d6e7681a2706169de2df0dd62feb
Created August 13, 2019 12:55
Build failure when building bootimage and the bundled 'basic' kernel
robin@blade:~/Work/experiments/rust/aarch64-mmu/bootimage (git master) [13:47:48]
$ git log --pretty=oneline HEAD -n 1
736ca1bf571f4745e49606017d6cf4e4216605d7 (HEAD -> master, tag: v0.7.7, origin/master, origin/HEAD) bootimage 0.7.7
$ cargo build
.
.
Compiling bootimage v0.7.7 (/Users/robin/Work/experiments/rust/aarch64-mmu/bootimage)
Finished dev [unoptimized + debuginfo] target(s) in 13.55s
@raw-bin
raw-bin / twotwo-wayland.sh
Created February 4, 2019 18:11 — forked from SteveClement/twotwo-wayland.sh
Enlightenment 22 build script for Ubuntu/Debian with Wayland support.
#!/bin/bash
# vi: ts=4:sw=4:et
#
# twotwo.sh
# This script allows you to install/update Enlightenment 22 git version on
# Ubuntu 18.04 or Debian buster (testing), or remove E22 git from your system.
# ********************************************************************
# * This version builds enlightenment with wayland. *
# * That means this requires a very recent Ubuntu or Debian version. *
# * This may not work properly! You've been warned! *
3 int set_affinity_to_cpu(int cpu)
1 {
2 cpu_set_t cpu_mask;
3 int status;
@raw-bin
raw-bin / gist:b5397d837299b5a5980d3bb280b06121
Created December 29, 2017 16:46
ion recipe breakage #2
repo - building ion
cook - ion build
Compiling ion-shell v1.0.0-alpha (file:///home/robin/work/repos/redox/src/cookbook/recipes/ion/build)
error[E0425]: cannot find value `last_pid` in this scope
--> src/lib/sys/redox.rs:219:36
|
219 | if pid == (last_pid as usize) {
| ^^^^^^^^ not found in this scope
warning: unused import: `self::redox::*`
repo - building ion
cook - ion build
Compiling ion-shell v1.0.0-alpha (file:///home/robin/work/repos/redox/src/cookbook/recipes/ion/build)
error: unexpected close delimiter: `}`
--> src/lib/sys/redox.rs:251:1
|
251 | }
| ^
error: Could not compile `ion-shell`.
@raw-bin
raw-bin / gist:95fda9a0ed9ed673e3cb66a4583f4eec
Created December 17, 2017 12:57
Build glue for pre-kstart early init asm code - is this a viable way to do it ?
diff --git a/Cargo.toml b/Cargo.toml
index 45a5681..7a57d03 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,7 @@
[package]
name = "kernel"
version = "0.1.32"
+links = "early_init"
build = "build.rs"
@raw-bin
raw-bin / gist:7f831ca58bbc571fc87d59138127d799
Created December 7, 2017 20:19
Failure with HEAD @ afff2c38480c4c3a1681f283fe882392f76a690a and rustc set to latest nightly (rustup show output below)
[robin@neuron src]$ rustup show
Default host: x86_64-unknown-linux-gnu
installed toolchains
--------------------
stable-x86_64-unknown-linux-gnu (default)
nightly-2017-11-20-x86_64-unknown-linux-gnu
nightly-2017-11-27-x86_64-unknown-linux-gnu
nightly-x86_64-unknown-linux-gnu
@raw-bin
raw-bin / gist:6b8b9f492d204ecad3716082a9dd6ee7
Created December 7, 2017 19:02
redox build failure, fresh checkout with HEAD @ afff2c38480c4c3a1681f283fe882392f76a690a, using nightly-2017-11-27-x86_64-unknown-linux-gnu
repo - building redoxfs
cook - redoxfs build
Compiling redoxfs v0.3.2 (file:///home/robin/work/repos/redox/src/cookbook/recipes/redoxfs/build)
error: unnecessary `unsafe` block
--> src/ex_node.rs:31:9
|
31 | / unsafe {
32 | | f.debug_struct("ExNode")
33 | | .field("prev", &self.prev)
34 | | .field("next", &self.next)