让错误帮助GCC compling [英] Make error help GCC compling
本文介绍了让错误帮助GCC compling的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
好。我运行这个:
well. i run this :
../configure \
--target=$LFS_TGT \
--prefix=/tools \
--with-glibc-version=2.11 \
--with-sysroot=$LFS \
--with-newlib \
--without-headers \
--with-local-prefix=/tools \
--with-native-system-header-dir=/tools/include \
--disable-nls \
--disable-shared \
--disable-multilib \
--disable-decimal-float \
--disable-threads \
--disable-libatomic \
--disable-libgomp \
--disable-libmpx \
--disable-libquadmath \
--disable-libssp \
--disable-libvtv \
--disable-libstdcxx \
--enable-languages=c,c++
我在20分钟后得到这个从编译器开始...
And i get this after 20 minuts from starting of complier...
checking for C compiler default output file name...
configure: error: in `/media/root1/a8308517-5ec4-43ec-b166-592694971e0d/sources/gcc-7.2.0/build/intl':
configure: error: C compiler cannot create executables
See `config.log' for more details.
Makefile:8573: recipe for target 'configure-stage2-intl' failed
make[2]: *** [configure-stage2-intl] Error 77
make[2]: Leaving directory '/media/root1/a8308517-5ec4-43ec-b166-592694971e0d/sources/gcc-7.2.0/build'
Makefile:21343: recipe for target 'stage2-bubble' failed
make[1]: *** [stage2-bubble] Error 2
make[1]: Leaving directory '/media/root1/a8308517-5ec4-43ec-b166-592694971e0d/sources/gcc-7.2.0/build'
Makefile:886: recipe for target 'all' failed
make: *** [all] Error 2
有人可以帮帮我吗?
我尝试过:
搜索解决方案。但我找不到...
Someone can help me ?
What I have tried:
To search a solution. But i on t find one...
推荐答案
LFS_TGT \
--prefix = / tools \
--with-glibc -version = 2.11 \
--with-sysroot =
LFS_TGT \ --prefix=/tools \ --with-glibc-version=2.11 \ --with-sysroot=
LFS \
--with-newlib \
--with-headers \
--with-local-prefix = / tools \
--with-native-system-header-dir = / tools / include \
--disable-nls \\ \\
--disable-shared \
--disable-multilib \
--disable-decimal-float \
--disable-threads \
--disable-libatomic \
--disable-libgomp \
--disable-libmpx \
--disable-libquadmath \
--disable-libssp \
--disable-libvtv \
--disable-libstdcxx \
--enable-languages = c,c ++
LFS \ --with-newlib \ --without-headers \ --with-local-prefix=/tools \ --with-native-system-header-dir=/tools/include \ --disable-nls \ --disable-shared \ --disable-multilib \ --disable-decimal-float \ --disable-threads \ --disable-libatomic \ --disable-libgomp \ --disable-libmpx \ --disable-libquadmath \ --disable-libssp \ --disable-libvtv \ --disable-libstdcxx \ --enable-languages=c,c++
我在20分钟后得到这个从编译器开始...
And i get this after 20 minuts from starting of complier...
checking for C compiler default output file name...
configure: error: in `/media/root1/a8308517-5ec4-43ec-b166-592694971e0d/sources/gcc-7.2.0/build/intl':
configure: error: C compiler cannot create executables
See `config.log' for more details.
Makefile:8573: recipe for target 'configure-stage2-intl' failed
make[2]: *** [configure-stage2-intl] Error 77
make[2]: Leaving directory '/media/root1/a8308517-5ec4-43ec-b166-592694971e0d/sources/gcc-7.2.0/build'
Makefile:21343: recipe for target 'stage2-bubble' failed
make[1]: *** [stage2-bubble] Error 2
make[1]: Leaving directory '/media/root1/a8308517-5ec4-43ec-b166-592694971e0d/sources/gcc-7.2.0/build'
Makefile:886: recipe for target 'all' failed
make: *** [all] Error 2
有人可以帮帮我吗?
我尝试过:
搜索解决方案。但是我找不到...
Someone can help me ?
What I have tried:
To search a solution. But i on t find one...
很难回答这个问题,因为我不知道你要用什么来构建和使用哪个编译器进行巫婆系统。
根据输出中的建议,您应该查看 config.log 文件。这应包含来自已启动工具(C编译器)的错误消息,这些消息可能表明出现了什么问题。
路径 / media / root1 / ... 表示您正在尝试从已安装的媒体构建它。如果媒体只读装入或您没有写访问权限,则无效。如果是这样,请将源树复制到本地磁盘。
错误消息也可能表示您使用的是错误的工具(对于错误的平台)。检查
It is difficult to answer that without knowing what you are tyring to build and on witch system with which compiler.
As suggested in the output you should have a look at the config.log file. That should contain error messages from the started tools (the C compiler) which might indicate what went wrong.
The path /media/root1/... indicates that you are trying to build it from a mounted media. That won't work if the media is mounted read only or you have no write access. If so, copy the source tree to a local disk.
The error message might also indicate that you are using the wrong tools (for the wrong platform). Check if the
这篇关于让错误帮助GCC compling的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文