Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unexpected compiler output + Use of uninitialized value $cvname in string eq #434

Open
vadimkantorov opened this issue Oct 8, 2020 · 2 comments

Comments

@vadimkantorov
Copy link

vadimkantorov commented Oct 8, 2020

I'm running perlcc with a new cperl install and get the following error. However, tlmgr.c gets generated.

TL=http://mirror.ctan.org/systems/texlive/tlnet/install-tl-unx.tar.gz

wget -nc $TL
tar -xf $(basename $TL)

PERL5LIB=$PWD/install-tl-20201007/texmf-dist/scripts/texlive/../../../tlpkg

PERLCC=$PWD/cperlprefix/bin/perlcc

PERL5LIB=$PERL5LIB $PERLCC --static --staticxs -c \
    install-tl-20201007/texmf-dist/scripts/texlive/tlmgr.pl
/mnt/c/Users/user/wiptlmgr/cperlprefix/bin/perlcc: Unexpected compiler output
Use of uninitialized value $cvname in string eq at /mnt/c/Users/user/wiptlmgr/cperlprefix/lib/5.30.0/x86_64-linux/B/C.pm line 4981.
 Use of uninitialized value $cvname in string eq at /mnt/c/Users/user/wiptlmgr/cperlprefix/lib/5.30.0/x86_64-linux/B/C.pm line 4981.
 Use of uninitialized value $cvname in string eq at /mnt/c/Users/user/wiptlmgr/cperlprefix/lib/5.30.0/x86_64-linux/B/C.pm line 4981.
 Use of uninitialized value $cvname in string eq at /mnt/c/Users/user/wiptlmgr/cperlprefix/lib/5.30.0/x86_64-linux/B/C.pm line 4981.
 Use of uninitialized value $cvname in string eq at /mnt/c/Users/user/wiptlmgr/cperlprefix/lib/5.30.0/x86_64-linux/B/C.pm line 4981.
 Use of uninitialized value $cvname in string eq at /mnt/c/Users/user/wiptlmgr/cperlprefix/lib/5.30.0/x86_64-linux/B/C.pm line 4981.
 Use of uninitialized value $cvname in string eq at /mnt/c/Users/user/wiptlmgr/cperlprefix/lib/5.30.0/x86_64-linux/B/C.pm line 4981.
 Use of uninitialized value $cvname in string eq at /mnt/c/Users/user/wiptlmgr/cperlprefix/lib/5.30.0/x86_64-linux/B/C.pm line 4981.
 Use of uninitialized value $cvname in string eq at /mnt/c/Users/user/wiptlmgr/cperlprefix/lib/5.30.0/x86_64-linux/B/C.pm line 4981.
 Use of uninitialized value $cvname in string eq at /mnt/c/Users/user/wiptlmgr/cperlprefix/lib/5.30.0/x86_64-linux/B/C.pm line 4981.
 Use of uninitialized value $cvname in string eq at /mnt/c/Users/user/wiptlmgr/cperlprefix/lib/5.30.0/x86_64-linux/B/C.pm line 4981.

That line says:

    # 5.18 bless does not inc sv_objcount anymore. broken by ddf23d4a1ae (#208)
    # We workaround this 5.18 de-optimization by adding it if at least a DESTROY
    # method exists.
    $init->add("++PL_sv_objcount;") if $cvname eq 'DESTROY' and $] >= 5.017011;
@vadimkantorov
Copy link
Author

vadimkantorov commented Oct 8, 2020

This succeeded: gcc -o tlmgr tlmgr.c -Icperlprefix/lib/5.30.0/x86_64-linux/CORE/ cperlprefix/lib/5.30.0/x86_64-linux/CORE/libperl.a -lm -ldl -lcrypt

@vadimkantorov
Copy link
Author

Running ./tlmgr produced this:

The script_run feature is experimental in regex; marked by <-- HERE in m/(*script_run: <-- HERE  ^ .* $ )/.
Can't load '@S���' for module Encode: /mnt/c/Users/user/wiptlmgr/cperlprefix/lib/5.30.0/x86_64-linux/auto/Encode/Encode.so: undefined symbol: PL_stack_sp.
panic: corrupt saved stack index -1414812757.
panic: corrupt saved stack index -1414812757.
panic: corrupt saved stack index -1414812757.
....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant