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
How did you configure? How did you invoke make? Did you have a separate directory where you configure in?
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
What happens if you do "make bootstrap" instead of make?
Subject: Re: gengenrtl: cannot execute binary file I've got the same message.
What type of binary does 'file' say gengenrtl is, as compared to the type of binary that gcc from your previous installation is?
Subject: Re: gengenrtl: cannot execute binary file I dont know. It's in an directory called 'gcc' created by 'configure'.
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.
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?
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.
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
*** Bug 12998 has been marked as a duplicate of this bug. ***
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.
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
Your current compiler is not able to produce working executable, get another prebuilt compiler and try with that.