Archlinux에서 gcc 7.2와 독립적으로 gcc 6.4.0을 컴파일하려고합니다. 다음과 같이Archlinux에서 gcc 7.2와 gcc 6.4.0을 컴파일하는 방법
구성은 다음과 같습니다
../configure --prefix=${INSTALL_PREFIX} --enable-languages=c,c++,fortran \
--enable-threads=posix --enable-tls --enable-libgomp --enable-lto \
--enable-shared --enable-static --disable-nls --disable-multilib \
--with-fpmath=sse
컴파일하는 동안, 나는 md-unwind-support.h
에서 다음과 같은 오류있어 : GCC 6.4.0과 GCC 7.2.0과 정의 사이에 나는 md-unwind-support.h
을
md-unwind-support.h:65:47: error: dereferencing pointer to incomplete type 'struct ucontext'
비교 struct ucontext
은 gcc 7.2.0에서 ucontext_t
으로 정의됩니다.
그래서, GCC 6.4.0 소스 트리의 md-unwind-support.h
에 약간의 변화를 만들었지 만 다음과 같이 네임 스페이스 문제의 일부 kine를 가지고 :
int std::uncaught_exceptions() should have been declared inside 'std'
내가 박히면서이 문제에 대해 아무 생각이 없습니다.
도움과 조언이 도움이 될 것입니다.