gem install jekyll failed on windows 8 because of stemmer - ruby

Im trying to install jekyll on windows 8 but its getting failed because of stemmer. Please give me a good solutions.
Here is my comp config.
*Windows 8 Pro 64-bit
Intel Pentium Dual 1.6Ghz
2GB RAM*
and version of ruby and gem.
$ruby -v
ruby 2.1.5p273 (2014-11-13 revision 48405) [i386-mingw32]
$ gem --version
2.4.6
Even I have installed Ruby DevKit
DevKit-mingw64-64-4.7.2-20130224-1432-sfx
And this is what im getting while installing Jekyll.
$ gem install jekyll
Temporarily enhancing PATH to include DevKit...
Building native extensions. This could take a while...
ERROR: Error installing jekyll:
ERROR: Failed to build gem native extension.
c:/Ruby21/bin/ruby.exe -r ./siteconf20150302-1732-9b3i52.rb extconf.rb
creating Makefile
make "DESTDIR=" clean
make "DESTDIR="
generating stemmer-i386-mingw32.def
compiling porter.c
porter.c: In function 'step1ab':
porter.c:233:4: warning: passing argument 2 of 'ends' discards 'const' qualifier
from pointer target type [enabled by default]
porter.c:182:12: note: expected 'char *' but argument is of type 'const char *'
porter.c:234:7: warning: passing argument 2 of 'ends' discards 'const' qualifier
from pointer target type [enabled by default]
porter.c:182:12: note: expected 'char *' but argument is of type 'const char *'
.
.
.
.
.
.
porter.c:238:4: warning: passing argument 2 of 'ends' discards 'const' qualifier
from pointer target type [enabled by default]
porter.c:182:12: note: expected 'char *' but argument is of type 'const char *'
compiling porter_wrap.c
In file included from c:/Ruby21/include/ruby-2.1.0/ruby.h:33:0,
from porter_wrap.c:1:
c:/Ruby21/include/ruby-2.1.0/ruby/ruby.h:109:14: error: size of array 'ruby_chec
k_sizeof_voidp' is negative
In file included from c:/Ruby21/include/ruby-2.1.0/ruby.h:33:0,
from porter_wrap.c:1:
c:/Ruby21/include/ruby-2.1.0/ruby/ruby.h: In function 'rb_obj_wb_unprotect':
c:/Ruby21/include/ruby-2.1.0/ruby/ruby.h:1234:9: warning: cast to pointer from i
nteger of different size [-Wint-to-pointer-cast]
c:/Ruby21/include/ruby-2.1.0/ruby/ruby.h:1235:6: warning: cast to pointer from i
nteger of different size [-Wint-to-pointer-cast]
c:/Ruby21/include/ruby-2.1.0/ruby/ruby.h:1238:2: warning: cast to pointer from i
nteger of different size [-Wint-to-pointer-cast]
c:/Ruby21/include/ruby-2.1.0/ruby/ruby.h: In function 'rb_obj_written':
c:/Ruby21/include/ruby-2.1.0/ruby/ruby.h:1253:9: warning: cast to pointer from i
nteger of different size [-Wint-to-pointer-cast]
c:/Ruby21/include/ruby-2.1.0/ruby/ruby.h: In function 'rb_num2char_inline':
c:/Ruby21/include/ruby-2.1.0/ruby/ruby.h:1324:35: warning: cast to pointer from
integer of different size [-Wint-to-pointer-cast]
c:/Ruby21/include/ruby-2.1.0/ruby/ruby.h:1324:35: warning: cast to pointer from
integer of different size [-Wint-to-pointer-cast]
c:/Ruby21/include/ruby-2.1.0/ruby/ruby.h:1324:35: warning: cast to pointer from
integer of different size [-Wint-to-pointer-cast]
c:/Ruby21/include/ruby-2.1.0/ruby/ruby.h:1325:9: warning: cast to pointer from i
nteger of different size [-Wint-to-pointer-cast]
c:/Ruby21/include/ruby-2.1.0/ruby/ruby.h:1325:9: warning: cast to pointer from i
nteger of different size [-Wint-to-pointer-cast]
c:/Ruby21/include/ruby-2.1.0/ruby/ruby.h:1325:9: warning: cast to pointer from i
nteger of different size [-Wint-to-pointer-cast]
c:/Ruby21/include/ruby-2.1.0/ruby/ruby.h: In function 'rb_class_of':
c:/Ruby21/include/ruby-2.1.0/ruby/ruby.h:1642:12: warning: cast to pointer from
integer of different size [-Wint-to-pointer-cast]
c:/Ruby21/include/ruby-2.1.0/ruby/ruby.h: In function 'rb_type':
c:/Ruby21/include/ruby-2.1.0/ruby/ruby.h:1659:12: warning: cast to pointer from
integer of different size [-Wint-to-pointer-cast]
porter_wrap.c: In function 'stem_word':
porter_wrap.c:26:16: warning: cast to pointer from integer of different size [-W
int-to-pointer-cast]
porter_wrap.c:26:16: warning: cast to pointer from integer of different size [-W
int-to-pointer-cast]
porter_wrap.c:28:7: warning: cast to pointer from integer of different size [-Wi
nt-to-pointer-cast]
porter_wrap.c:28:7: warning: cast to pointer from integer of different size [-Wi
nt-to-pointer-cast]
porter_wrap.c:20:17: warning: unused variable 'i' [-Wunused-variable]
make: *** [porter_wrap.o] Error 1
make failed, exit code 2
Gem files will remain installed in c:/Ruby21/lib/ruby/gems/2.1.0/gems/fast-stemm
er-1.0.2 for inspection.
Results logged to c:/Ruby21/lib/ruby/gems/2.1.0/extensions/x86-mingw32/2.1.0/fas
t-stemmer-1.0.2/gem_make.out

