Control: tag -1 upstream

Hi AspectC++ team,

Matthias, the Debian/Ubuntu GCC maintainer is preparing for the new GCC release, and has kindly filed a bug in the Debian bug tracking system.

I have just tried to compile a snapshot from today against g++=4:8-20180425-2, and am able to reproduce this issue.

The error messages makes perfect sense, here is the full context of the function in question:

void assign(const basic_re_tokeniser_state &rhs_)

{

_start = rhs_._start;

_end = rhs_._end;

_curr = rhs_._curr;

_id = rhs_._id;

_flags = rhs_._flags;

_flags_stack = rhs_._flags_stack;

_locale = rhs_._locale;

_macro_name = rhs_._macro_name;

_paren_count = rhs_._paren_count;

_in_string = rhs_._in_string;

_nl_id = rhs_._nl_id;

return this;

}


I don't understand why earlier versions of GCC didn't complain about this. Is the right fix here to remove the "return this;"?

The file is part of the lexertl package, which has been most recently updated my Matthias in August 2015. It appears it needs another update for GCC 8. Olaf, is Matthias still around and can have a look at this?

Best,
Reinhard

-------- Forwarded Message --------
Subject: Bug#897709: aspectc++: ftbfs with GCC-8
Resent-Date: Fri, 04 May 2018 12:24:43 +0000
Resent-From: Matthias Klose <d...@debian.org>
Resent-To: Reinhard Tartler <siret...@tauware.de>
Date: Fri, 04 May 2018 12:20:51 +0000
From: Matthias Klose <d...@debian.org>
Reply-To: Matthias Klose <d...@debian.org>, 897709-mainto...@bugs.debian.org
To: mainto...@bugs.debian.org

Package: src:aspectc++
Version: 1:2.2+git20170823-5
Severity: normal
Tags: sid buster
User: debian-...@lists.debian.org
Usertags: ftbfs-gcc-8

Please keep this issue open in the bug tracker for the package it
was filed for.  If a fix in another package is required, please
file a bug for the other package (or clone), and add a block in this
package. Please keep the issue open until the package can be built in
a follow-up test rebuild.

The package fails to build in a test rebuild on at least amd64 with
gcc-8/g++-8, but succeeds to build with gcc-7/g++-7. The
severity of this report will be raised before the buster release.

The full build log can be found at:
http://aws-logs.debian.net/2018/05/01/gcc8/aspectc++_2.2+git20170823-5_unstable_gcc8.log.gz
The last lines of the build log are at the end of this report.

To build with GCC 8, either set CC=gcc-8 CXX=g++-8 explicitly,
or install the gcc, g++, gfortran, ... packages from experimental.

  apt-get -t=experimental install g++
Common build failures are new warnings resulting in build failures with
-Werror turned on, or new/dropped symbols in Debian symbols files.
For other C/C++ related build failures see the porting guide at
http://gcc.gnu.org/gcc-8/porting_to.html

[...]
Generating dependencies for List.cc...
Generating dependencies for KeyboardSource.cc...
Generating dependencies for DString.cc...

Compiling DString.cc...
Compiling KeyboardSource.cc...
---
Compiling List.cc...
Compiling PUMA for TARGET=linux-release
Compiling MemPool.cc...
Compiling Pipe.cc...
Compiler = g++ -DNDEBUG -std=gnu++11 -I /build/aspectc++-foANom/aspectc++-2.2+git20170823/Puma/extern -I /build/aspectc++-foANom/aspectc++-2.2+git20170823/Puma/gen-release/step2/inc -O2 -g -Wall -pipe -Wno-deprecated-declarations -Wall -pipe -Wno-deprecated-declarations -Wall -pipe -Wno-deprecated-declarations Compiling PipedCmd.cc... Linker = g++ -O2 -g -Wall -pipe -Wno-deprecated-declarations -Wall -pipe -Wno-deprecated-declarations -Wall -pipe -Wno-deprecated-declarations <objects> ---
Compiling RegComp.cc...

Compiling StrCol.cc...
Compiling StrHashTable.cc...
Compiling SysCall.cc...
Compiling TerminalSink.cc...
Compiling VerboseMgr.cc...
Compiling VoidPtrArray.cc...
Compiling WChar.cc...
Compiling Config.cc...
Compiling ErrorCollector.cc...
Compiling ErrorSeverity.cc...
Compiling ErrorSink.cc...
Compiling ErrorStream.cc...
Compiling FilenameInfo.cc...
In file included from /build/aspectc++-foANom/aspectc++-2.2+git20170823/Puma/extern/lexertl/parser/tokeniser/re_tokeniser_helper.hpp:14, from /build/aspectc++-foANom/aspectc++-2.2+git20170823/Puma/extern/lexertl/parser/tokeniser/re_tokeniser.hpp:15, from /build/aspectc++-foANom/aspectc++-2.2+git20170823/Puma/extern/lexertl/rules.hpp:15, from /build/aspectc++-foANom/aspectc++-2.2+git20170823/Puma/gen-release/step2/src/RegComp.cc:22: /build/aspectc++-foANom/aspectc++-2.2+git20170823/Puma/extern/lexertl/parser/tokeniser/re_tokeniser_state.hpp: In member function 'void lexertl::detail::basic_re_tokeniser_state<ch_type, id_type>::assign(const lexertl::detail::basic_re_tokeniser_state<ch_type, id_type>&)': /build/aspectc++-foANom/aspectc++-2.2+git20170823/Puma/extern/lexertl/parser/tokeniser/re_tokeniser_state.hpp:80:16: error: return-statement with a value, in function returning 'void' [-fpermissive]
         return this;
                ^~~~
Compiling OptsParser.cc...
Compiling PathInfo.cc...
Compiling PathIterator.cc...
Compiling PathManager.cc...
Compiling SimpleParser.cc...
make[3]: *** [compile.mk:75: /build/aspectc++-foANom/aspectc++-2.2+git20170823/Puma/gen-release/obj-linux/RegComp.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[2]: *** [Makefile:28: compile_after_weave] Error 2
make[1]: *** [Makefile:68: src] Error 2
make[1]: Leaving directory '/build/aspectc++-foANom/aspectc++-2.2+git20170823/Puma'
make: *** [debian/rules:65: build-arch-stamp] Error 2
dpkg-buildpackage: error: debian/rules build-arch subprocess returned exit status 2

Reply via email to