1. 出現的第一個錯誤,可能是因為git代碼是從別人的電腦和賬號拷貝過來的
fatal: bad config line 1 in file .git/config
2. 出現的第二個錯誤,刪除原來的git數據,重新整了一份就出現這個錯誤。
fatal: bad revision 'HEAD'
3. 以上兩個的解決辦法是,重新配置一下git即可
git config --global user.name "qiaohaiquan90"
git config --global user.email "qhq@lierda.com"
git init
4. 下一個問題,說是這個文件太小了,百度說是軟鏈接消失了
/lib/gcc/arm-none-eabi/7.2.1/liblto_plugin.so: file too short
collect2: error: ld returned 1 exit status
進入文件目錄看下是否真的不見了軟鏈接,似乎確實不見了,那么需要重新建立軟鏈接
重新建立軟鏈接,問題解決。
oot@qhq-virtual-machine:/home/qhq/code/idh/idh.code/prebuilts/linux/gcc-arm-none-eabi/lib/gcc/arm-none-eabi/7.2.1# rm liblto_plugin.so root@qhq-virtual-machine:/home/qhq/code/idh/idh.code/prebuilts/linux/gcc-arm-none-eabi/lib/gcc/arm-none-eabi/7.2.1# rm liblto_plugin.so.0 root@qhq-virtual-machine:/home/qhq/code/idh/idh.code/prebuilts/linux/gcc-arm-none-eabi/lib/gcc/arm-none-eabi/7.2.1# ln -s l libgcc.a libgcov.a liblto_plugin.so.0.0.0 lto1 lto-wrapper root@qhq-virtual-machine:/home/qhq/code/idh/idh.code/prebuilts/linux/gcc-arm-none-eabi/lib/gcc/arm-none-eabi/7.2.1# ln -s l libgcc.a libgcov.a liblto_plugin.so.0.0.0 lto1 lto-wrapper root@qhq-virtual-machine:/home/qhq/code/idh/idh.code/prebuilts/linux/gcc-arm-none-eabi/lib/gcc/arm-none-eabi/7.2.1# ln -s l libgcc.a libgcov.a liblto_plugin.so.0.0.0 lto1 lto-wrapper root@qhq-virtual-machine:/home/qhq/code/idh/idh.code/prebuilts/linux/gcc-arm-none-eabi/lib/gcc/arm-none-eabi/7.2.1# ln -s liblto_plugin.so.0.0.0 liblto_plugin.so.0 root@qhq-virtual-machine:/home/qhq/code/idh/idh.code/prebuilts/linux/gcc-arm-none-eabi/lib/gcc/arm-none-eabi/7.2.1# ln -s liblto_plugin.so.0 liblto_plugin.so root@qhq-virtual-machine:/home/qhq/code/idh/idh.code/prebuilts/linux/gcc-arm-none-eabi/lib/gcc/arm-none-eabi/7.2.1# ls -l total 63836
-rwxr-xr-x 1 root root 20586504 8月 3 10:24 cc1 -rwxr-xr-x 1 root root 21921832 8月 3 10:24 cc1plus -rwxr-xr-x 1 root root 569144 8月 3 10:24 collect2 -rwxr-xr-x 1 root root 1656 8月 3 10:24 crtbegin.o -rwxr-xr-x 1 root root 708 8月 3 10:24 crtend.o -rwxr-xr-x 1 root root 592 8月 3 10:24 crtfastmath.o -rwxr-xr-x 1 root root 760 8月 3 10:24 crti.o -rwxr-xr-x 1 root root 824 8月 3 10:24 crtn.o drwxr-xr-x 2 root root 4096 8月 3 10:24 hard drwxr-xr-x 2 root root 4096 8月 3 10:24 include drwxr-xr-x 2 root root 4096 8月 3 10:24 include-fixed drwxr-xr-x 3 root root 4096 8月 3 10:24 install-tools -rwxr-xr-x 1 root root 1595556 8月 3 10:24 libgcc.a -rwxr-xr-x 1 root root 49676 8月 3 10:24 libgcov.a lrwxrwxrwx 1 root root 18 8月 3 10:49 liblto_plugin.so -> liblto_plugin.so.0 lrwxrwxrwx 1 root root 22 8月 3 10:48 liblto_plugin.so.0 -> liblto_plugin.so.0.0.0
-rwxr-xr-x 1 root root 76640 8月 3 10:24 liblto_plugin.so.0.0.0
-rwxr-xr-x 1 root root 19627152 8月 3 10:24 lto1 -rwxr-xr-x 1 root root 880560 8月 3 10:24 lto-wrapper drwxr-xr-x 3 root root 4096 8月 3 10:24 plugin drwxr-xr-x 8 root root 4096 8月 3 10:24 thumb