This is the mail archive of the
mailing list for the GCC project.
Re: gcj was successfully compiled in cygwin. But it complains libgcj.specwasn't found
- From: Bryce McKinlay <bryce at waitaki dot otago dot ac dot nz>
- To: Chenfu Wang <Chenfu dot Wang at teraflops dot com>
- Cc: gcc at gnu dot org
- Date: Wed, 29 May 2002 13:42:01 +1200
- Subject: Re: gcj was successfully compiled in cygwin. But it complains libgcj.specwasn't found
- References: <002001c20644$6a9b4a60$1a8cadd5@shunli>
Chenfu Wang wrote:
>Well, at least I see gcj and its version is 3.2.
>But , when I just type gcj, it says:
>gcj:libgcj.spec: No such file or directory
>I try to export LD_LIBRARY_PATH=/usr/local/lib ( I found libgcj.spec in
>It doesn't help!
This is odd. /usr/local/lib is the correct location for this file. Any
ideas why gcj isn't finding it?
>Second try is copy the libfcj.spec into my current directory. It compiles
>java file. However , when I run the compiled binary HelloWorld,
>assertion "!(addr & FLAGS)" failed: file
>"../../gcc/libjava/java/lang/natObject.cc", line 772
>Aborted (core dumped)
This is an alignment problem. Apparantly the cygwin binutils doesn't
support (or ignores) gcj's alignment directives for static data (but a
mingw cross linker works fine? hmm...)
Please try the patch below and let me know if it fixes the problem.
2002-05-29 Bryce McKinlay <email@example.com>
* configure.host: Disable hash synchronization and slow_pthread_self
RCS file: /cvs/gcc/gcc/libjava/configure.host,v
retrieving revision 1.32
diff -u -r1.32 configure.host
--- configure.host 21 Apr 2002 09:37:48 -0000 1.32
+++ configure.host 29 May 2002 01:39:12 -0000
@@ -136,6 +136,10 @@