tum-vision / dvo_slam

Dense Visual Odometry and SLAM
632 stars 306 forks source link

rosmake failure in "dvo_core" #17

Open amiltonwong opened 10 years ago

amiltonwong commented 10 years ago

Hi ,all,

I had git-cloned dvo_slam repository. But after I built it by "rosmake", the "Error: no such instruction: `vfnmadd312ss 492(%rdi),%xmm0,%xmm4 " came out as the following 

root@ubuntu:~/workshop# rosmake dvo_core dvo_ros dvo_slam dvo_benchmark [ rosmake ] rosmake starting...
[ rosmake ] Packages requested are: ['dvo_core', 'dvo_ros', 'dvo_slam', 'dvo_benchmark'] [ rosmake ] Logging to directory /root/.ros/rosmake/rosmake_output-20140907-203402 [ rosmake ] Expanded args ['dvo_core', 'dvo_ros', 'dvo_slam', 'dvo_benchmark'] to: ['dvo_core', 'dvo_ros', 'dvo_slam', 'dvo_benchmark'] [rosmake-0] Starting >>> opencv2 [ make ]
[rosmake-0] Finished <<< opencv2 ROS_NOBUILD in package opencv2
[rosmake-0] Starting >>> std_msgs [ make ]
[rosmake-0] Finished <<< std_msgs No Makefile in package std_msgs
[rosmake-0] Starting >>> geometry_msgs [ make ]
[rosmake-0] Finished <<< geometry_msgs No Makefile in package geometry_msgs
[rosmake-0] Starting >>> sensor_msgs [ make ]
[rosmake-0] Finished <<< sensor_msgs No Makefile in package sensor_msgs
[rosmake-0] Starting >>> pcl [ make ]
[rosmake-0] Finished <<< pcl ROS_NOBUILD in package pcl No Makefile in package pcl [rosmake-0] Starting >>> sophus [ make ]
[rosmake-0] Finished <<< sophus [PASS] [ 51.29 seconds ]
[rosmake-0] Starting >>> common_rosdeps [ make ]
[rosmake-0] Finished <<< common_rosdeps ROS_NOBUILD in package common_rosdeps
[rosmake-0] Starting >>> dvo_core [ make ]
[ rosmake ] Last 40 lineso_core: 15.7 sec ] [ 1 Active 7/43 Complete ] {------------------------------------------------------------------------------- /tmp/ccx4PVSe.s:2500: Error: no such instruction: vfnmadd312ss 492(%rdi),%xmm0,%xmm4' /tmp/ccx4PVSe.s:2501: Error: no such instruction:vfnmadd312ss 496(%rdi),%xmm0,%xmm3' /tmp/ccx4PVSe.s:2503: Error: no such instruction: vfnmadd312ss 500(%rdi),%xmm0,%xmm2' /tmp/ccx4PVSe.s:2506: Error: no such instruction:vfnmadd312ss 480(%rdi),%xmm0,%xmm7' /tmp/ccx4PVSe.s:2510: Error: no such instruction: vfnmadd312ss 504(%rdi),%xmm0,%xmm1' /tmp/ccx4PVSe.s:2511: Error: no such instruction:vfnmadd312ss 508(%rdi),%xmm0,%xmm6' /tmp/ccx4PVSe.s:2513: Error: no such instruction: vfnmadd312ss 484(%rdi),%xmm0,%xmm7' /tmp/ccx4PVSe.s:4378: Error: no such instruction:vfnmadd312ss 4(%rsi),%xmm4,%xmm0' /tmp/ccx4PVSe.s:4499: Error: no such instruction: vfnmadd312ss 16(%rsi),%xmm0,%xmm1' /tmp/ccx4PVSe.s:7320: Error: no such instruction:vfnmadd312ss (%rcx),%xmm0,%xmm0' /tmp/ccx4PVSe.s:8377: Error: no such instruction: vfnmadd312ss (%rsi),%xmm0,%xmm0' /tmp/ccx4PVSe.s:12613: Error: no such instruction:vfnmadd312ss 24(%rcx,%r11,4),%xmm0,%xmm5' /tmp/ccx4PVSe.s:12614: Error: no such instruction: vfnmadd312ss 48(%rcx,%r11,4),%xmm0,%xmm4' /tmp/ccx4PVSe.s:12616: Error: no such instruction:vfnmadd312ss 72(%rcx,%r11,4),%xmm0,%xmm3' /tmp/ccx4PVSe.s:12618: Error: no such instruction: vfnmadd312ss 96(%rcx,%r11,4),%xmm0,%xmm2' /tmp/ccx4PVSe.s:12620: Error: no such instruction:vfnmadd312ss 120(%rcx,%r11,4),%xmm0,%xmm1' /tmp/ccx4PVSe.s:12686: Error: no such instruction: vfnmadd312ss (%rdx),%xmm1,%xmm0' /tmp/ccx4PVSe.s:13037: Error: no such instruction:vfmadd312ss (%r9),%xmm2,%xmm1' /tmp/ccx4PVSe.s:13071: Error: no such instruction: vfmadd312ss (%rdx),%xmm2,%xmm1' /tmp/ccx4PVSe.s:13327: Error: no such instruction:vfmadd312ss (%r11),%xmm0,%xmm4' /tmp/ccx4PVSe.s:13335: Error: no such instruction: vfmadd312ss (%r11,%rbx,4),%xmm0,%xmm3' /tmp/ccx4PVSe.s:13339: Error: no such instruction:vfmadd312ss (%r11,%rbp,4),%xmm0,%xmm2' /tmp/ccx4PVSe.s:13341: Error: no such instruction: vfmadd312ss (%r11,%r13,4),%xmm0,%xmm1' /tmp/ccx4PVSe.s:13420: Error: no such instruction:vfmadd312ss (%r10),%xmm0,%xmm1' /tmp/ccx4PVSe.s:14686: Error: no such instruction: vfmadd312ss (%rbx,%r8,4),%xmm5,%xmm4' /tmp/ccx4PVSe.s:14689: Error: no such instruction:vfmadd312ss (%rdi,%r8,4),%xmm5,%xmm3' /tmp/ccx4PVSe.s:14691: Error: no such instruction: vfmadd312ss (%r11,%r8,4),%xmm5,%xmm2' /tmp/ccx4PVSe.s:14693: Error: no such instruction:vfmadd312ss (%r10,%r8,4),%xmm5,%xmm1' /tmp/ccx4PVSe.s:14855: Error: no such instruction: vfmadd312ss (%r11,%rsi,4),%xmm5,%xmm0' /tmp/ccx4PVSe.s:17441: Error: no such instruction:vfmadd312ss (%rax,%r11,4),%xmm5,%xmm1' /tmp/ccx4PVSe.s:17512: Error: no such instruction: vfmadd312ss (%rax,%r11,4),%xmm5,%xmm1' /tmp/ccx4PVSe.s:17570: Error: no such instruction:vfmadd312ss (%rax,%rdx,4),%xmm1,%xmm2' /tmp/ccx4PVSe.s:17604: Error: no such instruction: vfmadd312ss (%rax,%rdx,4),%xmm1,%xmm2' make[3]: *** [CMakeFiles/dvo_core.dir/src/core/least_squares.o] Error 1 make[3]: Leaving directory/root/workshop/dvo_slam/dvo_core/build' make[2]: * [CMakeFiles/dvo_core.dir/all] Error 2 make[2]: Leaving directory `/root/workshop/dvo_slam/dvo_core/build' make[1]: * [all] Error 2 make[1]: Leaving directory`/root/workshop/dvo_slam/dvo_core/build' -------------------------------------------------------------------------------} [ rosmake ] Output from build of package dvo_core written to: [ rosmake ] /root/.ros/rosmake/rosmake_output-20140907-203402/dvo_core/build_output.log [rosmake-0] Finished <<< dvo_core [FAIL] [ 15.78 seconds ]
[ rosmake ] Halting due to failure in package dvo_core. [ rosmake ] Waiting for other threads to complete. [ rosmake ] Results:
[ rosmake ] Built 8 packages with 1 failures.
[ rosmake ] Summary output to directory
[ rosmake ] /root/.ros/rosmake/rosmake_output-20140907-203402
root@ubuntu:~/workshop#

Could someone suggest me how to fix it? My system is Ubuntu 12.04(64bit) and ROS Fuerte installed and configured.

Best regards, Milton

AlexMorgand commented 9 years ago

Hi,

I just had this issue and apparently using recent CPU such as I7 with outdated C++ compiler is the issue.

Changing "-march=native" to ""-march=corei7" solved the issue for me.

Hope it helps.

Source : https://github.com/uzh-rpg/rpg_svo/issues/7