On 2019-07-22 15:00:00, SYBER wrote:
Show quoted text> This works like this:
>
> A module (CPP::panda::lib in this case) says in its Makefile.PL that
> it requires C++14
>
> write_makefile(
> ...
> CPLUS => 14,
> );
>
> The work is actualy done by XS::Install
>
> in lib/XS/Install.pm
>
> sub _get_cplusplus
>
> it runs
> $cpp -c -std=c++$minstd -o $outfile $tmpfile 2>&1
>
> with "int main () { return 0; }" in $tmpfile
>
> It would be great if you run
> perl -d Makefile.PL
> in CPP::panda::lib's package folder
> and then
> c XS::Install::_get_cplusplus
> and then debug what is wrong with running `$cpp -c -std=c++$minstd -o
> $outfile $tmpfile 2>&1`;
>
> maybe your different perls compiled with different compilers? because
> EUMM use the compiler perl was build with
>
> Пнд Июл 22 13:08:16 2019, SREZIC писал:
> > On a fedora 28 system with self-compiled 5.28.2 the build fails:
> >
> > ...
> > Output from '/opt/perl-5.28.2/bin/perl5.28.2 Makefile.PL':
> >
> > OS unsupported: C++ compiler does not support -std=c++14
> > ...
> >
> > However, on the very same host with a different perl the build is
> > successful. So I think that there must be another error, not the one
> > printed here.
> >
> > I can do some debugging if you point me into the right direction.
It seems that I was misreading the test report --- it was created on a centos7 system, which probably indeed does not have a c++14 capable compiler. So there's no problem. Sorry for the noise.