Skip to content

Instantly share code, notes, and snippets.

@matiasgarciaisaia
Created August 17, 2017 19:43
Show Gist options
  • Save matiasgarciaisaia/bbef059208f585145e201a3eac201705 to your computer and use it in GitHub Desktop.
Save matiasgarciaisaia/bbef059208f585145e201a3eac201705 to your computer and use it in GitHub Desktop.
Building Crystal with LLVM 4.0.1 in Debian 7 x64
[Builder: crystal] I | 2017-08-17T17:52:01+00:00 | Environment:
[Builder: crystal] I | 2017-08-17T17:52:01+00:00 | CFLAGS="-I/opt/crystal/embedded/include -O2 -fPIC"
[Builder: crystal] I | 2017-08-17T17:52:01+00:00 | CPPFLAGS="-I/opt/crystal/embedded/include -O2 -fPIC"
[Builder: crystal] I | 2017-08-17T17:52:01+00:00 | CRYSTAL_PATH="/var/cache/omnibus/src/crystal/src"
[Builder: crystal] I | 2017-08-17T17:52:01+00:00 | CXXFLAGS="-I/opt/crystal/embedded/include -O2 -fPIC"
[Builder: crystal] I | 2017-08-17T17:52:01+00:00 | LDFLAGS="-Wl,-rpath,/opt/crystal/embedded/lib -L/opt/crystal/embedded/lib"
[Builder: crystal] I | 2017-08-17T17:52:01+00:00 | LD_RUN_PATH="/opt/crystal/embedded/lib"
[Builder: crystal] I | 2017-08-17T17:52:01+00:00 | LIBRARY_PATH="/opt/crystal/embedded/lib"
[Builder: crystal] I | 2017-08-17T17:52:01+00:00 | PATH="/var/cache/omnibus/src/llvm_bin/llvm-4.0.1-1/bin:/var/cache/omnibus/src/crystal/deps:/opt/crystal/bin:/opt/crystal/embedded/bin:/usr/local/rvm/gems/ruby-2.4.0/bin:/usr/local/rvm/gems/ruby-2.4.0@global/bin:/usr/local/rvm/rubies/ruby-2.4.0/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/usr/local/rvm/bin"
[Builder: crystal] I | 2017-08-17T17:52:01+00:00 | PKG_CONFIG_PATH="/opt/crystal/embedded/lib/pkgconfig"
[Builder: crystal] I | 2017-08-17T17:52:01+00:00 | $ make deps
[Builder: crystal] I | 2017-08-17T17:52:03+00:00 | Execute: `make deps': 2.2336s
[Builder: crystal] I | 2017-08-17T17:52:03+00:00 | Build crystal: 2.2994s
The following shell command exited with status 2:
$ CFLAGS=-I/opt/crystal/embedded/include -O2 -fPIC CPPFLAGS=-I/opt/crystal/embedded/include -O2 -fPIC CRYSTAL_PATH=/var/cache/omnibus/src/crystal/src CXXFLAGS=-I/opt/crystal/embedded/include -O2 -fPIC LDFLAGS=-Wl,-rpath,/opt/crystal/embedded/lib -L/opt/crystal/embedded/lib LD_RUN_PATH=/opt/crystal/embedded/lib LIBRARY_PATH=/opt/crystal/embedded/lib PATH=/var/cache/omnibus/src/llvm_bin/llvm-4.0.1-1/bin:/var/cache/omnibus/src/crystal/deps:/opt/crystal/bin:/opt/crystal/embedded/bin:/usr/local/rvm/gems/ruby-2.4.0/bin:/usr/local/rvm/gems/ruby-2.4.0@global/bin:/usr/local/rvm/rubies/ruby-2.4.0/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/usr/local/rvm/bin PKG_CONFIG_PATH=/opt/crystal/embedded/lib/pkgconfig make deps
Output:
Using /var/cache/omnibus/src/llvm_bin/llvm-4.0.1-1/bin/llvm-config [version=4.0.1]
g++ -c -I/opt/crystal/embedded/include -O2 -fPIC -o src/llvm/ext/llvm_ext.o src/llvm/ext/llvm_ext.cc `/var/cache/omnibus/src/llvm_bin/llvm-4.0.1-1/bin/llvm-config --cxxflags`
Error:
In file included from /var/cache/omnibus/src/llvm_bin/llvm-4.0.1-1/include/llvm/ADT/SetVector.h:24:0,
from /var/cache/omnibus/src/llvm_bin/llvm-4.0.1-1/include/llvm/IR/DIBuilder.h:22,
from src/llvm/ext/llvm_ext.cc:1:
/var/cache/omnibus/src/llvm_bin/llvm-4.0.1-1/include/llvm/ADT/DenseSet.h:217:16: error: ‘using llvm::DenseSet<ValueT, ValueInfoT>::BaseT::BaseT’ conflicts with a previous declaration
/var/cache/omnibus/src/llvm_bin/llvm-4.0.1-1/include/llvm/ADT/DenseSet.h:214:39: note: previous declaration ‘using BaseT = class llvm::detail::DenseSetImpl<ValueT, llvm::DenseMap<ValueT, llvm::detail::DenseSetEmpty, ValueInfoT, llvm::detail::DenseSetPair<ValueT> >, ValueInfoT>’
/var/cache/omnibus/src/llvm_bin/llvm-4.0.1-1/include/llvm/ADT/DenseSet.h:235:16: error: ‘using llvm::SmallDenseSet<ValueT, InlineBuckets, ValueInfoT>::BaseT::BaseT’ conflicts with a previous declaration
/var/cache/omnibus/src/llvm_bin/llvm-4.0.1-1/include/llvm/ADT/DenseSet.h:232:18: note: previous declaration ‘using BaseT = class llvm::detail::DenseSetImpl<ValueT, llvm::SmallDenseMap<ValueT, llvm::detail::DenseSetEmpty, InlineBuckets, ValueInfoT, llvm::detail::DenseSetPair<ValueT> >, ValueInfoT>’
In file included from /var/cache/omnibus/src/llvm_bin/llvm-4.0.1-1/include/llvm/IR/DebugInfoMetadata.h:18:0,
from /var/cache/omnibus/src/llvm_bin/llvm-4.0.1-1/include/llvm/IR/DebugInfo.h:23,
from /var/cache/omnibus/src/llvm_bin/llvm-4.0.1-1/include/llvm/IR/DIBuilder.h:25,
from src/llvm/ext/llvm_ext.cc:1:
/var/cache/omnibus/src/llvm_bin/llvm-4.0.1-1/include/llvm/ADT/BitmaskEnum.h: In instantiation of ‘typename std::underlying_type<_Tp>::type llvm::BitmaskEnumDetail::Underlying(E) [with E = llvm::DINode::DIFlags; typename std::underlying_type<_Tp>::type = unsigned int]’:
/var/cache/omnibus/src/llvm_bin/llvm-4.0.1-1/include/llvm/ADT/BitmaskEnum.h:113:58: required from ‘E llvm::BitmaskEnumDetail::operator&(E, E) [with E = llvm::DINode::DIFlags; <template-parameter-1-2> = void]’
/var/cache/omnibus/src/llvm_bin/llvm-4.0.1-1/include/llvm/IR/DebugInfoMetadata.h:610:26: required from here
/var/cache/omnibus/src/llvm_bin/llvm-4.0.1-1/include/llvm/ADT/BitmaskEnum.h:93:3: warning: comparison of unsigned expression >= 0 is always true [-Wtype-limits]
make: *** [src/llvm/ext/llvm_ext.o] Error 1
/usr/local/rvm/gems/ruby-2.4.0/gems/omnibus-5.5.0/lib/omnibus/util.rb:101:in `rescue in shellout!'
/usr/local/rvm/gems/ruby-2.4.0/gems/omnibus-5.5.0/lib/omnibus/util.rb:97:in `shellout!'
/usr/local/rvm/gems/ruby-2.4.0/gems/omnibus-5.5.0/lib/omnibus/builder.rb:814:in `shellout!'
/usr/local/rvm/gems/ruby-2.4.0/gems/omnibus-5.5.0/lib/omnibus/builder.rb:84:in `block in command'
/usr/local/rvm/gems/ruby-2.4.0/gems/omnibus-5.5.0/lib/omnibus/builder.rb:1001:in `instance_eval'
/usr/local/rvm/gems/ruby-2.4.0/gems/omnibus-5.5.0/lib/omnibus/builder.rb:1001:in `run'
/usr/local/rvm/gems/ruby-2.4.0/gems/omnibus-5.5.0/lib/omnibus/builder.rb:832:in `block (3 levels) in execute'
/usr/local/rvm/gems/ruby-2.4.0/gems/omnibus-5.5.0/lib/omnibus/builder.rb:854:in `with_retries'
/usr/local/rvm/gems/ruby-2.4.0/gems/omnibus-5.5.0/lib/omnibus/builder.rb:831:in `block (2 levels) in execute'
/usr/local/rvm/gems/ruby-2.4.0/gems/omnibus-5.5.0/lib/omnibus/instrumentation.rb:23:in `measure'
/usr/local/rvm/gems/ruby-2.4.0/gems/omnibus-5.5.0/lib/omnibus/builder.rb:830:in `block in execute'
/usr/local/rvm/gems/ruby-2.4.0/gems/omnibus-5.5.0/lib/omnibus/builder.rb:904:in `with_clean_env'
/usr/local/rvm/gems/ruby-2.4.0/gems/omnibus-5.5.0/lib/omnibus/builder.rb:829:in `execute'
/usr/local/rvm/gems/ruby-2.4.0/gems/omnibus-5.5.0/lib/omnibus/builder.rb:713:in `block (2 levels) in build'
/usr/local/rvm/gems/ruby-2.4.0/gems/omnibus-5.5.0/lib/omnibus/builder.rb:712:in `each'
/usr/local/rvm/gems/ruby-2.4.0/gems/omnibus-5.5.0/lib/omnibus/builder.rb:712:in `block in build'
/usr/local/rvm/gems/ruby-2.4.0/gems/omnibus-5.5.0/lib/omnibus/instrumentation.rb:23:in `measure'
/usr/local/rvm/gems/ruby-2.4.0/gems/omnibus-5.5.0/lib/omnibus/builder.rb:711:in `build'
/usr/local/rvm/gems/ruby-2.4.0/gems/omnibus-5.5.0/lib/omnibus/software.rb:1191:in `execute_build'
/usr/local/rvm/gems/ruby-2.4.0/gems/omnibus-5.5.0/lib/omnibus/software.rb:1052:in `build_me'
/usr/local/rvm/gems/ruby-2.4.0/gems/omnibus-5.5.0/lib/omnibus/project.rb:1077:in `block (2 levels) in build'
/usr/local/rvm/gems/ruby-2.4.0/gems/omnibus-5.5.0/lib/omnibus/project.rb:1076:in `each'
/usr/local/rvm/gems/ruby-2.4.0/gems/omnibus-5.5.0/lib/omnibus/project.rb:1076:in `block in build'
/usr/local/rvm/gems/ruby-2.4.0/gems/omnibus-5.5.0/lib/omnibus/licensing.rb:61:in `block in create_incrementally'
/usr/local/rvm/gems/ruby-2.4.0/gems/omnibus-5.5.0/lib/omnibus/licensing.rb:56:in `tap'
/usr/local/rvm/gems/ruby-2.4.0/gems/omnibus-5.5.0/lib/omnibus/licensing.rb:56:in `create_incrementally'
/usr/local/rvm/gems/ruby-2.4.0/gems/omnibus-5.5.0/lib/omnibus/project.rb:1075:in `build'
/usr/local/rvm/gems/ruby-2.4.0/gems/omnibus-5.5.0/lib/omnibus/cli.rb:84:in `build'
/usr/local/rvm/gems/ruby-2.4.0/gems/thor-0.19.4/lib/thor/command.rb:27:in `run'
/usr/local/rvm/gems/ruby-2.4.0/gems/thor-0.19.4/lib/thor/invocation.rb:126:in `invoke_command'
/usr/local/rvm/gems/ruby-2.4.0/gems/thor-0.19.4/lib/thor.rb:369:in `dispatch'
/usr/local/rvm/gems/ruby-2.4.0/gems/omnibus-5.5.0/lib/omnibus/cli/base.rb:33:in `dispatch'
/usr/local/rvm/gems/ruby-2.4.0/gems/thor-0.19.4/lib/thor/base.rb:444:in `start'
/usr/local/rvm/gems/ruby-2.4.0/gems/omnibus-5.5.0/lib/omnibus/cli.rb:42:in `execute!'
/usr/local/rvm/gems/ruby-2.4.0/gems/omnibus-5.5.0/bin/omnibus:16:in `<top (required)>'
/usr/local/rvm/gems/ruby-2.4.0/bin/omnibus:23:in `load'
/usr/local/rvm/gems/ruby-2.4.0/bin/omnibus:23:in `<main>'
/usr/local/rvm/gems/ruby-2.4.0/bin/ruby_executable_hooks:15:in `eval'
/usr/local/rvm/gems/ruby-2.4.0/bin/ruby_executable_hooks:15:in `<main>'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment