Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 870784

Summary: media-fonts/x11fonts-jmk-3.0-r4 - (.text+<snip>): undefined reference to main
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Gentoo Fonts Team <fonts>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 870412    
Attachments: emerge-info.txt
emerge-history.txt
environment
etc.portage.tar.bz2
media-fonts:x11fonts-jmk-3.0-r4:20220917-143121.log
temp.tar.bz2

Description Toralf Förster gentoo-dev 2022-09-17 15:28:46 UTC
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/media-fonts/x11fonts-jmk-3.0-r4/work/jmk-x11-fonts-3.0 ...
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-20220916-040004

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-9.3.1
 [2] 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
/usr/lib/llvm/15
15.0.0
Python 3.10.7
Available Ruby profiles:
  [1]   ruby27 (with Rubygems)
  [2]   ruby31 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.63.0 *
The following VMs are available for generation-2:
*)	Eclipse Temurin JDK 17.0.4.1_p1 [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.90

  HEAD of ::gentoo
commit a7abb04fd6c213f3bf85ff69b1fd07d64b30626c
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Sat Sep 17 13:46:46 2022 +0000

    2022-09-17 13:46:46 UTC

emerge -qpvO media-fonts/x11fonts-jmk
[ebuild  N    ] media-fonts/x11fonts-jmk-3.0-r4  USE="-X"
Comment 1 Toralf Förster gentoo-dev 2022-09-17 15:28:47 UTC
Created attachment 807697 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-09-17 15:28:48 UTC
Created attachment 807700 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2022-09-17 15:28:50 UTC
Created attachment 807703 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2022-09-17 15:28:51 UTC
Created attachment 807706 [details]
etc.portage.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2022-09-17 15:28:52 UTC
Created attachment 807709 [details]
media-fonts:x11fonts-jmk-3.0-r4:20220917-143121.log
Comment 6 Toralf Förster gentoo-dev 2022-09-17 15:28:53 UTC
Created attachment 807712 [details]
temp.tar.bz2
Comment 7 Larry the Git Cow gentoo-dev 2022-09-30 04:05:44 UTC
The bug has been closed via the following commit(s):

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

commit 25dc780c4bc7aa944518a2ca059b0dd14c4e3214
Author:     Ionen Wolkens <ionen@gentoo.org>
AuthorDate: 2022-09-30 04:02:08 +0000
Commit:     Ionen Wolkens <ionen@gentoo.org>
CommitDate: 2022-09-30 04:05:15 +0000

    media-fonts/x11fonts-jmk: 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.
    
    Closes: https://bugs.gentoo.org/870784
    Signed-off-by: Ionen Wolkens <ionen@gentoo.org>

 media-fonts/x11fonts-jmk/x11fonts-jmk-3.0-r4.ebuild | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)