LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-09-2012, 02:43 AM   #1
raju39k
LQ Newbie
 
Registered: Apr 2012
Posts: 4

Rep: Reputation: Disabled
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;
}

Last edited by colucix; 04-09-2012 at 02:24 PM. Reason: Added CODE tags
 
Old 04-10-2012, 05:07 AM   #2
harry edwards
Member
 
Registered: Nov 2007
Location: Lincolnshire, UK
Distribution: CentOS, Fedora, and Suse
Posts: 365

Rep: Reputation: 48
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.
 
1 members found this post helpful.
Old 04-10-2012, 05:47 AM   #3
raju39k
LQ Newbie
 
Registered: Apr 2012
Posts: 4

Original Poster
Rep: Reputation: Disabled
Thanks for your valuable information

Quote:
Originally Posted by harry edwards View Post
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ld : warnings and errors rajesh_b Programming 2 01-22-2007 08:50 AM
Warnings treated as errors smallfire Fedora 4 07-17-2006 01:08 AM
Warnings treated as errors(help) smallfire Programming 12 07-17-2006 01:04 AM
log warnings and errors - are these serious? bcal Fedora 3 02-12-2005 05:13 PM
Errors and warnings when I exit X cragwolf Slackware 5 09-01-2004 02:52 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:26 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration