bug-binutils
[Top][All Lists]
Advanced

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

[Bug libctf/28545] cross compile incorrectly using host libraries in ins


From: sourceware at linear dot network
Subject: [Bug libctf/28545] cross compile incorrectly using host libraries in install relink
Date: Sat, 09 Sep 2023 16:46:02 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=28545

linear cannon <sourceware at linear dot network> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |sourceware at linear dot 
network

--- Comment #17 from linear cannon <sourceware at linear dot network> ---
i am running into a similar issue to this while trying to port Alpine Linux to
m68k. the second pass building binutils 2.41 (first time, to run on my build
machine; this time, to run on the target) fails during the install stage
because it tries to relink against the build system's libraries (in this case,
ppc64le-alpine-linux-gnu, in /usr/lib) rather than the host/target libraries
(m68k-alpine-linux-gnu). the other compile logs in this issue seem to be the
same scenario, just different architectures (`--build` is passed one target
triple, `--host` and `--target` are passed another)

what stands out to me is the mention that --sysroot should be used instead of
-L options. this is correct, but i don't think it fixes the problem. the copy
of libtool included in the binutils and gcc source distributions does not
appear to have the necessary support for resolving sysroots. this support was
added in october of 2010. when is the last time binutils updated libtool?

LFS also notes a workaround for the issue, and outdated libtool as the culprit,
in their second pass of binutils:
https://www.linuxfromscratch.org/lfs/view/development/chapter06/binutils-pass2.html

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

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