Re: LFS build of File-5.45 problem stops on compilation of seccomp.c

"Xi Ruoyao" ([email protected] via lfs-support Mailing List) <[email protected]>
Newsgroups gmane.linux.lfs.support
Message-ID <[email protected]>
On Wed, 2025-02-19 at 15:31 -0600, dave kohler wrote:

> SEARCH_DIR("/usr/x86_64-pc-linux-gnu/lib64"); SEARCH_DIR("/usr/lib");
> SEARCH_DIR("/usr/local/lib"); SEARCH_DIR("/usr/x86_64-pc-linux-
> gnu/lib");

So this doesn't seem correct.  The correct value is something like

SEARCH_DIR("=/mnt/lfs/tools/x86_64-lfs-linux-gnu/lib64");
SEARCH_DIR("=/usr/local/lib64"); SEARCH_DIR("=/lib64");
SEARCH_DIR("=/usr/lib64"); SEARCH_DIR("=/mnt/lfs/tools/x86_64-lfs-linux-
gnu/lib"); SEARCH_DIR("=/usr/local/lib"); SEARCH_DIR("=/lib");
SEARCH_DIR("=/usr/lib");

Note that all paths start with a "=" symbol, which is then automatically
replaced with /mnt/lfs at runtime, i.e all library search paths
effectively begin with /mnt/lfs.

Now to me your $LFS_TGT-gcc has somehow pick up the linker from your
host distro.  What's the output of $LFS_TGT-gcc -print-prog-name=ld ?

-- 
Xi Ruoyao <[email protected]>
School of Aerospace Science and Technology, Xidian University

-- 
http://lists.linuxfromscratch.org/sympa/info/lfs-support
Unsubscribe: See the above information page
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.