Time to time when I try to compile some libraries such as OpenCV or OpenBLAS under linux I encounter error: invalid operands (*UND* and *UND* sections) for '*'
.
I know this is an assembly error however most of the time when this issue appear it is related to temporary assembly filed generated by the compiler (gcc, g++, gfortran depending on the library).
I am not familiar with assembly and have absolutely no idea how to fix it.
Can you help me to have a better understanding on how to fix it ?
Note I am working on a Debian Jessy, but I also encounter this issue in several other Debian based distros (such as Ubuntu, and Mint).
When I write these line I face that error trying to compile OpenCV's librariry.
I message send by g++ is:
More precisely:
*
/tmp/ccL3rvH2.s: Assembler messages:
/tmp/ccL3rvH2.s:533: Error: invalid operands (*UND* and *UND* sections) for `*'
modules/imgproc/CMakeFiles/opencv_imgproc.dir/build.make:592: recipe for target 'modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/gabor.cpp.o' failed
make[2]: *** [modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/gabor.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
/tmp/cciiML9T.s: Assembler messages:
/tmp/cciiML9T.s:88450: Error: invalid operands (*UND* and *UND* sections) for `*'
/tmp/cciiML9T.s:105860: Error: invalid operands (*UND* and *UND* sections) for `*'
modules/imgproc/CMakeFiles/opencv_imgproc.dir/build.make:760: recipe for target 'modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/imgwarp.cpp.o' failed
make[2]: *** [modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/imgwarp.cpp.o] Error 1
CMakeFiles/Makefile2:2378: recipe for target 'modules/imgproc/CMakeFiles/opencv_imgproc.dir/all' failed
make[1]: *** [modules/imgproc/CMakeFiles/opencv_imgproc.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
*
Thanks in advance for any help