gcc-2.7.0 (usr/bin/gcc: cannot execute binary.)

gcc-2.7.0 (usr/bin/gcc: cannot execute binary.)

Post by Jayke Sava » Mon, 20 Nov 1995 04:00:00



I'm just getting into checking out the new kernels. I had the stable 1.2.13 but
decided to upgrade. I am running on a 100 MHz PCI Pentium with an ATI Graphics
Turbo Pro. I tried to get the newest GCC to compile the newest kernels with.
Unfortunately, when I unzip and untar the binaries, I suddenly cannot run it.
It gives me an error. The program is there (GCC) and u+x in the directory, but
it won't execute. Is it because of a problem with my existing kernel? I tried
to run it with both 1.2.13 and 1.3.39 and it won't run. I have ELF support
compiled into the kernels, and I wanted to get the new GCC so I could compile
the kernel as an ELF itself. Any help would be appreciated.

/---/         /---/
   ]|         |[

   ]|            ]|
/---/         /---/

 
 
 

gcc-2.7.0 (usr/bin/gcc: cannot execute binary.)

Post by Michael Morris » Thu, 23 Nov 1995 04:00:00


: I'm just getting into checking out the new kernels. I had the stable 1.2.13 but
: decided to upgrade. I am running on a 100 MHz PCI Pentium with an ATI Graphics
: Turbo Pro. I tried to get the newest GCC to compile the newest kernels with.
: Unfortunately, when I unzip and untar the binaries, I suddenly cannot run it.
: It gives me an error. The program is there (GCC) and u+x in the directory, but
: it won't execute. Is it because of a problem with my existing kernel? I tried
: to run it with both 1.2.13 and 1.3.39 and it won't run. I have ELF support
: compiled into the kernels, and I wanted to get the new GCC so I could compile
: the kernel as an ELF itself. Any help would be appreciated.

Sounds like you have the ELF compiler but no ELF libraries.  Get the ELF
howto and install the ELF libraries, it's pretty painless if you follow the
howto closely.

 
 
 

1. /usr/bin/gcc: cannot execute binary file

Hi,

Just installed ELF, following the instructions that I found on Sunsite's
Linux Documentation Project. Near the end of the instructions, it says to
test it out using these examples:

$ gcc -v
Reading specs from /usr/lib/gcc-lib/i486-linux/2.7.0/specs
gcc version 2.7.0
$ gcc -v -b i486-linuxaout
Reading specs from /usr/lib/gcc-lib/i486-linuxaout/2.7.0/specs
gcc version 2.7.0
$ ld -V
ld version cygnus/linux-2.5.2l.14 (with BFD cygnus/linux-2.5.2l.11)
  Supported emulations:
  elf_i386
  i386linux
  i386coff

but here is what I get:
# gcc -v
sh: /usr/bin/gcc: cannot execute binary file
# ld -V    
sh: /usr/bin/ld: cannot execute binary file

and they are have the right permissions:
# ls -ald gcc ld
-rwxr-xr-x   2 root     root        55492 Jun 16  1995 gcc
-rwxr-xr-x   1 root     root       145695 May 24  1995 ld

Why won't they execute?
thanks for the help,
Mike

2. compiling Drivers into Kernel

3. After ELF Upgrade: /usr/bin/gcc: cannot execute binary file

4. Equivalent of "strreset" in C code.

5. make: /usr/bin/make: cannot execute binary file

6. "float.h"(and others) Where are they?

7. How to upgrade from gcc-2.7.0 to gcc-2.7.2 ?

8. Making true incremental backups with TAR

9. gcc-2.5.8 vs gcc-2.7.0

10. /usr/lib/gcc-lib/i386-linux and /usr/lib/gcc-lib/i486-linux

11. After installing gcc-2.7.0, all make, gcc, etc stop working!

12. /usr/bin, /usr/local/bin, /sbin or /opt/bin, /var/opt/bin - I'm confused.

13. INIT: cannot execute /usr/bin/X11/xdm