public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Gcc installation problem
@ 2003-08-16 15:14 Long Fei
  0 siblings, 0 replies; 17+ messages in thread
From: Long Fei @ 2003-08-16 15:14 UTC (permalink / raw)
  To: gcc-help


I followed the instructions in the manual and successfully built and
installed gcc3.3. Problem occurred when I tried to compile C/C++ src
with gcc3.3. Details are given below:

System: Red Hat Linux 7.2, P4 server
Because this version of linux ships with the defective gcc 2.96, I tried
to install gcc3.3 for myself. So the new gcc is not installed in the
default /usr/local directory since I don't have root privillege. I
installed gcc in a directory different from the gcc source directory, as
recommended in the installation manual.

I strictly followed the steps in the manual. Successfully built &
installed gcc.

The new gcc can now compile some simple programs without header files.
When I tried some real programs, a lot of errors reported in compiling
process. Most of them were reporting that there are errors in the header
files. I found those incompatible header files were in /usr/include, so
I guess they were the header files of gcc2.96. 

I then tried -I/-I- directives to give the specific path of the new gcc
include directory. I also put the new gcc paths in the beginning of PATH
env varible.  But the problems remained. The new gcc was still unable to
find the correct include files.

Could anybody tell me what I need to do to properly configure gcc3.3
after installation ? Especially how to solve this header file problem.

Thanks a lot!

^ permalink raw reply	[flat|nested] 17+ messages in thread
[parent not found: <002a01c36409$72d08fa0$2c7b2e80@ee271dpc5>]
[parent not found: <002801c36407$3ff5fc20$2c7b2e80@ee271dpc5>]
[parent not found: <616BE6A276E3714788D2AC35C40CD18D6BFC5C@whale.softwire.co.uk>]
* gcc installation problem
@ 2002-06-30 21:11 yt wang
  0 siblings, 0 replies; 17+ messages in thread
From: yt wang @ 2002-06-30 21:11 UTC (permalink / raw)
  To: gcc-help

[-- Attachment #1: Type: text/plain, Size: 412 bytes --]

Hi, Sir/Madam:
 
   I have tried to install gcc on solaris 8 platform,
but got stuck. The attached file describes the
problem. Could you please help me if you know how to
resolve it, or direct me to someone who might know it?
 
  thanks a lot in advance,
 
  yt (8-)

__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

[-- Attachment #2: gcc_error --]
[-- Type: text/plain, Size: 2504 bytes --]

Problem descriptions: (in solaris 8)

1). I create the source directory, gcc-3.0.3:  

       tar xvf gcc-3.0.3.tar   

    then, the object directory, gcc-exec: 

       mkdir  gcc-exec

2). I configure the gcc in gcc-exec:

 (either   ../gcc-3.0.3/configure  --prefix=../gcc-3.0.3  --exec-prefix=.
   or      ../gcc-3.0.3/configure  --prefix=../gcc-3.0.3  --exec-prefix=.  --disable-nls )

    it seems to be successfully done either way.

3). Then, I do the
     
    make bootstrap

   It runs for about 65 minutes, then the following situation occurs, and the make got aborted:


....