Windows is not officially supported by Jekyll, and will need some tweaks in order to run.
Check out Jekyll's helpful guide to get started.

Related

Error while building Linux Kernel 2.6.10 Error: operand type mismatch for `mov'

I am learning writing Linux Kernel Modules and following the book Linux Device Drivers. which instructs building and configure a kernel of 2.6.x . I am using kernel version 2.6.10. I followed the steps on thegeekstuff.com/compile-linux-kernel
i.e. I after untarring in the /usr/src directory, I did
$ make menuconfig #this opened up a gui
then I saved the config without making any changes, in the hope to enforce default configuration and then
$ make.
when I did make, it gave me this error and the warning’
include/asm/mpspec_def.h:78:2: warning: ‘packed’ attribute ignored for field
of type ‘unsigned char[6]’ [-Wattributes]
arch/i386/kernel/process.c: In function ‘show_regs’:
arch/i386/kernel/process.c:259:2: warning: pointer targets in passing argument 2 of ‘show_trace’ differ in signedness [-Wpointer-sign]
include/asm/processor.h:499:6: note: expected ‘long unsigned int *’ but argument is of type ‘long int *
arch/i386/kernel/process.c: Assembler messages:
arch/i386/kernel/process.c:384: Error: operand type mismatch for mov'
arch/i386/kernel/process.c:385: Error: operand type mismatch formov'
arch/i386/kernel/process.c:461: Error: operand type mismatch for `mov'
include/linux/elfcore.h:92: Error: operand type mismatch for mov'
include/linux/elfcore.h:92: Error: operand type mismatch formov'
arch/i386/kernel/process.c:583: Error: operand type mismatch for mov'
arch/i386/kernel/process.c:584: Error: operand type mismatch formov'
arch/i386/kernel/process.c:591: Error: operand type mismatch for mov'
arch/i386/kernel/process.c:592: Error: operand type mismatch formov'
make1: [arch/i386/kernel/process.o] Error 1
make: [arch/i386/kernel] Error 2
I have not written professional kernel code before so I am not sure if I should make any changes in the code. Can anybody help me with why this error occurred and how it can be removed. I used the default kernel config. prior to calling make using make menu-config.
The error in the process.c is in savesegment(fs,p->thread.fs); (all instances of the error are from the same function)
Thanks
It is not clear from your question that what are the exact steps you did.
This error may be due to some issues in configuration.
Please try the following steps and see if it solves the problem:
> make defconfig #Creates a default config based on your machine architecture
> make
I used a kernel version who version was closer to my native kernel version ~ 3.11.1. and used make oldconfig instead. This was easier than figuring out each configuration setting for my architecture.

