架构x86_64
在使用OpenWrt SDK编译gcc package的时候,报如下错误:
i486-openwrt-linux-gnu-gcc -g -O2 -g -Os -O2 -g -O2 -g -Os -DIN_GCC -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -fpic -mlong-double-80 -g -DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector -fpic -mlong-double-80 -I. -I. -I../../host-i486-openwrt-linux-gnu/gcc -I../.././libgcc -I../.././libgcc/. -I../.././libgcc/../gcc -I../.././libgcc/../include -DHAVE_CC_TLS -DUSE_TLS -o unwind-dw2.o -MT unwind-dw2.o -MD -MP -MF unwind-dw2.dep -fexceptions -c ../.././libgcc/unwind-dw2.c -fvisibility=hidden -DHIDE_EXPORTS
cc1: note: someone does not honour COPTS correctly, passed 0 times
In file included from ../.././libgcc/unwind-dw2.c:401:0:
./md-unwind-support.h: In function 'x86_fallback_frame_state':
./md-unwind-support.h:141:18: error: field 'uc' has incomplete type
struct ucontext uc;
^~
../.././libgcc/shared-object.mk:14: recipe for target 'unwind-dw2.o' failed
make[5]: *** [unwind-dw2.o] Error 1
make[5]: Leaving directory '/home/wang/Desktop/openwrt-x86/build_dir/target-i386_pentium4_glibc/gcc-5.4.0/i486-openwrt-linux-gnu/libgcc'
Makefile:12262: recipe for target 'all-target-libgcc' failed
make[4]: *** [all-target-libgcc] Error 2
make[4]: Leaving directory '/home/wang/Desktop/openwrt-x86/build_dir/target-i386_pentium4_glibc/gcc-5.4.0'
Makefile:879: recipe for target 'all' failed
make[3]: *** [all] Error 2
make[3]: Leaving directory '/home/wang/Desktop/openwrt-x86/build_dir/target-i386_pentium4_glibc/gcc-5.4.0'
Makefile:176: recipe for target '/home/wang/Desktop/openwrt-x86/build_dir/target-i386_pentium4_glibc/gcc-5.4.0/.built' failed
make[2]: *** [/home/wang/Desktop/openwrt-x86/build_dir/target-i386_pentium4_glibc/gcc-5.4.0/.built] Error 2
make[2]: Leaving directory '/home/wang/Desktop/openwrt-x86/feeds/packages/devel/gcc'
Command exited with non-zero status 2
time: package/feeds/packages/gcc/compile#1.49#1.08#19.61
package/Makefile:107: recipe for target 'package/feeds/packages/gcc/compile' failed
make[1]: *** [package/feeds/packages/gcc/compile] Error 2
make[1]: Leaving directory '/home/wang/Desktop/openwrt-x86'
/home/wang/Desktop/openwrt-x86/include/toplevel.mk:216: recipe for target 'package/gcc/compile' failed
make: *** [package/gcc/compile] Erro