Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 656758 - dev-util/codeblocks-17.12 : astyleconfigdlg.cpp:357:46: error: invalid new-expression of abstract class type ASStreamIterator
Summary: dev-util/codeblocks-17.12 : astyleconfigdlg.cpp:357:46: error: invalid new-ex...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Sergey Torokhov
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-05-28 18:04 UTC by Toralf Förster
Modified: 2018-07-14 19:33 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,18.70 KB, text/plain)
2018-05-28 18:04 UTC, Toralf Förster
Details
dev-util:codeblocks-17.12:20180527-220501.log (dev-util:codeblocks-17.12:20180527-220501.log,485.28 KB, text/plain)
2018-05-28 18:04 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,360.40 KB, text/plain)
2018-05-28 18:04 UTC, Toralf Förster
Details
environment (environment,114.31 KB, text/plain)
2018-05-28 18:04 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,22.71 KB, application/x-bzip)
2018-05-28 18:04 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,15.01 KB, application/x-bzip)
2018-05-28 18:04 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,43.15 KB, application/x-bzip)
2018-05-28 18:04 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 2018-05-28 18:04:27 UTC
libtool: compile:  x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../../../src/include -I/usr/lib64/wx/include/gtk2-unicode-3.0 -I/usr/include/wx-3.0 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__ -pthread -I../../../src/include -I../../../src/sdk/wxscintilla/include -DCB_AUTOCONF -DNDEBUG -DPIC -DTIXML_USE_STL=YES -O2 -pipe -march=native -fno-delete-null-pointer-checks -fPIC -fexceptions -c astyleconfigdlg.cpp  -fPIC -DPIC -o .libs/astyleconfigdlg.o
astyleconfigdlg.cpp: In member function ‘void AstyleConfigDlg::OnPreview(wxCommandEvent&)’:
astyleconfigdlg.cpp:357:46: error: invalid new-expression of abstract class type ‘ASStreamIterator’
   formatter.init(new ASStreamIterator(0, text));
                                              ^
In file included from astyleconfigdlg.cpp:24:0:

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.0-desktop-gnome_libressl_20180517-215430

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-7.3.0 *

Available Python interpreters, in order of preference:
  [1]   python3.5
  [2]   python2.7 (fallback)
Available Ruby profiles:
  [1]   ruby23 (with Rubygems) *
java-config:
The following VMs are available for generation-2:
*)	IcedTea JDK 3.7.0 [icedtea-bin-8]
Available Java Virtual Machines:
  [1]   icedtea-bin-8  system-vm

emerge -qpv dev-util/codeblocks
[ebuild  N    ] dev-util/codeblocks-17.12  USE="fortran -contrib -debug -pch" 

!!! The following installed packages are masked:
- kde-frameworks/kdelibs-env-4.14.3::gentoo (masked by: package.mask)
/usr/portage/profiles/package.mask:
# Andreas Sturmlechner <asturm@gentoo.org> (24 May 2018)
# Depends on dead Qt4. Masked for removal in 30 days. Bug #629018

- app-doc/edox-data-0.16.8.0.2::gentoo (masked by: package.mask)
/usr/portage/profiles/package.mask:
# Joonas Niilola <juippis@gmail.com> (18 May 2018)
# Unmaintained, bugs open without activity, makes users
# install ancient version of enlightenment by typing
# 'emerge enlightenment' due to obnoxious package slotting.
# Bug #656020. Removal in ~30 days

