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