Solved

Gnu Make 3.75

Posted on 1997-02-19
7
497 Views
Last Modified: 2013-12-26
I am trying to create 'make' from Gnu Make and having a problem doing it. This is my first attempt and I am uncertain what to do or where to look.
My current 'make' gives loads of errors. So I used 'configure' and 'build.sh' to try and get a new 'make' but no luck. 'configure' seems to work O.K and 'sh build.sh' goes OK compiling everything till:

gcc: ./glob/libglob.a: No such file etc.
gcc: No input files

Additional info:
Machine : Sun Ultra
OS : Solaris 2.5.1
gcc : version 2.5.8
Gnu make : version 3.75

Any idea what I should do?

0
Comment
Question by:Mik
7 Comments
 
LVL 1

Expert Comment

by:rleyton
ID: 1292286
What system are you running on? Which Compiler Version are you using?


0
 

Author Comment

by:Mik
ID: 1292287
Edited text of question
0
 

Author Comment

by:Mik
ID: 1292288
Adjusted points to 105
0
Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

 

Accepted Solution

by:
glewis earned 130 total points
ID: 1292289
Have you tried going into the "glob" subdirectory and typing
make glob.a
?  From my recollection of building Gnu Make 3.75, you should be able to untar the whole package, type "./configure" and answer any questions, then finally just type "make" and it works flawlessly.  You may want to delete the whole subdirectory that you created and start over again with those two commands.  It should be quite straightforward.  Good luck!
0
 

Author Comment

by:Mik
ID: 1292290
Thanks glewis:
1.Tried make glob.a  - I get
make: *** No rule to make target `glob.a'.  Stop.

2. When I try ./configure - that seems to work OK but if I then
'make' I get

make
gcc (various successful bits)
cd glob; make  libglob.a
make[1]: Entering directory `make-3.75/glob'
gcc (again various successful bits)
ar rv libglob.a glob.o fnmatch.o
make[1]: ar: Command not found
make[1]: *** [libglob.a] Error 127
make[1]: Leaving directory `make-3.75/glob'
make: *** [glob/libglob.a] Error 2
%


0
 

Expert Comment

by:glewis
ID: 1292291
Whups!  I meant to say "make libglob.a"... but that's a moot point now... you have another problem I see!

Your system can't find "ar"!!!  That is a real problem.
Look around in the standard places for ar (which is the archiver that creates libraries for you...):
ls -l /usr/bin/ar /bin/ar /usr/local/bin/ar /usr/ucb/ar
Hopefully one of these will turn up... if not, contact "root" on your system and tell them that they need to install "ar" for you!

Now, once you locate it (probably in /usr/bin/ar), then you simply need to make sure your path is set properly.  You should be able to look at it with "echo $path", depending on which shell you are using.  Check to see if /usr/bin is not already in your path.  If it is there, make sure that /usr/bin/ar has execute permission, like -rwxr-xr-x (or 755 in chmod parlance).  Finally, if /usr/bin is not in your path, add it yourself (probably in your startup file, like .cshrc if you are using /bin/csh or /bin/tcsh for your shell)...  So do this:
set path=(/usr/bin $path)
rehash
which ar

At that last command, it should find "ar" for you.  Now, go back to the top-level directory for building Gnu Make, and type "make" again... it should descend into the "glob" directory and re-attempt that "ar" command, and should succeed this time!
Good luck!

0
 
LVL 2

Expert Comment

by:lockhart
ID: 1292292
Does your system have any development tools (commercial ones) on it at all?  If you are trying to put one together from the GNU toolsuite, then ar will not be on your system at all and needs to be obtained.  I can suggest a set of tools (GNU based) which will work nicely.

Mike
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Suggested Solutions

Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now