- x11-wm/enlightenment-1.0.17::gentoo (masked by: package.mask)
For more information, see the MASKED PACKAGES section in the emerge
man page or refer to the Gentoo Handbook.
Comment 1 Toralf Förster gentoo-dev 2018-05-28 18:04:30 UTC
Created attachment 533648 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2018-05-28 18:04:33 UTC
Created attachment 533650 [details]
dev-util:codeblocks-17.12:20180527-220501.log
Comment 3 Toralf Förster gentoo-dev 2018-05-28 18:04:36 UTC
Created attachment 533652 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2018-05-28 18:04:39 UTC
Created attachment 533654 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2018-05-28 18:04:42 UTC
Created attachment 533656 [details]
etc.portage.tbz2
Comment 6 Toralf Förster gentoo-dev 2018-05-28 18:04:45 UTC
Created attachment 533658 [details]
logs.tbz2
Comment 7 Toralf Förster gentoo-dev 2018-05-28 18:04:50 UTC
Created attachment 533660 [details]
temp.tbz2
Comment 8 Sergey Torokhov 2018-05-28 19:48:55 UTC
Hello/ It seems that this issue is due to you have astyle-3.1 installed, isn't it?

I recently created github pull request to split dev-util/astyle to sub-slots
( https://github.com/gentoo/gentoo/pull/8585 ) and additional pull request ( https://github.com/gentoo/gentoo/pull/8586 ) to use this splitting to patch and rebuild codeblocks if astyle sub-slot is changed. The upstream has updated astyle plugin that is compatible with new astyle version and I must replace my patch with upstream one.

Currently the workaround is temporary remove astyle-3.1 (or downgrade to 3.0 if possible). If you use arduino, then the only way is temporary uninstall astyle, install codeblocks and install astyle-3.1 again.
Comment 9 Sergey Torokhov 2018-05-30 10:28:01 UTC
Could you try this ebuild: 
https://github.com/band-a-prend/gentoo/blob/b327db28f1155c879cbd1e5e72f5e66fe9c98f41/dev-util/codeblocks/codeblocks-17.12-r1.ebuild

together with this patch: 
https://github.com/band-a-prend/gentoo/blob/624c33a653fa3c92f16142e5312a59f94819d17a/dev-util/codeblocks/files/codeblocks-17.12_update_astyle_plugin_to_v3.1.patch

and confirm that problem is gone if astyle-3.1 is installed in system?

Appropriate changes for dev-util/astyle ebuilds that used in codeblocks-17.12-r1.ebuild are already in portage tree.
Comment 10 Larry the Git Cow gentoo-dev 2018-07-14 19:33:18 UTC
The bug has been closed via the following commit(s):

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

commit 27c7e3e956953056c4da2cac4521c40062687445
Author:     band-a-prend <torokhov-s-a@yandex.ru>
AuthorDate: 2018-05-26 21:08:45 +0000
Commit:     Mart Raudsepp <leio@gentoo.org>
CommitDate: 2018-07-14 19:32:12 +0000

    dev-util/codeblocks: unbundle dev-util/astyle lib
    
    Unbundle the dev-util/astyle library in favor of system installed
    by adding it as build dependency ( >=dev-util/astyle-3.0.1-r1:0= ):
    
    1. patching (update) the Codeblocks Astyle plugin to be compatible with dev-util/astyle-3.1:
    "codeblocks-17.12_update_astyle_plugin_to_v3.1.patch" that is taken from upstream:
    
    https://sourceforge.net/p/codeblocks/code/11266/
    
      * updated astyle plugin to v3.1
      * removed obsolete astyle options
      * added new astyle options
      Authored by: jenslody 2018-01-15
    
    (using conditional patching depends on if '>=dev-util/astyle-3.1' is installed in system);
    
    2. use sub-sloting of dev-util/astyle to force rebuild Codeblocks on system update
    if sub-slot of dev-util/astyle is changed;
    
    3. remove KEYWORD "arm" to avoid repoman QA warning about "dependency.bad" and
    "dependency.badindev" due to dev-util/astyle dependency doesn't have this KEYWORD.
    
    Closes: https://bugs.gentoo.org/383037
    Closes: https://bugs.gentoo.org/656758

 dev-util/codeblocks/codeblocks-17.12-r1.ebuild     |   8 +-
 dev-util/codeblocks/codeblocks-17.12-r301.ebuild   |   8 +-
 ...blocks-17.12_update_astyle_plugin_to_v3.1.patch | 414 +++++++++++++++++++++
 3 files changed, 426 insertions(+), 4 deletions(-)