mkdir .libs
ar rc .libs/libsupc++convenience.a  del_op.o del_opnt.o del_opv.o del_opvnt.o eh_alloc.o eh_aux_runtime.o eh_catch.o eh_exception.o eh_globals.o eh_personality.o eh_terminate.o eh_throw.o new_handler.o new_op.o new_opnt.o new_opv.o new_opvnt.o pure.o tinfo.o tinfo2.o vec.o
true .libs/libsupc++convenience.a
creating libsupc++convenience.la
(cd .libs && rm -f libsupc++convenience.la && ln -s ../libsupc++convenience.la libsupc++convenience.la)
/bin/sh ../libtool --tag CXX --tag disable-shared           --mode=link /home/arch03/apps/gcc-exe/gcc/xgcc -B/home/arch03/apps/gcc-exe/gcc/ -nostdinc++  -L/home/arch03/apps/gcc-exe/sparc-sun-solaris2.8/libstdc++-v3/src -L/home/arch03/apps/gcc-exe/sparc-sun-solaris2.8/libstdc++-v3/src/.libs -B./sparc-sun-solaris2.8/bin/ -B./sparc-sun-solaris2.8/lib/ -isystem ./sparc-sun-solaris2.8/include             -fno-implicit-templates        -prefer-pic   -Wall -Wno-format -W -Wwrite-strings -Winline  -fdiagnostics-show-location=once                 -ffunction-sections -fdata-sections  -g    -o libsupc++.la -rpath ./lib  del_op.lo del_opnt.lo del_opv.lo del_opvnt.lo eh_alloc.lo eh_aux_runtime.lo eh_catch.lo eh_exception.lo eh_globals.lo eh_personality.lo eh_terminate.lo eh_throw.lo new_handler.lo new_op.lo new_opnt.lo new_opv.lo new_opvnt.lo pure.lo tinfo.lo tinfo2.lo vec.lo  -lm 
libtool: link: only absolute run-paths are allowed
make[4]: *** [libsupc++.la] Error 1
make[4]: Leaving directory `/home/arch03/apps/gcc-exe/sparc-sun-solaris2.8/libstdc++-v3/libsupc++'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/arch03/apps/gcc-exe/sparc-sun-solaris2.8/libstdc++-v3'
make[2]: *** [all-recursive-am] Error 2
make[2]: Leaving directory `/home/arch03/apps/gcc-exe/sparc-sun-solaris2.8/libstdc++-v3'
make[1]: *** [all-target-libstdc++-v3] Error 2
make[1]: Leaving directory `/home/arch03/apps/gcc-exe'
make: *** [bootstrap] Error 2


^ permalink raw reply	[flat|nested] 17+ messages in thread
* GCC Installation problem
@ 2001-04-05 18:08 kyamada
  2001-04-05 19:05 ` Alexandre Oliva
  0 siblings, 1 reply; 17+ messages in thread
From: kyamada @ 2001-04-05 18:08 UTC (permalink / raw)
  To: gcc-help

Hello.
I'm trying to install gcc into Redhat Linux 7. When I tried to install it
I got following error. Is there any way to fix this problem?


[oracle@njweb1 gcc-2.95.2]$ ./configure

Configuring for a i686-pc-linux-gnuoldld host.
Created "Makefile" in /download/gcc-2.95.2
./configure: gcc: command not found
*** The command 'gcc -o conftest -g   conftest.c' failed.
*** You must set the environment variable CC to a working compiler.

Best Regards
Kenny Yamada





^ permalink raw reply	[flat|nested] 17+ messages in thread
* GCC Installation Problem
@ 2000-10-20  1:34 TEO Poh Kwee
  0 siblings, 0 replies; 17+ messages in thread
From: TEO Poh Kwee @ 2000-10-20  1:34 UTC (permalink / raw)
  To: 'gcc-help@gcc.gnu.org'

Hi! I downloaded the GCC 2.95.2 and tried to install it on my HP-UX 10.20 according to guidelines provided by the gnu.org website. First I created a directory called /gcc and executed command "srcdir/configure" in this directory. Everything seemed fine. Then I executed "make bootstrap" in the same directory, after a long wait (more than an hour) with lots of warning messages appeared on the screen, the make process terminated with the following messages:

extension list not found
make all-recursive
extension list not found
Making all in intl
Making all in lib
Making all in makeinfo
Bootstrapping the compiler
make CC="cc" libdir=
/usr/local/lib LANGUAGES="c"
rm -f cpp
ln cccp cpp
(cd intl && make all)
./gencheck > tem-check.h
sh: ./gencheck: execute permission denied
*** error end code 126
terminate
*** error end code 1
terminate
*** error end code 1
terminate
#

What's going wrong? Before the installation, I installed 2 patches namely, PHCO_19798 and PHCO_20441, which I downloaded from the HP website (as recommended by the gnu.org site).
Does the problem has to do with the patches?




