Skip to content

Instantly share code, notes, and snippets.

@biilmann
Created May 13, 2011 10:31
Show Gist options
  • Select an option

  • Save biilmann/970320 to your computer and use it in GitHub Desktop.

Select an option

Save biilmann/970320 to your computer and use it in GitHub Desktop.
Chef Server failing gem install
Building native extensions. This could take a while...
ERROR: Error installing chef-server:
ERROR: Failed to build gem native extension.
/usr/local/bin/ruby extconf.rb
checking for main() in -lgecodesearch... yes
checking for main() in -lgecodeint... yes
checking for main() in -lgecodekernel... yes
checking for main() in -lgecodesupport... yes
checking for main() in -lgecodeminimodel... yes
creating Makefile
make
Makefile:134: warning: overriding commands for target `/usr/local/lib/ruby/gems/1.8/gems/dep_selector-0.0.8/lib'
Makefile:132: warning: ignoring old commands for target `/usr/local/lib/ruby/gems/1.8/gems/dep_selector-0.0.8/lib'
g++ -I. -I. -I/usr/local/lib/ruby/1.8/x86_64-linux -I. -fPIC -g -O2 -c dep_selector_swig_wrap.cxx
g++ -I. -I. -I/usr/local/lib/ruby/1.8/x86_64-linux -I. -fPIC -g -O2 -c dep_selector_to_gecode.cpp
dep_selector_to_gecode.cpp: In constructor 'VersionProblem::VersionProblem(int, bool, bool)':
dep_selector_to_gecode.cpp:116: error: no matching function for call to 'Gecode::VarArgArray<Gecode::BoolVar>::VarArgArray()'
/usr/include/gecode/kernel/array.hpp:1192: note: candidates are: Gecode::VarArgArray<Var>::VarArgArray(const Gecode::VarArray<Var>&) [with Var = Gecode::BoolVar]
/usr/include/gecode/kernel/array.hpp:1187: note: Gecode::VarArgArray<Var>::VarArgArray(const Gecode::VarArgArray<Var>&) [with Var = Gecode::BoolVar]
/usr/include/gecode/kernel/array.hpp:1182: note: Gecode::VarArgArray<Var>::VarArgArray(int) [with Var = Gecode::BoolVar]
dep_selector_to_gecode.cpp: In constructor 'VersionProblem::VersionProblem(bool, VersionProblem&)':
dep_selector_to_gecode.cpp:142: error: no matching function for call to 'Gecode::VarArgArray<Gecode::BoolVar>::VarArgArray()'
/usr/include/gecode/kernel/array.hpp:1192: note: candidates are: Gecode::VarArgArray<Var>::VarArgArray(const Gecode::VarArray<Var>&) [with Var = Gecode::BoolVar]
/usr/include/gecode/kernel/array.hpp:1187: note: Gecode::VarArgArray<Var>::VarArgArray(const Gecode::VarArgArray<Var>&) [with Var = Gecode::BoolVar]
/usr/include/gecode/kernel/array.hpp:1182: note: Gecode::VarArgArray<Var>::VarArgArray(int) [with Var = Gecode::BoolVar]
dep_selector_to_gecode.cpp: In member function 'void VersionProblem::Finalize()':
dep_selector_to_gecode.cpp:317: error: 'create' is not a member of 'Gecode::IntArgs'
dep_selector_to_gecode.cpp:360: error: no matching function for call to 'branch(VersionProblem&, Gecode::IntVar&, Gecode::IntValBranch)'
/usr/include/gecode/kernel/branch.hpp:156: note: candidates are: void Gecode::branch(Gecode::Space&, void (*)(Gecode::Space&))
/usr/include/gecode/int.hh:2160: note: void Gecode::branch(Gecode::Space&, const Gecode::IntVarArgs&, Gecode::IntVarBranch, Gecode::IntValBranch, const Gecode::VarBranchOptions&, const Gecode::ValBranchOptions&)
/usr/include/gecode/int.hh:2166: note: void Gecode::branch(Gecode::Space&, const Gecode::IntVarArgs&, const Gecode::TieBreakVarBranch<Gecode::IntVarBranch>&, Gecode::IntValBranch, const Gecode::TieBreakVarBranchOptions&, const Gecode::ValBranchOptions&)
/usr/include/gecode/int.hh:2172: note: void Gecode::branch(Gecode::Space&, const Gecode::BoolVarArgs&, Gecode::IntVarBranch, Gecode::IntValBranch, const Gecode::VarBranchOptions&, const Gecode::ValBranchOptions&)
/usr/include/gecode/int.hh:2178: note: void Gecode::branch(Gecode::Space&, const Gecode::BoolVarArgs&, const Gecode::TieBreakVarBranch<Gecode::IntVarBranch>&, Gecode::IntValBranch, const Gecode::TieBreakVarBranchOptions&, const Gecode::ValBranchOptions&)
dep_selector_to_gecode.cpp:361: error: no matching function for call to 'branch(VersionProblem&, Gecode::IntVar&, Gecode::IntValBranch)'
/usr/include/gecode/kernel/branch.hpp:156: note: candidates are: void Gecode::branch(Gecode::Space&, void (*)(Gecode::Space&))
/usr/include/gecode/int.hh:2160: note: void Gecode::branch(Gecode::Space&, const Gecode::IntVarArgs&, Gecode::IntVarBranch, Gecode::IntValBranch, const Gecode::VarBranchOptions&, const Gecode::ValBranchOptions&)
/usr/include/gecode/int.hh:2166: note: void Gecode::branch(Gecode::Space&, const Gecode::IntVarArgs&, const Gecode::TieBreakVarBranch<Gecode::IntVarBranch>&, Gecode::IntValBranch, const Gecode::TieBreakVarBranchOptions&, const Gecode::ValBranchOptions&)
/usr/include/gecode/int.hh:2172: note: void Gecode::branch(Gecode::Space&, const Gecode::BoolVarArgs&, Gecode::IntVarBranch, Gecode::IntValBranch, const Gecode::VarBranchOptions&, const Gecode::ValBranchOptions&)
/usr/include/gecode/int.hh:2178: note: void Gecode::branch(Gecode::Space&, const Gecode::BoolVarArgs&, const Gecode::TieBreakVarBranch<Gecode::IntVarBranch>&, Gecode::IntValBranch, const Gecode::TieBreakVarBranchOptions&, const Gecode::ValBranchOptions&)
dep_selector_to_gecode.cpp:362: error: no matching function for call to 'branch(VersionProblem&, Gecode::IntVar&, Gecode::IntValBranch)'
/usr/include/gecode/kernel/branch.hpp:156: note: candidates are: void Gecode::branch(Gecode::Space&, void (*)(Gecode::Space&))
/usr/include/gecode/int.hh:2160: note: void Gecode::branch(Gecode::Space&, const Gecode::IntVarArgs&, Gecode::IntVarBranch, Gecode::IntValBranch, const Gecode::VarBranchOptions&, const Gecode::ValBranchOptions&)
/usr/include/gecode/int.hh:2166: note: void Gecode::branch(Gecode::Space&, const Gecode::IntVarArgs&, const Gecode::TieBreakVarBranch<Gecode::IntVarBranch>&, Gecode::IntValBranch, const Gecode::TieBreakVarBranchOptions&, const Gecode::ValBranchOptions&)
/usr/include/gecode/int.hh:2172: note: void Gecode::branch(Gecode::Space&, const Gecode::BoolVarArgs&, Gecode::IntVarBranch, Gecode::IntValBranch, const Gecode::VarBranchOptions&, const Gecode::ValBranchOptions&)
/usr/include/gecode/int.hh:2178: note: void Gecode::branch(Gecode::Space&, const Gecode::BoolVarArgs&, const Gecode::TieBreakVarBranch<Gecode::IntVarBranch>&, Gecode::IntValBranch, const Gecode::TieBreakVarBranchOptions&, const Gecode::ValBranchOptions&)
dep_selector_to_gecode.cpp:363: error: no matching function for call to 'branch(VersionProblem&, Gecode::IntVar&, Gecode::IntValBranch)'
/usr/include/gecode/kernel/branch.hpp:156: note: candidates are: void Gecode::branch(Gecode::Space&, void (*)(Gecode::Space&))
/usr/include/gecode/int.hh:2160: note: void Gecode::branch(Gecode::Space&, const Gecode::IntVarArgs&, Gecode::IntVarBranch, Gecode::IntValBranch, const Gecode::VarBranchOptions&, const Gecode::ValBranchOptions&)
/usr/include/gecode/int.hh:2166: note: void Gecode::branch(Gecode::Space&, const Gecode::IntVarArgs&, const Gecode::TieBreakVarBranch<Gecode::IntVarBranch>&, Gecode::IntValBranch, const Gecode::TieBreakVarBranchOptions&, const Gecode::ValBranchOptions&)
/usr/include/gecode/int.hh:2172: note: void Gecode::branch(Gecode::Space&, const Gecode::BoolVarArgs&, Gecode::IntVarBranch, Gecode::IntValBranch, const Gecode::VarBranchOptions&, const Gecode::ValBranchOptions&)
/usr/include/gecode/int.hh:2178: note: void Gecode::branch(Gecode::Space&, const Gecode::BoolVarArgs&, const Gecode::TieBreakVarBranch<Gecode::IntVarBranch>&, Gecode::IntValBranch, const Gecode::TieBreakVarBranchOptions&, const Gecode::ValBranchOptions&)
dep_selector_to_gecode.cpp:365: error: no matching function for call to 'branch(VersionProblem&, Gecode::IntVar&, Gecode::IntValBranch)'
/usr/include/gecode/kernel/branch.hpp:156: note: candidates are: void Gecode::branch(Gecode::Space&, void (*)(Gecode::Space&))
/usr/include/gecode/int.hh:2160: note: void Gecode::branch(Gecode::Space&, const Gecode::IntVarArgs&, Gecode::IntVarBranch, Gecode::IntValBranch, const Gecode::VarBranchOptions&, const Gecode::ValBranchOptions&)
/usr/include/gecode/int.hh:2166: note: void Gecode::branch(Gecode::Space&, const Gecode::IntVarArgs&, const Gecode::TieBreakVarBranch<Gecode::IntVarBranch>&, Gecode::IntValBranch, const Gecode::TieBreakVarBranchOptions&, const Gecode::ValBranchOptions&)
/usr/include/gecode/int.hh:2172: note: void Gecode::branch(Gecode::Space&, const Gecode::BoolVarArgs&, Gecode::IntVarBranch, Gecode::IntValBranch, const Gecode::VarBranchOptions&, const Gecode::ValBranchOptions&)
/usr/include/gecode/int.hh:2178: note: void Gecode::branch(Gecode::Space&, const Gecode::BoolVarArgs&, const Gecode::TieBreakVarBranch<Gecode::IntVarBranch>&, Gecode::IntValBranch, const Gecode::TieBreakVarBranchOptions&, const Gecode::ValBranchOptions&)
dep_selector_to_gecode.cpp:366: error: no matching function for call to 'branch(VersionProblem&, Gecode::IntVar&, Gecode::IntValBranch)'
/usr/include/gecode/kernel/branch.hpp:156: note: candidates are: void Gecode::branch(Gecode::Space&, void (*)(Gecode::Space&))
/usr/include/gecode/int.hh:2160: note: void Gecode::branch(Gecode::Space&, const Gecode::IntVarArgs&, Gecode::IntVarBranch, Gecode::IntValBranch, const Gecode::VarBranchOptions&, const Gecode::ValBranchOptions&)
/usr/include/gecode/int.hh:2166: note: void Gecode::branch(Gecode::Space&, const Gecode::IntVarArgs&, const Gecode::TieBreakVarBranch<Gecode::IntVarBranch>&, Gecode::IntValBranch, const Gecode::TieBreakVarBranchOptions&, const Gecode::ValBranchOptions&)
/usr/include/gecode/int.hh:2172: note: void Gecode::branch(Gecode::Space&, const Gecode::BoolVarArgs&, Gecode::IntVarBranch, Gecode::IntValBranch, const Gecode::VarBranchOptions&, const Gecode::ValBranchOptions&)
/usr/include/gecode/int.hh:2178: note: void Gecode::branch(Gecode::Space&, const Gecode::BoolVarArgs&, const Gecode::TieBreakVarBranch<Gecode::IntVarBranch>&, Gecode::IntValBranch, const Gecode::TieBreakVarBranchOptions&, const Gecode::ValBranchOptions&)
dep_selector_to_gecode.cpp: In member function 'void VersionProblem::ConstrainVectorLessThanBest(Gecode::IntVarArgs&, Gecode::IntVarArgs&)':
dep_selector_to_gecode.cpp:551: error: no match for 'operator-' in 'Gecode::operator-(const Gecode::IntVar&, int)(best_val) - borrow.Gecode::BoolVarArray::<anonymous>.Gecode::VarArray<Var>::operator[] [with Var = Gecode::BoolVar](i)'
/usr/include/gecode/minimodel/lin-expr.hpp:284: note: candidates are: Gecode::LinExpr<Gecode::IntVar> Gecode::operator-(int, const Gecode::IntVar&)
/usr/include/gecode/minimodel/lin-expr.hpp:288: note: Gecode::LinExpr<Gecode::IntVar> Gecode::operator-(int, const Gecode::LinExpr<Gecode::IntVar>&)
/usr/include/gecode/minimodel/lin-expr.hpp:292: note: Gecode::LinExpr<Gecode::IntVar> Gecode::operator-(const Gecode::IntVar&, int)
/usr/include/gecode/minimodel/lin-expr.hpp:296: note: Gecode::LinExpr<Gecode::IntVar> Gecode::operator-(const Gecode::LinExpr<Gecode::IntVar>&, int)
/usr/include/gecode/minimodel/lin-expr.hpp:300: note: Gecode::LinExpr<Gecode::IntVar> Gecode::operator-(const Gecode::IntVar&, const Gecode::IntVar&)
/usr/include/gecode/minimodel/lin-expr.hpp:304: note: Gecode::LinExpr<Gecode::IntVar> Gecode::operator-(const Gecode::IntVar&, const Gecode::LinExpr<Gecode::IntVar>&)
/usr/include/gecode/minimodel/lin-expr.hpp:308: note: Gecode::LinExpr<Gecode::IntVar> Gecode::operator-(const Gecode::LinExpr<Gecode::IntVar>&, const Gecode::IntVar&)
/usr/include/gecode/minimodel/lin-expr.hpp:312: note: Gecode::LinExpr<Gecode::IntVar> Gecode::operator-(const Gecode::LinExpr<Gecode::IntVar>&, const Gecode::LinExpr<Gecode::IntVar>&)
/usr/include/gecode/minimodel/lin-expr.hpp:316: note: Gecode::LinExpr<Gecode::IntVar> Gecode::operator-(const Gecode::IntVar&)
/usr/include/gecode/minimodel/lin-expr.hpp:320: note: Gecode::LinExpr<Gecode::IntVar> Gecode::operator-(const Gecode::LinExpr<Gecode::IntVar>&)
/usr/include/gecode/minimodel/lin-expr.hpp:376: note: Gecode::LinExpr<Gecode::BoolVar> Gecode::operator-(int, const Gecode::BoolVar&)
/usr/include/gecode/minimodel/lin-expr.hpp:380: note: Gecode::LinExpr<Gecode::BoolVar> Gecode::operator-(int, const Gecode::LinExpr<Gecode::BoolVar>&)
/usr/include/gecode/minimodel/lin-expr.hpp:384: note: Gecode::LinExpr<Gecode::BoolVar> Gecode::operator-(const Gecode::BoolVar&, int)
/usr/include/gecode/minimodel/lin-expr.hpp:388: note: Gecode::LinExpr<Gecode::BoolVar> Gecode::operator-(const Gecode::LinExpr<Gecode::BoolVar>&, int)
/usr/include/gecode/minimodel/lin-expr.hpp:392: note: Gecode::LinExpr<Gecode::BoolVar> Gecode::operator-(const Gecode::BoolVar&, const Gecode::BoolVar&)
/usr/include/gecode/minimodel/lin-expr.hpp:396: note: Gecode::LinExpr<Gecode::BoolVar> Gecode::operator-(const Gecode::BoolVar&, const Gecode::LinExpr<Gecode::BoolVar>&)
/usr/include/gecode/minimodel/lin-expr.hpp:400: note: Gecode::LinExpr<Gecode::BoolVar> Gecode::operator-(const Gecode::LinExpr<Gecode::BoolVar>&, const Gecode::BoolVar&)
/usr/include/gecode/minimodel/lin-expr.hpp:404: note: Gecode::LinExpr<Gecode::BoolVar> Gecode::operator-(const Gecode::LinExpr<Gecode::BoolVar>&, const Gecode::LinExpr<Gecode::BoolVar>&)
/usr/include/gecode/minimodel/lin-expr.hpp:408: note: Gecode::LinExpr<Gecode::BoolVar> Gecode::operator-(const Gecode::BoolVar&)
/usr/include/gecode/minimodel/lin-expr.hpp:412: note: Gecode::LinExpr<Gecode::BoolVar> Gecode::operator-(const Gecode::LinExpr<Gecode::BoolVar>&)
dep_selector_to_gecode.cpp:551: error: 'expr' was not declared in this scope
make: *** [dep_selector_to_gecode.o] Error 1
Gem files will remain installed in /usr/local/lib/ruby/gems/1.8/gems/dep_selector-0.0.8 for inspection.
Results logged to /usr/local/lib/ruby/gems/1.8/gems/dep_selector-0.0.8/ext/dep_gecode/gem_make.out
@btm

btm commented Jul 26, 2011

Copy link
Copy Markdown

Make sure that your gecode library (libgecode-dev) is version 3.5.0 or greater (there are ubuntu/debian packages on apt.opscode.com for this)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment