This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Problems while building with glibc.2.0.6


	But I get a very strange error while making bootstrap:
	Once built for example
	gengenrtl
	the /bin/sh reports 'no such file or directory' when calling this executable
	(which seems to be very present while typing 'ls'). I never seen this strange
	behaviour before.
	Why does this happen ?

This can happen if the interpreter for the file is missing.  I don't know
exactly how this is indicated in an ELF executable, but it is easy to
demonstrate with a script.

If I put this in a file `tmp.script'
	#!/foo/bar
	echo /foo/bar
chmod +x tmp.script, and then type tmp.script, I get this (on an Irix6 machine)

ada<126>tmp.script
tmp.script - Command not found

because the interpreter /foo/bar does not exist.  So I'd guess that the
ELF headers are corrupted.

Jim


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]