dslm4515 / CMLFS

Clang-Built Musl Linux From Scratch
MIT License
106 stars 18 forks source link

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

Closed dslm4515 closed 1 year ago

dslm4515 commented 1 year ago

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
dslm4515 commented 1 year ago

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
dslm4515 commented 1 year ago

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

dslm4515 commented 1 year ago

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