Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
i tried to compile my c program with the option -m64 and got a warning as shown below..
> gcc -m64 file.c
cc1: sorry, not implemented: 64-bit mode not compiled in
i understood that 64-bit mode has to implemented while compiling the gcc source code.
Should i rebuild Gcc? if so which is the option to enable 64-bit mode..
Im using i686 athlon i386 GNU/Linux.. i hope kernel supports 64-bit mode.
--> First, check the version of gcc. If it is less than 3.2 I guess even if you recompile it doesn't support 64-bit operations. If its newer than 3.2 than you might be lucky that it would already be compiled with that support.
--> An easy and quick test to check if your compiler supports 64 bit operations is to write a trivial C program. I've tested on my old laptop to find out that my gcc doesn't support 64 bit operations.
OK this is what I've done.
Wrote a test C program called test.c
void main()
{
printf("Hello\n");
}
And compiled it normally,
# gcc -o test32 test.c
It created a binary called test. To see if its a 32 bit binary, I used 'file'.
# file test32
test32: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.2.0, dynamically linked (uses shared libs), not stripped
Great, it is a 32-bit binary that can be executed on any i386 machine with Linux 2.2 or greater.
Then comes the big test, tried compiling as a 64-bit binary
#gcc -o test64 test.c -m64
cc1: sorry, not implemented: 64-bit mode not compiled in
If you don't get this error then you are probably fine. You can verify it using the 'file' command.
hi,
i just checked my FC3 version.. its 32-bit version of FC3..
> vi /proc/version
Linux version 2.4.20-8smp (bhcompile@stripples.devel.redhat.com) (gcc version 3.2.2 20030222 (Red Hat Linux 3.2.2-5)) #1 SMP Thu Mar 13 16:43:01 EST 2003
Im not using any cross compilers?
is it possible to generate 64-bit binary in 32-bit FC3 which runs on amd x86_64 machine?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.