Hello again,
I've taken all you said in to consideration.
I was able to narrow down the exact root of the problem.
I now have two script files. The missing files used in the second script file is actually generated by my program. I can confirm that nothing goes wrong with the generation of these files.
The first script file (works perfectly)
1 2 3 4 5 6 7 8 9
|
#!/bin/sh
mkdir -p $1
cd ..
cp -r Accent/source/build Parser/$1
cp -r Accent/source/container Parser/$1
cp -r Accent/source/result Parser/$1
cp -r Accent/source/extra.h Parser/$1
cp -r Accent/source/spec.lex Parser/$1
cp -r Accent/source/auxil.c Parser/$1
|
And the second
1 2 3 4 5 6 7 8
|
#!/bin/sh
cd $1
ACCENT=../../Accent/accent/accent
ENTIRE=../../Accent/entire/entire.c
$ACCENT spec.acc
flex spec.lex
gcc -o UniApo yygrammar.c lex.yy.c auxil.c $ENTIRE
|
Everything works fine up until the last line of the second script file
gcc -o UniApo yygrammar.c lex.yy.c auxil.c $ENTIRE
I'm running both script from a program which was build using netbeans...
And sometimes, once in a blue moon, everything builds to the end. The automatic crash detection of my fedora box however yields some crash in gcc, core dumped and whatnot.
If I exclude the gcc line, No crashes are detected and everything is perfect.
I've tried cc also.
Bear in mind, manually running these commands from the shell itself work just fine.
Is there any way to circumvent these crashes??
thank you