Solved

Gnu Make 3.75

Posted on 1997-02-19
7
510 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
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.
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

914 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

22 Experts available now in Live!

Get 1:1 Help Now