开发者

Building gcc for x86_64: error

开发者 https://www.devze.com 2023-02-28 07:55 出处:网络
I am trying to build gcc 4.3.2 from sources in my x86_64 system which has a 32 bit gcc installed ( older version) which don\'t support -m64 switch. When I try to configure, it succeeds without any err

I am trying to build gcc 4.3.2 from sources in my x86_64 system which has a 32 bit gcc installed ( older version) which don't support -m64 switch. When I try to configure, it succeeds without any error but 'make' is failing with following error.

checking for suffix of object files... configure: error: cannot compute suffix of object files: cannot compile See `config.log' for more details.

I tried setting LD_LIBRARY_PATH and LD_OPTIONS b开发者_如何转开发ut couldn't make any headway. I'm not sure I am going in right direction. Any idea what could be the problem? If anyone of you have come across such problem earlier, please respond if you have any solutions.Thank you


You will first need to install a 32-bit to 64-bit cross-compiler, because your 32-bit compiler can't create 64-bit object files. Or install a 64-bit (cross-)compiler and use that to build your native compiler.

0

精彩评论

暂无评论...
验证码 换一张
取 消