GCC Makefile-Missing Separator


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers GCC Makefile-Missing Separator
# 1  
Old 04-25-2012
GCC Makefile-Missing Separator

Hello,
I am attempting to build gcc 4.0.4 on my Mac (OS X). When I use the "make" command, it returns with something like this:

Makefile:6089: *** missing separator. Stop.

This means that at the given line, I must go into the file and insert a TAB before the contents of that line. I have done this for several lines, but each "make" command reveals another line with a missing tab. Upon further review, there are literally hundreds of lines that need an adjustment. Is there any other way besides manually fingering through the entire file and inserting tabs? Is it even worth it to do this?
Thanks for any help,
Tyler
# 2  
Old 04-25-2012
It sounds like the file got munged by an editor that turned tabs into spaces - do you still have the pristine copy of the makefile in the tar ball.

You can use tar to re-extract the file, this time don't edit the file with any of MAC OS editors. If you MUST edit it use vim, vi, or elvis.

If you need help re-extracting the file let us know.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Programming

Makefile missing include path Although the path exists and defined

i have make file which i try to make them generic but it keeps to compline it missing include directory this is the makefile : CXX=g++ CPPFAGS= -Wall -O0 -g -std=c++14 INCLUDES = -I/home/vagrant/libuv/include -Isrc LIBS_DIRS = -L/home/vagrant/libuv/build LDFLAGS=... (7 Replies)
Discussion started by: umen
7 Replies

2. Programming

Makefile cannot find separator

Hello. I recently have been trying to use the autotools in a already existing program that I used an IDE before. I started to follow this tutorial: autoconf automake tutorial And it was going well until came the hour of I assuming the end-user job. ./configure runned ok, but when I typed "make"... (5 Replies)
Discussion started by: colt
5 Replies

3. Red Hat

Yum - resolving missing dependencies that are not missing

I am trying to install VirtualBox on RHEL 5 but I need the 32 bit version for 32 bit Windows. When I run yum I get the following: sudo yum localinstall /auto/spvtg-it/spvss-migration/Software/VirtualBox-4.3-4.3.2_90405_el6-1.i686.rpm Loaded plugins: fastestmirror Setting up Local Package... (13 Replies)
Discussion started by: gw1500se
13 Replies

4. Solaris

Why is gcc missing from </usr/sfw/bin>

Hi All: Does anyone know why gcc would be missing from /usr/sfw/bin? Has it been replaced by another file in below directory? .... Do you think admins may have deleted it from here? More importantly, is there anything else I can use in here as an alternative for a C program compilation? ... (8 Replies)
Discussion started by: steve701
8 Replies

5. Homework & Coursework Questions

Help with Simple Multi-Level Makefile (Extremely New at Makefile)

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known data: Basically, the prompt is make a makefile with various sub makefiles in their respective subdirectories. All code... (1 Reply)
Discussion started by: Tatl
1 Replies

6. OS X (Apple)

[GCC] Missing header files

Good morning! I am creating a program that uses raw sockets in C and need to call the "netpacket/packet.h" header file. However when I compile with gcc i get I'm running os 10.5.8 with version gcc 4.0.1 and just update xcode last night which didn't seem to help. Any ideas will be greatly... (2 Replies)
Discussion started by: taiL
2 Replies

7. Programming

Missing Separator Issue in Make file

Hi All, I am using Make to compile my java code. I am pasting the portion which is creating an issue. install: $(FPR_FILES) if test $OS = "Linux"; then @echo "TEST" -$(INS) -d -m 775 $(INSDIR)/linux/deployment cp -R $(ROOT)/deployment $(INSDIR)/linux/deployment ... (3 Replies)
Discussion started by: ngopalakrishna
3 Replies

8. UNIX for Advanced & Expert Users

Makefile problem - How to run module load in a Makefile

Hi, I'm trying to run the module load command in a Makefile and i'm getting the following error: make: module: command not found Why is this? Is there any way to run this command in a Makefile? NOTE: command - module load msjava/sunjdk/1.5.0 works fine outside of the Makefile (2 Replies)
Discussion started by: hernandinho
2 Replies

9. Solaris

Installing gcc - recieve error message gcc : cannot execute

AIM- Install Oracle 11g on Solaris using VMWare Steps 1.Logged on as root 2.Created subfolders à /usr/local/bin & /usr/local/bin/gcc 3.Downloaded gcc & libiconv & unzipped them on my harddrive & burnt them on CD 4.Copied files from CD to /usr/local/bin/gcc 5.Terminal (root) à pkgadd -d... (8 Replies)
Discussion started by: Ackers
8 Replies

10. Shell Programming and Scripting

Separator in Makefile?

all: $(LIBRARY) $(EXE) $(MAKEMAKE): @rm -f $(MAKEMAKE) $(PURIFY) $(CXX) -M $(INCLUDE) $(CPPFLAGS) *.cpp > $(MAKEMAKE) $(EXE): $(OBJS) $(LIBRARY) @echo "Creating a executable " $(PURIFY) $(CC) -o $(EXE) $(OBJS) $(ALLLDFLAGS) $(LIBS) This is a snippet... (2 Replies)
Discussion started by: laila63
2 Replies
Login or Register to Ask a Question