public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug java/14074] New: libgcj
@ 2004-02-08 15:56 scaccopardo at tiscali dot it
2004-02-08 16:04 ` [Bug java/14074] libgcj pinskia at gcc dot gnu dot org
0 siblings, 1 reply; 2+ messages in thread
From: scaccopardo at tiscali dot it @ 2004-02-08 15:56 UTC (permalink / raw)
To: gcc-bugs
Hi,
I followed instructions and this time
"make" started classes compilation!!!
But...
$ pwd
/usr/build
$ /usr/src/gcc-3.3.1-3/configure --enable-threads=win32 --enable-sjlj-
exceptions --enable-libgcj --enable-languages=c,c++,java
--prefix=/usr/local
Now I got this error:
/usr/build/gcc/xgcc -shared-libgcc -B/usr/build/gcc/ -nostdinc++ -L/usr/build/i6
86-pc-cygwin/libstdc++-v3/src -L/usr/build/i686-pc-cygwin/libstdc++-v3/src/.libs
-B/usr/local/i686-pc-cygwin/bin/ -B/usr/local/i686-pc-cygwin/lib/ -isystem /usr
/local/i686-pc-cygwin/include -DHAVE_CONFIG_H -I. -I/usr/src/gcc-3.3.1-3/libjava
-I./include -I./gcj -I/usr/src/gcc-3.3.1-3/libjava -Iinclude -I/usr/src/gcc-3.3
.1-3/libjava/include -I/usr/src/gcc-3.3.1-3/libjava/../boehm-gc/include -I/usr/s
rc/gcc-3.3.1-3/boehm-gc/include -DGC_WIN32_THREADS=1 -DSILENT=1 -DNO_SIGNALS=1 -
DNO_EXECUTE_PERMISSION=1 -DALL_INTERIOR_POINTERS=1 -DJAVA_FINALIZATION=1 -DGC_GC
J_SUPPORT=1 -DATOMIC_UNCOLLECTABLE=1 -I/usr/src/gcc-3.3.1-3/libjava/libltdl -I/u
sr/src/gcc-3.3.1-3/libjava/libltdl -I/usr/src/gcc-3.3.1-3/libjava/.././libjava/.
./gcc -I/usr/src/gcc-3.3.1-3/libjava/../zlib -I/usr/src/gcc-3.3.1-3/libjava/../l
ibffi/include -I../libffi/include -fno-rtti -fnon-call-exceptions -fdollars-in-i
dentifiers -Wswitch-enum -D__NO_MATH_INLINES -ffloat-store -W -Wall -D_GNU_SOURC
E -DPREFIX=\"/usr/local\" -g -O2 -Wp,-MD,.deps/win32-threads.pp -c /usr/src/gcc-
3.3.1-3/libjava/win32-threads.cc -o win32-threads.o
/usr/src/gcc-3.3.1-3/libjava/win32-threads.cc: In function `void
_Jv_ThreadStart(java::lang::Thread*, _Jv_Thread_t*, void
(*)(java::lang::Thread*))':
/usr/src/gcc-3.3.1-3/libjava/win32-threads.cc:311: error: `GC_CreateThread'
undeclared (first use this function)
/usr/src/gcc-3.3.1-3/libjava/win32-threads.cc:311: error: (Each undeclared
identifier is reported only once for each function it appears in.)
/usr/src/gcc-3.3.1-3/libjava/win32-threads.cc:311: warning: unused variable `
void*h'
/usr/src/gcc-3.3.1-3/libjava/win32-threads.cc: In function `void
_Jv_ThreadInterrupt(_Jv_Thread_t*)':
/usr/src/gcc-3.3.1-3/libjava/win32-threads.cc:331: warning: unused parameter `
_Jv_Thread_t*data'
make[2]: *** [win32-threads.lo] Error 1
make[2]: Leaving directory `/usr/build/i686-pc-cygwin/libjava'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/build/i686-pc-cygwin/libjava'
make: *** [all-target-libjava] Error 2
I tried to re-./configure with enable-threads=posix but I got
the same error...So I decided to see source code.
"GC_CreateThread" prototype is under #define(s): (in gc.h)
#if defined(GC_WIN32_THREADS) && !defined(__CYGWIN32__) && !defined(__CYGWIN__)
GC_API HANDLE WINAPI GC_CreateThread(
LPSECURITY_ATTRIBUTES lpThreadAttributes,
DWORD dwStackSize, LPTHREAD_START_ROUTINE lpStartAddress,
LPVOID lpParameter, DWORD dwCreationFlags, LPDWORD lpThreadId );
[...]
so I think __CYGWIN32__ or __CYGWIN__ are #defined.
Shouldn't I use win32 threads or is there a ./configure option
should I use ?
(Did I have to clean before re./configuring with posix threads and how?
Compilation took really a lot of time and I'd like not to loose compilation
results...)
Thanks in advance,
Davide
--
Summary: libgcj
Product: gcc
Version: 3.3.1
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: java
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: scaccopardo at tiscali dot it
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14074
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug java/14074] libgcj
2004-02-08 15:56 [Bug java/14074] New: libgcj scaccopardo at tiscali dot it
@ 2004-02-08 16:04 ` pinskia at gcc dot gnu dot org
0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-02-08 16:04 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-02-08 16:04 -------
You cannot use win32 threads on cygwin at all, you should be using pthreads. You will have to redo
the configure stage and compiling stage, I think this is the documentation somewhere. Also some one
has a binary snapshot of gcc (with java) for 3.4 somewhere.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14074
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-02-08 16:04 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-02-08 15:56 [Bug java/14074] New: libgcj scaccopardo at tiscali dot it
2004-02-08 16:04 ` [Bug java/14074] libgcj pinskia at gcc dot gnu dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).