Details
-
Bug
-
Status: Open (View Workflow)
-
Major
-
Resolution: Unresolved
-
10.1.8, 10.1.9, 10.1.13
-
None
-
SmartOS 5.11 joyent_20160317T000621Z, gcc 4.9.3, binutils 2.25.1, gmake 4.1
Description
Compilation fails at mysys/my_context.c with:
[ 75%] Building C object mysys/CMakeFiles/mysys.dir/my_rdtsc.c.o
[ 75%] Building C object mysys/CMakeFiles/mysys.dir/my_context.c.o
/var/tmp//ccjkasbn.s: Assembler messages:
/var/tmp//ccjkasbn.s:24: Error: CFI instruction used without previous .cfi_startproc
mysys/CMakeFiles/mysys.dir/build.make:2558: recipe for target 'mysys/CMakeFiles/mysys.dir/my_context.c.o' failed
make[2]: *** [mysys/CMakeFiles/mysys.dir/my_context.c.o] Error 1
make[2]: *** Waiting for unfinished jobs....
CMakeFiles/Makefile2:1463: recipe for target 'mysys/CMakeFiles/mysys.dir/all' failed
make[1]: *** [mysys/CMakeFiles/mysys.dir/all] Error 2
Makefile:149: recipe for target 'all' failed
make: *** [all] Error 2
I found that if I prioritize the #elif defined(HAVE_UCONTEXT_H) check in mysys/my_context.c so that it comes before the 64-bit GNUC check, then it compiles just fine.