Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 886305 - dev-libs/tvision-2.2.3 - ld.lld: error: .../crti.o is incompatible with elf32-i386
Summary: dev-libs/tvision-2.2.3 - ld.lld: error: .../crti.o is incompatible with elf32...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Bernd
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-12-16 10:02 UTC by Toralf Förster
Modified: 2022-12-31 10:46 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,18.27 KB, text/plain)
2022-12-16 10:02 UTC, Toralf Förster
Details
dev-libs:tvision-2.2.3:20221216-032633.log (dev-libs:tvision-2.2.3:20221216-032633.log,95.48 KB, text/plain)
2022-12-16 10:02 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,90.46 KB, text/plain)
2022-12-16 10:02 UTC, Toralf Förster
Details
environment (environment,68.72 KB, text/plain)
2022-12-16 10:02 UTC, Toralf Förster
Details
etc.clang.tar.bz2 (etc.clang.tar.bz2,687 bytes, application/x-bzip)
2022-12-16 10:02 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,21.34 KB, application/x-bzip)
2022-12-16 10:03 UTC, Toralf Förster
Details
logs.tar.bz2 (logs.tar.bz2,72.01 KB, application/x-bzip)
2022-12-16 10:03 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,32.08 KB, application/x-bzip)
2022-12-16 10:03 UTC, Toralf Förster
Details
var.tmp.clang.tar.bz2 (var.tmp.clang.tar.bz2,506 bytes, application/x-bzip)
2022-12-16 10:03 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-12-16 10:02:54 UTC
too long lines were shrinked:

clang++  -I../include -I/usr/include/X11       -fPIC -pipe -march=native -fno-diagnostics-color -O2  -c ../classes/x11/x11src.cc -o obj/x11src.lo
clang++  -I../include -I/usr/include/X11       -fPIC -pipe -march=native -fno-diagnostics-color -O2  -c ../classes/unix/xtermdis.cc -o obj/xtermdis.lo
clang++  -I../include -I/usr/include/X11       -fPIC -pipe -march=native -fno-diagnostics-color -O2  -c ../classes/unix/xtermkey.cc -o obj/xtermkey.lo
clang++  -I../include -I/usr/include/X11       -fPIC -pipe -march=native -fno-diagnostics-color -O2  -c ../classes/unix/xtermmouse.cc -o obj/xtermmouse.lo
clang++  -I../include -I/usr/include/X11       -fPIC -pipe -march=native -fno-diagnostics-color -O2  -c ../classes/unix/xtermscr.cc -o obj/xtermscr.lo
clang++ -L../../makes -L/var/tmp/portage/dev-libs/tvision-2.2.3/work/tvision/makes -L/usr/lib -L/usr/X11R6/lib -L/usr/lib64 -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -shared -Wl,-soname,librhtv.so.2.2.3 -fPIC -o librhtv.so.2.2.3 ../makes/obj/beep.lo ../makes/obj/drivevalid.lo .
ld.lld: error: /usr/lib/gcc/x86_64-pc-linux-gnu/12/../../../../lib64/crti.o is incompatible with elf32-i386
ld.lld: error: /usr/lib/gcc/x86_64-pc-linux-gnu/12/crtbeginS.o is incompatible with elf32-i386
ld.lld: error: ../makes/obj/beep.lo is incompatible with elf32-i386

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

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

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

GNUMAKEFLAGS="$GNUMAKEFLAGS --jobserver-style=pipe"
CC=clang
CXX=clang++
gcc-config -l:
 [1] x86_64-pc-linux-gnu-12 *
clang/llvm (if any):
clang version 15.0.6
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.6
Python 3.10.9
Available Rust versions:
  [1]   rust-bin-1.65.0 *
The following VMs are available for generation-2:
*)	Eclipse Temurin JDK 17.0.5_p8 [openjdk-bin-17]
2)	Eclipse Temurin JDK 8.352_p08 [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):

  HEAD of ::gentoo
commit e3c692f87cfa28ce78d0022da1825fd206476436
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Fri Dec 16 03:02:12 2022 +0000

    2022-12-16 03:02:12 UTC

emerge -qpvO dev-libs/tvision
[ebuild  N    ] dev-libs/tvision-2.2.3  USE="gpm nls -examples"
Comment 1 Toralf Förster gentoo-dev 2022-12-16 10:02:54 UTC
Created attachment 843021 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-12-16 10:02:56 UTC
Created attachment 843023 [details]
dev-libs:tvision-2.2.3:20221216-032633.log
Comment 3 Toralf Förster gentoo-dev 2022-12-16 10:02:57 UTC
Created attachment 843025 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2022-12-16 10:02:58 UTC
Created attachment 843027 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2022-12-16 10:02:59 UTC
Created attachment 843029 [details]
etc.clang.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2022-12-16 10:03:01 UTC
Created attachment 843031 [details]
etc.portage.tar.bz2
Comment 7 Toralf Förster gentoo-dev 2022-12-16 10:03:02 UTC
Created attachment 843033 [details]
logs.tar.bz2
Comment 8 Toralf Förster gentoo-dev 2022-12-16 10:03:03 UTC
Created attachment 843035 [details]
temp.tar.bz2
Comment 9 Toralf Förster gentoo-dev 2022-12-16 10:03:04 UTC
Created attachment 843037 [details]
var.tmp.clang.tar.bz2
Comment 10 Bernd 2022-12-16 11:04:55 UTC
How should I interpret this? A 64-bit build is incompatible with 32-bit? Also the first two files listed are part of gcc, not of this package.
Any hints in how to handle this? To me it looks like this is not about clang-16, but eventually the package isn't possible to build with clang at all.
Comment 11 Joonas Niilola gentoo-dev 2022-12-31 07:27:51 UTC
That is very much possible. Is there an upstream bug report about issues with building clang? Are other distros, especially those who use clang as their main compiler, patching this somehow? 

Worst case we'll just have to block building it with clang.
https://gitweb.gentoo.org/repo/gentoo.git/tree/sys-process/btop/btop-1.2.13-r1.ebuild#n27
here's a working example how to do it if worst comes to worst.
Comment 12 Bernd 2022-12-31 10:46:49 UTC
I'm not aware of a clang related upstream issue, but will check on this. 

There's not much activity upstream on this project and because the build system hasn't been modernized in years, I was actually thinking in dropping the package and placing the more modern implenentation from [1] into my overlay or ::guru.

[1] https://github.com/magiblot/tvision