The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Google UNIX.COM


UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
make[2]: *** [xml] Error 1 praveen_b744 UNIX for Advanced & Expert Users 1 04-14-2008 02:46 AM
make[1] *** [libsupp.a] Error 255 jjsoladmin High Level Programming 2 03-13-2008 10:56 AM
Error in issuing a make and make install ahjiefreak Linux 1 03-11-2008 09:32 PM
SCO 5.0.7 Installing gcc 3.4.3 cause error in make miles556 SCO 1 02-22-2008 01:25 PM
sun solaris 10 make error sunrise SUN Solaris 9 05-29-2007 01:20 AM

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-04-2007
Registered User
 

Join Date: Nov 2004
Location: USA
Posts: 92
Red face gcc & make error- Help please

Folks;
I'm trying to install gcc-3.4.6 & install SWIG tool on Solaris 10 (Sparc), but when i try to run make for gcc i got this error below:

make: Fatal error: Command failed for target `all-gcc'

and when i try to run "make install" to install swig, i got this error:


*** Error code 2
The following command caused the error:
for lang in gcj typemaps tcl perl5 python guile java mzscheme ruby php4 ocaml pike chicken csharp modula3 allegrocl clisp lua cffi uffi std; \
do \
echo "Installing language specific files for $lang"; \
dst=/usr/local/share/swig/1.3.29/$lang; \
/opt/packages/swig-1.3.29/Tools/config/install-sh -m 0755 -d $dst; \
(doti="`cd ./Lib/$lang && ls *.i 2>/dev/null`" || doti=""; \
dotswg="`cd ./Lib/$lang && ls *.swg 2>/dev/null`" || dotswg=""; \
if [ -f ./Lib/$lang/extra-install.list ]; then \
extra="`sed '/^#/d' ./Lib/$lang/extra-install.list`"; \
fi; \
files="`echo $doti $dotswg $extra`"; \
if [ x"$files" = x ]; then \
echo "Installing nothing from Lib/$lang"; \
else for file in $doti $dotswg $extra; \
do \
echo "Installing $dst/$file"; \
/opt/packages/swig-1.3.29/Tools/config/install-sh -c -m 644 ./Lib/$lang/$file $dst/$file; \
done; \
fi) ; \
done
make: Fatal error: Command failed for target `install-lib'
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 09-04-2007
Registered User
 

Join Date: Jan 2007
Posts: 2,965
Are you trying to build gcc, if so why?

Find the script causing the errors and add a "-x" to the starting part...

#!/bin/sh

to

#!/bin/sh -x
Reply With Quote
  #3 (permalink)  
Old 09-04-2007
Registered User
 

Join Date: Nov 2004
Location: USA
Posts: 92
i was trying to build it from scratch.
is your answer for the first question or the second one?
Reply With Quote
  #4 (permalink)  
Old 09-04-2007
Registered User
 

Join Date: Nov 2004
Location: USA
Posts: 92
i added -x to the file i think was causing the issue with no luck
Reply With Quote
  #5 (permalink)  
Old 09-04-2007
Registered User
 

Join Date: Jan 2007
Posts: 2,965
Get gcc from sunfreeware or similar, or even better get Studio11 from Sun. Life is far to short to be rebuilding gcc unless you really want to. Anyway, you need a compiler to build gcc, so you'll have to install something like, oh, gcc.

Quote:
Originally Posted by moe2266 View Post
i added -x to the file i think was causing the issue with no luck
What it should be doing is expanding all the variables and displaying the commands and arguments so you can see what bits are failing.
Reply With Quote
  #6 (permalink)  
Old 09-04-2007
Registered User
 

Join Date: Nov 2004
Location: USA
Posts: 92
ok, i will give up on building gcc, i'm still having issues with using "make install" for swig with the error i have above in this thread.
any help?
Reply With Quote
  #7 (permalink)  
Old 09-04-2007
Registered User
 

Join Date: Jan 2007
Posts: 2,965
Have you done the normal

./configure
make
make install

or whatever it requires?

Are you root when you do the "make install"?
Reply With Quote
Google UNIX.COM
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 07:27 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0