LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Make file Errors and Warnings (https://www.linuxquestions.org/questions/linux-newbie-8/make-file-errors-and-warnings-938835/)

raju39k 04-09-2012 01:43 AM

Make file Errors and Warnings
 
while i am running my make file i am getting the following errors and warnings

Code:

make: Warning: File `AIQ8.make' has modification time 9e+02 s in the future

cc    AIQ7.c compile exec clean  -o AIQ7
cc: compile: No such file or directory
cc: exec: No such file or directory
cc: clean: No such file or directory
make: *** [AIQ7] Error 1

make
make: warning:  Clock skew detected.  Your build may be incomplete.

And my Makefile is

Code:

AIQ7:compile exec clean

compile:
        gcc AIQ7.c -o AIQ7
        echo "Compile Completed"
exec:
        ./AIQ7 < input.txt > output.txt
        cat output.txt
clean:
        rm -f AIQ7 output.txt
        echo "Clean Completed"

And this is my C program

Code:

#include<stdio.h>
main()
{
 int a,o;
 printf("Multiply by 100 & print if Number is even else print as it is\n");
 printf("\n\tEnter a Number");
 scanf("%d",&a);
 o=a;
 if(a%2==0)
  o*=100;
 printf("\n\tInput Number is: %d",a);
 printf("\n\tOutput Number is: %d\n",o);
 return 0;
}


harry edwards 04-10-2012 04:07 AM

Is your local clock correct? You have a few message that say it's not e.g. Clock skew detected

In the past I've had some odd results from make/gcc if the time it skewed.

raju39k 04-10-2012 04:47 AM

Thanks for your valuable information

Quote:

Originally Posted by harry edwards (Post 4649058)
Is your local clock correct? You have a few message that say it's not e.g. Clock skew detected

In the past I've had some odd results from make/gcc if the time it skewed.



All times are GMT -5. The time now is 08:21 AM.