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]

Re: Crash in setup 2.427


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/


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