红联Linux门户
Linux帮助

fedora 20下使用gcc 4.8.2编译gcc-4.4.1的错误

发布时间:2015-10-21 16:09:14来源:linux网站作者:hemmingway

In file included from /root/Downloads/gcc-4.4.1/libgcc/../gcc/unwind-dw2.c:333: 
/root/Downloads/gcc-4.4.1/libgcc/../gcc/config/i386/linux-unwind.h: In function ‘x86_fallback_frame_state’: 
/root/Downloads/gcc-4.4.1/libgcc/../gcc/config/i386/linux-unwind.h:138: error: field ‘info’ has incomplete type 
make[3]: *** [unwind-dw2.o] Error 1 
make[3]: Leaving directory `/opt/gcc_build/i686-linux/libgcc' 
make[2]: *** [all-stage1-target-libgcc] Error 2 
make[2]: Leaving directory `/opt/gcc_build' 
make[1]: *** [stage1-bubble] Error 2 
make[1]: Leaving directory `/opt/gcc_build' 
make: *** [all] Error 2


修改:将

../gcc/config/i386/linux-unwind.h 

文件中的 struct siginfo 改成 siginfo_t


在Ubuntu上编译GCC会到的问题及解决方法:http://www.linuxdiyf.com/linux/2040.html

RedHat AS 4手动编译Gcc 4.4:http://www.linuxdiyf.com/linux/3460.html