Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

perl: userelocatableinc causes Alpine builds to fail #25589

Open
egorksv opened this issue Dec 21, 2024 · 1 comment
Open

perl: userelocatableinc causes Alpine builds to fail #25589

egorksv opened this issue Dec 21, 2024 · 1 comment

Comments

@egorksv
Copy link

egorksv commented Dec 21, 2024

Maintainer: @Naoir
Environment: Alpine Linux 3.18, OpenWRT 23.05.5

Description:
During cross-compilation of perl module on Alpine specifically, execution of miniperl fails, as been noted in multiple issues:
#10598

as an example:

make[3]: Entering directory '/root/openwrt-19.07/build_dir/target-mips_24kc_musl/perl/perl-5.28.1'

/bin/ln -s /root/openwrt-19.07/staging_dir/hostpkg/usr/bin/perl miniperl
LD_LIBRARY_PATH=/root/openwrt-19.07/build_dir/target-mips_24kc_musl/perl/perl-5.28.1 ./miniperl -w -Ilib -I. -Idist/Exporter/lib -MExporter -e '<?>' || sh -c 'echo >&2 Failed to build miniperl.  Please run make minitest; exit 1'

Can't locate File/Glob.pm in @INC (you may need to install the File::Glob module) (@INC contains: lib . dist/Exporter/lib ./../lib/perl5/site_perl/5.28.1/x86_64-linux ./../lib/perl5/site_perl/5.28.1 ./../lib/perl5/5.28.1/x86_64-linux ./../lib/perl5/5.28.1) at -e line 1.

This happens due to miniperl being called from perl source directory being cross-compiled, and ./../lib resolves to /root/openwrt-19.07/build_dir/target-mips_24kc_musl/perl/perl-5.28.1/./../lib which at this point does not contain Glob.pm

Removing -Duserelocatableinc from Makefile seems to solve the issue

@egorksv
Copy link
Author

egorksv commented Dec 21, 2024

Also #6700 - as that needs to be resolved first, unfortunately am unable to reopen that one

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant