掌機 - Pandora(Rebirth) - SuperZaxxon - 解決as: exec: line 108: -meabi=5: not found問題



問題如下:

gcc version 6.3.0 (GCC) 
configure:3446: $? = 0 
configure:3462: /home/steward/Downloads/gcc-build/./gcc/xgcc -B/home/steward/Downloads/gcc-build/./gcc/ -B/usr/local/arm-linux-gnueabi/bin/ -B/usr/local/arm-linux-gnueabi/lib/ -isystem /usr/local/arm-linux-gnueabi/include -isystem /usr/local/arm-linux-gnueabi/sys-include    -o conftest -g -O2   conftest.c  >&5
/home/steward/Downloads/gcc-build/./gcc/as: exec: line 108: -meabi=5: not found
configure:3465: $? = 1 
configure:3653: checking for suffix of object files
configure:3675: /home/steward/Downloads/gcc-build/./gcc/xgcc -B/home/steward/Downloads/gcc-build/./gcc/ -B/usr/local/arm-linux-gnueabi/bin/ -B/usr/local/arm-linux-gnueabi/lib/ -isystem /usr/local/arm-linux-gnueabi/include -isystem /usr/local/arm-linux-gnueabi/sys-include    -c -g -O2  conftest.c >&5
/home/steward/Downloads/gcc-build/./gcc/as: exec: line 108: -meabi=5: not found

解法如下:

$ vim ../gcc-6.3.0/gcc/config/arm/bpabi.h +130
    "%{mabi=apcs-gnu|mabi=atpcs:-meabi=gnu}" TARGET_FIX_V4BX_SPEC