dslm4515 / CMLFS

Clang-Built Musl Linux From Scratch

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Perl 5.36.0 + perl-cross-1.4: Fails to build for llvmtools

dslm4515 opened this issue · comments

Perl wil not cross compile after copying perl-cross over it:

make[1]: Leaving directory '/mnt/cmlfs/sources/perl-5.36.0'
make dynaloader
make[1]: Entering directory '/mnt/cmlfs/sources/perl-5.36.0'
sh cflags.SH
cflags.SH: Adding -Werror=pointer-arith.
cflags.SH: Adding -Werror=vla.
cflags.SH: Adding -Wextra.
cflags.SH: Adding -Wno-long-long.
cflags.SH: Adding -Wno-declaration-after-statement.
cflags.SH: Adding -Wc++-compat.
cflags.SH: Adding -Wwrite-strings.
cflags.SH: cc       = x86_64-pc-linux-musl-clang
cflags.SH: ccflags  = -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
cflags.SH: stdflags = 
cflags.SH: optimize = 
cflags.SH: warn     =  -Wall -Werror=pointer-arith -Werror=vla -Wextra -Wno-long-long -Wno-declaration-after-statement -Wc++-compat -Wwrite-strings
Extracting cflags (with variable substitutions)
./miniperl_top make_patchnum.pl
make[1]: *** [Makefile:204: lib/Config_git.pl] Segmentation fault
make[1]: Leaving directory '/mnt/cmlfs/sources/perl-5.36.0'
make: *** [Makefile:81: all] Error 2

Causes a segfault:

[745337.653748] miniperl[2076]: segfault at 5aa8bec3 ip 000055b35adbb421 sp 00007ffe3b8e9840 error 4 in miniperl[55b35ac17000+26f000]
[745337.653766] Code: 00 00 e9 1c 00 00 00 48 8b bd 58 ff ff ff 31 c0 89 c6 e8 52 0c 00 00 48 89 85 00 ff ff ff e9 11 00 00 00 48 8b 85 58 ff ff ff <0f> b6 00 48 89 85 00 ff ff ff 48 8b 85 00 ff ff ff 48 89 85 50 ff

perl-5.32.1 + perl-cross-1.4 = builds fine

perl will no longer be cross-compiled for llvmtools.
It can be compiled under chroot instead: commit b7a3872