www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/02/01/14:51:53

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.1 required=5.0 tests=AWL,BAYES_00
X-Spam-Check-By: sourceware.org
Message-ID: <911788.52904.qm@web50903.mail.re2.yahoo.com>
Date: Mon, 1 Feb 2010 11:51:41 -0800 (PST)
From: J J <nongjamine AT yahoo DOT com>
Subject: ./configure on cygwin in window
To: cygwin AT cygwin DOT com
MIME-Version: 1.0
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019