Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 870904 - games-board/xgammon-0.98-r3 - (.text+<snip>): undefined reference to main
Summary: games-board/xgammon-0.98-r3 - (.text+<snip>): undefined reference to main
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Games
Depends on:
Blocks: clang-16-porting
  Show dependency tree
Reported: 2022-09-17 17:33 UTC by Toralf Förster
Modified: 2022-09-30 11:01 UTC (History)
0 users

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

emerge-info.txt (emerge-info.txt,17.53 KB, text/plain)
2022-09-17 17:33 UTC, Toralf Förster
emerge-history.txt (emerge-history.txt,52.56 KB, text/plain)
2022-09-17 17:33 UTC, Toralf Förster
environment (environment,61.22 KB, text/plain)
2022-09-17 17:33 UTC, Toralf Förster
etc.portage.tar.bz2 (etc.portage.tar.bz2,10.91 KB, application/x-bzip)
2022-09-17 17:33 UTC, Toralf Förster
games-board:xgammon-0.98-r3:20220917-162509.log (games-board:xgammon-0.98-r3:20220917-162509.log,2.21 KB, text/plain)
2022-09-17 17:33 UTC, Toralf Förster
temp.tar.bz2 (temp.tar.bz2,16.27 KB, application/x-bzip)
2022-09-17 17:33 UTC, Toralf Förster

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2022-09-17 17:33:17 UTC
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/games-board/xgammon-0.98-r3/work/xgammon-0.98a ...
imake -DUseInstalled -I/usr/lib64/X11/config
/usr/bin/x86_64-pc-linux-gnu-ld: /usr/lib/gcc/x86_64-pc-linux-gnu/12.2.0/../../../../lib64/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
clang-15: error: linker command failed with exit code 1 (use -v to see invocation)
/usr/bin/xmkmf: line 53:    40 Aborted                 imake $imake_defines $args


  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_hardened-j4-20220917-070004


gcc-config -l:
 [1] x86_64-pc-linux-gnu-12.2.0 *
clang/llvm (if any):
clang version 15.0.0
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/15/bin
Python 3.10.7
Available Ruby profiles:
  (none found)
Available Rust versions:
  [1]   rust-bin-1.63.0 *
The following VMs are available for generation-2:
*)	Eclipse Temurin JDK [openjdk-bin-17]
2)	Eclipse Temurin JDK 8.345_p01 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8 
  [2]   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 27e349751fc08f79c6f96f84652edf0c93ba9a1f
Author: Repository mirror & CI <>
Date:   Sat Sep 17 14:46:52 2022 +0000

    2022-09-17 14:46:52 UTC

emerge -qpvO games-board/xgammon
[ebuild  N    ] games-board/xgammon-0.98-r3
Comment 1 Toralf Förster gentoo-dev 2022-09-17 17:33:18 UTC
Created attachment 808492 [details]
Comment 2 Toralf Förster gentoo-dev 2022-09-17 17:33:19 UTC
Created attachment 808495 [details]
Comment 3 Toralf Förster gentoo-dev 2022-09-17 17:33:22 UTC
Created attachment 808498 [details]
Comment 4 Toralf Förster gentoo-dev 2022-09-17 17:33:23 UTC
Created attachment 808501 [details]
Comment 5 Toralf Förster gentoo-dev 2022-09-17 17:33:24 UTC
Created attachment 808504 [details]
Comment 6 Toralf Förster gentoo-dev 2022-09-17 17:33:25 UTC
Created attachment 808507 [details]
Comment 7 Larry the Git Cow gentoo-dev 2022-09-30 11:01:59 UTC
The bug has been closed via the following commit(s):

commit 056c458a5ba38ea420d6cbf4f5bc4380e29d7252
Author:     Ionen Wolkens <>
AuthorDate: 2022-09-30 05:22:39 +0000
Commit:     Ionen Wolkens <>
CommitDate: 2022-09-30 10:30:33 +0000

    games-board/xgammon: force gcc -E for imake's generation
    Requires traditional cpp support and is broken in all sort of ways
    with clang-cpp / -E. Can still use clang & friends for everything else.
    Ideally these packages need to be built another way or last rited,
    imake will just accumulate more problems.
    Signed-off-by: Ionen Wolkens <>

 games-board/xgammon/xgammon-0.98-r3.ebuild | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)