GCC: sorry, unimplemented: 64-bit mode not compiled in

后端 未结 4 1978
醉酒成梦
醉酒成梦 2020-12-14 15:44

I have built GCC 4.7 on my x86 32-bit linux system. When I try to cross-compile with the -m64 flag I get the following:

sorry, unimplemented: 64-bit m

4条回答
  •  不知归路
    2020-12-14 16:24

    You will need both binutils and gcc configured with:

    --enable-multilib
    

    and probably:

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

    to support multilib (the -m64 and/or -m32 options). You'll also need two versions of stuff like glibc to be able to link and run the resulting binaries.

提交回复
热议问题