ruby-audio 1.6.1 install error (with installed Libsndfile 1.0.25)

Please help me to install ruby-audio 1.6.1
ruby 1.9.3p194 (2012-04-20 revision 35410) [i686-linux]
Libsndfile 1.0.25 already installed.
Here is log:
gem install ruby-audio-1.6.1.gem
Building native extensions. This could take a while...
ERROR: Error installing ruby-audio-1.6.1.gem:
ERROR: Failed to build gem native extension.
/usr/bin/ruby1.9.1 extconf.rb
checking for sndfile.h in /opt/local/include,/usr/local/include,C:/Program Files (x86)/Mega-Nerd/libsndfile/include,C:/Program Files/Mega-Nerd/libsndfile/include... yes
checking for sf_open() in -lsndfile-1... no
checking for sf_open() in -lsndfile... yes
checking for SF_FORMAT_OGG in sndfile.h... yes
creating Makefile
make
compiling ra_buffer.c
ra_buffer.c: In function ‘ra_buffer_index_get’:
ra_buffer.c:277:1: warning: control reaches end of non-void function [-Wreturn-type]
ra_buffer.c: In function ‘ra_buffer_type’:
ra_buffer.c:214:1: warning: control reaches end of non-void function [-Wreturn-type]
compiling ra_soundinfo.c
compiling rubyaudio_ext.c
compiling ra_sound.c
ra_sound.c: In function ‘ra_sound_init’:
ra_sound.c:155:5: error: format not a string literal and no format arguments [-Werror=format-security]
ra_sound.c: In function ‘ra_sound_read_short’:
ra_sound.c:258:1: warning: unused variable ‘channels’ [-Wunused-variable]
ra_sound.c: In function ‘ra_sound_read_int’:
ra_sound.c:259:1: warning: unused variable ‘channels’ [-Wunused-variable]
ra_sound.c: In function ‘ra_sound_read_float’:
ra_sound.c:260:1: warning: unused variable ‘channels’ [-Wunused-variable]
ra_sound.c: In function ‘ra_sound_read_double’:
ra_sound.c:261:1: warning: unused variable ‘channels’ [-Wunused-variable]
In file included from ra_sound.h:6:0,
from ra_sound.c:1:
ra_sound.c: At top level:
ra_soundinfo.h:10:14: warning: ‘ra_soundinfo_allocate’ declared ‘static’ but never defined [-Wunused-function]
ra_soundinfo.h:11:14: warning: ‘ra_soundinfo_free’ declared ‘static’ but never defined [-Wunused-function]
ra_soundinfo.h:14:14: warning: ‘ra_soundinfo_valid’ declared ‘static’ but never defined [-Wunused-function]
ra_soundinfo.h:15:14: warning: ‘ra_soundinfo_frames’ declared ‘static’ but never defined [-Wunused-function]
ra_soundinfo.h:16:14: warning: ‘ra_soundinfo_samplerate’ declared ‘static’ but never defined [-Wunused-function]
ra_soundinfo.h:17:14: warning: ‘ra_soundinfo_samplerate_set’ declared ‘static’ but never defined [-Wunused-function]
ra_soundinfo.h:18:14: warning: ‘ra_soundinfo_channels’ declared ‘static’ but never defined [-Wunused-function]
ra_soundinfo.h:19:14: warning: ‘ra_soundinfo_channels_set’ declared ‘static’ but never defined [-Wunused-function]
ra_soundinfo.h:20:14: warning: ‘ra_soundinfo_format’ declared ‘static’ but never defined [-Wunused-function]
ra_soundinfo.h:21:14: warning: ‘ra_soundinfo_format_set’ declared ‘static’ but never defined [-Wunused-function]
ra_soundinfo.h:22:14: warning: ‘ra_soundinfo_sections’ declared ‘static’ but never defined [-Wunused-function]
ra_soundinfo.h:23:14: warning: ‘ra_soundinfo_seekable’ declared ‘static’ but never defined [-Wunused-function]
In file included from ra_sound.h:7:0,
from ra_sound.c:1:
ra_buffer.h:24:14: warning: ‘ra_buffer_allocate’ declared ‘static’ but never defined [-Wunused-function]
ra_buffer.h:25:14: warning: ‘ra_buffer_free’ declared ‘static’ but never defined [-Wunused-function]
ra_buffer.h:28:14: warning: ‘ra_buffer_init’ declared ‘static’ but never defined [-Wunused-function]
ra_buffer.h:29:14: warning: ‘ra_buffer_init_copy’ declared ‘static’ but never defined [-Wunused-function]
ra_buffer.h:30:14: warning: ‘ra_buffer_channels’ declared ‘static’ but never defined [-Wunused-function]
ra_buffer.h:31:14: warning: ‘ra_buffer_size’ declared ‘static’ but never defined [-Wunused-function]
ra_buffer.h:32:14: warning: ‘ra_buffer_real_size’ declared ‘static’ but never defined [-Wunused-function]
ra_buffer.h:33:14: warning: ‘ra_buffer_real_size_set’ declared ‘static’ but never defined [-Wunused-function]
ra_buffer.h:34:14: warning: ‘ra_buffer_type’ declared ‘static’ but never defined [-Wunused-function]
ra_buffer.h:35:14: warning: ‘ra_buffer_each’ declared ‘static’ but never defined [-Wunused-function]
ra_buffer.h:36:14: warning: ‘ra_buffer_aref’ declared ‘static’ but never defined [-Wunused-function]
ra_buffer.h:37:14: warning: ‘ra_buffer_index_get’ declared ‘static’ but never defined [-Wunused-function]
ra_buffer.h:38:14: warning: ‘ra_buffer_aset’ declared ‘static’ but never defined [-Wunused-function]
ra_buffer.h:39:13: warning: ‘ra_buffer_index_set’ declared ‘static’ but never defined [-Wunused-function]
cc1: some warnings being treated as errors
make: *** [ra_sound.o] Error 1
Gem files will remain installed in /usr/lib/ruby/gems/1.9.1/gems/ruby-audio-1.6.1 for inspection.
Results logged to /usr/lib/ruby/gems/1.9.1/gems/ruby-audio-1.6.1/ext/rubyaudio_ext/gem_make.out
Install with the -Wno-error=format-security flag:
gem install ruby-audio -- --with-cflags=-Wno-error=format-security
I ran into this as well (on Ubuntu 13.10) and I believe the underlying issue is the same as in this linked question -- the default compiler flags will raise a security error.
Passing the -Wno-error=format-security compiler flag when installing the gem ignores the security error and allows you to install the gem.
To fix that error
ra_sound.c:155:5: error: format not a string literal and no format arguments [-Werror=format-security]
I replaced (file ra_sound.c line 155) by that line:
if(snd->snd == NULL) rb_raise(eRubyAudioError, "fkn_error");

