On Wednesday, May 08, 2013 at 16:55 EDT,
Armin Aray <
armi...@gmail.com> wrote:
> armin@ubuntu:~/source/prebuilts/tools/gcc-sdk$ git rev-parse HEAD
> fatal: bad config file line 1 in .git/config
Not related to your build error, but do fix this.
> armin@ubuntu:~/source/prebuilts/tools/gcc-sdk$ ls -l gcc g++
> -rwxrwxrwx 1 armin armin 20 Feb 27 00:08 g++
> -rwxrwxrwx 1 armin armin 1447 Feb 27 00:08 gcc
> armin@ubuntu:~/source/prebuilts/tools/gcc-sdk$ git ls-files -m
> fatal: bad config file line 1 in .git/config
> armin@ubuntu:~/source/prebuilts/tools/gcc-sdk$ file gcc
> gcc: Bourne-Again shell script, ASCII text executable
> armin@ubuntu:~/source/prebuilts/tools/gcc-sdk$ ./gcc
> x86_64-linux-gcc: fatal error: no input files
> compilation terminated.
> armin@ubuntu:~/source/prebuilts/tools/gcc-sdk$ uname -m
> x86_64
>
> I'm using 64bit OS on a Dell L502-X. Thanks for your help. I really
> appreciate.
Hmm, I simply don't know why it can't run gcc during the build but is
able to from your shell. A couple of things to try:
- Add 'showcommands' to your make invocation to get the exact gcc
command that fails, then try to run that command from your shell.
- If you can compile the file from the shell but not via make, run
make under strace (possibly comparing to the successful invocation).
--
Magnus Bäck
ba...@google.com