Bug 12732 - gengenrtl: cannot execute binary file
Summary: gengenrtl: cannot execute binary file
Status: RESOLVED INVALID
Alias: None
Product: gcc
Classification: Unclassified
Component: bootstrap (show other bugs)
Version: 3.3
: P2 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-10-22 19:37 UTC by Claudio Wahnschaffe
Modified: 2005-07-23 22:49 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Claudio Wahnschaffe 2003-10-22 19:37:15 UTC
I'm upgrading GCC from 'gcc version 2.95.2 19991024 (release)' to gcc 3.3 on an 
IBM Mainframe (S/390).
I 'make bootstrap-lean' and I got the following message:

Bootstrapping the compiler
make[1]: Entering directory `/mnt/dasdc/gcc-3.3-obj/gcc'
make CC="gcc" libdir=/usr/local/lib LANGUAGES="c " \
        CFLAGS="-g " MAKEINFO="/mnt/dasdc/gcc-3.3/missing makeinfo --no-split" \
        MAKEINFOFLAGS="" COVERAGE_FLAGS=
make[2]: Entering directory `/mnt/dasdc/gcc-3.3-obj/gcc'
./gengenrtl -h > tmp-genrtl.h
/bin/sh: ./gengenrtl: cannot execute binary file
make[2]: *** [s-genrtl] Error 126
make[2]: Leaving directory `/mnt/dasdc/gcc-3.3-obj/gcc'
make[1]: *** [stage1_build] Error 2
make[1]: Leaving directory `/mnt/dasdc/gcc-3.3-obj/gcc'
make: *** [bootstrap-lean] Error 2

I have binutils 2.13.2.1 and glibc 2.2.5.

Could You help me, please?
Thanks in advance

Claudio
Comment 1 Andrew Pinski 2003-10-22 20:40:12 UTC
How did you configure?
How did you invoke make?
Did you have a separate directory where you configure in?
Comment 2 Claudio Wahnschaffe 2003-10-23 13:00:21 UTC
Subject: Re:  gengenrtl: cannot execute binary file



I created an object directory. Then I changed to this directory and I invoked
'configure' with the default options. After that I invoked 'make' from this
target directory.

Claudio


Comment 3 Andrew Pinski 2003-10-23 14:35:22 UTC
What happens if you do "make bootstrap" instead of make?
Comment 4 Claudio Wahnschaffe 2003-10-23 14:48:09 UTC
Subject: Re:  gengenrtl: cannot execute binary file



I've got the same message.


Comment 5 Dara Hazeghi 2003-10-24 23:18:30 UTC
What type of binary does 'file' say gengenrtl is, as compared to the type of binary that gcc from 
your previous installation is?
Comment 6 Claudio Wahnschaffe 2003-10-27 13:20:52 UTC
Subject: Re:  gengenrtl: cannot execute binary file



I dont know. It's in an directory called 'gcc' created by 'configure'.


Comment 7 Claudio Wahnschaffe 2003-10-27 14:10:21 UTC
Subject: Re:  gengenrtl: cannot execute binary file



As a test I tried to install gcc 3.2 instead of 3.3. I created an object
directory. Then I executed 'configure' on it and I received the following
message:

checking whether struct tm is in sys/time.h or time.h... (cached) time.h
checking size of char... configure: error: can not run test program while cross
compiling
Configure in /mnt/dasdc/gcc-3.2-OBJ/fastjar failed, exiting.


Comment 8 Claudio Wahnschaffe 2003-10-27 19:08:39 UTC
Subject: Re:  gengenrtl: cannot execute binary file



I have found the following message as result of the 'sh configure' in gcc 3.3:

checking for .preinit_array/.init_array/.fini_array support...
/mnt/dasdc/gcc-3.3/gcc/configure: ./conftest: cannot execute binary file
no

This message does'nt interrupt the configure and it ended OK.
I'm not sure but, this could be part of the error I have when I execute the
'make' command, what do You think?


Comment 9 Andrew Pinski 2003-10-27 19:56:29 UTC
I would try a different gcc and binutils as your current tool chain is not working. Closing as the bug 
is before the stage 2 which means that the bug is not a bug worth worrying about.
Comment 10 Claudio Wahnschaffe 2003-10-27 20:18:44 UTC
Subject: Re:  gengenrtl: cannot execute binary file



I tried to install binutils 2.14 but  'sh configure' says that my current
version of gcc (2.95.2) is to old.

By the way. I have executed 'make' of gcc 3.2 and I got the same message:

mnt/dasdc/gcc-3.2/gcc/gengenrtl.c -o gengenrtl.o
gcc -DIN_GCC    -g  -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long  -DHAVE_CONFIG_H
-DGENERATOR_FILE  -o gengenrtl \
 gengenrtl.o ../libiberty/libiberty.a
./gengenrtl -h > tmp-genrtl.h
/bin/sh: ./gengenrtl: cannot execute binary file
make[2]: *** [s-genrtl] Error 126
make[2]: Leaving directory `/mnt/dasdc/gcc-3.2-obj/gcc'
make[1]: *** [stage1_build] Error 2
make[1]: Leaving directory `/mnt/dasdc/gcc-3.2-obj/gcc'
make: *** [bootstrap-lean] Error 2


Comment 11 Andrew Pinski 2003-11-10 21:49:44 UTC
*** Bug 12998 has been marked as a duplicate of this bug. ***
Comment 12 Claudio Wahnschaffe 2003-11-11 12:38:22 UTC
Subject: Re:  gengenrtl: cannot execute binary file



It isn´t duplicate. The environment is different. I've installed the correct
level of binutils before I tried to install gcc.


Comment 13 Claudio Wahnschaffe 2003-11-11 14:48:33 UTC
I tried install gcc 3.3.2 and I received then same message:

gcc   -g  -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-
prototypes -Wtraditional -pedantic -Wno-long-long   -DHAVE_CONFIG_H -
DGENERATOR_FILE  -o gengenrtl \
 gengenrtl.o ../libiberty/libiberty.a
./gengenrtl -h > tmp-genrtl.h
/bin/sh: ./gengenrtl: cannot execute binary file
make[2]: *** [s-genrtl] Error 126
make[2]: Leaving directory `/mnt/dasdc/gcc-3.3.2-obj/gcc'
make[1]: *** [stage1_build] Error 2
make[1]: Leaving directory `/mnt/dasdc/gcc-3.3.2-obj/gcc'
make: *** [bootstrap-lean] Error 2
Comment 14 Andrew Pinski 2003-11-15 11:38:10 UTC
Your current compiler is not  able to produce working executable, get another prebuilt 
compiler and try with that.