wenheping

Results 7 comments of wenheping

你的lemote邮箱不用了吗?本来想发去你邮箱的

都做了,区别是1)我使用的是binutils-2.39的下载版本,而不是使用git pull的版本。2)我使用的是fedora37 ________________________________________ 发件人: sunhaiyong1978 ***@***.***> 发送时间: 2022年11月30日 20:44 收件人: sunhaiyong1978/CLFS-for-LoongArch 抄送: wenheping; Author 主题: Re: [sunhaiyong1978/CLFS-for-LoongArch] 3.6 交叉编译器之GCC:编译得到的loongarch64-unknown-linux-gnu-gcc运行出错 (Issue #42) 前面的步骤都做了吗? ― Reply to this email directly, view it...

还没有,我现在做的是3.6,第一遍gcc,目标系统glibc是3.8.

制作目标系统glibc在configure阶段出错: lauser:/opt/mylaos/build/glibc-2.36/build-64$ BUILD_CC="gcc" CC="${CROSS_TARGET}-gcc ${BUILD64} -mlarge-func-call" CXX="${CROSS_TARGET}-gcc ${BUILD64} -mlarge-func-call" AR="${CROSS_TARGET}-ar" RANLIB="${CROSS_TARGET}-ranlib" ../configure --prefix=/usr --host=${CROSS_TARGET} --build=${CROSS_HOST} --libdir=/usr/lib64 --libexecdir=/usr/lib64/glibc --with-binutils=${SYSDIR}/cross-tools/bin --with-headers=${SYSDIR}/sysroot/usr/include --enable-stack-protector=strong --enable-add-ons --disable-werror libc_cv_slibdir=/usr/lib64 --enable-kernel=4.15 configure: loading site script /usr/share/config.site checking...

去掉-mlarge-func-call 是解决问题的关键,现在问题解决。 另外,这里BUILD_CC和CC的区别是什么?