Compile error with perl modules

Hi,
since a few days, i get compilation errors while trying to make my onw firmware.

Is this already known ?

ake[3]: Entering directory '/home/klaus/lede/feeds/packages/lang/perl-parse-recdescent'
make[3]: Leaving directory '/home/klaus/lede/feeds/packages/lang/perl-parse-recdescent'
make[3]: Entering directory '/home/klaus/lede/feeds/packages/lang/perl-inline-c'
touch /home/klaus/lede/build_dir/target-mips_24kc_musl/perl/Inline-C-0.76/.prepared_ed57642cc7c0211cfc4c495a1040a053_6664517399ebbbc92a37c5bb081b5c53_check
. /home/klaus/lede/include/shell.sh; gzip -dc /home/klaus/lede/dl/Inline-C-0.76.tar.gz | tar -C /home/klaus/lede/build_dir/target-mips_24kc_musl/perl/Inline-C-0.76/.. -xf - 
[ ! -d ./src/ ] || cp -fpR ./src/* /home/klaus/lede/build_dir/target-mips_24kc_musl/perl/Inline-C-0.76

Applying ./patches/100-inline_c-no_compile_hack.patch using plaintext: 
patching file lib/Inline/C.pm

Applying ./patches/110-inline_c-make_system_typemap_overridable.patch using plaintext: 
patching file lib/Inline/C.pm
touch /home/klaus/lede/build_dir/target-mips_24kc_musl/perl/Inline-C-0.76/.prepared_ed57642cc7c0211cfc4c495a1040a053_6664517399ebbbc92a37c5bb081b5c53
rm -f /home/klaus/lede/staging_dir/target-mips_24kc_musl/stamp/.perl-inline-c_installed
(cd /home/klaus/lede/build_dir/target-mips_24kc_musl/perl/Inline-C-0.76; PERL_MM_USE_DEFAULT=1  /home/klaus/lede/staging_dir/hostpkg/usr/bin/perl5.26.0 -MConfig -e '${tied %Config::Config}{cpprun}="mips-openwrt-linux-cpp -E"; unshift(@INC, "."); unless (defined (do "./Makefile.PL")) { if ($@) { die "couldn\047t parse Makefile.PL: $@"; } else { die "couldn\047t do Makefile.PL: $!"; } }; die "No Makefile generated!" unless -f "Makefile";'  AR=ar CC=mips-openwrt-linux-gcc CCFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -Os -pipe -mno-branch-likely -mips32r2 -mtune=24kc -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float -mips16 -minterlink-mips16 -iremap/home/klaus/lede/build_dir/target-mips_24kc_musl/perl/Inline-C-0.76:Inline-C-0.76 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/home/klaus/lede/staging_dir/target-mips_24kc_musl/usr/include -I/home/klaus/lede/staging_dir/target-mips_24kc_musl/include -I/home/klaus/lede/staging_dir/toolchain-mips_24kc_gcc-5.5.0_musl/usr/include -I/home/klaus/lede/staging_dir/toolchain-mips_24kc_gcc-5.5.0_musl/include/fortify -I/home/klaus/lede/staging_dir/toolchain-mips_24kc_gcc-5.5.0_musl/include -D_REENTRANT -D_GNU_SOURCE" CCCDLFLAGS=-fPIC CCDLFLAGS=-Wl,-E DLEXT=so DLSRC=dl_dlopen.xs EXE_EXT=" " FULL_AR=mips-openwrt-linux-ar LD=mips-openwrt-linux-gcc LDDLFLAGS="-shared -rdynamic -L/home/klaus/lede/staging_dir/target-mips_24kc_musl/usr/lib -L/home/klaus/lede/staging_dir/target-mips_24kc_musl/lib -L/home/klaus/lede/staging_dir/toolchain-mips_24kc_gcc-5.5.0_musl/usr/lib -L/home/klaus/lede/staging_dir/toolchain-mips_24kc_gcc-5.5.0_musl/lib -znow -zrelro" LDFLAGS="  " LIBC=" " LIB_EXT=.a OBJ_EXT=.o OSNAME=linux OSVERS=2.4.30 RANLIB=: SITELIBEXP=" " SITEARCHEXP=" " SO=so VENDORARCHEXP=" " VENDORLIBEXP=" " SITEPREFIX=/usr INSTALLPRIVLIB=/usr/lib/perl5/5.26 INSTALLSITELIB=/usr/lib/perl5/5.26 INSTALLVENDORLIB=" " INSTALLARCHLIB=/usr/lib/perl5/5.26 INSTALLSITEARCH=/usr/lib/perl5/5.26 INSTALLVENDORARCH=" " INSTALLBIN=/usr/bin INSTALLSITEBIN=/usr/bin INSTALLVENDORBIN=" " INSTALLSCRIPT=/usr/bin INSTALLSITESCRIPT=/usr/bin INSTALLVENDORSCRIPT=" " INSTALLMAN1DIR=/usr/man/man1 INSTALLSITEMAN1DIR=/usr/man/man1 INSTALLVENDORMAN1DIR=" " INSTALLMAN3DIR=/usr/man/man3 INSTALLSITEMAN3DIR=/usr/man/man3 INSTALLVENDORMAN3DIR=" " LINKTYPE=dynamic DESTDIR=/home/klaus/lede/build_dir/target-mips_24kc_musl/perl/Inline-C-0.76/ipkg-install );
Checking if your kit is complete...
Looks good
Warning: prerequisite File::Copy::Recursive 0 not found.
Warning: prerequisite IO::All 0 not found.
Warning: prerequisite Pegex 0.58 not found.
Warning: prerequisite Test::Warn 0.23 not found.
Warning: prerequisite YAML::XS 0 not found.
Generating a Unix-style Makefile
Writing Makefile for Inline::C
Writing MYMETA.yml and MYMETA.json
couldn't do Makefile.PL: Inappropriate ioctl for device at -e line 1.
Makefile:64: recipe for target '/home/klaus/lede/build_dir/target-mips_24kc_musl/perl/Inline-C-0.76/.configured_68b329da9893e34099c7d8ad5cb9c940' failed
make[3]: *** [/home/klaus/lede/build_dir/target-mips_24kc_musl/perl/Inline-C-0.76/.configured_68b329da9893e34099c7d8ad5cb9c940] Error 25
make[3]: Leaving directory '/home/klaus/lede/feeds/packages/lang/perl-inline-c'
package/Makefile:109: recipe for target 'package/feeds/packages/perl-inline-c/compile' failed
make[2]: *** [package/feeds/packages/perl-inline-c/compile] Error 2
make[2]: Leaving directory '/home/klaus/lede'
package/Makefile:105: recipe for target '/home/klaus/lede/staging_dir/target-mips_24kc_musl/stamp/.package_compile' failed
make[1]: *** [/home/klaus/lede/staging_dir/target-mips_24kc_musl/stamp/.package_compile] Error 2
make[1]: Leaving directory '/home/klaus/lede'
/home/klaus/lede/include/toplevel.mk:216: die Regel für Ziel „world“ scheiterte
make: *** [world] Fehler 2

regards
Klaus

It doesn't help, but same error appears in official buildbot builds, see here.

I think it's this commit that breaks it:
https://github.com/openwrt/packages/pull/5027/files

I'm not sure if the commit makes it break or just makes it die instead of continue if the building of the package breaks, though. I suspect that it hasn't worked properly for a long time and that it just has a bigger impact on the building now.

You can edit the file back to the previous version yourself and see if the perl-inline-c module works, it's trunk/feeds/packages/lang/perl/perlmod.mk

@Per, thanks for this information .. (i will try it)
I have opened a issue:
https://github.com/openwrt/packages/issues/5064