bug-gnu-libiconv
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug-gnu-libiconv] rpath still set by libtool for iconv build even w


From: fred.heinecke
Subject: Re: [bug-gnu-libiconv] rpath still set by libtool for iconv build even with disable-rpath configuration flag is set
Date: Mon, 13 Nov 2023 16:16:30 -0600

I'm running this on a Debian 12 container running on Docker Desktop with WSL
2 backend (Linux on Windows). However, I was able to reproduce this on a
bare metal Ubuntu 22.04.3 server as well. Here's some more info:
> uname -a
Linux docker-desktop 5.15.90.1-microsoft-standard-WSL2 #1 SMP Fri Jan 27
02:56:13 UTC 2023 x86_64 GNU/Linux

> cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 12 (bookworm)"
NAME="Debian GNU/Linux"
VERSION_ID="12"
VERSION="12 (bookworm)"
VERSION_CODENAME=bookworm
ID=debian
HOME_URL="https://www.debian.org/";
SUPPORT_URL="https://www.debian.org/support";
BUG_REPORT_URL="https://bugs.debian.org/";

> gcc --version
gcc (Debian 12.2.0-14) 12.2.0

> clang --version
Debian clang version 14.0.6
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/bin

> /tmp/output/cross-llvm/usr/bin/clang --version # This is the toolchain
that I originally discovered the issue with
distrobuilder clang version 17.0.0
Target: x86_64-pc-linux-musl
Thread model: posix
InstalledDir: /tmp/output/cross-llvm/usr/bin

I can reproduce this both with gcc/GNU ld and clang/LLVM lld. For the GNU
toolchain, I am doing a simple " ./configure --disable-rpath". For the LLVM
toolchain, I am configuring as:
  CC=/tmp/output/cross-llvm/usr/bin/clang
CFLAGS="-fuse-ld=/tmp/output/cross-llvm/usr/bin/ld.lld" ./configure
--disable-rpath --host="x86_64-pc-linux-musl"

Note that this is a cross compilation toolchain (I'm building on GNU/Linux
x86_64 and targeting a Musl-based Linux x86_64 target). The
"/tmp/output/cross-llvm/" path contains a LLVM toolchain that I built from
LLVM 17.0.0 source.

The minimum code to reproduce this issue from scratch is the shell script in
my original email, with example 2 only.

Thanks, Fred

-----Original Message-----
From: Bruno Haible <bruno@clisp.org> 
Sent: Monday, November 13, 2023 3:42 PM
To: bug-gnu-libiconv@gnu.org; fred.heinecke@yahoo.com
Subject: Re: [bug-gnu-libiconv] rpath still set by libtool for iconv build
even with disable-rpath configuration flag is set

Fred Heinecke wrote:
> 
> > objdump -x /tmp/build_output/usr/local/bin/iconv | grep "RUNPATH"
>   RUNPATH              /tmp/build_output/usr/local/lib
> 
> > readelf -d /tmp/build_output/usr/local/bin/iconv | grep "RUNPATH"
> 0x000000000000001d (RUNPATH)            Library runpath:
> [/tmp/build_output/usr/local/lib]

OK. Now I'd like to reproduce it. On which operating system is this?
And which linker is the compiler using (GNU ld, GNU gold, LLVM lld, or maybe
mold)?

Bruno






reply via email to

[Prev in Thread] Current Thread [Next in Thread]