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]> Thu, 20 Feb 2025 06:03:43 +0800
Newsgroups gmane.linux.lfs.support
Message-ID <[email protected]>
On Wed, 2025-02-19 at 15:58 -0600, dave kohler wrote:
> here is the output to the modified test gcc command:
> 
> lfs:/mnt/lfs$ echo "int main(){}" | $LFS_TGT-gcc -x c - -Wl,--verbose

/* snip */

> SEARCH_DIR("=/mnt/lfs/tools/x86_64-lfs-linux-gnu/lib64"); SEARCH_DIR("=/usr/local/lib64"); SEARCH_DIR("=/lib64"); SE
> ARCH_DIR("=/usr/lib64"); SEARCH_DIR("=/mnt/lfs/tools/x86_64-lfs-linux-gnu/lib"); SEARCH_DIR("=/usr/local/lib"); SEAR
> CH_DIR("=/lib"); SEARCH_DIR("=/usr/lib");

Now try "$LFS_TGT-ld -print-sysroot".  It should output /mnt/lfs.

If it outputs nothing instead, it means --with-sysroot=$LFS wasn't
correctly passed for binutils pass 1.  Maybe $LFS wasn't correctly set,
or you've mistyped it (maybe something like --with-sysroot=$LFs).

If my assumption is true you need to purge the broken LFS build and
start over (and making sure you've typed all the commands correctly this
time).  Simply rebuilding binutils pass 1 and continuing will likely
cause a failure at the start of chapter 7.

-- 
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