Skip to content

Instantly share code, notes, and snippets.

@zunda
Last active September 13, 2017 05:46
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 zunda/181df7ea0e5fba585738e9209eda57da to your computer and use it in GitHub Desktop.
Save zunda/181df7ea0e5fba585738e9209eda57da to your computer and use it in GitHub Desktop.
Failed to newly deploy mastodon/v1.6.0
remote: Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
remote:
remote: current directory:
remote: /tmp/build_0a3b28f1eec68065064b0713c9d97b3a/vendor/bundle/ruby/2.4.0/gems/charlock_holmes-0.7.5/ext/charlock_holmes
remote: /tmp/build_0a3b28f1eec68065064b0713c9d97b3a/vendor/ruby-2.4.1/bin/ruby -r
remote: ./siteconf20170913-2062-1bdbmp7.rb extconf.rb
remote: checking for -licui18n... yes
remote: checking for -licui18n... yes
remote: checking for unicode/ucnv.h... yes
remote: checking for -lz... yes
remote: checking for -licuuc... yes
remote: checking for -licudata... yes
remote: creating Makefile
remote:
remote: current directory:
remote: /tmp/build_0a3b28f1eec68065064b0713c9d97b3a/vendor/bundle/ruby/2.4.0/gems/charlock_holmes-0.7.5/ext/charlock_holmes
remote: make "DESTDIR=" clean
remote:
remote: current directory:
remote: /tmp/build_0a3b28f1eec68065064b0713c9d97b3a/vendor/bundle/ruby/2.4.0/gems/charlock_holmes-0.7.5/ext/charlock_holmes
remote: make "DESTDIR="
remote: compiling converter.c
remote: compiling encoding_detector.c
remote: compiling ext.c
remote: compiling transliterator.cpp
remote: cc1plus: warning: command line option ‘-Wimplicit-int’ is valid for C/ObjC but
remote: not for C++
remote: cc1plus: warning: command line option ‘-Wdeclaration-after-statement’ is valid
remote: for C/ObjC but not for C++
remote: cc1plus: warning: command line option ‘-Wimplicit-function-declaration’ is valid
remote: for C/ObjC but not for C++
remote: cc1plus: warning: unrecognized command line option ‘-Wno-self-assign’
remote: cc1plus: warning: unrecognized command line option
remote: ‘-Wno-constant-logical-operand’
remote: cc1plus: warning: unrecognized command line option ‘-Wno-parentheses-equality’
remote: cc1plus: warning: unrecognized command line option ‘-Wno-tautological-compare’
remote: linking shared-object charlock_holmes/charlock_holmes.so
remote: /usr/bin/ld:
remote: /tmp/build_0a3b28f1eec68065064b0713c9d97b3a/.apt/usr/lib/x86_64-linux-gnu/libicuuc.a(cmemory.ao):
remote: relocation R_X86_64_PC32 against symbol `uprv_malloc_55' can not be used when
remote: making a shared object; recompile with -fPIC
remote: /usr/bin/ld: final link failed: Bad value
remote: collect2: error: ld returned 1 exit status
remote: Makefile:257: recipe for target 'charlock_holmes.so' failed
remote: make: *** [charlock_holmes.so] Error 1
remote:
remote: make failed, exit code 2
remote:
remote: Gem files will remain installed in
remote: /tmp/build_0a3b28f1eec68065064b0713c9d97b3a/vendor/bundle/ruby/2.4.0/gems/charlock_holmes-0.7.5
remote: for inspection.
remote: Results logged to
remote: /tmp/build_0a3b28f1eec68065064b0713c9d97b3a/vendor/bundle/ruby/2.4.0/extensions/x86_64-linux/2.4.0/charlock_holmes-0.7.5/gem_make.out
remote:
remote: An error occurred while installing charlock_holmes (0.7.5), and Bundler cannot
remote: continue.
remote: Make sure that `gem install charlock_holmes -v '0.7.5'` succeeds before
remote: bundling.
remote:
remote: In Gemfile:
remote: charlock_holmes
remote: !
remote: ! Failed to install gems via Bundler.
remote: !
remote: ! Push rejected, failed to compile Ruby app.
remote:
remote: ! Push failed
$ heroku builds:output 2>&1 | grep libicu
-----> Fetching .debs for libicu-dev
Get:1 http://archive.ubuntu.com/ubuntu xenial-security/main amd64 libicu-dev amd64 55.1-7ubuntu0.2 [8,530 kB]
-----> Installing libicu-dev_55.1-7ubuntu0.2_amd64.deb
/tmp/build_0a3b28f1eec68065064b0713c9d97b3a/.apt/usr/lib/x86_64-linux-gnu/libicuuc.a(cmemory.ao):
/tmp/build_0a3b28f1eec68065064b0713c9d97b3a/.apt/usr/lib/x86_64-linux-gnu/libicuuc.a(cmemory.ao):
$ heroku builds:output -a zundan-mastodon-experiment 2>&1 | grep libicu
-----> Fetching .debs for libicu-dev
-----> Installing libicu55_55.1-7ubuntu0.2_amd64.deb
-----> Installing libicu-dev_55.1-7ubuntu0.2_amd64.deb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment