makefile: *** [act_comm.o] Error -1

Posted by Iamauser on Thu 14 Jun 2001 09:51 PM — 16 posts, 67,564 views.

#0
I am running windows 2000 pro, I have the Rom24b6OLC.tar.gz version unedited and when I type make in the command prompt it says
gcc -c -Wall -O -g act_comm.c
makefile: *** [act_comm.o] Error -1

I belive it should work but it didnt. I have no clue about what this means. I have just started this week learning about makefiles and compiling. Would the problem be the OS?
Australia Forum Administrator #1
Hard to say from that. Are you using Cygwin? Maybe it isn't completely installed or there are problems with directory permissions.
#2
I tried using a program called lcc and I have tried it with make.exe. It is possible that its permissions, but I dont think it is. I am going to try it on winME 98 and 95 to see if it works on any of those. I dont know where to get cygwin. Could you tell me where I can download it?
Australia Forum Administrator #3

Get Cygwin at Cygwin Home Page

#4
The #include files that are not included dont need to be there for the program to compile does it?
After trying it again as an administrator I get a
gcc -c -Wall -O act_comm.c
'gcc' is not recognized as an internal or external command, operable program or batchfile
make: Error code 1

Cygwin is large for a 56k connection.
Australia Forum Administrator #5
Sounds like you don't have gcc which isn't too good, as it is the compiler. Try seeing if you have cc, in which case you can edit Makefile and change gcc to cc.
#6
Since I am new at this, I dont have a clue as to what gcc and cc is exactly. I dont think I would have either of them. All I have is visual basic 6 for a programing program. What is gcc and where could I get gcc or cc so that I could compile the rom.

Cygwin took an hour to download on the T1 line at school but I have that now.
#7
I found a gcc program that needs to be compiled with what I think is autmake. I am getting tired of finding these programs that need to be compiled first and require some other compiler than what i have currently downloaded. --


---------------------------------------------------------
  ___   _____   _         _   ____   ____   _       ____
/ ___  / ___ \ | \       / | |  _ \ |_  _| | |     |  __|
||     ||   || |  \     /  | | |_||   ||   | |     | |__
||     ||   || | |\   //| | |____/   ||   | |     |  __|
||___  ||___|| | | \ // | | ||      _||_  | |___  | |__
\____  \_____/ |_|  \_/  |_| ||     |____| |_____| |____|
                      _         _  _    _
                     | \       / | \  //
                     |  \     /  |  \//
                     | |\   //| |   ||
                     |_| \_// |_|   ||

                     
                       \|/  \|/  \|/
                       /|\  /|\  /|\



I was bored and had nothing else to do. I have nothing against compiling. Its just what came to mind.
Amended on Sat 16 Jun 2001 04:37 AM by Nick Gammon
#8
The above message didnt turn out the way it should have.
#9
And now I learn that I dont have to download the entire cygwin thing. Just the gcc is all I need to download. If it is gcc that is all I needed then my answered have been questioned.
Thanks for the help.

Signed,
Bob Dole
Australia Forum Administrator #10
You need more than just gcc, for example you need make.

I would download and install all of Cygwin. It might take a while, do it while you are watching TV or something.

ROM compiles OK under Cygwin, there are other messages on the forum here about minor changes that are needed.
#11
Cygwin all downloaded and all installed.

gcc -c -Wall -g act_comm.c
gcc: not found
make: *** [act_comm.c] Error 127


gcc is in the directory. I am really ******************** off. All that time and it still doesnt work. Thats what I get for trying. I actually didnt try that hard. I changed the makefile part to cpp, cc, c++ and the same error only with the cpp or cc in the gcc place instead.
#12
Ahhhh, make --win32.

Lots of warning though. db.o error1 [rom] error1

Using rom24b6 this time.

Why me?
#13
I think I have it this time(the problem as to why it wont compile). db.c has the error this time, but everything else compiles just fine or with warnings. error 1 again with db.c

just before it stops compiling it says
gcc -c -Wall -O -g db.c
db.c:54: conflicting types for 'random'
/usr/include/stdlib.h:146: previous declaration of 'random
db.c:56: conflicting types for 'srandom'
/usr/include/stdlib.h:147: previous declaration of 'srandom'
make: *** [db.o] Error 1

db.c is the only one that doesnt compile now.

Signed,
anonymous user
Australia Forum Administrator #14

There is a mention of fixing the random problem in another post on this forum (a little way down) - see ROM server with cygnus

#15
Aint I studip. Ive seen that one so many times to find the link to the rom24.6olc. I have a poor memory. Thanks alot.

Signed,
A hoser