Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 840329 - app-laptop/msi-keyboard-1.0 - main.cpp: error: strcmp was not declared in this scope
Summary: app-laptop/msi-keyboard-1.0 - main.cpp: error: strcmp was not declared in thi...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Fulgurance
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: gcc-12
  Show dependency tree
 
Reported: 2022-04-23 13:36 UTC by Toralf Förster
Modified: 2022-06-10 03:50 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,17.60 KB, text/plain)
2022-04-23 13:37 UTC, Toralf Förster
Details
app-laptop:msi-keyboard-1.0:20220423-131056.log (app-laptop:msi-keyboard-1.0:20220423-131056.log,2.33 KB, text/plain)
2022-04-23 13:37 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,117.45 KB, text/plain)
2022-04-23 13:37 UTC, Toralf Förster
Details
environment (environment,58.03 KB, text/plain)
2022-04-23 13:37 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,12.88 KB, application/x-bzip)
2022-04-23 13:37 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,15.17 KB, application/x-bzip)
2022-04-23 13:37 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 2022-04-23 13:36:59 UTC
g++ -pipe -march=native -fno-diagnostics-color -O2 -c main.cpp -o main.o
g++ -pipe -march=native -fno-diagnostics-color -O2 -c Keyboard.cpp -o Keyboard.o
g++ -pipe -march=native -fno-diagnostics-color -O2 -c Color.cpp -o Color.o
main.cpp: In function int main(int, char**)’:
main.cpp:66:22: error: strcmp’ was not declared in this scope
   66 |     if (argc == 5 && strcmp(argv[1], "normal") == 0 && isColor(argv[2]) && isColor(argv[3]) && isColor(argv[4])) {
      |                      ^~~~~~

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop_plasma-j4-20220422-045129

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-11.3.0
 [2] x86_64-pc-linux-gnu-12.0.1 *
clang/llvm (if any):
clang version 14.0.1
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/14/bin
/usr/lib/llvm/14
14.0.1
Python 3.9.12
Available Ruby profiles:
  [1]   ruby26 (with Rubygems)
  [2]   ruby27 (with Rubygems)
  [3]   ruby31 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.60.0
  [2]   rust-1.60.0 *
The following VMs are available for generation-2:
*)	Eclipse Temurin JDK 11.0.14_p9 [openjdk-bin-11]
2)	Eclipse Temurin JDK 8.322_p06 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8 
  [2]   openjdk-bin-11  system-vm

The Glorious Glasgow Haskell Compilation System, version 8.10.4
php cli:

  HEAD of ::gentoo
commit c7ad976144533880987c095dfbc014b2e4dda284
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Sat Apr 23 12:19:20 2022 +0000

    2022-04-23 12:19:19 UTC

emerge -qpvO app-laptop/msi-keyboard
[ebuild  N    ] app-laptop/msi-keyboard-1.0
Comment 1 Toralf Förster gentoo-dev 2022-04-23 13:37:00 UTC
Created attachment 773537 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-04-23 13:37:01 UTC
Created attachment 773540 [details]
app-laptop:msi-keyboard-1.0:20220423-131056.log
Comment 3 Toralf Förster gentoo-dev 2022-04-23 13:37:02 UTC
Created attachment 773543 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2022-04-23 13:37:04 UTC
Created attachment 773546 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2022-04-23 13:37:05 UTC
Created attachment 773549 [details]
etc.portage.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2022-04-23 13:37:06 UTC
Created attachment 773552 [details]
temp.tar.bz2
Comment 7 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-05-11 19:20:35 UTC
ping
Comment 8 Larry the Git Cow gentoo-dev 2022-06-10 03:50:44 UTC
The bug has been closed via the following commit(s):

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

commit bbaeaf9218b0bc5665b657155625e677e512161a
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-06-10 03:50:36 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-06-10 03:50:36 +0000

    app-laptop/msi-keyboard: fix build with GCC 12; respect CXX
    
    Closes: https://bugs.gentoo.org/840329
    Closes: https://bugs.gentoo.org/722324
    Signed-off-by: Sam James <sam@gentoo.org>

 .../files/msi-keyboard-1.0-gcc12.patch             |  9 +++++
 .../files/msi-keyboard-1.0-r1-makefile.patch       | 24 +++++++++++++
 app-laptop/msi-keyboard/msi-keyboard-1.0-r1.ebuild | 39 ++++++++++++++++++++++
 3 files changed, 72 insertions(+)