您尚未登录。

楼主 # 2021-06-25 14:03:27

jkl
会员
注册时间: 2019-11-18
已发帖子: 265
积分: 148.5

R16的Tina编译出现下面的问题怎样解决???

make[3]: Leaving directory '/home/gzpeite/jkl/peite_a33/R16_Tina/package/libs/expat'
make[3]: Entering directory '/home/gzpeite/jkl/peite_a33/R16_Tina/package/libs/libffi'
make[3]: Leaving directory '/home/gzpeite/jkl/peite_a33/R16_Tina/package/libs/libffi'
make[3]: Entering directory '/home/gzpeite/jkl/peite_a33/R16_Tina/package/utils/bzip2'
make[3]: Leaving directory '/home/gzpeite/jkl/peite_a33/R16_Tina/package/utils/bzip2'
make[3]: Entering directory '/home/gzpeite/jkl/peite_a33/R16_Tina/package/lang/python'
make   -C /home/gzpeite/jkl/peite_a33/R16_Tina/out/astar-parrot/compile_dir/target/host/Python-2.7.11 
make[4]: Entering directory '/home/gzpeite/jkl/peite_a33/R16_Tina/out/astar-parrot/compile_dir/target/host/Python-2.7.11'
gcc -pthread -c -fno-strict-aliasing -O2 -I/home/gzpeite/jkl/peite_a33/R16_Tina/out/host/include -I/home/gzpeite/jkl/peite_a33/R16_Tina/out/host/usr/include -I/home/gzpeite/jkl/peite_a33/R16_Tina/out/astar-parrot/staging_dir/target/host/include -I/usr/include/ncursesw -I/usr/include/ncurses -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes  -I. -IInclude -I./Include -I/home/gzpeite/jkl/peite_a33/R16_Tina/out/host/include -I/home/gzpeite/jkl/peite_a33/R16_Tina/out/host/usr/include -I/home/gzpeite/jkl/peite_a33/R16_Tina/out/astar-parrot/staging_dir/target/host/include  -DPy_BUILD_CORE \
      -DSVNVERSION="\"`LC_ALL=C echo Unversioned directory`\"" \
      -DHGVERSION="\"`LC_ALL=C `\"" \
      -DHGTAG="\"`LC_ALL=C `\"" \
      -DHGBRANCH="\"`LC_ALL=C `\"" \
      -o Modules/getbuildinfo.o ./Modules/getbuildinfo.c
./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);   
                   ^
Makefile:629: recipe for target 'Modules/getbuildinfo.o' failed
make[4]: *** [Modules/getbuildinfo.o] Error 1
make[4]: Leaving directory '/home/gzpeite/jkl/peite_a33/R16_Tina/out/astar-parrot/compile_dir/target/host/Python-2.7.11'
Makefile:241: recipe for target '/home/gzpeite/jkl/peite_a33/R16_Tina/out/astar-parrot/compile_dir/target/host/Python-2.7.11/.built' failed
make[3]: *** [/home/gzpeite/jkl/peite_a33/R16_Tina/out/astar-parrot/compile_dir/target/host/Python-2.7.11/.built] Error 2
make[3]: Leaving directory '/home/gzpeite/jkl/peite_a33/R16_Tina/package/lang/python'
package/Makefile:192: recipe for target 'package/lang/python/host/compile' failed
make[2]: *** [package/lang/python/host/compile] Error 2
make[2]: Leaving directory '/home/gzpeite/jkl/peite_a33/R16_Tina'
package/Makefile:189: recipe for target '/home/gzpeite/jkl/peite_a33/R16_Tina/out/astar-parrot/staging_dir/target/stamp/.package_compile' failed
make[1]: *** [/home/gzpeite/jkl/peite_a33/R16_Tina/out/astar-parrot/staging_dir/target/stamp/.package_compile] Error 2
make[1]: Leaving directory '/home/gzpeite/jkl/peite_a33/R16_Tina'
/home/gzpeite/jkl/peite_a33/R16_Tina/build/toplevel.mk:219: recipe for target 'world' failed



