delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/01/06/12:14:07

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
Message-ID: <3E19B8FE.304@decodon.com>
Date: Mon, 06 Jan 2003 18:12:30 +0100
From: Frank-Michael Moser <moser AT decodon DOT com>
Reply-To: cygwin AT cygwin DOT com
Organization: DECODON GmbH
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.2.1) Gecko/20021130
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: gcj and -mno-cygwin

I'm just a little bit confused:

Should gcj work with the -mno-cygwin option?

$ gcj -mno-cygwin --main=Hello -gstabs Hello.java -o Hello.exe
gcj: installation problem, cannot exec `jc1': No such file or directory

I found that there are no symbolic links to jc1.exe and jvgenmain.exe in 
/usr/lib/gcc-lib/i686-pc-mingw32/3.2/ which should point to 
../../i686-pc-cygwin/3.2/. I created them but now I get a lot of 
undefined references when compiling Hello.java with -mno-cygwin:

$ gcj -mno-cygwin --main=Hello -gstabs Hello.java -o Hello.exe
/usr/lib/gcc-lib/i686-pc-mingw32/3.2/../../../libgcj.a(prims.o)(.text+0x517): 
undefined reference to `_impure_ptr'
/usr/lib/gcc-lib/i686-pc-mingw32/3.2/../../../libgcj.a(posix.o)(.text+0x23): 
undefined reference to `gettimeofday'
/usr/lib/gcc-lib/i686-pc-mingw32/3.2/../../../libgcj.a(posix.o)(.text+0x7a): 
undefined reference to `sigemptyset'
/usr/lib/gcc-lib/i686-pc-mingw32/3.2/../../../libgcj.a(posix.o)(.text+0x99): 
undefined reference to `sigaction'
efined reference to `_impure_ptr'
...

Now I guess this is intended behaviour because -mno-cygwin is not yet 
implemented for gcj 3.2. Am I right or not?


Frank-Michael

$ gcj -v
Reading specs from /usr/lib/gcc-lib/i686-pc-cygwin/3.2/specs
Reading specs from /usr/lib/gcc-lib/i686-pc-cygwin/3.2/../../../libgcj.spec
rename spec lib to liborig
Configured with: /netrel/src/gcc-3.2-3/configure 
--enable-languages=c,c++,f77,java --enable-libgcj --enable-threads=posix 
--with-system-zlib --enable-nls --without-included-gettext 
--enable-interpreter --disable-sjlj-exceptions 
--disable-version-specific-runtime-libs --enable-shared 
--build=i686-pc-linux --host=i686-pc-cygwin --target=i686-pc-cygwin 
--enable-haifa --prefix=/usr --exec-prefix=/usr --sysconfdir=/etc 
--libdir=/usr/lib --includedir=/nonexistent/include --libexecdir=/usr/sbin
Thread model: posix
gcc version 3.2 20020927 (prerelease)



--
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/

- Raw text -


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