This is the mail archive of the mailing list for the GCC 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: gcj was successfully compiled in cygwin. But it complains libgcj.specwasn't found

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
>there )
>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/", 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  <>

	* Disable hash synchronization and slow_pthread_self
	for cygwin.

RCS file: /cvs/gcc/gcc/libjava/,v
retrieving revision 1.32
diff -u -r1.32
---	21 Apr 2002 09:37:48 -0000	1.32
+++	29 May 2002 01:39:12 -0000
@@ -136,6 +136,10 @@
+  *-cygwin*)
+	enable_hash_synchronization_default=no
+	slow_pthread_self=
+	;;
 libgcj_cflags="${libgcj_cflags} ${libgcj_flags}"

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