Bug#811899: gnuift: FTBFS with GCC 6: declared in this scope
Package: gnuift
Version: 0.1.14-12.1
Severity: important
User: debian-gcc@lists.debian.org
Usertags: ftbfs-gcc-6 gcc-6-not-declared
This package fails to build with GCC 6. GCC 6 has not been released
yet, but it's expected that GCC 6 will become the default compiler for
stretch.
Note that only the first error is reported; there might be more. You
can find a snapshot of GCC 6 in experimental. To build with GCC 6,
you can set CC=gcc-6 CXX=g++-6 explicitly.
You may be able to find out more about this issue at
https://gcc.gnu.org/gcc-6/changes.html
> sbuild (Debian sbuild) 0.67.0 (26 Dec 2015) on dl580gen9-02.hlinux
...
> checking if we can embed a Perl interpreter into GIFT... perl-compile-test-program.cc: In function 'void xs_init()':
> perl-compile-test-program.cc:67:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
> char *file = __FILE__;
> ^~~~~~~~
>
> In file included from perl-compile-test-program.cc:41:0:
> /usr/lib/x86_64-linux-gnu/perl/5.22/CORE/perl.h:166:16: error: 'my_perl' was not declared in this scope
> # define aTHX my_perl
> ^
>
> /usr/lib/x86_64-linux-gnu/perl/5.22/CORE/perl.h:179:18: note: in expansion of macro 'aTHX'
> # define aTHX_ aTHX,
> ^~~~
>
> /usr/lib/x86_64-linux-gnu/perl/5.22/CORE/embed.h:419:34: note: in expansion of macro 'aTHX_'
> #define newXS(a,b,c) Perl_newXS(aTHX_ a,b,c)
> ^~~~~
>
> perl-compile-test-program.cc:71:3: note: in expansion of macro 'newXS'
> newXS("DynaLoader::boot_DynaLoader", boot_DynaLoader, file);
> ^~~~~
>
> perl-compile-test-program.cc: In function 'void test()':
> /usr/lib/x86_64-linux-gnu/perl/5.22/CORE/perl.h:166:16: error: 'my_perl' was not declared in this scope
> # define aTHX my_perl
> ^
--
Martin Michlmayr
Linux for HPE Helion, Hewlett Packard Enterprise
Reply to: