Mailing List Archive

Can't compile perl5.36 because of a bug in mktables
This is a bug report for perl from hilko.meyer@gmx.de,
generated with the help of perlbug 1.42 running under perl 5.36.3.


-----------------------------------------------------------------
[Please describe your issue here]

The build of Perl5.36 fails because a bug in lib/unicore/mktables occurred.


It fails with

rm -f ../../lib/auto/Unicode/Collate/Collate.so
cc -shared -L/usr/ports/lang/perl5.36/work/perl-5.36.3 -L/usr/local/lib/perl5/5.36/mach/CORE -lperl -L/usr/local/lib
-fstack-protector-strong Collate.o -o ../../lib/auto/Unicode/Collate/Collate.so
chmod 755 ../../lib/auto/Unicode/Collate/Collate.so
LD_LIBRARY_PATH=/usr/ports/lang/perl5.36/work/perl-5.36.3 ./miniperl -Ilib make_ext.pl lib/auto/Unicode/Normalize/Normalize.so
MAKE="/usr/bin/make" LIBPERL_A=libperl.so.5.36.3 LINKTYPE=dynamic
Making header files for XS...
Use of uninitialized value $tab[2] in substitution (s///) at ./mkheader line 122.
Use of uninitialized value $_[0] in pattern match (m//) at ./mkheader line 108.
Illegal hexadecimal digit '!' ignored at ./mkheader line 124.
Use of uninitialized value $tab[1] in string eq at ./mkheader line 125.
Weird Canonical Decomposition of U+0000 at ./mkheader line 155.
require ./mkheader called at Makefile.PL line 13
Unsuccessful Makefile.PL(dist/Unicode-Normalize): code=65280 at make_ext.pl line 532.
*** Error code 2

Stop.
make: stopped in /usr/ports/lang/perl5.36/work/perl-5.36.3
*** Error code 1


But much earlier there are many lines with this or similar errors:

LD_LIBRARY_PATH=/usr/ports/lang/perl5.36/work/perl-5.36.3 ./miniperl -Ilib lib/unicore/mktables -C lib/unicore -P pod
-maketest -makelist -p

lib/unicore/mktables: Bug in lib/unicore/mktables. Please report it by
running perlbug or if that is unavailable, by sending email to
perbug@perl.org: Unrecognized parameters 'Required_Even_in_Debug_Skip =>
1' to new() for Input_file object for PropertyAliases.txt. Skipped; at lib/unicore/mktables line 19533.
Use of uninitialized value in concatenation (.) or string at lib/unicore/mktables line 2640.

lib/unicore/mktables: Bug in lib/unicore/mktables. Please report it by
running perlbug or if that is unavailable, by sending email to
perbug@perl.org: Unrecognized parameters 'Progress_Message => Finishing
property setup' to new() for Input_file object for . Skipped; at lib/unicore/mktables line 19533.
Use of uninitialized value $progress in concatenation (.) or string at lib/unicore/mktables line 2510.


Complete log is here https://zerobin.net/?461ab1adeb6e2916#WYjQaxe1yF7QGfsoQFMLFSeucdcP8PxAqYzJ9yxPMRk=



[Please do not change anything below this line]
-----------------------------------------------------------------
---
Flags:
category=core
severity=high
---
Site configuration information for perl 5.36.3:

Configured by mat at Wed Nov 29 17:10:26 CET 2023.

Summary of my perl5 (revision 5 version 36 subversion 3) configuration:

Platform:
osname=freebsd
osvers=13.2-release-p3
archname=amd64-freebsd-thread-multi
uname='freebsd falko.fritz.box 13.2-release-p3 freebsd 13.2-release-p3 releng13.2-a1c915cc7 falko amd64 '
config_args='-Accflags=-DUSE_THREAD_SAFE_LOCALE -Darchlib=/usr/local/lib/perl5/5.36/mach -Dcc=cc -Dcf_by=mat -Dcf_email=mat@FreeBSD.org -Dcf_time=Wed Nov 29 17:10:26 CET 2023 -Dinc_version_list=none -Dlibperl=libperl.so.5.36.3 -Dman1dir=/usr/local/lib/perl5/5.36/perl/man/man1 -Dman3dir=/usr/local/lib/perl5/5.36/perl/man/man3 -Dprefix=/usr/local -Dprivlib=/usr/local/lib/perl5/5.36 -Dscriptdir=/usr/local/bin -Dsitearch=/usr/local/lib/perl5/site_perl/mach/5.36 -Dsitelib=/usr/local/lib/perl5/site_perl -Dsiteman1dir=/usr/local/lib/perl5/site_perl/man/man1 -Dsiteman3dir=/usr/local/lib/perl5/site_perl/man/man3 -Dusenm=n -Duseshrplib -sde -Ui_iconv -Ui_malloc -Uinstallusrbinperl -Alddlflags=-L/usr/ports/lang/perl5.36/work/perl-5.36.3 -L/usr/local/lib/perl5/5.36/mach/CORE -lperl
-Dshrpldflags=$(LDDLFLAGS:N-L/usr/ports/lang/perl5.36/work/perl-5.36.3:N-L/usr/local/lib/perl5/5.36/mach/CORE:N-lperl) -Wl,-soname,$(LIBPERL:R) -Doptimize=-O2 -pipe -march=amdfam10 -fstack-protector-strong -fno-strict-aliasing -Dusedtrace -Ui_gdbm -Dusemultiplicity=y -Duse64bitint -Dusemymalloc=n -Dusethreads=y'
hint=recommended
useposix=true
d_sigaction=define
useithreads=define
usemultiplicity=define
use64bitint=define
use64bitall=define
uselongdouble=undef
usemymalloc=n
default_inc_excludes_dot=define
Compiler:
cc='cc'
ccflags ='-DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -DUSE_THREAD_SAFE_LOCALE -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include'
optimize='-O2 -pipe -march=amdfam10 -fstack-protector-strong -fno-strict-aliasing '
cppflags='-DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -DUSE_THREAD_SAFE_LOCALE -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include'
ccversion=''
gccversion='FreeBSD Clang 14.0.5 (https://github.com/llvm/llvm-project.git llvmorg-14.0.5-0-gc12386ae247c)'
gccosandvers=''
intsize=4
longsize=8
ptrsize=8
doublesize=8
byteorder=12345678
doublekind=3
d_longlong=define
longlongsize=8
d_longdbl=define
longdblsize=16
longdblkind=3
ivtype='long'
ivsize=8
nvtype='double'
nvsize=8
Off_t='off_t'
lseeksize=8
alignbytes=8
prototype=define
Linker and Libraries:
ld='cc'
ldflags ='-pthread -Wl,-E -fstack-protector-strong -L/usr/local/lib'
libpth=/usr/lib /usr/local/lib /usr/lib/clang/14.0.5/lib
libs=-lgdbm -ldl -lm -lcrypt -lutil
perllibs=-ldl -lm -lcrypt -lutil
libc=
so=so
useshrplib=true
libperl=libperl.so.5.36.3
gnulibc_version=''
Dynamic Linking:
dlsrc=dl_dlopen.xs
dlext=so
d_dlsymun=undef
ccdlflags=' -Wl,-R/usr/local/lib/perl5/5.36/mach/CORE'
cccdlflags='-DPIC -fPIC'
lddlflags='-shared -L/usr/local/lib/perl5/5.36/mach/CORE -lperl -L/usr/local/lib -fstack-protector-strong'


---
@INC for perl 5.36.3:
/usr/local/lib/perl5/site_perl/mach/5.36
/usr/local/lib/perl5/site_perl
/usr/local/lib/perl5/5.36/mach
/usr/local/lib/perl5/5.36

---
Environment for perl 5.36.3:
HOME=/root
LANG=C.UTF-8
LANGUAGE (unset)
LD_LIBRARY_PATH (unset)
LOGDIR (unset)
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin
PERL_BADLANG (unset)
SHELL=/bin/csh
Re: Can't compile perl5.36 because of a bug in mktables [ In reply to ]
This looks to be very similar to

https://github.com/Perl/perl5/issues/22132

which you also reported.

The perl -V output in that report, and in this one, claims you built
with FreeBSD Clang 14.0.5 but the github reports you build with
17.0.6.

Which was it?

Tony

On Wed, Apr 10, 2024 at 02:14:19PM +0200, hilko.meyer via perl5-porters wrote:
>
> This is a bug report for perl from hilko.meyer@gmx.de,
> generated with the help of perlbug 1.42 running under perl 5.36.3.
>
>
> -----------------------------------------------------------------
> [Please describe your issue here]
>
> The build of Perl5.36 fails because a bug in lib/unicore/mktables occurred.
>
>
> It fails with
>
> rm -f ../../lib/auto/Unicode/Collate/Collate.so
> cc -shared -L/usr/ports/lang/perl5.36/work/perl-5.36.3 -L/usr/local/lib/perl5/5.36/mach/CORE -lperl -L/usr/local/lib
> -fstack-protector-strong Collate.o -o ../../lib/auto/Unicode/Collate/Collate.so
> chmod 755 ../../lib/auto/Unicode/Collate/Collate.so
> LD_LIBRARY_PATH=/usr/ports/lang/perl5.36/work/perl-5.36.3 ./miniperl -Ilib make_ext.pl lib/auto/Unicode/Normalize/Normalize.so
> MAKE="/usr/bin/make" LIBPERL_A=libperl.so.5.36.3 LINKTYPE=dynamic
> Making header files for XS...
> Use of uninitialized value $tab[2] in substitution (s///) at ./mkheader line 122.
> Use of uninitialized value $_[0] in pattern match (m//) at ./mkheader line 108.
> Illegal hexadecimal digit '!' ignored at ./mkheader line 124.
> Use of uninitialized value $tab[1] in string eq at ./mkheader line 125.
> Weird Canonical Decomposition of U+0000 at ./mkheader line 155.
> require ./mkheader called at Makefile.PL line 13
> Unsuccessful Makefile.PL(dist/Unicode-Normalize): code=65280 at make_ext.pl line 532.
> *** Error code 2
>
> Stop.
> make: stopped in /usr/ports/lang/perl5.36/work/perl-5.36.3
> *** Error code 1
>
>
> But much earlier there are many lines with this or similar errors:
>
> LD_LIBRARY_PATH=/usr/ports/lang/perl5.36/work/perl-5.36.3 ./miniperl -Ilib lib/unicore/mktables -C lib/unicore -P pod
> -maketest -makelist -p
>
> lib/unicore/mktables: Bug in lib/unicore/mktables. Please report it by
> running perlbug or if that is unavailable, by sending email to
> perbug@perl.org: Unrecognized parameters 'Required_Even_in_Debug_Skip =>
> 1' to new() for Input_file object for PropertyAliases.txt. Skipped; at lib/unicore/mktables line 19533.
> Use of uninitialized value in concatenation (.) or string at lib/unicore/mktables line 2640.
>
> lib/unicore/mktables: Bug in lib/unicore/mktables. Please report it by
> running perlbug or if that is unavailable, by sending email to
> perbug@perl.org: Unrecognized parameters 'Progress_Message => Finishing
> property setup' to new() for Input_file object for . Skipped; at lib/unicore/mktables line 19533.
> Use of uninitialized value $progress in concatenation (.) or string at lib/unicore/mktables line 2510.
>
>
> Complete log is here https://zerobin.net/?461ab1adeb6e2916#WYjQaxe1yF7QGfsoQFMLFSeucdcP8PxAqYzJ9yxPMRk=
>
>
>
> [Please do not change anything below this line]
> -----------------------------------------------------------------
> ---
> Flags:
> category=core
> severity=high
> ---
> Site configuration information for perl 5.36.3:
>
> Configured by mat at Wed Nov 29 17:10:26 CET 2023.
>
> Summary of my perl5 (revision 5 version 36 subversion 3) configuration:
>
> Platform:
> osname=freebsd
> osvers=13.2-release-p3
> archname=amd64-freebsd-thread-multi
> uname='freebsd falko.fritz.box 13.2-release-p3 freebsd 13.2-release-p3 releng13.2-a1c915cc7 falko amd64 '
> config_args='-Accflags=-DUSE_THREAD_SAFE_LOCALE -Darchlib=/usr/local/lib/perl5/5.36/mach -Dcc=cc -Dcf_by=mat -Dcf_email=mat@FreeBSD.org -Dcf_time=Wed Nov 29 17:10:26 CET 2023 -Dinc_version_list=none -Dlibperl=libperl.so.5.36.3 -Dman1dir=/usr/local/lib/perl5/5.36/perl/man/man1 -Dman3dir=/usr/local/lib/perl5/5.36/perl/man/man3 -Dprefix=/usr/local -Dprivlib=/usr/local/lib/perl5/5.36 -Dscriptdir=/usr/local/bin -Dsitearch=/usr/local/lib/perl5/site_perl/mach/5.36 -Dsitelib=/usr/local/lib/perl5/site_perl -Dsiteman1dir=/usr/local/lib/perl5/site_perl/man/man1 -Dsiteman3dir=/usr/local/lib/perl5/site_perl/man/man3 -Dusenm=n -Duseshrplib -sde -Ui_iconv -Ui_malloc -Uinstallusrbinperl -Alddlflags=-L/usr/ports/lang/perl5.36/work/perl-5.36.3 -L/usr/local/lib/perl5/5.36/mach/CORE -lperl
> -Dshrpldflags=$(LDDLFLAGS:N-L/usr/ports/lang/perl5.36/work/perl-5.36.3:N-L/usr/local/lib/perl5/5.36/mach/CORE:N-lperl) -Wl,-soname,$(LIBPERL:R) -Doptimize=-O2 -pipe -march=amdfam10 -fstack-protector-strong -fno-strict-aliasing -Dusedtrace -Ui_gdbm -Dusemultiplicity=y -Duse64bitint -Dusemymalloc=n -Dusethreads=y'
> hint=recommended
> useposix=true
> d_sigaction=define
> useithreads=define
> usemultiplicity=define
> use64bitint=define
> use64bitall=define
> uselongdouble=undef
> usemymalloc=n
> default_inc_excludes_dot=define
> Compiler:
> cc='cc'
> ccflags ='-DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -DUSE_THREAD_SAFE_LOCALE -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include'
> optimize='-O2 -pipe -march=amdfam10 -fstack-protector-strong -fno-strict-aliasing '
> cppflags='-DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -DUSE_THREAD_SAFE_LOCALE -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include'
> ccversion=''
> gccversion='FreeBSD Clang 14.0.5 (https://github.com/llvm/llvm-project.git llvmorg-14.0.5-0-gc12386ae247c)'
> gccosandvers=''
> intsize=4
> longsize=8
> ptrsize=8
> doublesize=8
> byteorder=12345678
> doublekind=3
> d_longlong=define
> longlongsize=8
> d_longdbl=define
> longdblsize=16
> longdblkind=3
> ivtype='long'
> ivsize=8
> nvtype='double'
> nvsize=8
> Off_t='off_t'
> lseeksize=8
> alignbytes=8
> prototype=define
> Linker and Libraries:
> ld='cc'
> ldflags ='-pthread -Wl,-E -fstack-protector-strong -L/usr/local/lib'
> libpth=/usr/lib /usr/local/lib /usr/lib/clang/14.0.5/lib
> libs=-lgdbm -ldl -lm -lcrypt -lutil
> perllibs=-ldl -lm -lcrypt -lutil
> libc=
> so=so
> useshrplib=true
> libperl=libperl.so.5.36.3
> gnulibc_version=''
> Dynamic Linking:
> dlsrc=dl_dlopen.xs
> dlext=so
> d_dlsymun=undef
> ccdlflags=' -Wl,-R/usr/local/lib/perl5/5.36/mach/CORE'
> cccdlflags='-DPIC -fPIC'
> lddlflags='-shared -L/usr/local/lib/perl5/5.36/mach/CORE -lperl -L/usr/local/lib -fstack-protector-strong'
>
>
> ---
> @INC for perl 5.36.3:
> /usr/local/lib/perl5/site_perl/mach/5.36
> /usr/local/lib/perl5/site_perl
> /usr/local/lib/perl5/5.36/mach
> /usr/local/lib/perl5/5.36
>
> ---
> Environment for perl 5.36.3:
> HOME=/root
> LANG=C.UTF-8
> LANGUAGE (unset)
> LD_LIBRARY_PATH (unset)
> LOGDIR (unset)
> PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin
> PERL_BADLANG (unset)
> SHELL=/bin/csh