[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [MiNT] Binutils 2.18 + GCC 4.2.3
MiKRO wrote:
ar: B@//?: No such file or directory
nono, I just see "illegal instrucion" exception... it seems like some
stack overflow but I really don't know. Really strange it happens only
in libgcc linking.
Both of you, you seem to have problems with ar.
I wonder it the problem comes from ar, or the program calling ar.
If you type make again, is the problem still here ?
If I remember well, when you enter the same command-line from bash, it
works ?
Here is a technique that helped me sometimes.
Compile the attached program. I only displays its command line.
Remove (or rename) the official "ar" from its location, and put that
program at the same place, with the same name.
Then type make, and see if everything is displayed as expected.
If the problem is in the program calling ar (make ? bash ?), it will
display bad things. However, if everything is ok, the problem may come
from ar.
The first step is to reproduce the problem as easily as possible.
The second is to see what happens with gdb.
Good luck.
--
Vincent Rivière
#include <stdio.h>
int main(int argc, char* argv[])
{
int i;
for (i = 0; i < argc; ++i)
{
printf("argv[%d] = \"%s\"\n", i, argv[i]);
}
return 0;
}