install jekyll in windows7

env: windows 7-64bit DevKit-mingw64-32-4.7.2-20130224-1151-sfx ruby200-64
I already install devkit and ruby. then I run gem install jekyll
looks like something wrong in ruby.h
it has some errors like follows:
ERROR: Error installing jekyll:
ERROR: Failed to build gem native extension.
d:/Ruby200-x64/bin/ruby.exe extconf.rb
creating Makefile
make "DESTDIR="
generating stemmer-x64-mingw32.def
compiling porter.c
porter.c: In function 'step1ab':
porter.c:233:4: warning: passing argument 2 of 'ends' discards qualifiers from p
...
..
compiling porter_wrap.c
In file included from d:/Ruby200-x64/include/ruby-2.0.0/ruby.h:33:0,from porter_wrap.c:1:
d:/Ruby200-x64/include/ruby-2.0.0/ruby/ruby.h:125:14: error: size of array 'ruby _ check_sizeof_voidp' is negative
In file included from d:/Ruby200-x64/include/ruby-2.0.0/ruby.h:33:0,
from porter_wrap.c:1:
d:/Ruby200-x64/include/ruby-2.0.0/ruby/ruby.h: In function 'rb_float_value':
d:/Ruby200-x64/include/ruby-2.0.0/ruby/ruby.h:785:10: warning: cast to pointer from integer of different size
d:/Ruby200-x64/include/ruby-2.0.0/ruby/ruby.h: In function 'rb_num2char_inline':
d:/Ruby200-x64/include/ruby-2.0.0/ruby/ruby.h:1214:35: warning: cast to pointer from integer of different size
d:/Ruby200-x64/include/ruby-2.0.0/ruby/ruby.h:1214:35: warning: cast to pointer from integer of different size
d:/Ruby200-x64/include/ruby-2.0.0/ruby/ruby.h:1214:35: warning: cast to pointer from integer of different size
d:/Ruby200-x64/include/ruby-2.0.0/ruby/ruby.h:1215:9: warning: cast to pointer from integer of different size
d:/Ruby200-x64/include/ruby-2.0.0/ruby/ruby.h:1215:9: warning: cast to pointer from integer of different size
d:/Ruby200-x64/include/ruby-2.0.0/ruby/ruby.h:1215:9: warning: cast to pointer from integer of different size
d:/Ruby200-x64/include/ruby-2.0.0/ruby/ruby.h: In function 'rb_class_of':
d:/Ruby200-x64/include/ruby-2.0.0/ruby/ruby.h:1515:12: warning: cast to pointer from integer of different size
d:/Ruby200-x64/include/ruby-2.0.0/ruby/ruby.h: In function 'rb_type':
d:/Ruby200-x64/include/ruby-2.0.0/ruby/ruby.h:1532:12: warning: cast to pointer from integer of different size
porter_wrap.c: In function 'stem_word':
porter_wrap.c:26:16: warning: cast to pointer from integer of different size
porter_wrap.c:26:16: warning: cast to pointer from integer of different size
porter_wrap.c:26:16: warning: cast to pointer from integer of different size
porter_wrap.c:27:16: warning: cast to pointer from integer of different size
porter_wrap.c:27:16: warning: cast to pointer from integer of different size
porter_wrap.c:27:16: warning: cast to pointer from integer of different size
porter_wrap.c:27:34: warning: cast to pointer from integer of different size
porter_wrap.c:27:34: warning: cast to pointer from integer of different size
porter_wrap.c:27:34: warning: cast to pointer from integer of different size
porter_wrap.c:28:7: warning: cast to pointer from integer of different size
porter_wrap.c:28:7: warning: cast to pointer from integer of different size
porter_wrap.c:28:7: warning: cast to pointer from integer of different size
porter_wrap.c:20:17: warning: unused variable 'i'
make: *** [porter_wrap.o] Error 1
Gem files will remain installed in d:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/fast-stemmer-1.0.2 for inspection.
Results logged to d:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/fast-stemmer-1.0.2/ext/gem_make.out
Successfully installed liquid-2.5.1
Temporarily enhancing PATH to include DevKit...
Building native extensions. This could take a while...
Any assistance would be helpful.thx
Your Ruby is Ruby200-x64, which is 64-bit, so please download the 64-bit DevKit to match your Ruby.
The latest 64-bit DevKit is DevKit-mingw64-64-4.7.2-20130224-1432-sfx.exe, which can be found here, while currently yours is 32-bit DevKit-mingw64-32-4.7.2-20130224-1151-sfx.
Did you notice the difference? Yours is mingw64-32, but you need mingw64-64.
Another issue I encountered here is using Ruby2.00 which seems not an idea version.
The version worked for me is:
Ruby 1.9.3-p448
DevKit-tdm-32-4.5.2-20111229-1559-sfx.exe
Basically it's just the version issue, other than that , just follow articles you can search around.
Details about where to get these packages:Issue installing jekyll on windows

