[Bug java/14074] New: libgcj
scaccopardo at tiscali dot it
gcc-bugzilla@gcc.gnu.org
Sun Feb 8 15:56:00 GMT 2004
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
More information about the Gcc-bugs
mailing list