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 Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

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 06:46 AM
make[1] *** [libsupp.a] Error 255 jjsoladmin High Level Programming 2 03-13-2008 02:56 PM
Error in issuing a make and make install ahjiefreak Linux 1 03-12-2008 01:32 AM
SCO 5.0.7 Installing gcc 3.4.3 cause error in make miles556 SCO 1 02-22-2008 05:25 PM
sun solaris 10 make error sunrise SUN Solaris 9 05-29-2007 05:20 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 09-04-2007
moe2266 moe2266 is offline
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'
  #2 (permalink)  
Old 09-04-2007
porter porter is offline Forum Advisor  
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
  #3 (permalink)  
Old 09-04-2007
moe2266 moe2266 is offline
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?
  #4 (permalink)  
Old 09-04-2007
moe2266 moe2266 is offline
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
  #5 (permalink)  
Old 09-04-2007
porter porter is offline Forum Advisor  
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.
  #6 (permalink)  
Old 09-04-2007
moe2266 moe2266 is offline
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?
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 10:26 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0