LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-15-2009, 03:57 AM   #1
heinzstoic
LQ Newbie
 
Registered: Oct 2009
Posts: 2

Rep: Reputation: 0
make: Nothing to be done for 'ALWAYS'


I recently installed Cygwin on my Windows XP.
when i try to use 'make' to produce executable programs,
$ make
it displays the following error message:
make: Nothing to be done 'ALWAYS'.
I donnot know how to fix this error. Can anyone help me?
my working directory is /home/administrator/code,
there are two makefiles in this directory, one is Makefile, the other is _Makefile, and the content of Makefile as following:
===============================================================
# MAKEFILE FOR `code'
include ./ansi/MMakefile
code_spiel code_ez codemodify2 codemodify codeeig mncN code5 code6 code4 code4r RMtest RMtest23 GH GH2 RA gallagerS gallagerA gallager gallagerS02: ALWAYS
cd $(bin) ; make $@
tar:
tar cvf ../pub/code/code.tar ./*.c ./*.h ./*_var ./*_var6 ./commander.p ./Makefile ./ansi/*.c ./ansi/*.h ./ansi/Makefile ./ansi/MMakefile ./_Makefile ./ansi/_Makefile ansi/cMakefile ./README0 ansi/lgpl.txt ansi/gpl.txt ansi/README0
gzip -f ../pub/code/code.tar


nn_var_usg.c: nn_var commander.p
commander.p nn_var
fe_var_usg.c: fe_var commander.p
commander.p fe_var
fe_var6_usg.c: fe_var6 commander.p
commander.p fe_var6
fed2_var_usg.c: fed2_var commander.p
commander.p fed2_var
dc_var_usg.c: dc_var commander.p
commander.p dc_var
dc_var6_usg.c: dc_var6 commander.p
commander.p dc_var6
code4_var_usg.c: code4_var commander.p
commander.p code4_var
code5_var_usg.c: code5_var commander.p
commander.p code5_var
code_ez_var_usg.c: code_ez_var commander.p
commander.p code_ez_var
GAd_var_usg.c: GAd_var commander.p
commander.p GAd_var
bnd_var_usg.c: bnd_var commander.p
commander.p bnd_var
codemod_var_usg.c: codemod_var commander.p
commander.p codemod_var
codeeig_var_usg.c: codeeig_var commander.p
commander.p codeeig_var
bndi_var_usg.c: bndi_var commander.p
commander.p bndi_var
RMbnd_var_str.h: RMbnd_var commander.p
commander.p RMbnd_var
RMdc_var_str.h: RMdc_var commander.p
commander.p RMdc_var
RAbnd_var_str.h: RAbnd_var commander.p
commander.p RAbnd_var
RAdc_var_str.h: RAdc_var commander.p
commander.p RAdc_var
 
Old 10-16-2009, 11:41 AM   #2
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 554Reputation: 554Reputation: 554Reputation: 554Reputation: 554Reputation: 554
Maybe you could tell us what it is exactly that you are trying to compile; then, maybe someone who has built that application before, can give some input.

Also, the majority of software that needs to be compiled for Linux (and I suppose for Cygwin) needs to be "configured" before it is compiled. Is there a file called "configure" inside the source-code directory? If so, try:

shell$ ./configure --help

and see what is produced.

If there's no configure script, then again, please tell us what you're trying to build, and where you got it. Incidentally, is there any documentation, help files, README files, INSTALL files, and this sort of stuff, included with this package? Have you read it, if so?

Sasha
 
Old 10-17-2009, 10:31 PM   #3
heinzstoic
LQ Newbie
 
Registered: Oct 2009
Posts: 2

Original Poster
Rep: Reputation: 0
thanks, Tgirl,
I donwloaded the source code file 'code.tar.gz' from this site :
http://www.inference.phy.cam.ac.uk/m...odesFiles.html
the source code links is as,
Source code for lots of code-related functions: including "code6" for making Gallager codes; "mncN" and "gallager" for sum-product decoding and "fe" for decoding using variational free energy minimization (not the best decoder; sum-product is better) Before making executables, you may need to create some directories in both . and ./ansi thus:

mkdir bin$ARC; cd bin$ARC ; ln -s ../_Makefile Makefile ; cd ..
OR for example:
mkdir bini386; cd bini386; ln -s ../_Makefile Makefile ; cd ..

i decompressed this code.tar.gz ,created a directory "code" and put these source files into it.
Before compiling this project i have simply configured as the author describes, but when i try to make,
it displayed the error information as i described in this thread top.
In fact i checked the dependency in /code/Makefile, and found it includes a file as following,
include ./ansi/MMakefile
and then i opend that MMakefile , a very short file as below
# "MMakefile"
# fundamental Makefile included by many others
# define $(bin) to be binsun4 etc.
#
# this makes things happen
ALWAYS:

bin = bin$(ARC)
I suspected the rule format is wrong, so i corrected it and save it as
ALWAYS:
bin = bin$(ARC) # add a Tab before the command line
when i returned back to /code and tried 'make' again, it dispalyed a different ,but still error info and stop:
make: execvp:bin: Permission denied.
make: ***[ALWAYS] Error 127.
I believe the ALWAYS rule is the trouble ,however, i donnot know how to get rid of it yet.
i have suffered from this project for several days.
Many thanks.

heinzstoic
 
  


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
Help needed for make file problem : make: *** No rule to make target `flash', needed rameshsatyavaram Linux - Newbie 3 09-11-2008 02:13 AM
Belkin Wirless G RTL8185L make[1]: *** No rule to make target `Makefile'. Stop. SilverRock Linux - Wireless Networking 2 02-11-2007 07:25 AM
Make Trouble linking some fortran code Make file problem? any ideas? TheBrick Linux - General 0 05-17-2006 11:21 AM
How to make rule for make install and make uninstall melinda_sayang Programming 1 06-14-2004 05:58 AM
make dep,make clean,make bzImage problem Babba Linux - Newbie 2 01-08-2003 03:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:45 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
Open Source Consulting | Domain Registration