分类: LINUX
2018-08-15 12:30:24
问题:
configure: error: in `/opt/water/tina-sdk/out/sitar-cuckoo/compile_dir/host/lzop-1.04':
configure: error: C compiler cannot create executables
See `config.log' for more details
解决:
安装glibc-devel-static
问题:
from /opt/water/tina-sdk/out/mandolin-perf1/compile_dir/host/u-boot-2014.10/include/common.h:20:
include/linux/compiler-gcc.h:114:1: fatal error: linux/compiler-gcc7.h: No such file or directory
#include gcc_header(__GNUC__)
^~~~
compilation terminated.
解决:
网下载一个compiler-gcc7.h到uboot中
问题:
alsamixer-mixer_display.o: In function `display_controls':
mixer_display.c:(.text+0xb54): undefined reference to `_nc_acs_map'
mixer_display.c:(.text+0xb68): undefined reference to `_nc_acs_map'
mixer_display.c:(.text+0xb80): undefined reference to `_nc_acs_map'
mixer_display.c:(.text+0xb94): undefined reference to `_nc_acs_map'
mixer_display.c:(.text+0xbec): undefined reference to `_nc_acs_map'
alsamixer-mixer_display.o:mixer_display.c:(.text+0xc00): more undefined references to `_nc_acs_map' follow
collect2: error: ld returned 1 exit status
make[5]: *** [Makefile:375: alsamixer] Error 1
make[5]: Leaving directory '/opt/water/tina-sdk/out/mandolin-perf1/compile_dir/target/alsa-utils-1.1.0/alsamixer'
解决:
cd out/mandolin-perf1/compile_dir/target/alsa-utils-1.1.0/alsamixer
make clean
make
问题:
/usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: cannot find -lffi
collect2: error: ld returned 1 exit status
make[8]: *** [Makefile:1162: libgobject-2.0.la] Error 1
解决:
sudo zypper install libffi-devel
问题:
Argument "4.2.1" isn't numeric in numeric ge (>=) at /opt/water/tina-sdk/scripts/feeds line 25.
解决:
这个好像是无关紧要的,如果要改就直接注释掉
修改scripts/feeds
$mkver[2] >= "3.81" or $valid_mk = 0;
改为
#$mkver[2] >= "3.81" or $valid_mk = 0;
问题:
abort: repository . not found!
./Modules/getbuildinfo.c: In function 'Py_GetBuildInfo':
./Modules/getbuildinfo.c:55:19: error: environment variable SOURCE_DATE_EPOCH must expand to a non-negative integer less than or equal to 253402300799
DATE, TIME);
解决:
修改
scripts/get_source_date_epoch.sh
try_git() {
[ -e .git ] || return 1
SOURCE_DATE_EPOCH="$(git log -1 --format=format:%ct)"
[ -n "$SOURCE_DATE_EPOCH" ]
}
改成
try_git() {
[ -e target/.git ] || return 1
SOURCE_DATE_EPOCH="$(cd target && git log -1 --format=format:%ct)"
[ -n "$SOURCE_DATE_EPOCH" ]
}
作者:帅得不敢出门