This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

./configure on cygwin in window


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. 







      

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]