我看网上也有遇到这种编译错误的,参考修改错误一直没有解决
https://blog.csdn.net/wb4916/article/details/80688040
麻烦大家支支招

离线

#1 2021-06-25 14:37:11

哇酷小二
管理员
所在地: 你猜
注册时间: 2020-04-22
已发帖子: 3,388
积分: 1902
个人网站

Re: R16的Tina编译出现下面的问题怎样解决???

getbuildinfo.c:55:19: error: environment variable SOURCE_DATE_EPOCH must expand to a non-negative integer less than or equal to 253402300799 


很明显啊,这个环境变量有问题。





离线

#2 2022-07-10 23:06:53

yixiuge
会员
注册时间: 2022-04-07
已发帖子: 56
积分: 66

Re: R16的Tina编译出现下面的问题怎样解决???

make[3]: Leaving directory '/opt/f1c100s/tina/tina/package/libs/sbc'
make[3]: Entering directory '/opt/f1c100s/tina/tina/package/multimedia/fdk-aac'
rm -rf /opt/f1c100s/tina/tina/out/bangu-h300/staging_dir/target/rootfs/tmp-fdk-aac
mkdir -p /opt/f1c100s/tina/tina/out/bangu-h300/staging_dir/target/rootfs/stamp /opt/f1c100s/tina/tina/out/bangu-h300/staging_dir/target/rootfs/tmp-fdk-aac
install -d -m0755 /opt/f1c100s/tina/tina/out/bangu-h300/staging_dir/target/rootfs/tmp-fdk-aac/usr/lib/
cp -fpR /opt/f1c100s/tina/tina/out/bangu-h300/compile_dir/target/fdk-aac-0.1.6/ipkg-install/usr/lib/libfdk-aac.so* /opt/f1c100s/tina/tina/out/bangu-h300/staging_dir/target/rootfs/tmp-fdk-aac/usr/lib/
SHELL= flock /opt/f1c100s/tina/tina/tmp/.root-copy.flock -c 'cp -fpR /opt/f1c100s/tina/tina/out/bangu-h300/staging_dir/target/rootfs/tmp-fdk-aac/. /opt/f1c100s/tina/tina/out/bangu-h300/staging_dir/target/rootfs/'
rm -rf /opt/f1c100s/tina/tina/out/bangu-h300/staging_dir/target/rootfs/tmp-fdk-aac
touch /opt/f1c100s/tina/tina/out/bangu-h300/staging_dir/target/rootfs/stamp/.fdk-aac_installed
if [ -f /opt/f1c100s/tina/tina/out/bangu-h300/staging_dir/target/pkginfo/fdk-aac.default.install.clean ]; then rm -f /opt/f1c100s/tina/tina/out/bangu-h300/staging_dir/target/pkginfo/fdk-aac.default.install /opt/f1c100s/tina/tina/out/bangu-h300/staging_dir/target/pkginfo/fdk-aac.default.install.clean; fi; echo "fdk-aac" >> /opt/f1c100s/tina/tina/out/bangu-h300/staging_dir/target/pkginfo/fdk-aac.default.install
make[3]: Leaving directory '/opt/f1c100s/tina/tina/package/multimedia/fdk-aac'
make[3]: Entering directory '/opt/f1c100s/tina/tina/package/libs/expat'
make[3]: Leaving directory '/opt/f1c100s/tina/tina/package/libs/expat'
make[3]: Entering directory '/opt/f1c100s/tina/tina/package/utils/bzip2'
make[3]: Leaving directory '/opt/f1c100s/tina/tina/package/utils/bzip2'
make[3]: Entering directory '/opt/f1c100s/tina/tina/package/lang/python'
make   -C /opt/f1c100s/tina/tina/out/bangu-h300/compile_dir/target/host/Python-2.7.15
make[4]: Entering directory '/opt/f1c100s/tina/tina/out/bangu-h300/compile_dir/target/host/Python-2.7.15'
gcc -pthread -c -fno-strict-aliasing -O2 -I/opt/f1c100s/tina/tina/out/host/include -I/opt/f1c100s/tina/tina/out/host/usr/include -I/opt/f1c100s/tina/tina/out/bangu-h300/staging_dir/target/host/include -I/usr/include/ncursesw -I/usr/include/ncurses -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes  -I. -IInclude -I./Include -I/opt/f1c100s/tina/tina/out/host/include -I/opt/f1c100s/tina/tina/out/host/usr/include -I/opt/f1c100s/tina/tina/out/bangu-h300/staging_dir/target/host/include  -DPy_BUILD_CORE \
      -DGITVERSION="\"`LC_ALL=C `\"" \
      -DGITTAG="\"`LC_ALL=C `\"" \
      -DGITBRANCH="\"`LC_ALL=C `\"" \
      -o Modules/getbuildinfo.o ./Modules/getbuildinfo.c
