我也遇到了这个编译警告,因为我从源代码安装了binutils-2.38。它替换了/usr/local/bin下的文件,比如ld。当我回滚到binutils-2.30时,问题解决了。顺便说一句,我的系统是Ubuntu 18.04。
GCC(GNUCompilerCollection,GNU编译程序集合)是最重要的开放源码软件。事实 上,其他所有开放源码软件都在某种层次上依赖于它。甚至其他语言,例如Perl和Python ,都是由C语言开发的,由GNU编译程序编译的。 GCC编译程序的历史很有趣,远远不止是一个时间和事件的列表。这个软件对于整个自由 软件运动而言具有根本性的意义。
Checking whether the ASM compiler is GNU using "--version" did not match "(GNU assembler)|(GCC)|(Free Software Foundation)": clang version 6.0.1-14 (tags/RELEASE_601/final) Target: x86_64-pc-linux-gnu Thread model: posix InstalledDir: /usr/bin Determining if the F_FULLFSYNC ...
AM_PROG_CC_C_O if test "x$ac_cv_prog_cc_c89" = "xno" ; then AC_MSG_ERROR([[No C-89 compiler found]]) fi AC_PROG_INSTALL AC_PROG_LN_S AC_PROG_RANLIB AC_CHECK_TOOL(AR, ar, :) AC_PATH_PROG(PERL,"perl") AC_CHECK_TOOL(WINDRES, windres, :) AC_PATH_PRO...
我也遇到过同样的问题。这一个帮助了我:
OK, that works well for a simple script, but what about an actual build with lots of files using gcc/g++? Anyone have a working ci.yml that uses this approach? Below is the best method that I've found so far, which works reasonably well and does not depend on any third-party action...
Testing support (cross test) is more complicated. It relies onQEMUemulation, so testing may fail due to QEMU bugs rather than bugs in your crate. That said, a target has a ✓ intestcolumn of the table below if it can run thecompiler-builtinstest suite. ...
[GCC] kernel.o [GCC] shell.o [GCC]string.o [GCC] uart1.o [GCC] util.o [LD] kernel8.elf/root/arm/gcc-arm-10.3-2021.07-aarch64-aarch64-none-elf/bin/aarch64-none-elf-ld:/lib64/libc.so.6:version `GLIBC_2.27'not found (required by /root/arm/gcc-arm-10.3-2021.07-aarch64-a...
The C, C++, and Fortran frontends return 4, if an internal compiler error is encountered. If you only want some of the stages of compilation, you can use -x (or filename suffixes) to tell gcc where to start, and one of the options -c, -S, or -E to say where gcc is to stop...
Some options control the preprocessor and others the compiler itself. Yet other options control the assembler and linker; most of these are not documented here, since you rarely need to use any of them. Most of the command-line options that you can use with GCC are useful for C programs;...