Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 787854 - dev-libs/pegtl-3.2.0 - /.../abnf2pegtl.cpp: error: this pointer is null [-Werror=nonnull]
Summary: dev-libs/pegtl-3.2.0 - /.../abnf2pegtl.cpp: error: this pointer is null [-Wer...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: werror gcc-11
  Show dependency tree
 
Reported: 2021-05-03 07:22 UTC by Toralf Förster
Modified: 2021-09-20 17:51 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,17.85 KB, text/plain)
2021-05-03 07:22 UTC, Toralf Förster
Details
dev-libs:pegtl-3.2.0:20210503-064417.log (dev-libs:pegtl-3.2.0:20210503-064417.log,131.81 KB, text/plain)
2021-05-03 07:22 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,311.15 KB, text/plain)
2021-05-03 07:22 UTC, Toralf Förster
Details
environment (environment,89.50 KB, text/plain)
2021-05-03 07:22 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,13.03 KB, application/x-bzip)
2021-05-03 07:23 UTC, Toralf Förster
Details
logs.tar.bz2 (logs.tar.bz2,3.86 KB, application/x-bzip)
2021-05-03 07:23 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,27.85 KB, application/x-bzip)
2021-05-03 07:23 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2021-05-03 07:22:53 UTC
/var/tmp/portage/dev-libs/pegtl-3.2.0/work/PEGTL-3.2.0/src/example/pegtl/abnf2pegtl.cpp: In static member function ‘static std::__cxx11::basic_string<char> tao::pegtl::abnf::make_stringifier()::<lambda(const node_ptr&)>::_FUN(const node_ptr&)’:
/var/tmp/portage/dev-libs/pegtl-3.2.0/work/PEGTL-3.2.0/src/example/pegtl/abnf2pegtl.cpp:635:10: error: ‘this’ pointer is null [-Werror=nonnull]
  635 |          } );
      |          ^
/var/tmp/portage/dev-libs/pegtl-3.2.0/work/PEGTL-3.2.0/src/example/pegtl/abnf2pegtl.cpp:624:46: note: in a call to non-static member function ‘tao::pegtl::abnf::make_stringifier()::<lambda(const node_ptr&)>’
  624 |          nrv.add< grammar::bin_val::value >( []( const node_ptr& n ) {

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop_gnome_systemd-20210424-085324

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-7.3.1
 [2] x86_64-pc-linux-gnu-11.1.0 *
clang version 12.0.0
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/12/bin
/usr/lib/llvm/12
12.0.0
Python 3.8.9
Available Ruby profiles:
  [1]   ruby26 (with Rubygems)
  [2]   ruby30 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.51.0 *
The following VMs are available for generation-2:
1)	IcedTea JDK 3.18.0 [icedtea-8]
*)	AdoptOpenJDK 8.292_p10 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   icedtea-8 
  [2]   openjdk-bin-8  system-vm

The Glorious Glasgow Haskell Compilation System, version 8.10.4

  timestamp(s) of HEAD at this tinderbox image:
/var/db/repos/gentoo	Mon May  3 06:20:16 UTC 2021

emerge -qpvO dev-libs/pegtl
[ebuild  N    ] dev-libs/pegtl-3.2.0  USE="-test"
Comment 1 Toralf Förster gentoo-dev 2021-05-03 07:22:54 UTC
Created attachment 705609 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2021-05-03 07:22:55 UTC
Created attachment 705612 [details]
dev-libs:pegtl-3.2.0:20210503-064417.log
Comment 3 Toralf Förster gentoo-dev 2021-05-03 07:22:57 UTC
Created attachment 705615 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2021-05-03 07:22:59 UTC
Created attachment 705618 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2021-05-03 07:23:00 UTC
Created attachment 705621 [details]
etc.portage.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2021-05-03 07:23:01 UTC
Created attachment 705624 [details]
logs.tar.bz2
Comment 7 Toralf Förster gentoo-dev 2021-05-03 07:23:02 UTC
Created attachment 705627 [details]
temp.tar.bz2
Comment 8 Ionen Wolkens gentoo-dev 2021-05-03 08:09:45 UTC
Seems to use -Werror only when building examples and tests, and then fails because of it if gcc11 and CXXFLAGS=-Og (fine with gcc10 or -O2).
Comment 9 Larry the Git Cow gentoo-dev 2021-06-15 01:55:11 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8dc16924bbb14d50d910cebd45987735177fb152

commit 8dc16924bbb14d50d910cebd45987735177fb152
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-06-15 01:37:28 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-06-15 01:37:28 +0000

    dev-libs/pegtl: drop -Werror
    
    Closes: https://bugs.gentoo.org/787854
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-libs/pegtl/files/pegtl-3.2.0-no-werror.patch | 56 ++++++++++++++++++++++++
 dev-libs/pegtl/pegtl-3.2.0.ebuild                |  5 ++-
 2 files changed, 60 insertions(+), 1 deletion(-)
Comment 10 Larry the Git Cow gentoo-dev 2021-09-20 17:51:05 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f005f84e02bd0e9f13444c49d1c295b4cb86a002

commit f005f84e02bd0e9f13444c49d1c295b4cb86a002
Author:     Andreas K. Hüttel <dilfridge@gentoo.org>
AuthorDate: 2021-09-20 17:45:03 +0000
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: 2021-09-20 17:50:49 +0000

    dev-libs/pegtl: Remove old
    
    Bug: https://bugs.gentoo.org/787854
    Package-Manager: Portage-3.0.20, Repoman-3.0.3
    Signed-off-by: Andreas K. Huettel <dilfridge@gentoo.org>

 dev-libs/pegtl/Manifest              |  1 -
 dev-libs/pegtl/pegtl-2.8.3-r1.ebuild | 32 --------------------------------
 2 files changed, 33 deletions(-)