도와주세요!!
글 수 15,339
2006.03.18 21:31:34 (*.107.232.121)
8031
http://www.linux-mips.org/archives/linux-mips/2004-11/msg00255.htmlbinutils의 make를 마치고 static gcc(glibc를 make하기전 미리 gcc를 make해두는 과정에서..)
if [ -f stmp-dirs ]; then true; else touch stmp-dirs; fi
/home/pmp/CROSS-COMPILER/target/gcc/gcc/xgcc -B/home/pmp/CROSS-COMPILER/target/gcc/gcc/ -B/opt/host/mipsel-linux/mipsel-linux/bin/ -B/opt/host/mipsel-linux/mipsel-linux/lib/ -isystem /opt/host/mipsel-linux/mipsel-linux/include -isystem /opt/host/mipsel-linux/mipsel-linux/sys-include -O2 -DIN_GCC -DCROSS_COMPILE -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -fPIC -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -I. -I. -I../../../gcc-3.4.4/gcc -I../../../gcc-3.4.4/gcc/. -I../../../gcc-3.4.4/gcc/../include -fexceptions -c ../../../gcc-3.4.4/gcc/unwind-dw2.c -o libgcc/./unwind-dw2.o
../../../gcc-3.4.4/gcc/unwind-dw2.c: In function `uw_frame_state_for':
../../../gcc-3.4.4/gcc/unwind-dw2.c:1032: error: structure has no member named `sc_regs'
../../../gcc-3.4.4/gcc/unwind-dw2.c:1032: error: structure has no member named `sc_pc'
make[2]: *** [libgcc/./unwind-dw2.o] Error 1
make[2]: Leaving directory `/home/pmp/CROSS-COMPILER/target/gcc/gcc'
make[1]: *** [libgcc.a] Error 2
make[1]: Leaving directory `/home/pmp/CROSS-COMPILER/target/gcc/gcc'
make: *** [all-gcc] Error 2
//////////////////////////////////////////////////unwind-dw2.c의 LINE 1030~1039까지///////////////
#ifdef MD_FALLBACK_FRAME_STATE_FOR
/* 격리중!!!!
MD_FALLBACK_FRAME_STATE_FOR (context, fs, success);
격리중!!!! */
return _URC_END_OF_STACK;
success:
return _URC_NO_REASON;
#else
return _URC_END_OF_STACK;
#endif
격리중이라고 되어있는 공간을 주석으로 변화시키면 에러가 뜨지 않고 아래와 같이 된다.
///////////////////////////////////////////////////////////////////////////////////////////////////
if [ -f stmp-dirs ]; then true; else touch stmp-dirs; fi
/home/pmp/CROSS-COMPILER/target/gcc/gcc/xgcc -B/home/pmp/CROSS-COMPILER/target/gcc/gcc/ -B/opt/host/mipsel-linux/mipsel-linux/bin/ -B/opt/host/mipsel-linux/mipsel-linux/lib/ -isystem /opt/host/mipsel-linux/mipsel-linux/include -isystem /opt/host/mipsel-linux/mipsel-linux/sys-include -O2 -DIN_GCC -DCROSS_COMPILE -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -fPIC -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -I. -I. -I../../../gcc-3.4.4/gcc -I../../../gcc-3.4.4/gcc/. -I../../../gcc-3.4.4/gcc/../include -fexceptions -c ../../../gcc-3.4.4/gcc/unwind-dw2.c -o libgcc/./unwind-dw2.o
../../../gcc-3.4.4/gcc/unwind-dw2.c: In function `uw_frame_state_for':
../../../gcc-3.4.4/gcc/unwind-dw2.c:1035: warning: label `success' defined but not used
rm -rf ./libgcc.a
이후 make가 완료되고 끝이나는데....
이유를 알수가 없음....물론 make install까지 다되어진다...ㅡ,.ㅡ;
이러한 에러가 나는데..구글 네이버 잘모르고.. 구글에서 같은 오류에 대한 답글이 1있는데..해결 방법이 나와있지 않아 질문 합니다 ㅠ_ㅠ
MIPS용 크로스컴파일러를 제작중인데..static gcc까진 같아서 이렇게 질문드립니다..
if [ -f stmp-dirs ]; then true; else touch stmp-dirs; fi
/home/pmp/CROSS-COMPILER/target/gcc/gcc/xgcc -B/home/pmp/CROSS-COMPILER/target/gcc/gcc/ -B/opt/host/mipsel-linux/mipsel-linux/bin/ -B/opt/host/mipsel-linux/mipsel-linux/lib/ -isystem /opt/host/mipsel-linux/mipsel-linux/include -isystem /opt/host/mipsel-linux/mipsel-linux/sys-include -O2 -DIN_GCC -DCROSS_COMPILE -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -fPIC -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -I. -I. -I../../../gcc-3.4.4/gcc -I../../../gcc-3.4.4/gcc/. -I../../../gcc-3.4.4/gcc/../include -fexceptions -c ../../../gcc-3.4.4/gcc/unwind-dw2.c -o libgcc/./unwind-dw2.o
../../../gcc-3.4.4/gcc/unwind-dw2.c: In function `uw_frame_state_for':
../../../gcc-3.4.4/gcc/unwind-dw2.c:1032: error: structure has no member named `sc_regs'
../../../gcc-3.4.4/gcc/unwind-dw2.c:1032: error: structure has no member named `sc_pc'
make[2]: *** [libgcc/./unwind-dw2.o] Error 1
make[2]: Leaving directory `/home/pmp/CROSS-COMPILER/target/gcc/gcc'
make[1]: *** [libgcc.a] Error 2
make[1]: Leaving directory `/home/pmp/CROSS-COMPILER/target/gcc/gcc'
make: *** [all-gcc] Error 2
//////////////////////////////////////////////////unwind-dw2.c의 LINE 1030~1039까지///////////////
#ifdef MD_FALLBACK_FRAME_STATE_FOR
/* 격리중!!!!
MD_FALLBACK_FRAME_STATE_FOR (context, fs, success);
격리중!!!! */
return _URC_END_OF_STACK;
success:
return _URC_NO_REASON;
#else
return _URC_END_OF_STACK;
#endif
격리중이라고 되어있는 공간을 주석으로 변화시키면 에러가 뜨지 않고 아래와 같이 된다.
///////////////////////////////////////////////////////////////////////////////////////////////////
if [ -f stmp-dirs ]; then true; else touch stmp-dirs; fi
/home/pmp/CROSS-COMPILER/target/gcc/gcc/xgcc -B/home/pmp/CROSS-COMPILER/target/gcc/gcc/ -B/opt/host/mipsel-linux/mipsel-linux/bin/ -B/opt/host/mipsel-linux/mipsel-linux/lib/ -isystem /opt/host/mipsel-linux/mipsel-linux/include -isystem /opt/host/mipsel-linux/mipsel-linux/sys-include -O2 -DIN_GCC -DCROSS_COMPILE -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -fPIC -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -I. -I. -I../../../gcc-3.4.4/gcc -I../../../gcc-3.4.4/gcc/. -I../../../gcc-3.4.4/gcc/../include -fexceptions -c ../../../gcc-3.4.4/gcc/unwind-dw2.c -o libgcc/./unwind-dw2.o
../../../gcc-3.4.4/gcc/unwind-dw2.c: In function `uw_frame_state_for':
../../../gcc-3.4.4/gcc/unwind-dw2.c:1035: warning: label `success' defined but not used
rm -rf ./libgcc.a
이후 make가 완료되고 끝이나는데....
이유를 알수가 없음....물론 make install까지 다되어진다...ㅡ,.ㅡ;
이러한 에러가 나는데..구글 네이버 잘모르고.. 구글에서 같은 오류에 대한 답글이 1있는데..해결 방법이 나와있지 않아 질문 합니다 ㅠ_ㅠ
MIPS용 크로스컴파일러를 제작중인데..static gcc까진 같아서 이렇게 질문드립니다..