redex icon indicating copy to clipboard operation
redex copied to clipboard

Error when install on Ubuntu - RedundantMoveEliminationPass.o

Open tux89 opened this issue 9 years ago • 4 comments

I am using Linux mint 17 base on Ubuntu 14.04.5 LTS & gcc (Ubuntu 4.9.4-2ubuntu1~14.04.1) 4.9.4

but when I run make it was error:

opt/redundant_move_elimination/RedundantMoveEliminationPass.cpp:68:68: error: no matching function for call to ‘{anonymous}::RedundantStats::RedundantStats(<brace-enclosed initializer list>)’
                           replaced_sources + other.replaced_sources};
                                                                    ^
opt/redundant_move_elimination/RedundantMoveEliminationPass.cpp:68:68: note: candidates are:
opt/redundant_move_elimination/RedundantMoveEliminationPass.cpp:62:8: note: constexpr {anonymous}::RedundantStats::RedundantStats()
 struct RedundantStats {
        ^
opt/redundant_move_elimination/RedundantMoveEliminationPass.cpp:62:8: note:   candidate expects 0 arguments, 2 provided
opt/redundant_move_elimination/RedundantMoveEliminationPass.cpp:62:8: note: constexpr {anonymous}::RedundantStats::RedundantStats(const {anonymous}::RedundantStats&)
opt/redundant_move_elimination/RedundantMoveEliminationPass.cpp:62:8: note:   candidate expects 1 argument, 2 provided
opt/redundant_move_elimination/RedundantMoveEliminationPass.cpp:62:8: note: constexpr {anonymous}::RedundantStats::RedundantStats({anonymous}::RedundantStats&&)
opt/redundant_move_elimination/RedundantMoveEliminationPass.cpp:62:8: note:   candidate expects 1 argument, 2 provided
opt/redundant_move_elimination/RedundantMoveEliminationPass.cpp:69:3: warning: control reaches end of non-void function [-Wreturn-type]
   }
   ^
make[1]: *** [opt/redundant_move_elimination/RedundantMoveEliminationPass.o] Error 1

tux89 avatar Jul 20 '17 06:07 tux89

It looks like that file uses a gnu++14 feature that's not supported in g++-4.9. I'll remove the use of that feature, but in the mean time, you could try again with g++ >= 5

See https://gcc.gnu.org/projects/cxx-status.html

justinjhendrick avatar Jul 20 '17 19:07 justinjhendrick

Thanks for the report!

justinjhendrick avatar Jul 20 '17 19:07 justinjhendrick

huh looks like we are pretty aggressive on compilers.

wisechengyi avatar Jul 20 '17 19:07 wisechengyi

Yeah... I'm trying to figure out which version consistently works...

justinjhendrick avatar Jul 20 '17 19:07 justinjhendrick