Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Reply-To: From: "Mike Hayden" To: "Cygwin" Subject: GCC problem Date: Thu, 21 Mar 2002 08:01:57 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700 Importance: Normal I have installed the cygwin package (1.3.10) on my Win2k machine. My goal is to build a GCC cross-compiler for a PowerPC target. The problem I have is rebuilding the GNU tools. When I start with the binutils via the configure script I get the following error: Configuring for a i686-pc-cygwin host. Created "Makefile" in /tmp/build/binutils using "mh-frag" /usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-5/../../../../i686-pc-cygwin/bin/ld: cannot find -luser32 collect2: ld returned 1 exit status *** The command 'gcc -o conftest -g -O2 conftest.c' failed. *** You must set the environment variable CC to a working compiler. I also tried to compile a simple "Hello world" program to verify if the problem was only with the configure or some overall gcc problem. I got a similar error: /usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-5/../../../../i686-pc-cygwin/bin/ld: cannot find -luser32 collect2: ld returned 1 exit status I have read the mailing list and noted that many people have had the same problem. In most all of those cases the advice was to reinstall cygwin and make sure the w32api package was downloaded and installed. I have done this 2x, first I hand picked the packages and tried it and second I downloaded and installed ALL and tried it. It did not work in either case. Any advice would be appreciated. Thanks in advance, MH -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/