Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > 'make' messed up completely?

'make' messed up completely?
Thread Tools
gorgonzola
Admin Emeritus
Join Date: Nov 2000
Location: New Yawk
Status: Offline
Reply With Quote
Oct 30, 2001, 08:04 PM
 
I'm not quite sure what exactly is going on here, if someone could shed some light on the problem. make/make install were working fine for me for months under a stock 10.1 install with the 10.1 dev tools, but one day make went kaput, even though cc still works

Take a look what happens when I type "make" after configuring an Emacs 21 installation:

<font face = "courier">% make
cd lib-src; make all \
CC='gcc' CFLAGS='-no-cpp-precomp' CPPFLAGS='' \
LDFLAGS='' MAKE='make'
zsh: command not found: make
make: *** [lib-src] Error 1</font>

This happens here with some trivial little example I made up in C:

<font face = "courier">% make
cc -c main.c
make: cc: Command not found
make: *** [main.o] Error 127</font>

What the heck is going on? 'cc' works by itself, but make completely breaks down now even if I supply the full /usr/bin/make path.

Any ideas why this happened and whether I should just reinstall the dev tools?

thanks

[ 10-30-2001: Message edited by: gorgonzola ]
"Do not be too positive about things. You may be in error." (C. F. Lawlor, The Mixicologist)
     
philzilla
Occasionally Useful
Join Date: Jun 2001
Location: Liverpool, UK
Status: Offline
Reply With Quote
Oct 30, 2001, 08:10 PM
 
i get <font face = "courier">make: Command not found. </font> and have done since about 10.0.3 i think?
"Have sharp knives. Be creative. Cook to music" ~ maxelson
     
philzilla
Occasionally Useful
Join Date: Jun 2001
Location: Liverpool, UK
Status: Offline
Reply With Quote
Oct 30, 2001, 08:17 PM
 
having said that, i just got this too, so i dunno what's up with me iBook tonight:

<font color = green><font face = "courier">
[localhost:~] phil% rm -r /.Trash/*
rm: No match.
[localhost:~] phil% su rm -r /.Trash/*
su: No match.
[localhost:~] phil% su
Password:
[localhost:/Users/phil] root# rm -r /.Trash/*
rm: No match.
</font></font>

i love it when things that usually work just decide they're gay for the evening
"Have sharp knives. Be creative. Cook to music" ~ maxelson
     
Cipher13
Registered User
Join Date: Apr 2000
Status: Offline
Reply With Quote
Oct 30, 2001, 09:33 PM
 
I get "Command not found".

Gotta love unix...
     
parallax
Admin Emeritus
Join Date: Oct 2000
Location: Boston, MA
Status: Offline
Reply With Quote
Oct 30, 2001, 10:43 PM
 
Odd.

Try making a makefile using perl or c++, and see what that gives you.
"Against stupidity, the gods themselves contend in vain" (Schiller)
     
davechen
Dedicated MacNNer
Join Date: Apr 2001
Location: Bethesda, MD
Status: Offline
Reply With Quote
Oct 31, 2001, 12:55 AM
 
Sounds like a pathing problem. In you simple example, how about replacing
"cc" with the full path "/usr/bin/cc"? Do you even supply a "cc" command or are you letting make choose it be default? If you are not, add this line to your makefile:

CC = /usr/bin/cc

dave
     
gorgonzola  (op)
Admin Emeritus
Join Date: Nov 2000
Location: New Yawk
Status: Offline
Reply With Quote
Oct 31, 2001, 01:47 AM
 
It turned out to be a rather grotesque pathing problem, actually. Let's just say that I had a reset a bunch of env variables, but now it's working...

thanks
"Do not be too positive about things. You may be in error." (C. F. Lawlor, The Mixicologist)
     
   
Thread Tools
 
Forum Links
Forum 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
Top
Privacy Policy
All times are GMT -4. The time now is 06:12 PM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,