Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/cplusplus/125.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
cc1plus:错误:无法识别的命令行选项-fsysroot=<;路径>&引用;用g++; 试图在64位计算机上在模拟32位环境(CEL5.03-I38—2.3)中编译一个大型C++项目。(以前编译在32位机器上运行良好)_C++_Compilation_Compiler Errors_G++ - Fatal编程技术网

cc1plus:错误:无法识别的命令行选项-fsysroot=<;路径>&引用;用g++; 试图在64位计算机上在模拟32位环境(CEL5.03-I38—2.3)中编译一个大型C++项目。(以前编译在32位机器上运行良好)

cc1plus:错误:无法识别的命令行选项-fsysroot=<;路径>&引用;用g++; 试图在64位计算机上在模拟32位环境(CEL5.03-I38—2.3)中编译一个大型C++项目。(以前编译在32位机器上运行良好),c++,compilation,compiler-errors,g++,C++,Compilation,Compiler Errors,G++,在此编译过程中,某些文件失败,如下所示。奇怪的是,传递给g++命令的参数是--sysroot=“”,而在错误消息中它变成了--fsysroot=“ 为什么会发生这种情况 /usr/bin/g++ -MMD -MF /proj/src/.debug/lib/osiris/core/utils/WWNConverter.d -I/proj/src/lib/osiris -DDEBUG_LOG -DDEBUG -D_REENTRANT -DAPE_MODE -DSWAT_MODE -g -Werr

在此编译过程中,某些文件失败,如下所示。奇怪的是,传递给g++命令的参数是--sysroot=“”,而在错误消息中它变成了--fsysroot=“

为什么会发生这种情况

/usr/bin/g++ -MMD -MF /proj/src/.debug/lib/osiris/core/utils/WWNConverter.d  -I/proj/src/lib/osiris -DDEBUG_LOG -DDEBUG -D_REENTRANT -DAPE_MODE  -DSWAT_MODE -g -Werror -Wall -Wno-write-strings -fPIC -m32 --sysroot=/auto/andpkg/rep_cache//wr-x86/3.0FCS/sysroot -rdynamic -I/proj/src -I/proj/src/.debug/include/private -I/proj/src/.debug/include/public -I/proj/src/lib/framework -I/proj/src/lib/osiris -I/proj/src/lib/prt -I/proj/src/lib/callhome -I/proj/src/lib/snmp  -I/proj/src/.debug/external/pcre/include -I/proj/src/external/sqlite/include -I/proj/src/external/openssl/openssl-fips-1.2.3/include -I/proj/src/support/storage-driver/include -I/proj/src/external/json/include -DTARGET_OBJECT=libosiris.so -I/proj/src/.debug/external/pcre/include -I/proj/src/.debug/external/libcurl/include -o /proj/src/.debug/lib/osiris/core/utils/WWNConverter.o -c /proj/src/lib/osiris/core/utils/WWNConverter.cc

make[1]: *** [/proj/src/.debug/lib/osiris/core/utils/WWNConverter.o] Error 1
cc1plus: error: unrecognized command line option "-fsysroot=/auto/andpkg/rep_cache//wr-x86/3.0FCS/sysroot"
32位编译器(GCC 3.4.6)太旧,无法支持--sysroot选项,该选项是通过添加到trunk中的,直到GCC 4.1.0,它才成为发布分支

2005-07-25马克·米切尔
*c(选项映射):添加--sysroot。
(process_命令):句柄--sysroot。
(显示帮助):记录它。
*doc/cpopts.tex(-isysroot):文档。
*doc/invoke.texi(--sysroot):文档。
*doc/install.texi(-with build sysroot):文档。
*Makefile.in(inhibit_libc):新变量。
(抑制自由):同样。
(LIBGCC2_CFLAGS):包括
$(禁止使用)。
(CRTSTUFF\u CFLAGS):包括$(INHIBIT\u LIBC\u CFLAGS)。
($(T)crtbegin.o):不要使用@inhibit_libc@.
($(T)crtend.o):同样。
($(T)crtbeginS.o):不要使用@inhibit_libc@.
($(T)crt.o):同样。
($(T)crtbeginT.o):不要使用@inhibit_libc@.
($(T)crtendT.o):同样。
(stmp fixinc):如果
抑制libc。
*configure.ac(inhibit_libc):将其设置为true/false。
(-with build sysroot):新选项。用它来设置
系统\标题\目录。
*配置:重新生成。

这在GCC编译器驱动程序或C++前端选项处理中有臭味;你能公布哪些编译器版本可以工作,哪些不可以吗?git对分将特别感激…抱歉,我现在无法访问64位机器。32位计算机上的g++版本为g++(GCC)3.4.6 20060404(Red Hat 3.4.6-11)。项目是SVN而不是GIT。无论如何,谢谢你。
2005-07-25  Mark Mitchell  <mark@codesourcery.com>
  * gcc.c (option_map): Add --sysroot.
  (process_command): Handle --sysroot.
  (display_help): Document it.
  * doc/cppopts.tex (-isysroot): Document.
  * doc/invoke.texi (--sysroot): Document.
  * doc/install.texi (--with-build-sysroot): Document.

  * Makefile.in (inhibit_libc): New variable.
  (INHIBIT_LIBC_CFLAGS): Likewise.
  (LIBGCC2_CFLAGS): Include
  $(INHIBIT_LIBC_CFLAGS).
  (CRTSTUFF_CFLAGS): Include $(INHIBIT_LIBC_CFLAGS).
  ($(T)crtbegin.o): Do not use @inhibit_libc@.
  ($(T)crtend.o): Likewise.
  ($(T)crtbeginS.o): Do not use @inhibit_libc@.
  ($(T)crtendS.o): Likewise.
  ($(T)crtbeginT.o): Do not use @inhibit_libc@.
  ($(T)crtendT.o): Likewise.
  (stmp-fixinc): Do not complain about missing headers if
  inhibit_libc.
  * configure.ac (inhibit_libc): Set it to true/false.
  (--with-build-sysroot): New option.  Use it to set
  SYSTEM_HEADER_DIR. 
  * configure: Regenerated.