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
# 8  
Old 01-19-2010
Quote:
Originally Posted by Corona688
...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.
Aside from the fact that MacOS X has been running on Intel processors & other commodity hardware exclusively for years now. The days of Motorola CPUs and special interfaces are loooong gone.

EDIT: According to Wikipedia, Apple discontinued the PowerPC in 2006, focusing on the Intel platform instead.
Quote:
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.
_types.h is quite similar to Linux' sys/types.h, only it isn't. I've tried replacing one with the other for this code, and it still won't work. And the way the Makefile is written it apparently uses BSDs make, too, which again works quite different that GNU make.
# 9  
Old 01-19-2010
what i would like to say is that the tool is originally made to run under linux,
in order to use it at first, i had to erase some object files (make cleanall) and i changed the malloc.h to sys/malloc.h, and everything was working fine

at some point i wanted to revert it back to linux i changed the header file back to <malloc.h> and everything was ok, but now ...

Last edited by OneDreamCloser; 01-19-2010 at 02:52 PM..
# 10  
Old 01-19-2010
How did you do that transition? Was the build-system in place before, or was that added on the Mac-side (when importing to Xcode)?
# 11  
Old 01-19-2010
i run it from the Terminal app, i use Xcode mainly as an editor

yes, they had placed the object files in the distribution but that didn t work for due to elf compatibility and stuff like that so i deleted them and i build it from scratch
# 12  
Old 01-19-2010
Well, to me it seems as if Xcode isn't happy with being "just an editor", but instead it tampered with the build system. If you remove the strange targets at the bottom of each Makefile (just below the update target), suddenly make at least tries to build it. It still fails because of some missing declarations, but from a first view they seem to be because of headers not included (strings.h is missing for strcpy, and malloc.h at the wrong location, ...)

However, it seems that those changes might be quite time-intensive, and hard to automate. So you'll have to decide whether to invest the time to clean up the code, or to re-apply your changes to the original code on a Linux machine.
# 13  
Old 01-19-2010
thank you all for your help,
do you know how can i obtain more information about the compilation process how i can diagnose what are the faults ?
thank you again
# 14  
Old 01-19-2010
Googling the error message would help.

Have you started over from unmodified source yet? It's pretty clear you're going to need to.
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