Automake and Perl versions conflicts

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Automake and Perl versions conflicts

跳至解决方案
2,445 次查看
felipe-gm
Contributor II

I am trying to build my system image relying on Yocto/Poky. My target system is a P2020-RDB board. My base system is a Linux Mate 19.*

I am using the latest SDK supporting my target system (1.9) and have followed instructions regarding installing all needed dependencies. 

Now, when I get to part to actually build my fsl-image, I have an error. The end of the error log is:

in=Config.in \
&& ( sed -e "s,[@]configure_input[@],Generated from $in; do not edit by hand.,g" -e 's,[@]datadir[@],/tools/NXP_SDK/QorIQ-SDK-V1.9-20151210-yocto/build_p2020rdb/tmp/sysroots/x86_64-linux/usr/share,g' -e 's,[@]amdir[@],/tools/NXP_SDK/QorIQ-SDK-V1.9-20151210-yocto/build_p2020rdb/tmp/sysroots/x86_64-linux/usr/share/automake-1.15/am,g' -e 's,[@]bindir[@],/tools/NXP_SDK/QorIQ-SDK-V1.9-20151210-yocto/build_p2020rdb/tmp/sysroots/x86_64-linux/usr/bin,g' -e 's,[@]docdir[@],/tools/NXP_SDK/QorIQ-SDK-V1.9-20151210-yocto/build_p2020rdb/tmp/sysroots/x86_64-linux/usr/share/doc/automake,g' -e 's,[@]pkgvdatadir[@],/tools/NXP_SDK/QorIQ-SDK-V1.9-20151210-yocto/build_p2020rdb/tmp/sysroots/x86_64-linux/usr/share/automake-1.15,g' -e 's,[@]scriptdir[@],/tools/NXP_SDK/QorIQ-SDK-V1.9-20151210-yocto/build_p2020rdb/tmp/sysroots/x86_64-linux/usr/share/automake-1.15,g' -e 's,[@]automake_acdir[@],/tools/NXP_SDK/QorIQ-SDK-V1.9-20151210-yocto/build_p2020rdb/tmp/sysroots/x86_64-linux/usr/share/aclocal-1.15,g' -e 's,[@]system_acdir[@],/tools/NXP_SDK/QorIQ-SDK-V1.9-20151210-yocto/build_p2020rdb/tmp/sysroots/x86_64-linux/usr/share/aclocal,g' -e 's,[@]am__isrc[@],!!@!!am__isrc!!@!!,g' | /bin/bash ./config.status --file=- | sed -e 's,!!@!!am__isrc!!@!!,@''am__isrc@,g' ) </tools/NXP_SDK/QorIQ-SDK-V1.9-20151210-yocto/build_p2020rdb/tmp/work/x86_64-linux/automake-native/1.15-r0/automake-1.15/lib/Automake/Config.in >lib/Automake/Config.pm-t
in=t/ax/test-defs.in \
&& ( sed -e "s,[@]configure_input[@],Generated from $in; do not edit by hand.,g" -e 's,[@]datadir[@],/tools/NXP_SDK/QorIQ-SDK-V1.9-20151210-yocto/build_p2020rdb/tmp/sysroots/x86_64-linux/usr/share,g' -e 's,[@]amdir[@],/tools/NXP_SDK/QorIQ-SDK-V1.9-20151210-yocto/build_p2020rdb/tmp/sysroots/x86_64-linux/usr/share/automake-1.15/am,g' -e 's,[@]bindir[@],/tools/NXP_SDK/QorIQ-SDK-V1.9-20151210-yocto/build_p2020rdb/tmp/sysroots/x86_64-linux/usr/bin,g' -e 's,[@]docdir[@],/tools/NXP_SDK/QorIQ-SDK-V1.9-20151210-yocto/build_p2020rdb/tmp/sysroots/x86_64-linux/usr/share/doc/automake,g' -e 's,[@]pkgvdatadir[@],/tools/NXP_SDK/QorIQ-SDK-V1.9-20151210-yocto/build_p2020rdb/tmp/sysroots/x86_64-linux/usr/share/automake-1.15,g' -e 's,[@]scriptdir[@],/tools/NXP_SDK/QorIQ-SDK-V1.9-20151210-yocto/build_p2020rdb/tmp/sysroots/x86_64-linux/usr/share/automake-1.15,g' -e 's,[@]automake_acdir[@],/tools/NXP_SDK/QorIQ-SDK-V1.9-20151210-yocto/build_p2020rdb/tmp/sysroots/x86_64-linux/usr/share/aclocal-1.15,g' -e 's,[@]system_acdir[@],/tools/NXP_SDK/QorIQ-SDK-V1.9-20151210-yocto/build_p2020rdb/tmp/sysroots/x86_64-linux/usr/share/aclocal,g' -e 's,[@]am__isrc[@],!!@!!am__isrc!!@!!,g' | /bin/bash ./config.status --file=- | sed -e 's,!!@!!am__isrc!!@!!,@''am__isrc@,g' ) </tools/NXP_SDK/QorIQ-SDK-V1.9-20151210-yocto/build_p2020rdb/tmp/work/x86_64-linux/automake-native/1.15-r0/automake-1.15/$in >t/ax/test-defs.sh-t
if LC_ALL=C grep '@[a-zA-Z0-9_][a-zA-Z0-9_]*@' runtest-t; then echo "runtest contains unexpanded substitution (see lines above)"; exit 1; fi; chmod a-w runtest-t && mv -f runtest-t runtest
if LC_ALL=C grep '@[a-zA-Z0-9_][a-zA-Z0-9_]*@' lib/Automake/Config.pm-t; then echo "lib/Automake/Config.pm contains unexpanded substitution (see lines above)"; exit 1; fi; chmod a-w lib/Automake/Config.pm-t && mv -f lib/Automake/Config.pm-t lib/Automake/Config.pm
if LC_ALL=C grep '@[a-zA-Z0-9_][a-zA-Z0-9_]*@' t/ax/test-defs.sh-t; then echo "t/ax/test-defs.sh contains unexpanded substitution (see lines above)"; exit 1; fi; chmod a-w t/ax/test-defs.sh-t && mv -f t/ax/test-defs.sh-t t/ax/test-defs.sh
: && /bin/mkdir -p doc && { PATH='/tools/NXP_SDK/QorIQ-SDK-V1.9-20151210-yocto/build_p2020rdb/tmp/work/x86_64-linux/automake-native/1.15-r0/build/t/wrap:'$PATH && export PATH; } && /usr/bin/perl /tools/NXP_SDK/QorIQ-SDK-V1.9-20151210-yocto/build_p2020rdb/tmp/work/x86_64-linux/automake-native/1.15-r0/automake-1.15/doc/help2man --output=doc/aclocal-1.15.1 aclocal-1.15
: && /bin/mkdir -p doc && { PATH='/tools/NXP_SDK/QorIQ-SDK-V1.9-20151210-yocto/build_p2020rdb/tmp/work/x86_64-linux/automake-native/1.15-r0/build/t/wrap:'$PATH && export PATH; } && /usr/bin/perl /tools/NXP_SDK/QorIQ-SDK-V1.9-20151210-yocto/build_p2020rdb/tmp/work/x86_64-linux/automake-native/1.15-r0/automake-1.15/doc/help2man --output=doc/automake-1.15.1 automake-1.15
help2man: can't get `--help' info from automake-1.15
Try `--no-discard-stderr' if option outputs to stderr
Makefile:3687: recipe for target 'doc/automake-1.15.1' failed
make: *** [doc/automake-1.15.1] Error 255
make: *** Waiting for unfinished jobs....
ERROR: oe_runmake failed
WARNING: exit code 1 from a shell command.
ERROR: Function failed: do_compile (log file is located at /tools/NXP_SDK/QorIQ-SDK-V1.9-20151210-yocto/build_p2020rdb/tmp/work/x86_64-linux/automake-native/1.15-r0/temp/log.do_compile.15733)

and it is related to this bitbake error: help2man: can't get `--help' info from automake-1.15 