Unable To Install posix-spawn on FreeBSD

I am attempting to get octopress going and having trouble installing the required package posix-spawn.
Here this is the error output:
ERROR: Error installing posix-spawn:
ERROR: Failed to build gem native extension.
/home/private/.rvm/rubies/ruby-1.9.3-p392/bin/ruby extconf.rb
creating Makefile
make
compiling posix-spawn.c
posix-spawn.c:9:19: error: spawn.h: No such file or directory
In file included from /home/private/.rvm/rubies/ruby-1.9.3-p392/include/ruby- 1.9.1/ruby/ruby.h:24,
from /home/private/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/ruby.h:32,
from posix-spawn.c:14:
/home/private/.rvm/rubies/ruby-1.9.3-p392/include/ruby-1.9.1/i386- freebsd8.3/ruby/config.h:17:1: warning: "_GNU_SOURCE" redefined
posix-spawn.c:3:1: warning: this is the location of the previous definition
posix-spawn.c:103: error: expected declaration specifiers or '...' before 'posix_spawn_file_actions_t'
posix-spawn.c: In function 'posixspawn_file_actions_addclose':
posix-spawn.c:113: warning: implicit declaration of function 'posix_spawn_file_actions_addclose'
posix-spawn.c:113: error: 'fops' undeclared (first use in this function)
posix-spawn.c:113: error: (Each undeclared identifier is reported only once
posix-spawn.c:113: error: for each function it appears in.)
posix-spawn.c: At top level:
posix-spawn.c:129: error: expected declaration specifiers or '...' before 'posix_spawn_file_actions_t'
posix-spawn.c: In function 'posixspawn_file_actions_adddup2':
posix-spawn.c:141: warning: implicit declaration of function 'posix_spawn_file_actions_adddup2'
posix-spawn.c:141: error: 'fops' undeclared (first use in this function)
posix-spawn.c: At top level:
posix-spawn.c:155: error: expected declaration specifiers or '...' before 'posix_spawn_file_actions_t'
posix-spawn.c: In function 'posixspawn_file_actions_addopen':
posix-spawn.c:173: warning: implicit declaration of function 'posix_spawn_file_actions_addopen'
posix-spawn.c:173: error: 'fops' undeclared (first use in this function)
posix-spawn.c: At top level:
posix-spawn.c:186: error: expected declaration specifiers or '...' before 'posix_spawn_file_actions_t'
posix-spawn.c: In function 'posixspawn_file_actions_operations_iter':
posix-spawn.c:190: error: 'fops' undeclared (first use in this function)
posix-spawn.c:190: error: too many arguments to function 'posixspawn_file_actions_addclose'
posix-spawn.c:193: error: too many arguments to function 'posixspawn_file_actions_adddup2'
posix-spawn.c:196: error: too many arguments to function 'posixspawn_file_actions_addopen'
posix-spawn.c: At top level:
posix-spawn.c:210: error: expected ')' before '*' token
posix-spawn.c:230: error: expected declaration specifiers or '...' before 'posix_spawnattr_t'
posix-spawn.c: In function 'posixspawn_set_pgroup':
posix-spawn.c:237: error: 'POSIX_SPAWN_SETPGROUP' undeclared (first use in this function)
posix-spawn.c:238: warning: implicit declaration of function 'posix_spawnattr_setpgroup'
posix-spawn.c:238: error: 'pattr' undeclared (first use in this function)
posix-spawn.c: In function 'each_env_check_i':
posix-spawn.c:253: warning: unused parameter 'arg'
posix-spawn.c: In function 'rb_posixspawn_pspawn':
posix-spawn.c:330: error: 'posix_spawn_file_actions_t' undeclared (first use in this function)
posix-spawn.c:330: error: expected ';' before 'fops'
posix-spawn.c:331: error: 'posix_spawnattr_t' undeclared (first use in this function)
posix-spawn.c:331: error: expected ';' before 'attr'
posix-spawn.c:332: warning: ISO C90 forbids mixed declarations and code
posix-spawn.c:341: warning: ISO C90 forbids mixed declarations and code
posix-spawn.c:381: warning: ISO C90 forbids mixed declarations and code
posix-spawn.c:391: warning: implicit declaration of function 'posixspawn_file_actions_init'
posix-spawn.c:391: error: 'fops' undeclared (first use in this function)
posix-spawn.c:392: warning: implicit declaration of function 'posix_spawnattr_init'
posix-spawn.c:392: error: 'attr' undeclared (first use in this function)
posix-spawn.c:395: error: 'POSIX_SPAWN_SETSIGMASK' undeclared (first use in this function)
posix-spawn.c:397: warning: implicit declaration of function 'posix_spawnattr_setsigmask'
posix-spawn.c:407: error: too many arguments to function 'posixspawn_set_pgroup'
posix-spawn.c:409: warning: implicit declaration of function 'posix_spawnattr_setflags'
posix-spawn.c:418: warning: implicit declaration of function 'posix_spawnp'
posix-spawn.c:427: warning: implicit declaration of function 'posix_spawn_file_actions_destroy'
posix-spawn.c:428: warning: implicit declaration of function 'posix_spawnattr_destroy'
posix-spawn.c:320: warning: unused parameter 'self'
*** Error code 1
I found this comment in Github that says to make sure spawn.h is in my /usr/include/ folder, but that seemed to have no effect.
Any other thoughts?
This problem was solved by the author but apparently never made its way into the ruby gems repo. You can see about it here.
You can clone the repo and compile it locally and this did the trick for me:
git clone https://github.com/rtomayko/posix-spawn.git
cd posix-spawn/
gem build posix-spawn.gemspec
gem install posix-spawn*.gem

