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 13:29 -0600, dave kohler wrote:
> Here is the config log for the failed configure step. thanks for being
> patient.

So things goes wrong as:

configure:16156: checking for seccomp_init in -lseccomp
configure:16185: x86_64-lfs-linux-gnu-gcc -o conftest -g -O2   conftest.c -lseccomp  -lzstd -llzma -lbz2 -lz  >&5
configure:16185: $? = 0
configure:16197: result: yes

This shouldn't happen.  The cross compiler shouldn't be able to find the
host libraries.

I can see two possibilities here, either there are some environment
variables affecting the linker behavior, or $LFS_TGT-ld isn't configured
with a proper sysroot.

So can you paste the output of the two commands (running them as the lfs
user):

    env

and

    echo "int main(){}" | gcc -x c - -Wl,--verbose

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