openwrt / openwrt/packages

perl: (host) fails to build on Debian 10 and 11

Open
#16,629 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

release/21.02 stale
Dominant language
Makefile
Stars
4.6k
Forks
4k
Avg merge
3d 12h
Merged PRs (30d)
134

Description

Maintainer: @Naoir @pprindeville
Environment: ipq40xx, avm_fritzbox-4040, 21.02 (tried to build on Debian amd64 10 and 11)

Description:
I'm building OpenWrt from source. I do this since Attitude Adjustment (12.09) and it has always worked well.

When trying to build 21.02 with included rsync package, a perl build dependency is pulled in. This fails due to perl complaining about not being able to find the File::Glob module.

Steps to reproduce:

git clone https://git.openwrt.org/openwrt/openwrt.git -b openwrt-21.02 ./src
cd src
./scripts/feeds update packages
./scripts/feeds install rsync
( echo "CONFIG_TARGET_ipq40xx=y"; echo "CONFIG_TARGET_ipq40xx_generic=y"; echo "CONFIG_TARGET_ipq40xx_generic_DEVICE_avm_fritzbox-4040=y"; echo "CONFIG_PACKAGE_rsync=y" ) >.config
make defconfig
make -j1 --output-sync=recurse V=sc

Last lines of the output:

/bin/ln -s /home/sven/src/staging_dir/hostpkg/usr/bin/perl miniperl
LD_LIBRARY_PATH=/home/sven/src/build_dir/target-arm_cortex-a7\+neon-vfpv4_musl_eabi/perl/perl-5.28.1 ./miniperl -w -Ilib -I. -Idist/Exporter/lib -MExporter -e '<?>' || sh -c 'echo >&2 Failed to build min
iperl.  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 ./../l
ib/perl5/5.28.1/x86_64-linux ./../lib/perl5/5.28.1) at -e line 1.
BEGIN failed--compilation aborted at -e line 1.
Failed to build miniperl. Please run make minitest
make[4]: *** [makefile:363: lib/buildcustomize.pl] Error 1
make[4]: Leaving directory '/home/sven/src/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/perl/perl-5.28.1'
make[3]: *** [Makefile:150: /home/sven/src/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/perl/perl-5.28.1/.built] Error 2
make[3]: Leaving directory '/home/sven/src/feeds/packages/lang/perl'
time: package/feeds/packages/perl/compile#0.53#0.12#0.59
    ERROR: package/feeds/packages/perl failed to build.
make[2]: *** [package/Makefile:114: package/feeds/packages/perl/compile] Error 1
make[2]: Leaving directory '/home/sven/src'
make[1]: *** [package/Makefile:108: /home/sven/src/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/stamp/.package_compile] Error 2
make[1]: Leaving directory '/home/sven/src'
make: *** [/home/sven/src/include/toplevel.mk:230: world] Error 2

Looking into rsync's Makefile, perl seems to be a host build dependency for rsync. My perl knowledge is not good enough to understand why File/Glob.pm isn't found (it seems to be there).

Does anybody have an idea to come around this?

Thanks!

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the failure using the listed OpenWrt 21.02 configuration and the rsync package. Inspect feeds/packages/lang/perl/Makefile, rsync's Makefile, and the Perl 5.28.1 build output around miniperl and File/Glob.pm; done means the Perl host dependency builds successfully on Debian 10 and 11.

Written by the indexing model from the issue text.

Assessment

Tech stack
perl
Domain
build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.