Error in compiling a Linux kernel

How do you read the errors?
I run after having .config -file at /home/aal/build/kernel.
/usr/src/linux-2.6$ make O=/home/aal/build/kernel/
I get
... cut ...
CC [M] drivers/staging/go7007/s2250-board.o
/usr/src/linux-2.6/drivers/staging/go7007/s2250-board.c:24:26: error: s2250-loader.h: No such file or directory
/usr/src/linux-2.6/drivers/staging/go7007/s2250-board.c: In function ‘read_reg_fp’:
/usr/src/linux-2.6/drivers/staging/go7007/s2250-board.c:264: warning: passing argument 1 of ‘down_interruptible’ from incompatible pointer type
/usr/src/linux-2.6/include/linux/semaphore.h:43: note: expected ‘struct semaphore *’ but argument is of type ‘struct mutex *’
/usr/src/linux-2.6/drivers/staging/go7007/s2250-board.c:273: warning: passing argument 1 of ‘up’ from incompatible pointer type
/usr/src/linux-2.6/include/linux/semaphore.h:47: note: expected ‘struct semaphore *’ but argument is of type ‘struct mutex *’
/usr/src/linux-2.6/drivers/staging/go7007/s2250-board.c: In function ‘s2250_init’:
/usr/src/linux-2.6/drivers/staging/go7007/s2250-board.c:670: error: implicit declaration of function ‘s2250loader_init’
/usr/src/linux-2.6/drivers/staging/go7007/s2250-board.c:676: error: implicit declaration of function ‘s2250loader_cleanup’
make[4]: *** [drivers/staging/go7007/s2250-board.o] Error 1
make[3]: *** [drivers/staging/go7007] Error 2
make[2]: *** [drivers/staging] Error 2
make[1]: *** [drivers] Error 2
make: *** [sub-make] Error 2
Remove the reference to that driver from your .config and the issue will go away. Alternately if you need the driver appropriate the source.
All of those errors are caused by the missing header.
The errors are in a staging driver, i.e. either not yet, or already not stable driver (take a look e.g. here for a discussion of the staging tree.) You can disable these in kernel config Device Drivers --> Staging Drivers.
The errors probably all stem from the missing file in the first error.
I'd suspect include path or incomplete install of the sources...

Resources