Message ID | 20250515165010.242349-4-rajendra.desai@emerson.com |
---|---|
State | New |
Headers | show |
Series | perl-ptest: fix 5 of the ExtUtils ptests | expand |
diff --git a/meta/recipes-devtools/perl/perl-ptest.inc b/meta/recipes-devtools/perl/perl-ptest.inc index 3eab5e25e9..e14f0d0403 100644 --- a/meta/recipes-devtools/perl/perl-ptest.inc +++ b/meta/recipes-devtools/perl/perl-ptest.inc @@ -60,7 +60,7 @@ python populate_packages:prepend() { } RDEPENDS:${PN}-ptest += "${PN}-modules ${PN}-doc sed procps-ps" -RRECOMMENDS:${PN}-ptest += "gcc libxcrypt-dev" +RRECOMMENDS:${PN}-ptest += "gcc libxcrypt-dev g++" # The perl-ptest package contains Perl internal modules and generating file # dependencies for it causes problems.
The following perl ptests: dist/ExtUtils-ParseXS/t/001-basic dist/ExtUtils-ParseXS/t/002-more dist/ExtUtils-ParseXS/t/003-usage are giving out below warning while running on the yocto CI build: /usr/lib/gcc/x86_64-poky-linux/14.2.0/../../../../x86_64-poky-linux/bin/ld: cannot find crtbeginS.o: No such file or directory /usr/lib/gcc/x86_64-poky-linux/14.2.0/../../../../x86_64-poky-linux/bin/ld: cannot find -lgcc: No such file or directory /usr/lib/gcc/x86_64-poky-linux/14.2.0/../../../../x86_64-poky-linux/bin/ld: cannot find -lgcc_s: No such file or directory collect2: error: ld returned 1 exit status additionally, 2 of the tests are skipping out: SKIP: cpan/ExtUtils-Constant/t/Constant /usr/lib/gcc/x86_64-poky-linux/14.2.0/../../../../x86_64-poky-linux/bin/ld: cannot find crtbeginS.o: No such file or directory /usr/lib/gcc/x86_64-poky-linux/14.2.0/../../../../x86_64-poky-linux/bin/ld: cannot find -lgcc: No such file or directory /usr/lib/gcc/x86_64-poky-linux/14.2.0/../../../../x86_64-poky-linux/bin/ld: cannot find -lgcc_s: No such file or directory collect2: error: ld returned 1 exit status SKIP: cpan/ExtUtils-MakeMaker/t/02-xsdynamic This is mainly due to a missing g++ dependency which is needed by the above tests. Hence, adding the package under RRECOMMENDS to make sure the tests are able to find the compiler and that the tests do not skip or output the missing file or directory warning. Signed-off-by: Rajendra Desai <rajendra.desai@emerson.com> --- meta/recipes-devtools/perl/perl-ptest.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)