./Modules/getbuildinfo.c: In function 'Py_GetBuildInfo':
./Modules/getbuildinfo.c:47:19: error: environment variable SOURCE_DATE_EPOCH must expand to a non-negative integer less than or equal to 253402300799
                   DATE, TIME);
                   ^~~~
Makefile:661: recipe for target 'Modules/getbuildinfo.o' failed
make[4]: *** [Modules/getbuildinfo.o] Error 1
make[4]: Leaving directory '/opt/f1c100s/tina/tina/out/bangu-h300/compile_dir/target/host/Python-2.7.15'
Makefile:246: recipe for target '/opt/f1c100s/tina/tina/out/bangu-h300/compile_dir/target/host/Python-2.7.15/.built' failed
make[3]: *** [/opt/f1c100s/tina/tina/out/bangu-h300/compile_dir/target/host/Python-2.7.15/.built] Error 2
make[3]: Leaving directory '/opt/f1c100s/tina/tina/package/lang/python'
package/Makefile:192: recipe for target 'package/lang/python/host/compile' failed
make[2]: *** [package/lang/python/host/compile] Error 2
make[2]: Leaving directory '/opt/f1c100s/tina/tina'
package/Makefile:189: recipe for target '/opt/f1c100s/tina/tina/out/bangu-h300/staging_dir/target/stamp/.package_compile' failed
make[1]: *** [/opt/f1c100s/tina/tina/out/bangu-h300/staging_dir/target/stamp/.package_compile] Error 2
make[1]: Leaving directory '/opt/f1c100s/tina/tina'
/opt/f1c100s/tina/tina/build/toplevel.mk:301: recipe for target 'world' failed
make: *** [world] Error 2

#### make failed to build some targets (17 seconds) ####

我也出现了

离线

#3 2022-07-10 23:08:09

哇酷小二
管理员
所在地: 你猜
注册时间: 2020-04-22
已发帖子: 3,388
积分: 1902
个人网站

Re: R16的Tina编译出现下面的问题怎样解决???

@yixiuge

试一试 Ubuntu 18.04 编译f1c200s tina 3.x
https://whycan.com/t_3270.html#p68835



原因: 查看 tina目录下 scripts/get_source_date_epoch.sh

解决方案: 可以修改在tina目录执行 date +%s > version.date 来生成一个日期值





离线

#4 2022-07-10 23:08:38

yixiuge
会员
注册时间: 2022-04-07
已发帖子: 56
积分: 66

Re: R16的Tina编译出现下面的问题怎样解决???

哇酷小二 说:

@yixiuge

试一试 Ubuntu 18.04 编译f1c200s tina 3.x
https://whycan.com/t_3270.html#p68835



原因: 查看 tina目录下 scripts/get_source_date_epoch.sh

解决方案: 可以修改在tina目录执行 date +%s > version.date 来生成一个日期值

问题解决, 谢谢大佬!

离线

页脚

工信部备案:粤ICP备20025096号 Powered by FluxBB

感谢为中文互联网持续输出优质内容的各位老铁们。 QQ: 516333132, 微信(wechat): whycan_cn (哇酷网/挖坑网/填坑网) service@whycan.cn