compile fails in linux ... "No rule to make target" ... HELP


 
Thread Tools Search this Thread
Top Forums Programming compile fails in linux ... "No rule to make target" ... HELP
# 1  
Old 01-19-2010
compile fails in linux ... "No rule to make target" ... HELP

hello all,

attached you can find a tool (written in C) that i really need to make it compile under linux
i am able to compile and run it successfully in mac os x, but in linux the compilation fails
the only thing that i did so far is to change the following
#include <sys/malloc.h> to <malloc.h>
but still the compilation fails :
"No rule to make target"

i would appreciate any suggestions on how i can overcome this
thank you
# 2  
Old 01-19-2010
Is that really all it says? I get pages and pages of totally different errors here. Though that may have been because you sent it as zip, a format which mangles UNIX file permissions. Can you upload a tar of it?

Also, it says at the very top of the makefile:
Code:
# DO NOT USE MAKE TO COMPILE, please use createsim.

I'd suggest doing as it says. You'll need to install csh though.
# 3  
Old 01-19-2010
thank you for your interest,
1. basically, i use "make all" to compile it and works just fine and (the runtime results are correct and have been verified) when i run this tool in mac os x
2. i also tried the tar.gz thing, but nothing changed

any suggestions please ?
# 4  
Old 01-19-2010
I mean, I could use the .tar.gz.

And again, the makefile says not to use make. It wants you to run the included "./createsim" script.

These source files depend on lots of weird header files I've never heard of and I don't have, like _types.h.

Last edited by Corona688; 01-19-2010 at 02:03 PM..
# 5  
Old 01-19-2010
ooo sorry i forgot to upload it in my previous thread

Last edited by OneDreamCloser; 01-19-2010 at 02:03 PM..
# 6  
Old 01-19-2010
@Corona688: What the createsim script basically does is
  • Tell the user we're going to build it
  • Run make
meaning it's completely unnecessary.

@OneDreamCloser: apparently this piece of software requires an include file only found on BSD (MacOS X is a derived from that). Unless you find some compatibility libraries, you won't have any luck compiling it. And even then it might be doubtful if it uses proprietary Apple technology.

Last edited by pludi; 01-19-2010 at 02:11 PM.. Reason: typo
# 7  
Old 01-19-2010
Quote:
Originally Posted by pludi
Unless you find some compatibility libraries, yo won't have any luck compiling it. And even then it might be doubtful if it uses proprietary Apple technology.
...seems doubtful considering one of the files it demands is /usr/include/i386/_structs.h Smilie Not apple-specific. All things considered I'm shocked it compiled on OSX at all.

If you can figure out what _types.h, etc are all doing, you may be able to find portable equivalents. This'd be porting the code, however, rewriting some things, not a simple conversion.
Login or Register to Ask a Question

Previous Thread | Next Thread

7 More Discussions You Might Find Interesting

1. Linux

Is it possible to insert compile module after compiled "make" without installing

Hi gud day, I would like to ask if possible to load the driver i compiled module without installing it in the ubuntu-kernel-distro/updates* or simple not executing "make install". what i mean is i compile the compat wireless driver using make and i want to try to load on the system without... (1 Reply)
Discussion started by: jao_madn
1 Replies

2. Programming

"make" fails on the first .f90 file it encounters: not creating .o files

i may be asking way too much here but i am not a programmer and not sure where to to turn. i have a program that i am trying to "make". but the compiler i am supposed to use gets nowhere. there are a bunch of .f90 files that are being processed as follows but it doesn't get past the first one: ... (1 Reply)
Discussion started by: crimso
1 Replies

3. Programming

make fails with "undefined reference to..."

i am compiling a program called vasp on suse and get the following error. there are many more preprocess and ifort commands prior so i just grabbed the tail of the log file: ./preprocess <main.F | /usr/bin/cpp -P -C -traditional >main.f90 -DMPI -DHOST=\"LinuxIFC\" -DIFC -Dkind8 -DNGZhalf... (6 Replies)
Discussion started by: crimso
6 Replies

4. Programming

Issue with make, no rule to make target etc.

I have been trying to split up my src directory to clear out files that are not re-compiled very often. Now I have the following setup in my trunk, trunk/bld trunk/src/ trunk/src/src_server trunk/makefile.linux In the make file, I have compile rules SOURCELOC = src # compile src c++... (4 Replies)
Discussion started by: LMHmedchem
4 Replies

5. Shell Programming and Scripting

Make scipt except from "Y","y" and "yes" to take [Enter] as being "yes"

This is the script: #!/bin/sh if ; then rm -rf /usr/share/WallpaperChanger; fi if ; then rm -rf /usr/bin/wallch; fi; if ; then rm -rf /usr/share/applications/wallch.desktop; fi if ; then rm -rf /usr/share/doc/wallch; fi if ; then rm -rf /usr/share/man/man1/wallch.1.gz; fi echo "Delete... (4 Replies)
Discussion started by: hakermania
4 Replies

6. UNIX for Dummies Questions & Answers

HoHow to compile Linux dialog - "curses.h" missing ?

Hi, I tried native compile Linux dialog for Linux embedded device and got "curses.h" error message. As Linux dialog is already compiled and working as Debian .deb package (installed it). What is a way to import curses.h from other package sources to work for dialog sources compilation in my... (2 Replies)
Discussion started by: darius2
2 Replies

7. UNIX for Dummies Questions & Answers

#!/bin/sh script fails at StringA | tr "[x]" "[y]"

I need to take a string (stringA) check it for spaces and replace any spaces found with an equal (=) sign. This is not working. There are spaces between each component: $StringA | tr "" "" The error returned is: test: Specify a parameter with this command Can you help? (3 Replies)
Discussion started by: by_tg
3 Replies
Login or Register to Ask a Question