^ permalink raw reply	[flat|nested] 17+ messages in thread
* gcc installation problem
@ 2000-04-05 23:22 Gilad Even-Tzur
  0 siblings, 0 replies; 17+ messages in thread
From: Gilad Even-Tzur @ 2000-04-05 23:22 UTC (permalink / raw)
  To: help-gcc

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 550 bytes --]

Hi There,

I will be very grateful to get some help from you. While I try to
install gcc on my machine at the configuration stage I get the following

error message:
Can not find install-sh or install.sh
I completely donÂ’t know what to do to pass this error. Can you help me
with it?

Thanks in advance,
Gilad

--
Dr. Gilad Even-Tzur
Geodetic Engineering, Faculty of Civil Engineering
Technion - Israel Institute of Technology
Technion City, Haifa 32000
Israel
Phone: +972-4-8293459,  Fax: +972-4-8234757
E-mail: eventzur@techunix.technion.ac.il


^ permalink raw reply	[flat|nested] 17+ messages in thread
* gcc:installation problem
@ 1999-10-08 11:58 oupegt
  1999-10-08 14:43 ` Paul D. Smith
  1999-10-31 13:57 ` oupegt
  0 siblings, 2 replies; 17+ messages in thread
From: oupegt @ 1999-10-08 11:58 UTC (permalink / raw)
  To: help-gcc

I'm running a Solaris 2.6 on a Sparc20 and I want to install
gcc-2.9.5.1 from the source code on my machine. I have installed
gcc-2.7.2 in my /opt/local/bin directory from a package I got from
sunfreeware.com. When I run the configure command though, I keep
getting an error.

--------------------------------------------------------------------------------------------------------------
sun1% setenv CC /opt/local/bin/gcc
sun1% ../gcc2951/configure

Configuring for a sparc-sun-solaris2.6 host.
Created "Makefile" in /data2/home/thomas/misc/compdir/gccod using
"mh-frag"
gcc: installation problem, cannot exec `cpp': No such file or
directory
*** The command '/opt/local/bin/gcc -o conftest -g   conftest.c'
failed.
*** You must set the environment variable CC to a working compiler.

sun1(74)% gcc -v

gcc version 2.7.2.2
-------------------------------------------------------------------------------------------------------------

I have tried this with /usr/ucb set both before and after my gcc bin
directory but to no avail. Can anyone figure out what's going on?

Please respond both to this newsgroup and via e-mail. 


May care go with you and Peace,
Emile G. Thomas
oupegt@hotmail.com.nospam <remove ".nospam" to send real e-mail>

^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2003-08-16 15:30 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-08-16 15:14 Gcc installation problem Long Fei
     [not found] <002a01c36409$72d08fa0$2c7b2e80@ee271dpc5>
2003-08-16 15:30 ` Andrew Pinski
     [not found] <002801c36407$3ff5fc20$2c7b2e80@ee271dpc5>
2003-08-16 15:08 ` Andrew Pinski
     [not found] <616BE6A276E3714788D2AC35C40CD18D6BFC5C@whale.softwire.co.uk>
2002-07-01  1:01 ` gcc " Rupert Wood
  -- strict thread matches above, loose matches on Subject: below --
2002-06-30 21:11 yt wang
2001-04-05 18:08 GCC Installation problem kyamada
2001-04-05 19:05 ` Alexandre Oliva
2000-10-20  1:34 GCC Installation Problem TEO Poh Kwee
2000-04-05 23:22 gcc installation problem Gilad Even-Tzur
1999-10-08 11:58 gcc:installation problem oupegt
1999-10-08 14:43 ` Paul D. Smith
1999-10-11 12:54   ` oupegt
1999-10-11 14:12     ` Paul D. Smith
1999-10-31 13:57       ` Paul D. Smith
1999-10-31 13:57     ` oupegt
1999-10-31 13:57   ` Paul D. Smith
1999-10-31 13:57 ` oupegt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).