English 中文(简体)
海湾合作委员会:担忧、未执行:64条轨道模式没有汇编成册
原标题:GCC: sorry, unimplemented: 64-bit mode not compiled in
  • 时间:2012-01-14 08:41:02
  •  标签:
  • c++
  • gcc

我已经在我的x86 32-bit linux系统上建造了4.7海合会。 当我试图与国旗64号交织在一起时,我得到以下信息:

骚扰、未执行:64条轨道模式未汇编

虽然由于我的无缘分配而提供的汇编者可以与——m64相交叉。

What do I have to pass to ./configure to enable the 64bit mode in GCC? These are the options I used to build GCC 4.7:

$ /usr/local/bin/g++ -v Using built-in specs.
COLLECT_GCC=/usr/local/bin/g++
COLLECT_LTO_WRAPPER=/usr/local/libexec/gcc/i686-pc-linux-gnu/4.7.0/lto-wrapper
Target: i686-pc-linux-gnu
Configured with: ./configure --enable-multiarch --with-cloog=/usr/local/ --with-mpfr=/usr/local/ --with-ppl=/usr/local/ --verbose --enable-languages=c,c++
Thread model: posix gcc version 4.7.0 20120113 (experimental) (GCC)

EDIT:

-----------------------------------------------------------

这并不改变局势。 汇编者仍然抱怨说,有64个轨道模式没有编纂成:

$ g++ -v Using built-in specs. COLLECT_GCC=g++ COLLECT_LTO_WRAPPER=/usr/local/libexec/gcc/i686-pc-linux-gnu/4.7.0/lto-wrapper Target: i686-pc-linux-gnu Configured with: ./configure --enable-multiarch --with-cloog=/usr/local/ --with-mpfr=/usr/local/ --with-ppl=/usr/local/ --verbose --enable-languages=c,c++ --enable-multilib --enable-targets=i686-pc-linux-gnu,x86_64-pc-linux-gnu Thread model: posix gcc version 4.7.0 20120113 (experimental) (GCC)

$ g++ -m64 c.cpp c.cpp:1:0: sorry, unimplemented: 64-bit mode not compiled in

最佳回答

你们既需要双用途,又需要与:

--enable-multilib

可能的话:

--enable-targets=i686-pc-linux-gnu,x86_64-pc-linux-gnu

(-m64和(或)-m32备择)。 你们也需要两种像平衡一样的足迹,才能连接和管理由此产生的双手。

问题回答

这通常意味着你重新使用错误(旧)汇编者。

新的汇编者支持m32和-m64。 你们必须把PATH安排给新编者(在履带上,MinGW列车子) < 之前,里托列斯的任何老编。

3. 更新编辑的双轨平衡途径,使其达到64个轨道版本。 诸如校正等其他资源也应相应改变。

Just resolved this issue. In the environment variables, remove the entries to any outdated c++ package.

In my case, I worked in Anaconda on Windows 64-bit. In anaconda, I performed conda install mingw libpython . Mingw is for c++ compiler. But I had earlier installed cygwin s mingw for c++ compilations which hadn t been updated. This is the reason for conflict. I resolved this issue by simply removing the environment variable (PATH) corresponding to these c++ packages.
I have tried almost all forums, this solution works.

如果有人需要帮助,请让我知道:

I had the same problem on windows. Despite installing codeblock 20.03 I couldn t compile my code 64 bit. I solved it by setting the compiler to x86_64-w64-mingw32-g++.exe instead of g++.exe. It was in the bin directory as g++.exe. In windows go to Settings menue and: Settings->Compiler... select the "toolchain executables" tab and and from there on it is obvious.

同样的问题。 我的解决办法:

Update everything (R, Rstudio, R packages) and close Rstudio.
Uninstall Rtools and install the latest version.
Add only 2 entries under Enviroment Variables/System variables/Path:
- C:Rtoolsin
- C:Rtoolsmingw_64in (!not the 32bit version)
Path entries have to be in this order and above %SystemRootSystem32
I did NOT install in the strongly recommended default location on C:

After that open Rstudio and re-install Rcpp via console:
install.packages("Rcpp")

Test if it s working with:
Rcpp::evalCpp("2+2")

After that just switch to the Terminal in Rstudio, go into the cmdstan source folder and type make build .
--- CmdStan v2.19.1 built ---
Done!

详细情况:

*> sessionInfo()
R version 3.6.0 (2019-04-26)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 17763)
Matrix products: default
locale:
[1] LC_COLLATE=Slovenian_Slovenia.1250  LC_CTYPE=Slovenian_Slovenia.1250    LC_MONETARY=Slovenian_Slovenia.1250 LC_NUMERIC=C                       
[5] LC_TIME=Slovenian_Slovenia.1250    
attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     
loaded via a namespace (and not attached):
[1] compiler_3.6.0 tools_3.6.0*




相关问题
Undefined reference

I m getting this linker error. I know a way around it, but it s bugging me because another part of the project s linking fine and it s designed almost identically. First, I have namespace LCD. Then I ...

C++ Equivalent of Tidy

Is there an equivalent to tidy for HTML code for C++? I have searched on the internet, but I find nothing but C++ wrappers for tidy, etc... I think the keyword tidy is what has me hung up. I am ...

Template Classes in C++ ... a required skill set?

I m new to C++ and am wondering how much time I should invest in learning how to implement template classes. Are they widely used in industry, or is this something I should move through quickly?

Print possible strings created from a Number

Given a 10 digit Telephone Number, we have to print all possible strings created from that. The mapping of the numbers is the one as exactly on a phone s keypad. i.e. for 1,0-> No Letter for 2->...

typedef ing STL wstring

Why is it when i do the following i get errors when relating to with wchar_t? namespace Foo { typedef std::wstring String; } Now i declare all my strings as Foo::String through out the program, ...

C# Marshal / Pinvoke CBitmap?

I cannot figure out how to marshal a C++ CBitmap to a C# Bitmap or Image class. My import looks like this: [DllImport(@"test.dll", CharSet = CharSet.Unicode)] public static extern IntPtr ...

Window iconification status via Xlib

Is it possible to check with the means of pure X11/Xlib only whether the given window is iconified/minimized, and, if it is, how?

热门标签