This repository was archived by the owner on Jun 1, 2023. It is now read-only.
Ubuntu 18.04 on WSLv1 issues: makedepend deletes Makefile + installman fails + microperl build fails (requires perlio instead of stdio) #424
Open
Description
On my machine this script leads to no makefile found
(and indeed, only Makefile.micro
exists which errors out as well):
PERL=https://github.com/perl11/cperl/releases/download/cperl-5.30.0/cperl-5.30.0.tar.gz
wget -nc $PERL
tar xfz $(basename $PERL)
PREFIX=$PWD/cperlprefix
mkdir -p $PREFIX
cd cperl-5.30.0
./Configure -sde -Dprefix=$PREFIX
make -j4
My platform is Ubuntu 18.04 on WSLv1. Typically this is sufficient for building all programming language runtimes.
...
Extracting cflags (with variable substitutions)
Not re-extracting config.h
Extracting makedepend (with variable substitutions)
Extracting Makefile (with variable substitutions)
Extracting myconfig (with variable substitutions)
Extracting pod/Makefile (with variable substitutions)
Extracting Policy.sh (with variable substitutions)
Extracting runtests (with variable substitutions)
Configure done.
If you compile cperl on a different machine or from a different object
directory, copy the Policy.sh file from this object directory to the
new one before you run Configure -- this will help you with most of
the policy defaults.
make: *** No targets specified and no makefile found. Stop.
make -f Makefile.micro
cc -c -o ugenerate_uudmap.o -DPERL_CORE -DPERL_MICRO -DPERL_USE_SAFE_PUTENV -DNO_MATHOMS generate_uudmap.c
cc -o ugenerate_uudmap ugenerate_uudmap.o -lm
./ugenerate_uudmap uuudmap.h ubitcount.h umg_data.h
cc -c -o ugv.o -DPERL_CORE -DPERL_MICRO -DPERL_USE_SAFE_PUTENV -DNO_MATHOMS gv.c
In file included from iperlsys.h:51:0,
from perl.h:3844,
from gv.c:36:
perlio.h:32:4: error: #error "stdio is no longer supported as the default base layer -- use perlio."
# error "stdio is no longer supported as the default base layer -- use perlio."
^~~~~
Makefile.micro:89: recipe for target 'ugv.o' failed
make: *** [ugv.o] Error 1
Context: I am looking to use perlcc / RPerl to convert tlmgr from TexLive into C/C++ code, so I thought to install locally a recent, updated Perl distribution - cperl.