Still, I have not been able to reproduce fix steps.

Is there any workaround for this?

Thanks in advance,

标记 (2)
0 项奖励
回复
1 解答
2,216 次查看
yipingwang
NXP TechSupport
NXP TechSupport

Hello Felipe Magalhaes,

Please also install Cache ISO QorIQ-SDK-V1.9-PPCE500V2-CACHE-20151210-yocto.iso in the same path as the source ISO. The cache ISO provides build cache for package automake-native, so no need to build automake-native from the scratch.

在原帖中查看解决方案

0 项奖励
回复
2 回复数
2,217 次查看
yipingwang
NXP TechSupport
NXP TechSupport

Hello Felipe Magalhaes,

Please also install Cache ISO QorIQ-SDK-V1.9-PPCE500V2-CACHE-20151210-yocto.iso in the same path as the source ISO. The cache ISO provides build cache for package automake-native, so no need to build automake-native from the scratch.

0 项奖励
回复
2,215 次查看
felipe-gm
Contributor II

Hi yipingwang‌ thank you very much for your reply.

Your solution fixed the first error, but led to another:

Unable to install packages. Command '/tools/SDK_NXP/QorIQ-SDK-V1.9-20151210-yocto/build_p2020rdb/tmp/sysroots/x86_64-linux/usr/bin/smart --quiet --data-dir=/tools/SDK_NXP/QorIQ-SDK-V1.9-20151210-yocto/build_p2020rdb/tmp/work/p2020rdb-fsl-linux-gnuspe/fsl-image-minimal/1.0-r0/rootfs/var/lib/smart install --attempt -y ' returned 1:
No real function for mknod: /tools/SDK_NXP/QorIQ-SDK-V1.9-20151210-yocto/build_p2020rdb/tmp/sysroots/x86_64-linux/usr/bin/../lib/pseudo/lib64/libpseudo.so: undefined symbol: mknod
No real function for mknodat: /tools/SDK_NXP/QorIQ-SDK-V1.9-20151210-yocto/build_p2020rdb/tmp/sysroots/x86_64-linux/usr/bin/../lib/pseudo/lib64/libpseudo.so: undefined symbol: mknodat
No real function for mknod: /tools/SDK_NXP/QorIQ-SDK-V1.9-20151210-yocto/build_p2020rdb/tmp/sysroots/x86_64-linux/usr/bin/../lib/pseudo/lib64/libpseudo.so: undefined symbol: mknod
No real function for mknodat: /tools/SDK_NXP/QorIQ-SDK-V1.9-20151210-yocto/build_p2020rdb/tmp/sysroots/x86_64-linux/usr/bin/../lib/pseudo/lib64/libpseudo.so: undefined symbol: mknodat
No real function for mknod: /tools/SDK_NXP/QorIQ-SDK-V1.9-20151210-yocto/build_p2020rdb/tmp/sysroots/x86_64-linux/usr/bin/../lib/pseudo/lib64/libpseudo.so: undefined symbol: mknod
No real function for mknodat: /tools/SDK_NXP/QorIQ-SDK-V1.9-20151210-yocto/build_p2020rdb/tmp/sysroots/x86_64-linux/usr/bin/../lib/pseudo/lib64/libpseudo.so: undefined symbol: mknodat
No real function for mknod: /tools/SDK_NXP/QorIQ-SDK-V1.9-20151210-yocto/build_p2020rdb/tmp/sysroots/x86_64-linux/usr/bin/../lib/pseudo/lib64/libpseudo.so: undefined symbol: mknod
No real function for mknodat: /tools/SDK_NXP/QorIQ-SDK-V1.9-20151210-yocto/build_p2020rdb/tmp/sysroots/x86_64-linux/usr/bin/../lib/pseudo/lib64/libpseudo.so: undefined symbol: mknodat
No real function for mknod: /tools/SDK_NXP/QorIQ-SDK-V1.9-20151210-yocto/build_p2020rdb/tmp/sysroots/x86_64-linux/usr/bin/../lib/pseudo/lib64/libpseudo.so: undefined symbol: mknod
No real function for mknodat: /tools/SDK_NXP/QorIQ-SDK-V1.9-20151210-yocto/build_p2020rdb/tmp/sysroots/x86_64-linux/usr/bin/../lib/pseudo/lib64/libpseudo.so: undefined symbol: mknodat
No real function for mknod: /tools/SDK_NXP/QorIQ-SDK-V1.9-20151210-yocto/build_p2020rdb/tmp/sysroots/x86_64-linux/usr/bin/../lib/pseudo/lib64/libpseudo.so: undefined symbol: mknod
No real function for mknodat: /tools/SDK_NXP/QorIQ-SDK-V1.9-20151210-yocto/build_p2020rdb/tmp/sysroots/x86_64-linux/usr/bin/../lib/pseudo/lib64/libpseudo.so: undefined symbol: mknodat
No real function for mknod: /tools/SDK_NXP/QorIQ-SDK-V1.9-20151210-yocto/build_p2020rdb/tmp/sysroots/x86_64-linux/usr/bin/../lib/pseudo/lib64/libpseudo.so: undefined symbol: mknod
No real function for mknodat: /tools/SDK_NXP/QorIQ-SDK-V1.9-20151210-yocto/build_p2020rdb/tmp/sysroots/x86_64-linux/usr/bin/../lib/pseudo/lib64/libpseudo.so: undefined symbol: mknodat
No real function for mknod: /tools/SDK_NXP/QorIQ-SDK-V1.9-20151210-yocto/build_p2020rdb/tmp/sysroots/x86_64-linux/usr/bin/../lib/pseudo/lib64/libpseudo.so: undefined symbol: mknod
No real function for mknodat: /tools/SDK_NXP/QorIQ-SDK-V1.9-20151210-yocto/build_p2020rdb/tmp/sysroots/x86_64-linux/usr/bin/../lib/pseudo/lib64/libpseudo.so: undefined symbol: mknodat
error: no package(s) given

Apparently, poky issue, based on what i've found online. Nevertheless, mostly what i've found says it is fixed in a given version of poky. Still, i am not controlling it, as I just use the recipe from bitbake (bitbake fsl-image-*)

Do you have any suggestions here?

Thanks once again

0 项奖励
回复