2014-10-14 4 views
0

odb (http://www.codesynthesis.com/products/odb)를 사용하려면 mysql 커넥터를 설치하려고합니다. 내가 sudo make 명령을 내 라스베리에서 할 때 시작하지만 gcc의 원자 적 지원을 검색 할 때 오류가 발생했습니다. my_atomic.h에서라즈베리에서 네이티브 원자 지원을 찾을 수 없습니다.

In file included form /home/pi/odb/mysql-connector-c-6.1.5-src/include/lf.h:19:0, 
from /home/pi/odb/mysql-connector-c-6.1.5-src/mysys/lf_alloc-pin.c:101:0: 
/home/pi/odb/mysql-connector-c-6.1.5-src/include/my_atomic.h:62:4: error: 
#error Native atomics support not found! 

이 코드가 :

#if defined(_MSC_VER) 
# include "atomic/generic-msvc.h" 
#elif defined(HAVE_SOLARIS_ATOMIC) 
# include "atomic/solaris.h" 
#elif defined(HAVE_GCC_ATOMIC_BUILTINS) 
# include "atomic/gcc_builtins.h" 
#else 
# error Native atomics support not found! 
#endif 

그래서 내 GCC에서 원자의 내장이 아니라고 생각

는 오류입니다. gcc --version은 4.6.3을 반환하므로 이론적으로 지원해야합니다 ( https://gcc.gnu.org/projects/cxx0x.html -> 원자 연산 N2427 GCC 4.4).

gcc에 기본 내장을 어떻게 설치할 수 있습니까?

+0

"sudo make 명령을 할 때 ... - 왜 sudo로'make'를 실행합니까? – DevSolar

답변

0

C++ (11) 아토는 GCC 원자 내장 명령과 동일하지 않습니다 여러분 모두, 루카 감사드립니다. 그래서

ARM supports 8 byte atomics with cmpxchg64 kernel helper with gcc-4.8 + Linux 3.1 (or Linux 2.6.30 w/ armv6k+)

on gcc wiki을 설명 된대로 라즈베리 파이에 대한 올바른 GCC 원자 내장 매크로는 (어떤이 ARM 보드입니다) 당신의 GCC를 업그레이드하고 모든 통과해야, 4.8에서 구현했습니다.

관련 문제