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
麻烦大家支支招
离线
离线
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) ####
我也出现了
离线
离线
@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 来生成一个日期值
问题解决, 谢谢大佬!
离线