Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 722132 - games-strategy/colobot-0.1.12 : /.../CBotExprLitString.cpp: error: expected unqualified-id before & token
Summary: games-strategy/colobot-0.1.12 : /.../CBotExprLitString.cpp: error: expected u...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Michał Górny
URL:
Whiteboard:
Keywords:
: 739374 (view as bug list)
Depends on:
Blocks:
 
Reported: 2020-05-10 13:35 UTC by Toralf Förster
Modified: 2021-01-03 15:04 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,16.98 KB, text/plain)
2020-05-10 13:35 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,256.51 KB, text/plain)
2020-05-10 13:35 UTC, Toralf Förster
Details
environment (environment,100.32 KB, text/plain)
2020-05-10 13:35 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,15.34 KB, application/x-bzip)
2020-05-10 13:35 UTC, Toralf Förster
Details
games-strategy:colobot-0.1.12:20200510-110719.log (games-strategy:colobot-0.1.12:20200510-110719.log,254.08 KB, text/plain)
2020-05-10 13:35 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,5.08 KB, application/x-bzip)
2020-05-10 13:35 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,32.96 KB, application/x-bzip)
2020-05-10 13:35 UTC, Toralf Förster
Details
Upstream fix (gcc-10.patch,598 bytes, patch)
2021-01-02 14:35 UTC, Martin Doucha
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2020-05-10 13:35:11 UTC
/var/tmp/portage/games-strategy/colobot-0.1.12/work/colobot-colobot-gold-0.1.12-alpha/src/CBot/CBotInstr/CBotExprLitString.cpp: In static member function static CBot::CBotInstr* CBot::CBotExprLitString::Compile(CBot::CBotToken*&, CBot::CBotCStack*):
/var/tmp/portage/games-strategy/colobot-0.1.12/work/colobot-colobot-gold-0.1.12-alpha/src/CBot/CBotInstr/CBotExprLitString.cpp:118:59: error: expected unqualified-id before & token
  118 |                             catch (const std::out_of_range& e)
      |                                                           ^
/var/tmp/portage/games-strategy/colobot-0.1.12/work/colobot-colobot-gold-0.1.12-alpha/src/CBot/CBotInstr/CBotExprLitString.cpp:118:59: error: expected ) before & token

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop_plasma_systemd-20200502-161438

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-10.1.0 *
clang version 10.0.0 
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/10/bin
/usr/lib/llvm/10
10.0.0
Available Python interpreters, in order of preference:
  [1]   python3.8
  [2]   python3.6
  [3]   python3.7 (fallback)
  [4]   python2.7 (fallback)
Available Ruby profiles:
  [1]   ruby24 (with Rubygems)
  [2]   ruby25 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.43.0
  [2]   rust-1.43.0 *
The following VMs are available for generation-2:
*)	IcedTea JDK 3.15.0 [icedtea-bin-8]
Available Java Virtual Machines:
  [1]   icedtea-bin-8  system-vm

The Glorious Glasgow Haskell Compilation System, version 8.0.2

  timestamp(s) of HEAD at this tinderbox image:
/var/db/repos/gentoo	Sun 10 May 2020 09:36:45 AM UTC

emerge -qpvO games-strategy/colobot
[ebuild   R   ] games-strategy/colobot-0.1.12  USE="openal -devbuild -doc -test -tools"
Comment 1 Toralf Förster gentoo-dev 2020-05-10 13:35:14 UTC
Created attachment 637558 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-05-10 13:35:17 UTC
Created attachment 637560 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2020-05-10 13:35:20 UTC
Created attachment 637562 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2020-05-10 13:35:23 UTC
Created attachment 637564 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2020-05-10 13:35:26 UTC
Created attachment 637566 [details]
games-strategy:colobot-0.1.12:20200510-110719.log
Comment 6 Toralf Förster gentoo-dev 2020-05-10 13:35:29 UTC
Created attachment 637568 [details]
logs.tbz2
Comment 7 Toralf Förster gentoo-dev 2020-05-10 13:35:31 UTC
Created attachment 637570 [details]
temp.tbz2
Comment 8 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2020-05-16 16:32:14 UTC
Could you retry?  I don't seem to be able to reproduce.
Comment 9 Martin Doucha 2021-01-02 14:35:10 UTC
Created attachment 680677 [details, diff]
Upstream fix

Vanilla Colobot-0.1.12 won't build with GCC-10. Here's an upstream fix. You can also build Colobot with GCC-9.3 as a temporary workaround.
Comment 10 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2021-01-03 14:59:28 UTC
*** Bug 739374 has been marked as a duplicate of this bug. ***
Comment 11 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2021-01-03 15:03:17 UTC
Thank you for your help.  However, in the future please link original upstream commits, so that we can include patches with correct attribution.
Comment 12 Larry the Git Cow gentoo-dev 2021-01-03 15:04:06 UTC
The bug has been closed via the following commit(s):

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

commit 19b3c6b8bd419836899df094475ca5e941c97364
Author:     Michał Górny <mgorny@gentoo.org>
AuthorDate: 2021-01-03 15:03:47 +0000
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: 2021-01-03 15:03:47 +0000

    games-strategy/colobot: Backport gcc-10 build fix
    
    Closes: https://bugs.gentoo.org/722132
    Signed-off-by: Michał Górny <mgorny@gentoo.org>

 .../colobot/files/colobot-0.1.12-includes.patch    | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)