Yocto petalinux项目构建失败,m4-native-1.4.18-r0 do_编译在主机Ubuntu 20.04 LTS上失败
在尝试移植Linux 2018.3项目时,将Ubuntu 16主机编译为Ubuntu 20主机。 发生以下错误Yocto petalinux项目构建失败,m4-native-1.4.18-r0 do_编译在主机Ubuntu 20.04 LTS上失败,yocto,xilinx,ubuntu-20.04,petalinux,Yocto,Xilinx,Ubuntu 20.04,Petalinux,在尝试移植Linux 2018.3项目时,将Ubuntu 16主机编译为Ubuntu 20主机。 发生以下错误 ERROR: m4-native-1.4.18-r0 do_compile: Function failed: do_compile (log file is located at . . . . | gcc -I. -I../../m4-1.4.18/lib -isystem/home/os-bsp-team/fadil/
ERROR: m4-native-1.4.18-r0 do_compile: Function failed: do_compile (log file is located at .
.
.
.
| gcc -I. -I../../m4-1.4.18/lib -isystem/home/os-bsp-team/fadil/2018.3/projects/rrh_4.0/RRH_TRX_MULTI_ADI_MULTICH/build/tmp/work/x86_64-linux/m4-native/1.4.18-r0/recipe-sysroot-native/usr/include -isystem/home/os-bsp-team/fadil/2018.3/projects/rrh_4.0/RRH_TRX_MULTI_ADI_MULTICH/build/tmp/work/x86_64-linux/m4-native/1.4.18-r0/recipe-sysroot-native/usr/include -O2 -pipe -c -o freadahead.o ../../m4-1.4.18/lib/freadahead.c
| gcc -I. -I../../m4-1.4.18/lib -isystem/home/os-bsp-team/fadil/2018.3/projects/rrh_4.0/RRH_TRX_MULTI_ADI_MULTICH/build/tmp/work/x86_64-linux/m4-native/1.4.18-r0/recipe-sysroot-native/usr/include -isystem/home/os-bsp-team/fadil/2018.3/projects/rrh_4.0/RRH_TRX_MULTI_ADI_MULTICH/build/tmp/work/x86_64-linux/m4-native/1.4.18-r0/recipe-sysroot-native/usr/include -O2 -pipe -c -o fseeko.o ../../m4-1.4.18/lib/fseeko.c
| ../../m4-1.4.18/lib/fseeko.c: In function ‘rpl_fseeko’:
| ../../m4-1.4.18/lib/fseeko.c:110:4: error: #error "Please port gnulib fseeko.c to your platform! Look at the code in fseeko.c, then report this to bug-gnulib."
| 110 | #error "Please port gnulib fseeko.c to your platform! Look at the code in fseeko.c, then report this to bug-gnulib."
| | ^~~~~
| ../../m4-1.4.18/lib/freadahead.c: In function ‘freadahead’:
| ../../m4-1.4.18/lib/freadahead.c:92:3: error: #error "Please port gnulib freadahead.c to your platform! Look at the definition of fflush, fread, ungetc on your system, then report this to bug-gnulib."
| 92 | #error "Please port gnulib freadahead.c to your platform! Look at the definition of fflush, fread, ungetc on your system, then report this to bug-gnulib."
| | ^~~~~
| make[3]: *** [Makefile:1915: fseeko.o] Error 1
| make[3]: *** Waiting for unfinished jobs....
| make[3]: *** [Makefile:1915: freadahead.o] Error 1
| make[3]: Leaving directory '/home/os-bsp-team/fadil/2018.3/projects/rrh_4.0/RRH_TRX_MULTI_ADI_MULTICH/build/tmp/work/x86_64-linux/m4-native/1.4.18-r0/build/lib'
| make[2]: *** [Makefile:1674: all] Error 2
| make[2]: Leaving directory '/home/os-bsp-team/fadil/2018.3/projects/rrh_4.0/RRH_TRX_MULTI_ADI_MULTICH/build/tmp/work/x86_64-linux/m4-native/1.4.18-r0/build/lib'
| make[1]: *** [Makefile:1572: all-recursive] Error 1
| make[1]: Leaving directory '/home/os-bsp-team/fadil/2018.3/projects/rrh_4.0/RRH_TRX_MULTI_ADI_MULTICH/build/tmp/work/x86_64-linux/m4-native/1.4.18-r0/build'
| make: *** [Makefile:1528: all] Error 2
| ERROR: oe_runmake failed
| WARNING: exit code 1 from a shell command.
| ERROR: Function failed: do_compile (log file is located at /home/os-bsp-team/fadil/2018.3/projects/rrh_4.0/RRH_TRX_MULTI_ADI_MULTICH/build/tmp/work/x86_64-linux/m4-native/1.4.18-r0/temp/log.do_compile.1545563)
ERROR: Task (/home/os-bsp-team/fadil/2018.3/components/yocto/source/aarch64/layers/core/meta/recipes-devtools/m4/m4-native_1.4.18.bb:do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 894 tasks of which 878 didn't need to be rerun and 1 failed.
通过谷歌搜索发现需要应用此修补程序。请有人帮助解决此问题并在yocto中应用此修补程序。您可以使用类似git的工具应用此修补程序 或者,您可以下载并将其放置在
meta/recipes devtools/m4/files
中的files
子文件夹中,然后将以下行添加到SRC_URI
:
SRC_URI = "${GNU_MIRROR}/m4/m4-${PV}.tar.gz \
file://ac_config_links.patch \
file://remove-gets.patch \
file://m4-1.4.18-glibc-change-work-around.patch \
"
file://m4-1.4.18-glibc-change-work-around.patch
在SRC_中,URI将为您应用修补程序
您还可以查找
remove get.patch
的位置,并将此修补程序放在同一文件夹中。很抱歉回复过迟,但此问题无法通过上述步骤得到解决。我试着应用你提到的补丁,但o/p没有变化。有可能在ubuntu 20上运行yocto poky吗?你能确认补丁已经应用了吗?