Skip to content

Instantly share code, notes, and snippets.

Created September 24, 2016 15:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/b4e6a60b6de555939e2e2afe19178863 to your computer and use it in GitHub Desktop.
Save anonymous/b4e6a60b6de555939e2e2afe19178863 to your computer and use it in GitHub Desktop.
Executing "sudo -u gitlab -H make install" fails, this is what happens when I try to install the failing "gem"
root@server [ gitlab ]$ sudo -u gitlab -H gem install unf_ext -v '0.0.7.2'
Building native extensions. This could take a while...
ERROR: Error installing unf_ext:
ERROR: Failed to build gem native extension.
current directory: /var/lib/gitlab/.gem/ruby/2.3.0/gems/unf_ext-0.0.7.2/ext/unf_ext
/usr/bin/ruby -r ./siteconf20160924-9746-1oy7vf7.rb extconf.rb
checking for main() in -lstdc++... yes
creating Makefile
To see why this extension failed to compile, please check the mkmf.log which can be found here:
/var/lib/gitlab/.gem/ruby/2.3.0/extensions/armv7l-linux/2.3.0/unf_ext-0.0.7.2/mkmf.log
current directory: /var/lib/gitlab/.gem/ruby/2.3.0/gems/unf_ext-0.0.7.2/ext/unf_ext
make "DESTDIR=" clean
current directory: /var/lib/gitlab/.gem/ruby/2.3.0/gems/unf_ext-0.0.7.2/ext/unf_ext
make "DESTDIR="
compiling unf.cc
In file included from unf/normalizer.hh:10:0,
from unf.cc:1:
unf/table.hh:13539:25: error: narrowing conversion of '-27' from 'int' to 'char' inside { } [-Wnarrowing]
-77, -39,-124, -39,-123};
^
unf/table.hh:13539:25: error: narrowing conversion of '-113' from 'int' to 'char' inside { } [-Wnarrowing]
unf/table.hh:13539:25: error: narrowing conversion of '-81' from 'int' to 'char' inside { } [-Wnarrowing]
unf/table.hh:13539:25: error: narrowing conversion of '-27' from 'int' to 'char' inside { } [-Wnarrowing]
unf/table.hh:13539:25: error: narrowing conversion of '-66' from 'int' to 'char' inside { } [-Wnarrowing]
unf/table.hh:13539:25: error: narrowing conversion of '-105' from 'int' to 'char' inside { } [-Wnarrowing]
unf/table.hh:13539:25: error: narrowing conversion of '-27' from 'int' to 'char' inside { } [-Wnarrowing]
unf/table.hh:13539:25: error: narrowing conversion of '-106' from 'int' to 'char' inside { } [-Wnarrowing]
...
... Lots of lines ...
...
unf/table.hh:13539:25: error: narrowing conversion of '-39' from 'int' to 'char' inside { } [-Wnarrowing]
unf/table.hh:13539:25: error: narrowing conversion of '-120' from 'int' to 'char' inside { } [-Wnarrowing]
unf/table.hh:13539:25: error: narrowing conversion of '-40' from 'int' to 'char' inside { } [-Wnarrowing]
unf/table.hh:13539:25: error: narrowing conversion of '-77' from 'int' to 'char' inside { } [-Wnarrowing]
unf/table.hh:13539:25: error: narrowing conversion of '-39' from 'int' to 'char' inside { } [-Wnarrowing]
unf/table.hh:13539:25: error: narrowing conversion of '-124' from 'int' to 'char' inside { } [-Wnarrowing]
unf/table.hh:13539:25: error: narrowing conversion of '-39' from 'int' to 'char' inside { } [-Wnarrowing]
unf/table.hh:13539:25: error: narrowing conversion of '-123' from 'int' to 'char' inside { } [-Wnarrowing]
make: *** [Makefile:207: unf.o] Error 1
make failed, exit code 2
Gem files will remain installed in /var/lib/gitlab/.gem/ruby/2.3.0/gems/unf_ext-0.0.7.2 for inspection.
Results logged to /var/lib/gitlab/.gem/ruby/2.3.0/extensions/armv7l-linux/2.3.0/unf_ext-0.0.7.2/gem_make.out
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment