The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > High Level Programming
.
google unix.com



High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Makefile help tantric High Level Programming 4 04-13-2007 02:35 AM
about the makefile ligerdave High Level Programming 2 01-31-2006 01:21 AM
Using cut within makefile wvdeijk UNIX for Dummies Questions & Answers 2 12-14-2005 05:11 PM
makefile help pieter023 Shell Programming and Scripting 1 06-06-2005 02:20 AM
makefile ECBROWN UNIX for Dummies Questions & Answers 4 02-17-2005 12:01 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 09-19-2006
NamrataGurav NamrataGurav is offline
Registered User
  
 

Join Date: Sep 2006
Posts: 2
Makefile

I m using SUN Studiuo11 compiler.There is problem while building Makefile.
I got error as dmake:fetal error command failed for target

plz help me.
  #2 (permalink)  
Old 09-19-2006
cbkihong cbkihong is offline Forum Advisor  
Advisor
  
 

Join Date: Sep 2002
Location: Hong Kong, China
Posts: 1,624
Maybe paste all the error messages here. Usually, make will output the command that failed with the error messages.
  #3 (permalink)  
Old 09-19-2006
NamrataGurav NamrataGurav is offline
Registered User
  
 

Join Date: Sep 2006
Posts: 2
Makefile

the error i got is as follows.


dmake -m serial -f "/root/.sunstudio/11-Linux-i686/sampledir/namrata/STACK/Makefile"
mkdir -p Sun-i386-Linux
dmake: Warning: Infinite loop: Target `Sun-i386-Linux/cEmptyFile.c' depends on itself
cc -g -xCC -c -I/root/.sunstudio/11-Linux-i686/sampledir/namrata/STACK -o Sun-i386-Linux/cEmptyFile.o cEmptyFile.c
cc: language CC not recognized
cc: language CC not recognized
cc: cEmptyFile.c: linker input file unused because linking not done
cc -g -xCC -I/root/.sunstudio/11-Linux-i686/sampledir/namrata/STACK -o Sun-i386-Linux/cEmptyFile.c Sun-i386-Linux/cEmptyFile.o
cc: Sun-i386-Linux/cEmptyFile.o: No such file or directory
cc: warning: '-x CC' after last input file has no effect
cc: no input files
*** Error code 1
dmake: Fatal error: Command failed for target `Sun-i386-Linux/cEmptyFile.c'

Build Failed

Total time: 1 second
  #4 (permalink)  
Old 09-26-2006
cbkihong cbkihong is offline Forum Advisor  
Advisor
  
 

Join Date: Sep 2002
Location: Hong Kong, China
Posts: 1,624
From the output, it seems like the makefile is not correctly written. At least something has been severely messed up. Some cc lines are even simply wrong.
  #5 (permalink)  
Old 09-29-2006
cb.mark cb.mark is offline
Registered User
  
 

Join Date: Sep 2006
Posts: 15
Another Make File Problem

Hi, i have am make file problem too. It is driving me mad!

My make file is:

Code:
program : main.o a.o b.o
cc -o program main.o a.o b.o
main.o : main.c
        cc -c main.c
a.o : a.c
        cc -c a.c
b.o : b.c
        cc -c b.c



When I run it i just get the following error message:
"make: Fatal error in reader: makefile, line 3: Unexpected end of line seen"

My contents of the folder is:
cs3% ls
a.c a.o b.c b.o main.c main.o makefile


It all compiles fine outside the make file.

Any Ideas Anyone PLEASE!
  #6 (permalink)  
Old 10-05-2006
ask.jackal ask.jackal is offline
Registered User
  
 

Join Date: Jan 2006
Posts: 24
make sure that the targets are properly tabbed.

John Arackal
Closed Thread

Bookmarks

Tags
linux

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 09:38 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0