-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
3.6 交叉编译器之GCC:编译得到的loongarch64-unknown-linux-gnu-gcc运行出错 #42
Comments
前面的步骤都做了吗? |
都做了,区别是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 on GitHub<#42 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AADZM7PJO45ET6XVVI7JIG3WK5DZJANCNFSM6AAAAAASPKZER4>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
今天把系统换成fedora34,问题依然。 |
目标系统的glibc编译了吗? |
还没有,我现在做的是3.6,第一遍gcc,目标系统glibc是3.8. |
你这些报错找不到的东西可都是glibc的……,第一编的gcc就是为了编译glibc。 |
制作目标系统glibc在configure阶段出错: 查config.log,里面有这个提示: |
-mlarge-func-call 参数去掉,已经不用了 |
去掉-mlarge-func-call 是解决问题的关键,现在问题解决。 另外,这里BUILD_CC和CC的区别是什么? |
Anybodysuggestion?
lauser:/opt/mylaos/downloads$ loongarch64-unknown-linux-gnu-gcc wen1.c
/opt/mylaos/cross-tools/lib/gcc/loongarch64-unknown-linux-gnu/13.0.0/../../../../loongarch64-unknown-linux-gnu/bin/ld: cannot find Scrt1.o: No such file or directory
/opt/mylaos/cross-tools/lib/gcc/loongarch64-unknown-linux-gnu/13.0.0/../../../../loongarch64-unknown-linux-gnu/bin/ld: cannot find crti.o: No such file or directory
/opt/mylaos/cross-tools/lib/gcc/loongarch64-unknown-linux-gnu/13.0.0/../../../../loongarch64-unknown-linux-gnu/bin/ld: cannot find -lc: No such file or directory
/opt/mylaos/cross-tools/lib/gcc/loongarch64-unknown-linux-gnu/13.0.0/../../../../loongarch64-unknown-linux-gnu/bin/ld: cannot find crtn.o: No such file or directory
collect2: error: ld returned 1 exit status
The text was updated successfully, but these errors were encountered: