Skip to content

Instantly share code, notes, and snippets.

(cd /home/kikairoya/rpmbuild/BUILD/wandbox-rust-head-20140620/src/libuv/ && /usr/bin/python2.7 ./gyp_uv.py -f make -Dtarget_arch=x64 -D ninja -DOS=linux -Goutput_dir=/home/kikairoya/rpmbuild/BUILD/wandbox-rust-head-20140620/x86_64-unknown-linux-gnu/rt/libuv --generator-output /home/kikairoya/rpmbuild/BUILD/wandbox-rust-head-20140620/x86_64-unknown-linux-gnu/rt/libuv)
['-f', 'make', '-Dtarget_arch=x64', '-D', 'ninja', '-DOS=linux', '-Goutput_dir=/home/kikairoya/rpmbuild/BUILD/wandbox-rust-head-20140620/x86_64-unknown-linux-gnu/rt/libuv', '--generator-output', '/home/kikairoya/rpmbuild/BUILD/wandbox-rust-head-20140620/x86_64-unknown-linux-gnu/rt/libuv', '/home/kikairoya/rpmbuild/BUILD/wandbox-rust-head-20140620/src/libuv/uv.gyp', '-I', '/home/kikairoya/rpmbuild/BUILD/wandbox-rust-head-20140620/src/libuv/common.gypi', '--depth=.', '-Dgcc_version=48', '-Dclang=0', '-Dhost_arch=x64', '-Duv_library=static_library', '-Dcomponent=static_library']
Traceback (most recent call last):
File "./gyp_uv.py", line 102, in <
error: linking with `/opt/wandbox/gcc-4.8.2/bin/g++` failed: exit code: 1
note: /opt/wandbox/gcc-4.8.2/bin/g++ '-m64' '-L' '/home/kikairoya/rpmbuild/BUILD/wandbox-rust-head-20140620/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib' '-o' 'x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustuv-ede8cb89-0.11.0-pre.so' 'x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib/rustuv.o' '-lmorestack' 'x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib/rustuv.metadata.o' '-nodefaultlibs' '-Wl,--as-needed' '-Wl,-O1' '-L' '/home/kikairoya/rpmbuild/BUILD/wandbox-rust-head-20140620/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib' '-lstd-59beb4f7-0.11.0-pre' '-L' '/home/kikairoya/rpmbuild/BUILD/wandbox-rust-head-20140620/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib' '-lsync-305341d2-0.11.0-pre' '-L' '/home/kikairoya/rpmbuild/BUILD/wandbox-rust-head-20140620/x86_64-unknown-linux-g
%define gccver 4.8.2
Summary: rust for wandbox
Name: wandbox-rust-head
Version: %(eval date +%Y%m%d)
Release: 1
License: Apache
Group: wandbox
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
Requires: wandbox-gcc-%{gccver} wandbox-libuv
BuildRequires: libffi-dev
@kikairoya
kikairoya / netctl
Created August 17, 2014 11:00
fake netctl script for vmware-suspend
#!/bin/sh
case "$0" in
store)
;;
resume)
systemctl restart dhcpcd
;;
stop-all)
;;
@kikairoya
kikairoya / dropbox.service
Created August 17, 2014 11:18
~/.config/systemd/user/dropbox.service
[Unit]
Description=Dropbox as a systemd service
[Service]
Type=forking
ExecStart=/usr/bin/dropbox start
ExecStop=/usr/bin/dropbox stop
PIDFile=%h/.dropbox/dropbox.pid
[Install]
/* modified levenshtein distance calculation
This program can be used, redistributed or modified under any of
Boost Software License 1.0, GPL v2 or GPL v3
copyright(c) 2014 kikairoya <kikairoya@gmail.com>
*/
#include <string.h>
// auto convert input and output encoding
// copyright (c) 2014 kikairoya <kikairoya@gmail.com>
// this file can use, redistribute and/or modify under
// Boost Software License 1.0 or GNU GPLv2
//
// usage:
// $ ${something outputs UTF-8,CP932,eucJP} | LANG=ja_JP.eucJP autoconv
// --> converts stdout encoding to eucJP
// $ LANG=ja_JP.UTF-8 autoconv ${something outputs UTF-8,CP932,eucJP}
// --> prints stdout and stderr encoding to UTF-8
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v1.4.11 (GNU/Linux)
mQENBFVX6JsBCADNgqCiacKJqj9eoMNz55r3OzPlTMU7nwHdfrU+6Vq+iKhDMQwq
rEt77sUqJfzjAn6DzorzhoGPzBH4RJQlYnquWB7ZmO3HG9j+BgBSWGUYYZWcvyvQ
FlDlwk3bgh2mHyWKhuEgFfKXB2pLX1WYkNSJtKGCd3O4OwZJyfT2il78R+6Ffl6k
cvSK9Hkeupu3wuBau5tZC/B1ovMZXycXw2OYNoN9sdnkurQA49kHlq7aX88v0Ug+
cDj0h9wuvuwYSjkNRBdKzl/HVm6j87kOXhCTbb0wZ2+BOhXuD6CMpJ9UlTqUM56T
M+dLL818wcjzPJr+Y70GLHmxW/X51X4VnChlABEBAAG0NFRvbW9oaXJvIEthc2hp
d2FkYSAoa2lrYWlyb3lhKSA8a2lrYWlyb3lhQGdtYWlsLmNvbT6JATgEEwECACIF
#include <functional>
#include <tuple>
namespace detail {
template <int N>
struct placeholder { };
}
namespace std {
template <int N>
INCLUDES=src src_api src_sys src_usb
CC=h8300-elf-gcc -std=gnu99 -msx -mint32 -c $(addprefix -I, $(INCLUDES))
CFLAGS=-O0 -g3 -Wall
CXX=h8300-elf-g++ -msx -mint32 -c $(addprefix -I, $(INCLUDES))
CXXFLAGS=$(CFLAGS) -fno-rtti -fno-exceptions
AS=h8300-elf-gcc -msx -mint32 -Xassembler $(addprefix -I, $(INCLUDES))
ASFLAGS=-g3
LINK=h8300-elf-gcc -msx -mint32 -nostartfiles -nodefaultlibs
LINKFLAGS=-g3
OBJCOPY=h8300-elf-objcopy