gcc & make error- Help please


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users gcc & make error- Help please
# 1  
Old 09-04-2007
Power 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  
Old 09-04-2007
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  
Old 09-04-2007
i was trying to build it from scratch.
is your answer for the first question or the second one?
# 4  
Old 09-04-2007
i added -x to the file i think was causing the issue with no luck
# 5  
Old 09-04-2007
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
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  
Old 09-04-2007
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?
# 7  
Old 09-04-2007
Have you done the normal

./configure
make
make install

or whatever it requires?

Are you root when you do the "make install"?
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. AIX

gnu make fir AIX 5.3 and gcc 3.3.2

Hi all i had installed gcc version 3.3.2 on my AIX 5.3 machine. which make utility i have to instal so it will fit the gcc version tnx skfn (2 Replies)
Discussion started by: skfn1203
2 Replies

2. UNIX for Dummies Questions & Answers

Compiling gcc to compile make to compile yaboot

I have just installed OpenBSD on a 333MHz PPC iMac G3. It has a 6GB HDD that has been partitioned as 1GB MacOS 8.5.1, 3GB MacOS X 10.3.9, 2GB OpenBSD 4.8. I now need to install a bootloader so that my computer can recognize the OpenBSD partition at startup. I have been trying to install... (0 Replies)
Discussion started by: t04st3r
0 Replies

3. AIX

Does anyone know the version of make on AIX 5.1 & 5.3?

Could you tell me the version of default make on AIX 5.1 & 5.3? (2 Replies)
Discussion started by: redraiment
2 Replies

4. Solaris

Gani Network Driver Won't Install - make: Fatal error: Don't know how to make targ...

I attached a README file that I will refer to. I successfully completed everything in the README file until step 4. # pwd /gani/gani-2.4.4 # ls COPYING Makefile.macros gem.c Makefile Makefile.sparc_gcc gem.h Makefile.amd64_gcc ... (1 Reply)
Discussion started by: Bradj47
1 Replies

5. Linux

Kernal panic error& setuproot:error mounting /proc&/sys

Hi all, I am new to redhat/fedora linux. In fedora linux 6,we created one file system(hda3 - /fs). in this mount poing we were installed mounta vista os. while booting we are getting below error messages. 1) Booting 'mountaVisat(2.6.18_pro 500_pc_target-x86_586 smp)' root(hd0,1)... (2 Replies)
Discussion started by: arjunreddy3
2 Replies

6. Solaris

gcc & linker question (Solaris 10)

Hi, I'm confused about the GCC & Linking process could somebody please briefly explain? I have GCC 3.4.6 installed from SunFreeware. Reading the narrative alongside the package states "It was compiled to use the SUN assembler and loader usually in /usr/ccs/bin if the SUNW developer packages... (1 Reply)
Discussion started by: Celtic_Monkey
1 Replies

7. 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

8. Linux

Error in issuing a make and make install

Hi, Recently I install a package and try to do a make and make install. However, in the make it gives me below error:- make:Nothing to be done for 'install-exec-am' make:Nothing to be done for 'install-data-am' Can anyone please explain to me what does this mean? I have been trying... (1 Reply)
Discussion started by: ahjiefreak
1 Replies

9. SCO

SCO 5.0.7 Installing gcc 3.4.3 cause error in make

Did anyone get gcc updated on sco 5.0.7 ? Here is what I did installed Openserver Development System installed Openserver Linker and Application Development Libraries This gave me older gcc compiler 2.95.3 which is required to compile the latest gcc 3.4.3 Configuration went ok but issued... (1 Reply)
Discussion started by: miles556
1 Replies

10. UNIX for Dummies Questions & Answers

Emacs & GCC not installed by default?

I just installed SUSE Linux 10.0 on my computer but when I typed " emacs & " and " gcc -c main.c" in the terminal, those programs couldn't be found. So the Linux install package does not install those programs by default? (2 Replies)
Discussion started by: whutes
2 Replies
Login or Register to Ask a Question