Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 597138 - dev-embedded/avarice-2.13 with sys-devel/gcc-5 - jtag2run.cc:97:1: error: _Pragma takes a parenthesized string literal
Summary: dev-embedded/avarice-2.13 with sys-devel/gcc-5 - jtag2run.cc:97:1: error: _Pr...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Embedded Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-10-14 23:01 UTC by Thomas Capricelli
Modified: 2020-09-16 13:52 UTC (History)
4 users (show)

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


Attachments
build.log (build.log,8.43 KB, text/plain)
2016-10-14 23:01 UTC, Thomas Capricelli
Details
Patch fixing pragma issue for gcc-5 (avarice-2.13-gccpragma.patch,690 bytes, patch)
2017-04-24 12:49 UTC, Brian
Details | Diff
Updated ebuild using patch (avarice-2.13-r1.ebuild,452 bytes, text/plain)
2017-04-24 12:54 UTC, Brian
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Capricelli 2016-10-14 23:01:03 UTC
Created attachment 450230 [details]
build.log

Emerged fine with gcc-4.9.3
Comment 1 Brian 2017-04-24 12:49:03 UTC
Created attachment 470750 [details, diff]
Patch fixing pragma issue for gcc-5

Fixes pragma issue and allows build to complete.
Comment 2 Brian 2017-04-24 12:54:57 UTC
Created attachment 470752 [details]
Updated ebuild using patch
Comment 3 qbt937 2017-04-29 05:53:29 UTC
Comment on attachment 470750 [details, diff]
Patch fixing pragma issue for gcc-5

This fixed the issue for me.
Comment 4 Mateusz Lenik 2017-07-13 17:08:30 UTC
Also happens on GCC 6, any chance to include this patch?
Comment 5 letli 2018-11-11 15:22:20 UTC
Also happens on GCC 7.3.0. Is there any solution?
Comment 6 Thomas Capricelli 2018-11-11 23:30:51 UTC
Well, i can confirm
* the issue is still there with gcc 7.3.0
* the patch by Brian actually fixes the pragma issue (thx Brian!)
* there remains compilation issues. Namely:

jtagrw.cc: In member function ‘virtual uchar* jtag1::jtagRead(long unsigned int, unsigned int)’:
jtagrw.cc:134:13: error: cannot convert ‘bool’ to ‘uchar* {aka unsigned char*}’ in return
      return false;
             ^~~~~

The real issue is that avarice is not maintained, what a pity.
Comment 7 Thomas Capricelli 2018-11-11 23:32:34 UTC
Oh, and also, the ebuild is so old that patches in /etc/portage/patches/ are not applied. Something related to EAPI i think.
Comment 8 John Blbec 2019-04-02 11:58:22 UTC
the same situation for gcc-8.2.0
Comment 9 Larry the Git Cow gentoo-dev 2020-09-16 13:52:49 UTC
The bug has been closed via the following commit(s):

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

commit ab034d98237eaca77ba400989e693caac07b3c81
Author:     David Seifert <soap@gentoo.org>
AuthorDate: 2020-09-16 13:52:20 +0000
Commit:     David Seifert <soap@gentoo.org>
CommitDate: 2020-09-16 13:52:20 +0000

    dev-embedded/avarice: Remove old 2.13
    
    Closes: https://bugs.gentoo.org/597138
    Closes: https://bugs.gentoo.org/729708
    Closes: https://bugs.gentoo.org/742170
    Package-Manager: Portage-3.0.7, Repoman-3.0.1
    Signed-off-by: David Seifert <soap@gentoo.org>

 dev-embedded/avarice/Manifest            |  1 -
 dev-embedded/avarice/avarice-2.13.ebuild | 15 ---------------
 2 files changed, 16 deletions(-)

Additionally, it has been referenced in the following commit(s):

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

commit c8f2fe3cf9deb634c3651cd67c42d0cdd55d6513
Author:     David Seifert <soap@gentoo.org>
AuthorDate: 2020-09-16 13:52:17 +0000
Commit:     David Seifert <soap@gentoo.org>
CommitDate: 2020-09-16 13:52:17 +0000

    dev-embedded/avarice: Version bump to 2.14
    
    Bug: https://bugs.gentoo.org/597138
    Bug: https://bugs.gentoo.org/729708
    Bug: https://bugs.gentoo.org/742170
    Package-Manager: Portage-3.0.7, Repoman-3.0.1
    Signed-off-by: David Seifert <soap@gentoo.org>

 dev-embedded/avarice/Manifest                      |  1 +
 dev-embedded/avarice/avarice-2.14.ebuild           | 19 +++++++++++
 .../files/avarice-2.14-broken-__unused-macro.patch | 39 ++++++++++++++++++++++
 3 files changed, 59 insertions(+)