Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 874075 - net-analyzer/sslsplit-0.5.5 - clang-15: error: linker command failed with exit code 1 (use -v to see invocation)
Summary: net-analyzer/sslsplit-0.5.5 - clang-15: error: linker command failed with exi...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Petr Vaněk
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks: LD-is-lld, systemwide-lld
  Show dependency tree
 
Reported: 2022-10-02 14:47 UTC by Toralf Förster
Modified: 2022-10-07 11:28 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,18.64 KB, text/plain)
2022-10-02 14:47 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,234.81 KB, text/plain)
2022-10-02 14:47 UTC, Toralf Förster
Details
environment (environment,77.48 KB, text/plain)
2022-10-02 14:47 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,24.50 KB, application/x-bzip)
2022-10-02 14:47 UTC, Toralf Förster
Details
net-analyzer:sslsplit-0.5.5:20221002-140232.log (net-analyzer:sslsplit-0.5.5:20221002-140232.log,27.54 KB, text/plain)
2022-10-02 14:47 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,22.34 KB, application/x-bzip)
2022-10-02 14:47 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-10-02 14:47:35 UTC
x86_64-pc-linux-gnu-ld: error: main.o is incompatible with elf32-i386
x86_64-pc-linux-gnu-ld: error: nat.o is incompatible with elf32-i386
x86_64-pc-linux-gnu-ld: error: opts.o is incompatible with elf32-i386
x86_64-pc-linux-gnu-ld: error: too many errors emitted, stopping now (use -error-limit=0 to see all errors)
clang-15: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [GNUmakefile:477: sslsplit] Error 1
 * ERROR: net-analyzer/sslsplit-0.5.5::gentoo failed (compile phase):

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

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

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-12.2.0 *
clang/llvm (if any):
clang version 15.0.1
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/15/bin
/usr/lib/llvm/15
15.0.1
Python 3.10.7
Available Ruby profiles:
  (none found)
Available Rust versions:
  [1]   rust-bin-1.64.0 *
The following VMs are available for generation-2:
1)	Eclipse Temurin JDK 11.0.16.1_p1 [openjdk-bin-11]
*)	Eclipse Temurin JRE 17.0.4.1_p1 [openjdk-jre-bin-17]
3)	Eclipse Temurin JRE 8.345_p01 [openjdk-jre-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-11 
  [2]   openjdk-jre-bin-8 
  [3]   openjdk-jre-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 ffd974ef87604e20495370342e9dbcb42a4dbc82
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Sun Oct 2 11:31:48 2022 +0000

    2022-10-02 11:31:48 UTC

emerge -qpvO net-analyzer/sslsplit
[ebuild  N    ] net-analyzer/sslsplit-0.5.5  USE="-test"
Comment 1 Toralf Förster gentoo-dev 2022-10-02 14:47:36 UTC
Created attachment 815572 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-10-02 14:47:38 UTC
Created attachment 815575 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2022-10-02 14:47:40 UTC
Created attachment 815578 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2022-10-02 14:47:41 UTC
Created attachment 815581 [details]
etc.portage.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2022-10-02 14:47:42 UTC
Created attachment 815584 [details]
net-analyzer:sslsplit-0.5.5:20221002-140232.log
Comment 6 Toralf Förster gentoo-dev 2022-10-02 14:47:43 UTC
Created attachment 815587 [details]
temp.tar.bz2
Comment 7 Petr Vaněk gentoo-dev 2022-10-04 14:06:19 UTC
I am not able to reproduce this one with any of those two compilers sys-devel/clang: 15.0.0-r1::gentoo, 16.0.0_pre20220930::gentoo
Comment 8 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-10-04 14:30:19 UTC
It's forcing -L/usr/lib which on glibc multilib systems will mean using wrong objects.
Comment 9 Larry the Git Cow gentoo-dev 2022-10-07 11:28:50 UTC
The bug has been closed via the following commit(s):

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

commit 7bb7ed201f33e94137d7e032f4627158141411a4
Author:     Petr Vaněk <arkamar@atlas.cz>
AuthorDate: 2022-10-04 15:24:30 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-10-07 11:28:29 +0000

    net-analyzer/sslsplit: use pkgconfig to detect libnet
    
    SSLsplit uses custom localization of libnet library which does not work
    correctly in multilib environment. This commit fixes the issue by
    restoring pkgconfig detection from upstream commit 46a55de8040a
    ("Refactor location of packages, improve libnet detection"). Similar
    patch is also needed for tests, where libcrypto is also searched with
    pkgconfig.
    
    Closes: https://bugs.gentoo.org/731190
    Closes: https://bugs.gentoo.org/874075
    Signed-off-by: Petr Vaněk <arkamar@atlas.cz>
    Closes: https://github.com/gentoo/gentoo/pull/27631
    Signed-off-by: Sam James <sam@gentoo.org>

 .../files/sslsplit-0.5.5-libcrypto-pkgconfig.patch | 23 +++++++++++++
 .../files/sslsplit-0.5.5-libnet-pkgconfig.patch    | 40 ++++++++++++++++++++++
 net-analyzer/sslsplit/sslsplit-0.5.5.ebuild        |  6 +++-
 3 files changed, 68 insertions(+), 1 deletion(-)