Jump to content

MySQL5.7 Native atomics support not found!


strange_v

Recommended Posts

Did someone try to compile latest mysql 5.7 on cubietruck?

I've got this error:

In file included from /mnt/data/tmp/mysql-5.7.10/include/lf.h:20:0,
                 from /mnt/data/tmp/mysql-5.7.10/mysys/lf_alloc-pin.c:98:
/mnt/data/tmp/mysql-5.7.10/include/my_atomic.h:62:4: error: #error Native atomics support not found!
 #  error Native atomics support not found!
    ^
In file included from /mnt/data/tmp/mysql-5.7.10/mysys/lf_alloc-pin.c:98:0:
/mnt/data/tmp/mysql-5.7.10/include/lf.h: In function ‘lf_pin’:
/mnt/data/tmp/mysql-5.7.10/include/lf.h:97:3: warning: implicit declaration of function ‘my_atomic_storeptr’ [-Wimplicit-function-declaration]
   my_atomic_storeptr(&pins->pin[pin], addr);
   ^
/mnt/data/tmp/mysql-5.7.10/mysys/lf_alloc-pin.c: In function ‘lf_pinbox_get_pins’:
/mnt/data/tmp/mysql-5.7.10/mysys/lf_alloc-pin.c:156:7: warning: implicit declaration of function ‘my_atomic_add32’ [-Wimplicit-function-declaration]
       pins= my_atomic_add32((int32 volatile*) &pinbox->pins_in_array, 1)+1;
       ^
/mnt/data/tmp/mysql-5.7.10/mysys/lf_alloc-pin.c:170:3: warning: implicit declaration of function ‘my_atomic_cas32’ [-Wimplicit-function-declaration]
   } while (!my_atomic_cas32((int32 volatile*) &pinbox->pinstack_top_ver,
   ^
/mnt/data/tmp/mysql-5.7.10/mysys/lf_alloc-pin.c: In function ‘alloc_free’:
/mnt/data/tmp/mysql-5.7.10/mysys/lf_alloc-pin.c:359:3: warning: implicit declaration of function ‘my_atomic_casptr’ [-Wimplicit-function-declaration]
   } while (!my_atomic_casptr((void **)(char *)&allocator->top,
   ^
mysys/CMakeFiles/mysys.dir/build.make:1871: recipe for target 'mysys/CMakeFiles/mysys.dir/lf_alloc-pin.c.o' failed
make[2]: *** [mysys/CMakeFiles/mysys.dir/lf_alloc-pin.c.o] Error 1
CMakeFiles/Makefile2:4300: recipe for target 'mysys/CMakeFiles/mysys.dir/all' failed
make[1]: *** [mysys/CMakeFiles/mysys.dir/all] Error 2
Makefile:147: recipe for target 'all' failed
make: *** [all] Error 2

In the thread on stackoverflow said that I should use gcc >= 4.8 but I've already use 4.9.2.
Could you give me some advice?

 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines