c++ - Eigen - maxCoeff causes compiler to crash -


i using library eigen high performance computing matrices , wanted maximal element matrix centers defined eigen::matrixxi centers(a.rows(), 1); (where matrix). reason called

std::cout << centers.maxcoeff(); 

but when tried compile clang++ (version 3.5), when makefile doing

clang++ -shared -fpic build/snf.bc -o snf.so 

the compiler gave me error message:

clang++ -shared -fpic build/snf.bc -o snf.so fatal error: error in backend: cannot select: 0x4815390: v4i32 = x86isd::smax 0x4812860, 0x4979e70 [ord=20] [id=23]   0x4812860: v4i32 = bitcast 0x4a2be70 [ord=17] [id=22]     0x4a2be70: v2i64,ch = load 0x4812660, 0x4812960, 0x496fb30<ld16[%1]> [ord=17] [id=21]       0x4812960: i64 = frameindex<0> [id=6]       0x496fb30: i64 = undef [id=3]   0x4979e70: v4i32 = bitcast 0x4a2c270 [ord=19] [id=16]     0x4a2c270: v2i64,ch = load 0x4a2c170, 0x4812c60, 0x496fb30<ld16[%7]> [ord=13] [id=14] dbg:/usr/include/eigen3/eigen/src/core/arch/sse/packetmath.h:194:10       0x4812c60: i64,ch = copyfromreg 0x2d19a10, 0x4813060 [ord=8] [id=11]         0x4813060: i64 = register %vreg3 [id=4]       0x496fb30: i64 = undef [id=3] in function: _zn5eigen8internal4pmaxidv2_xeet_rks3_s5_ clang: error: clang frontend command failed exit code 70 (use -v see invocation) ubuntu clang version 3.5-1ubuntu1 (trunk) (based on llvm 3.5) target: x86_64-pc-linux-gnu thread model: posix 

please can give me suggestions might problem? never got internal compiler error before.


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -