Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 875431 - games-action/maelstrom-3.0.6-r3 - Maelstrom-netd.c: error: return type defaults to int [-Werror=implicit-int]
Summary: games-action/maelstrom-3.0.6-r3 - Maelstrom-netd.c: error: return type defaul...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Games
URL:
Whiteboard: ~arch only
Keywords: PullRequest
Depends on:
Blocks: c99-porting
  Show dependency tree
 
Reported: 2022-10-05 18:11 UTC by Toralf Förster
Modified: 2025-03-14 21:00 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,19.41 KB, text/plain)
2022-10-05 18:11 UTC, Toralf Förster
Details
emerge-history.txt.bz2 (emerge-history.txt.bz2,64.23 KB, application/x-bzip)
2022-10-05 18:11 UTC, Toralf Förster
Details
environment (environment,88.81 KB, text/plain)
2022-10-05 18:11 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,21.43 KB, application/x-bzip)
2022-10-05 18:11 UTC, Toralf Förster
Details
games-action:maelstrom-3.0.6-r3:20221005-125834.log (games-action:maelstrom-3.0.6-r3:20221005-125834.log,99.59 KB, text/plain)
2022-10-05 18:11 UTC, Toralf Förster
Details
logs.tar.bz2 (logs.tar.bz2,5.29 KB, application/x-bzip)
2022-10-05 18:11 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,33.06 KB, application/x-bzip)
2022-10-05 18:11 UTC, Toralf Förster
Details
Adds void to main() (fix_return_type.patch,338 bytes, patch)
2024-09-17 02:43 UTC, Nuitari
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 2022-10-05 18:11:16 UTC
      |                                     ^
scores.cpp:86:49: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
   86 |                                                 "/var/games/"MAELSTROM_SCORES);
      |                                                 ^
Maelstrom-netd.c:187:1: error: return type defaults to int [-Werror=implicit-int]
  187 | main(int argc, char *argv[])
      | ^~~~

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

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

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-12.2.0 *
clang/llvm (if any):
clang version 15.0.2
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/15/bin
Configuration file: /etc/clang/clang.cfg
/usr/lib/llvm/15
15.0.2
Python 3.10.7
Available Ruby profiles:
  [1]   ruby27 (with Rubygems)
  [2]   ruby30 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.64.0 *
The following VMs are available for generation-2:
1)	IcedTea JDK 3.16.0 [icedtea-bin-8]
2)	OpenJDK 11.0.16.1_p1 [openjdk-11]
3)	OpenJDK 17.0.5_p5 [openjdk-17]
4)	Eclipse Temurin JDK 11.0.16.1_p1 [openjdk-bin-11]
*)	Eclipse Temurin JDK 17.0.4.1_p1 [openjdk-bin-17]
6)	Eclipse Temurin JDK 8.345_p01 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   icedtea-bin-8 
  [2]   openjdk-11 
  [3]   openjdk-17 
  [4]   openjdk-bin-8 
  [5]   openjdk-bin-11 
  [6]   openjdk-bin-17  system-vm

The Glorious Glasgow Haskell Compilation System, version 9.0.2
php cli (if any):
GNU Make 4.3

  HEAD of ::gentoo
commit f0114e087621b84cbd4a842b1b7a4eb0d7ce5129
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Wed Oct 5 12:03:12 2022 +0000

    2022-10-05 12:03:12 UTC

emerge -qpvO games-action/maelstrom
[ebuild  N    ] games-action/maelstrom-3.0.6-r3
Comment 1 Toralf Förster gentoo-dev 2022-10-05 18:11:17 UTC
Created attachment 821050 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-10-05 18:11:18 UTC
Created attachment 821053 [details]
emerge-history.txt.bz2
Comment 3 Toralf Förster gentoo-dev 2022-10-05 18:11:20 UTC
Created attachment 821056 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2022-10-05 18:11:21 UTC
Created attachment 821059 [details]
etc.portage.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2022-10-05 18:11:22 UTC
Created attachment 821062 [details]
games-action:maelstrom-3.0.6-r3:20221005-125834.log
Comment 6 Toralf Förster gentoo-dev 2022-10-05 18:11:23 UTC
Created attachment 821065 [details]
logs.tar.bz2
Comment 7 Toralf Förster gentoo-dev 2022-10-05 18:11:24 UTC
Created attachment 821068 [details]
temp.tar.bz2
Comment 8 Nuitari 2024-09-17 02:43:54 UTC
Created attachment 903170 [details, diff]
Adds void to main()

Quick fix to the compile issue on main. There is no return statement, so return type is set to void. 

Signed-off-by: Stephane Bakhos <nuitari@nuitari.net>
Comment 9 Larry the Git Cow gentoo-dev 2025-03-14 21:00:41 UTC
The bug has been closed via the following commit(s):

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

commit d3e76c26607e0aba7839c871ad6a569c0ff0e037
Author:     NHOrus <jy6x2b32pie9@yahoo.com>
AuthorDate: 2025-03-11 16:49:54 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2025-03-14 20:59:54 +0000

    games-action/maelstrom: update EAPI 7 -> 8, fix build with GCC-15 and Clang
    
    Issues are more of Cisms in C++ code, and some of them had rather
    horrific fixes.
    One is from the bug report, for wrong type of main().
    Another one is about macros in string literals and register keyword.
    
    Closes: https://bugs.gentoo.org/730822
    Closes: https://bugs.gentoo.org/875431
    Signed-off-by: NHOrus <jy6x2b32pie9@yahoo.com>
    Signed-off-by: Stephane Bakhos <nuitari@nuitari.net>
    Closes: https://github.com/gentoo/gentoo/pull/41019
    Signed-off-by: Sam James <sam@gentoo.org>

 .../files/maelstrom-3.0.6-clang-sprintf.patch      | 112 +++++++++++++++++++++
 .../files/maelstrom-3.0.6-fix_return_type.patch    |  17 ++++
 games-action/maelstrom/maelstrom-3.0.6-r4.ebuild   |  61 +++++++++++
 3 files changed, 190 insertions(+)