GCC 4.3.2 Install into Cygwin

JJ-Cygwin nongjamine@yahoo.com
Tue Feb 2 03:25:00 GMT 2010


My problem is similar in this issue. Please help me too. 
-----------<Start>--------------
Please help me out. I have a problem to configure gcc-4.2.4
(gcc-g++-4.2.4.tar.bz2) cygwin in window.

Details:
Based on instruction on
http://cygwin.wikia.com/wiki/How_to_install_GCC_4.3.0, I 
1. Create subfolder, contrib, inside usr folder
2. Download gcc-4.2.2.tar.bz2 into /usr/contrib
3. It gennerates:
   /usr/local/contrib/gcc-4.2.4
   /usr/local/contrib/gcc-4.2.4/gcc
   /usr/local/contrib/gcc-4.2.4/gcc/cp  # cp is a subfolder

   /usr/local/contrib/gcc-4.2.4/libstdc++-v3
   /usr/local/contrib/gcc-4.2.4/libstdc++-v3/config
   /usr/local/contrib/gcc-4.2.4/libstdc++-v3/docs
   /usr/local/contrib/gcc-4.2.4/libstdc++-v3/include
   /usr/local/contrib/gcc-4.2.4/libstdc++-v3/....

4. Then based on instruction of that link,
         $ mkdir build
         $ cd build
         $ ../gcc-*/configure --enable-languages=c,c++
         $ make
         $ make install

and instruction of cygwin lin, http://gcc.gnu.org/install/configure.html, 
        % mkdir objdir
        % cd objdir
        % srcdir/configure [options] [target]

I create subfolder named build, $ mkdir build, and then $ cd build
5. Now this is a problem. I can not configure it as an example,$
../gcc-*/configure --enable-languages=c,c++ or % srcdir/configure [options]
[target]

My code is 
$ ls --> Result = usr/local/contrib --> it is current location
$ ../gcc-4.2.4/configure --enable-languages=c,c++ ---> Err msg =
bash:../gcc-4.2.4/congigure: No such file or directory

6. I check more alert messge as below:

[ First, we highly recommend that GCC be built into a separate directory
from the sources which does not reside within the source tree. This is how
we generally build GCC; building where srcdir == objdir should still work,
but doesn't get extensive testing; building where objdir is a subdirectory
of srcdir is unsupported. ]

My srcdir is gcc-4.2.4 folder while my objdir is build. Paths are:

usr/local/contrib/build
usr/local/contrib/gcc-4.2.4

These look OK. Right?

7. Because of that error, I repeatly run this command, $ ../gcc-*/configure
--enable-languages=c,c++, and $ ./gcc-*/configure --enable-languages=c,c++,
on the different paths as below:
# Current location
(a) /usr/local/ --> then create build subfolder
(b) /usr/local/contrib/  --> then create build subfolder
(c) /usr/local/contrib/gcc-4.2.4  --> then create build subfolder
(d) /usr/local/contrib/gcc-4.2.4/gcc  --> then create build subfolder

All generated the same error, No such file or directory.

8. Then I go to http://gcc.gnu.org/faq.html. There is no topic talking about
the problem of configuration like me.


Please help me out I spent like 4 days to do this. I feel that it is not a
deep technical problem but I may miss 

- Some simple point like path or link issue or
- The current location to run configure. However, regarding to all
instructions, it does not mention any specific path to run configure. I am
blank now

However, I am not so such about that and I don't know how to solve it.
Please provide me instruction and/or information.


Thank you very much,
Jasmine
Ps. I am pretty much new and have no working experience in this special
field


-----------<end>--------------

Jim Cobban wrote:
> 
> I am trying to upgrade the version of gcc that comes with Cygwin to 
> 4.3.2.  I downloaded the source and ran the make fine, but when I follow 
> the instructions for the final install I get :
> 
> Jim Cobban@Ban02 /home/JimCobban
> $ cd gcc-4.2.3/objdir
> 
> Jim Cobban@Ban02 /home/JimCobban/gcc-4.2.3/objdir
> $ make install
> make[1]: Entering directory `/home/JimCobban/gcc-4.2.3/objdir'
> /bin/sh ../mkinstalldirs /usr/local /usr/local
> /bin/sh: line 3: cd: ./fixincludes: No such file or directory
> make[1]: *** [install-fixincludes] Error 1
> make[1]: Leaving directory `/home/JimCobban/gcc-4.2.3/objdir'
> make: *** [install] Error 2
> 
> Jim Cobban@Ban02 /home/JimCobban/gcc-4.2.3/objdir
> $
> 
> There is a fixincludes directory at /gcc-4.2.3/ and at 
> /gcc-4.2.3/objdir/build-i686-pc-cygwin/ but not at /gcc-4.2.3/objdir/, 
> which is where the instructions appear to indicate that I should be, and 
> which is the directory in which I did the first make.
> 
> Exactly which directory should I be at in order to issue the "make
> install"?
> 
> -- 
> Jim Cobban   jcobban@magma.ca
> 34 Palomino Dr.
> Kanata, ON, CANADA
> K2M 1M1
> +1-613-592-9438
> 
> 
> 

-- 
View this message in context: http://old.nabble.com/GCC-4.3.2-Install-into-Cygwin-tp17090485p27412393.html
Sent from the gcc - Help mailing list archive at Nabble.com.



More information about the Gcc-help mailing list