Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7071565
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T05:42:12+00:00 2026-05-28T05:42:12+00:00

I have built GCC 4.7 on my x86 32-bit linux system. When I try

  • 0

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 mode not compiled in

while the compiler provided by default by my Linux distribution can cross-compile with -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:

–enable-multilib and –enable-targets=i686-pc-linux-gnu,x86_64-pc-linux-gnu

do not change the situation. The compiler still complains about 64 bit mode not compiled in:

$ 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

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T05:42:13+00:00Added an answer on May 28, 2026 at 5:42 am

    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.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an application which i build using gcc on linux host for ARM
I have successfully built and installed gcc 4.6.1 on my OS X box, but
We have a c++ application which I recently ported from Linux/gcc to build on
I have a libfoo.so library built from C++ code (compiled with gcc), and I
I have a C++ application cross-compiled for Linux running on an ARM CortexA9 processor
I have an application that was developed for Linux x86 32 bits. There are
Ubuntu 11.04 64-bit [Tried on SuSE 32-bit, and got same error], I have gcc,
I have built an MSI that I would like to deploy, and update frequently.
I have built a simple C#.Net app on a M/C with only .Net FX
I have built a web page which contains a Crystal Report built using the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.