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: Cygwin List Message-Id: <6.1.0.6.0.20040912223125.03d9d150@pop.prospeed.net> X-Sender: Date: Sun, 12 Sep 2004 22:34:37 -0400 To: "Michael D. Crawford" , cygwin AT cygwin DOT com From: Larry Hall Subject: Re: Crash in setup 2.427 In-Reply-To: <414503D2.9050104@goingware.com> References: <414503D2 DOT 9050104 AT goingware DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" At 10:20 PM 9/12/2004, you wrote: >I'm having trouble using setup to install gcj (gcc-java) on my Windows 2000 SP4 box. There are several versions of it available in setup, and I don't seem to be able to get all the parts of the version I want installed. It's confusing to me, and I think it's confusing setup too, with the result of a 100% repeatible crash. > >I _think_ what I want is gcc-java 3.4.1-1. When I do manage to get it installed, gcc --version shows: > >gcj (GCC) 3.4.1 (cygming special) > >What I want to do is build a Win32-native executable from Java source, without dependencies on the cygwin dll or X11. However, when I try to compile a "Hello World" program, I get this error: > >$ gcj Hello.java >/usr/lib/gcc/i686-pc-cygwin/3.4.1/../../../../i686-pc-cygwin/bin/ld: cannot find -lgcc > >What that seems to indicate is that I don't have all the parts of gcc installed, at least not all the right versions. Unfortunately, setup seems to also know about versions 3.3.3-3, 20040810-1 and 20040822-1 of various bits. > >I think what I need to get -lgcc is version 3.4.1-1 of gcc-core. What I have currently is 3.3.3-3. Under the "New" column in setup right now, it says "Keep". So I click it until it says 3.4.1-1. So far so good. > >Unfortunately, gcc-java is 3.4.1, but under "New" it says 3.3.3-3. If I let the installer proceed, it will remove gcj 3.4.1 (cygming special) and replace it with gcj 3.3.3 (cygwin special). I've experienced this several times. So I click in the New column for gcj-java to try to change it to keep: > > Program Error > > setup.exe has generated erros and will be closed by Windows. > You will need to restart the program. > > An error log is being created. > >I couldn't find an error log. I used the Find Files Windoze tool to look for one. Do you know where it might be? Try /var/log/setup.log, /var/log/setup.log.full >I've spent over an hour on this, and despite my best efforts I have not been able to succeed in installing all the parts I need of gcj/gcc 3.4.1-1. Either -lgcc is missing, or version 3.3.3-3 gets installed, or setup crashes. There are some other ways to crash it, all involving trying to get the right version of everything selected in the dialog. You might be getting caught by some arcane setup logic with dependencies. I'd recommend uninstalling all gcc packages and then reinstall all the ones you need together. That should get you the versions you want. -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 838 Washington Street (508) 893-9889 - FAX Holliston, MA 01746 -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/