Skip to content

Instantly share code, notes, and snippets.

View nidev's full-sized avatar

Changbeom Yun (Nidev) nidev

View GitHub Profile
@nidev
nidev / output.log
Created June 2, 2015 08:30
rubysl-resolv : NoMethodError in Resolv#use_ipv6?
[rbitter] Try to reconnect...
An exception occurred running /home/nidev/.rbenv/versions/rbx-2.5.5/bin/rbitter:
undefined method `ip_address_list' on Socket (Class) (NoMethodError)
Backtrace:
Kernel(Class)#ip_address_list (method_missing) at kernel/delta/kernel.rb:78
Resolv::DNS#use_ipv6? at .rbenv/versions/rbx-2.5.5/gems/gems
/rubysl-resolv-2.1.2/lib/rubysl/resolv
@nidev
nidev / test.c
Created May 31, 2015 07:43
The taste of raw struct
#include <stdio.h>
#include <stdlib.h>
#define TRUE 1
#define FALSE 0
typedef struct Node {
int val;
int set;
struct Node *next;
@nidev
nidev / build.log
Created May 3, 2015 12:58
Rubinius 2.5.3 build error with locale LANG=C and LC_ALL=C
nidev@lrig-hanayo /tmp/rubinius-2.5.3 % rake build
GEN vm/gen/config_variables.h
/home/nidev/.rbenv/versions/1.9.3-p551/bin/ruby vm/codegen/config_vars.rb vm/gen/config_variables.h
/home/nidev/.rbenv/versions/1.9.3-p551/bin/ruby vm/codegen/encoding_extract.rb /tmp/rubinius-2.5.3/vendor/oniguruma vm/gen/encoding_database.cpp
mkdir -p /tmp/rubinius-2.5.3/staging//library/encoding/converter
/home/nidev/.rbenv/versions/1.9.3-p551/bin/ruby vm/codegen/transcoders_extract.rb /tmp/rubinius-2.5.3/vendor/oniguruma/enc/trans vm/gen/transcoder_database.cpp
/home/nidev/.rbenv/versions/1.9.3-p551/bin/ruby vm/codegen/field_extract.rb vm/builtin/basic_object.hpp vm/builtin/object.hpp vm/builtin/integer.hpp vm/builtin/fixnum.hpp vm/builtin/array.hpp vm/builtin/bignum.hpp vm/builtin/executable.hpp vm/builtin/access_variable.hpp vm/builtin/alias.hpp vm/builtin/block_environment.hpp vm/builtin/block_as_method.hpp vm/builtin/byte_array.hpp vm/builtin/io.hpp vm/builtin/channel.hpp vm/builtin/module.hpp vm/builtin/constant_table.hp
@nidev
nidev / dart-9999.ebuild
Created April 18, 2015 06:53
dev-lang/dart-9999 standalone ebuild
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=5
DESCRIPTION="Dart is a cohesive, scalable platform for building apps that run on the web. (Full suite)"
HOMEPAGE="https://www.dartlang.org/"
SRC_URI=""
@nidev
nidev / 3.5 llvm-config.h
Created March 31, 2015 08:53
LLVM 3.5 & LLVM 3.6
/* include/llvm/Config/llvm-config.h. Generated from llvm-config.h.in by configure. */
/*===------- llvm/Config/llvm-config.h - llvm configuration -------*- C -*-===*/
/* */
/* The LLVM Compiler Infrastructure */
/* */
/* This file is distributed under the University of Illinois Open Source */
/* License. See LICENSE.TXT for details. */
/* */
/*===----------------------------------------------------------------------===*/
@nidev
nidev / err.log
Created March 31, 2015 07:39
MCJIT branch build error (with --trace)
** Invoke build (first_time)
** Invoke build:build (first_time)
** Invoke vm/vm (first_time)
** Invoke vm/gen/config_variables.h (first_time)
** Invoke library/rubinius/configuration.rb (first_time, not_needed)
** Invoke config.rb (first_time, not_needed)
** Execute vm/gen/config_variables.h
/home/nidev/.rbenv/versions/2.2.1/bin/ruby vm/codegen/config_vars.rb vm/gen/config_variables.h
GEN vm/gen/config_variables.h
** Invoke vm/gen/signature.h (first_time)
@nidev
nidev / gdb.initial.log
Last active August 29, 2015 14:17
Rbx-2.5.2 hangs up with 100% CPU usage on only one core.
nidev@yuuki-yuuna ~ % udo gdb attach -p 29571
zsh: correct 'udo' to 'sudo' [nyae]? y
GNU gdb (GDB) 7.9
Copyright (C) 2015 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-unknown-linux-gnu".
Type "show configuration" for configuration details.
@nidev
nidev / bundle.log
Created March 17, 2015 15:35
bundle log for Rubinius issue #3332
nidev@yuuki-yuuna ~/test/bundling % bundle
Fetching git://github.com/activeadmin/activeadmin.git
Fetching git://github.com/stefanoverna/activeadmin-dragonfly.git
Fetching git://github.com/stefanoverna/activeadmin-wysihtml5.git
Fetching git://github.com/wyde19/moysklad.git
Fetching gem metadata from https://rubygems.org/........
Fetching version metadata from https://rubygems.org/...
Fetching dependency metadata from https://rubygems.org/..
Resolving dependencies...
Using rake 10.4.2
@nidev
nidev / cpuinfo
Created March 15, 2015 14:54
cpuinfo during building rbx-2.5.2 + rbenv + ruby-build (on failure)
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 69
model name : Intel(R) Core(TM) i5-4210U CPU @ 1.70GHz
stepping : 1
microcode : 0x10
cpu MHz : 1700.250
cache size : 3072 KB
physical id : 0
@nidev
nidev / config.rb
Created March 15, 2015 14:50
config.rb and configure.log of rbx-2.5.2 + rbenv + ruby-build (on failure)
module Rubinius
config = {}
config[:config_file] = "/tmp/ruby-build.20150315230638.4558/rubinius-2.5.2/config.rb"
config[:command_line] = ["--prefix=/home/nidev/.rbenv/versions/rbx-2.5.2"]
config[:build_make] = "make"
config[:build_rake] = "rake"
config[:build_perl] = "perl"
config[:llvm_enabled] = true
config[:llvm_path] = nil
config[:llvm_system_name] = nil