People,
After moving an old Jekyll site from running in a Docker container to running directly in the GitLab environment, I am stuck on the bug below - any help about how to resolve the problem would be greatly appreciated! (I tried using v1.2.0 instead of the original v1.1.2 but got the same result).
Regards,
Phil.
Running with gitlab-runner 12.8.0 (1b659122)
on docker-auto-scale 0277ea0f
Using Docker executor with image ruby:latest ...
00:32
Pulling docker image ruby:latest ...
Using docker image sha256:556e761e192c4354fc0477020ca4c1bc70908e14040e61d82204a2a8b05e49a6 for ruby:latest ...
Running on runner-0277ea0f-project-17249470-concurrent-0 via runner-0277ea0f-srm-1583214053-738b3938...
00:05
$ eval "$CI_PRE_CLONE_SCRIPT"
00:02
Fetching changes with git depth set to 50...
Initialized empty Git repository in /builds/philip_rhoades/lev/.git/
Created fresh repository.
From https://gitlab.com/philip_rhoades/lev
* [new ref] refs/pipelines/122721331 -> refs/pipelines/122721331
* [new branch] master -> origin/master
Checking out f947c89f as master...
Skipping Git submodules setup
$ gem install bundler
00:21
Successfully installed bundler-2.1.4
1 gem installed
$ bundle update jekyll-watch
Fetching gem metadata from https://rubygems.org/..........
Fetching gem metadata from https://rubygems.org/.
Resolving dependencies...
Fetching blankslate 2.1.2.4
Installing blankslate 2.1.2.4
Using bundler 2.1.4
Fetching fast-stemmer 1.0.2
Installing fast-stemmer 1.0.2 with native extensions
Fetching classifier-reborn 2.0.3
Installing classifier-reborn 2.0.3
Fetching coffee-script-source 1.9.1
Installing coffee-script-source 1.9.1
Fetching execjs 2.4.0
Installing execjs 2.4.0
Fetching coffee-script 2.3.0
Installing coffee-script 2.3.0
Fetching colorator 0.1
Installing colorator 0.1
Fetching ffi 1.12.2 (was 1.9.8)
Installing ffi 1.12.2 (was 1.9.8) with native extensions
Fetching jekyll-coffeescript 1.0.1
Installing jekyll-coffeescript 1.0.1
Fetching jekyll-gist 1.2.1
Installing jekyll-gist 1.2.1
Fetching jekyll-paginate 1.1.0
Installing jekyll-paginate 1.1.0
Fetching sass 3.4.13
Installing sass 3.4.13
Fetching jekyll-sass-converter 1.3.0
Installing jekyll-sass-converter 1.3.0
Fetching rb-fsevent 0.10.3 (was 0.9.4)
Installing rb-fsevent 0.10.3 (was 0.9.4)
Fetching rb-inotify 0.10.1 (was 0.9.5)
Installing rb-inotify 0.10.1 (was 0.9.5)
Fetching listen 3.2.1 (was 2.10.0)
Installing listen 3.2.1 (was 2.10.0)
Fetching jekyll-watch 1.5.1 (was 1.2.1)
Installing jekyll-watch 1.5.1 (was 1.2.1)
Fetching kramdown 1.6.0
Installing kramdown 1.6.0
Fetching liquid 2.6.2
Installing liquid 2.6.2
Fetching mercenary 0.3.5
Installing mercenary 0.3.5
Fetching posix-spawn 0.3.10
Installing posix-spawn 0.3.10 with native extensions
Fetching yajl-ruby 1.2.0
Installing yajl-ruby 1.2.0 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
current directory: /usr/local/bundle/gems/yajl-ruby-1.2.0/ext/yajl
/usr/local/bin/ruby -I /usr/local/lib/ruby/2.7.0 -r
./siteconf20200303-19-ybh4p2.rb extconf.rb
creating Makefile
current directory: /usr/local/bundle/gems/yajl-ruby-1.2.0/ext/yajl
make "DESTDIR=" clean
current directory: /usr/local/bundle/gems/yajl-ruby-1.2.0/ext/yajl
make "DESTDIR="
compiling yajl.c
compiling yajl_alloc.c
compiling yajl_buf.c
compiling yajl_encode.c
compiling yajl_ext.c
yajl_ext.c: In function ‘rb_yajl_parser_parse’:
yajl_ext.c:472:17: warning: variable ‘stat’ set but not used
[-Wunused-but-set-variable]
yajl_status stat;
^~~~
In file included from /usr/local/include/ruby-2.7.0/ruby.h:33,
from yajl_ext.h:32,
from yajl_ext.c:24:
yajl_ext.c: In function ‘rb_yajl_encoder_enable_json_gem_ext’:
yajl_ext.c:882:22: error: ‘rb_cFixnum’ undeclared (first use in this function);
did you mean ‘rb_isalnum’?
rb_define_method(rb_cFixnum, "to_json", rb_yajl_json_ext_fixnum_to_json,
-1);
^~~~~~~~~~
/usr/local/include/ruby-2.7.0/ruby/ruby.h:2799:104: note: in definition of macro
‘rb_define_method’
#define rb_define_method(klass, mid, func, arity)
rb_define_method_choose_prototypem3((arity),(func))((klass),(mid),(func),(arity));
^~~~~
yajl_ext.c:882:22: note: each undeclared identifier is reported only once for
each function it appears in
rb_define_method(rb_cFixnum, "to_json", rb_yajl_json_ext_fixnum_to_json,
-1);
^~~~~~~~~~
/usr/local/include/ruby-2.7.0/ruby/ruby.h:2799:104: note: in definition of macro
‘rb_define_method’
#define rb_define_method(klass, mid, func, arity)
rb_define_method_choose_prototypem3((arity),(func))((klass),(mid),(func),(arity));
^~~~~
yajl_ext.c: At top level:
cc1: warning: unrecognized command line option ‘-Wno-self-assign’
cc1: warning: unrecognized command line option ‘-Wno-parentheses-equality’
cc1: warning: unrecognized command line option ‘-Wno-constant-logical-operand’
make: *** [Makefile:245: yajl_ext.o] Error 1
make failed, exit code 2
Gem files will remain installed in /usr/local/bundle/gems/yajl-ruby-1.2.0 for
inspection.
Results logged to
/usr/local/bundle/extensions/x86_64-linux/2.7.0/yajl-ruby-1.2.0/gem_make.out
An error occurred while installing yajl-ruby (1.2.0), and Bundler cannot
continue.
Make sure that `gem install yajl-ruby -v '1.2.0' --source
'https://rubygems.org/'` succeeds before bundling.
In Gemfile:
octopress was resolved to 3.0.0.rc.35, which depends on
octopress-escape-code was resolved to 2.0.6, which depends on
octopress-hooks was resolved to 2.6.0, which depends on
jekyll was resolved to 2.5.3, which depends on
pygments.rb was resolved to 0.6.3, which depends on
yajl-ruby
ERROR: Job failed: exit code 1