I updated to the latest cygwin today.
I have a trivial java program. (BTW this worked for me a few weeks ago). Windows XP professional.
There seem to be problems in libgcj.a:
Here is the output:
% gcj -v -save-temps --main=Foo -o foo Foo.java
Reading specs from /usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/specs
Reading specs from /usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/../../../libgcj.spec
rename spec lib to liborig
Configured with: /GCC/gcc-3.3.1-3/configure --with-gcc --with-gnu-ld --with-gnu-as --prefix=/usr --exec-prefix=/usr --sysconfdir=/etc --libdir=/usr/lib --libexecdir=/usr/sbin --mandir=/usr/share/man --infodir=/usr/share/info --enable-languages=c,ada,c++,f77,pascal,java,objc --enable-libgcj --enable-threads=posix --with-system-zlib --enable-nls --without-included-gettext --enable-interpreter --enable-sjlj-exceptions --disable-version-specific-runtime-libs --enable-shared --disable-win32-registry --enable-java-gc=boehm --disable-hash-synchronization --verbose --target=i686-pc-cygwin --host=i686-pc-cygwin --build=i686-pc-cygwin
Thread model: posix
gcc version 3.3.1 (cygming special)
/usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/jc1.exe Foo.java -fno-use-divide-subroutine -fuse-boehm-gc -fnon-call-exceptions -fkeep-inline-functions -quiet -dumpbase Foo.java -auxbase Foo -g1 -version -o Foo.s
GNU Java version 3.3.1 (cygming special) (i686-pc-cygwin)
compiled by GNU C version 3.3.1 (cygming special).
GGC heuristics: --param ggc-min-expand=99 --param ggc-min-heapsize=130918
Class path starts here:
./
/usr/share/java/libgcj-3.3.1.jar/ (system) (zip)
/usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/../../../../i686-pc-cygwin/bin/as.exe --traditional-format -o Foo.o Foo.s
/usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/jvgenmain.exe Foomain Foomain.i
/usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/cc1.exe Foomain.i -quiet -dumpbase Foomain.c -g1 -version -fdollars-in-identifiers -o Foomain.s
GNU C version 3.3.1 (cygming special) (i686-pc-cygwin)
compiled by GNU C version 3.3.1 (cygming special).
GGC heuristics: --param ggc-min-expand=99 --param ggc-min-heapsize=130918
/usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/../../../../i686-pc-cygwin/bin/as.exe --traditional-format -o Foomain.o Foomain.s
/usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/collect2.exe -Bdynamic --dll-search-prefix=cyg -o foo.exe /usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/../../../crt0.o /usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/crtbegin.o -L/usr/lib/gcc-lib/i686-pc-cygwin/3.3.1 -L/usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/../../.. Foomain.o Foo.o -lgcc -lgcj -lm -liconv -lz -lgcc -lcygwin -luser32 -lkernel32 -ladvapi32 -lshell32 -lgcc /usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/crtend.o
/usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/../../../libgcj.a(URL.o)(.text+0x11f0):URL.java: multiple definition of `no symbol'
/usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/../../../libgcj.a(URL.o)(.text+0x11d0):URL.java: first defined here
/usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/../../../libgcj.a(URL.o)(.data+0x4a0):URL.java: multiple definition of `no symbol'
/usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/../../../libgcj.a(URL.o)(.text+0x11d0):URL.java: first defined here
/usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/../../../libgcj.a(URL.o)(.bss+0x4):URL.java: multiple definition of `no symbol'
/usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/../../../libgcj.a(URL.o)(.text+0x11d0):URL.java: first defined here
/usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/../../../libgcj.a(URL.o)(.bss+0x0):URL.java: multiple definition of `no symbol'
/usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/../../../libgcj.a(URL.o)(.text+0x11d0):URL.java: first defined here
/usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/../../../libgcj.a(URL.o)(.data+0x0):URL.java: multiple definition of `no symbol'
/usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/../../../libgcj.a(URL.o)(.text+0x11d0):URL.java: first defined here
/usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/../../../libgcj.a(URL.o)(.data+0x3e0):URL.java: multiple definition of `no symbol'
/usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/../../../libgcj.a(URL.o)(.text+0x11d0):URL.java: first defined here
/usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/../../../libgcj.a(DSAParameterSpec.o)(.data+0xc0):DSAParameterSpec.java: multiple definition of `no symbol'
/usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/../../../libgcj.a(URL.o)(.text+0x11d0):URL.java: first defined here
/usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/../../../libgcj.a(DSAParameterSpec.o)(.data+0x100):DSAParameterSpec.java: multiple definition of `no symbol'
/usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/../../../libgcj.a(URL.o)(.text+0x11d0):URL.java: first defined here
/usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/../../../libgcj.a(VMClassLoader.o)(.text+0x1a5):VMClassLoader.java: undefined reference to `java::net::URL::class$'
/usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/../../../libgcj.a(VMClassLoader.o)(.text+0x20e):VMClassLoader.java: undefined reference to `java::net::URL::class$'
/usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/../../../libgcj.a(VMClassLoader.o)(.text+0x2dd):VMClassLoader.java: undefined reference to `java::net::URL::class$'
/usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/../../../libgcj.a(VMClassLoader.o)(.text+0x356):VMClassLoader.java: undefined reference to `java::net::URL::class$'
/usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/../../../libgcj.a(Package.o)(.data+0x74):Package.java: undefined reference to `java::net::URL::class$'
/usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/../../../libgcj.a(CodeSource.o)(.data+0x34):CodeSource.java: more undefined references to `java::net::URL::class$' follow
/usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/../../../libgcj.a(DSAParameterGenerator.o)(.text+0x90):DSAParameterGenerator.java: undefined reference to `java::security::spec::DSAParameterSpec::class$'
/usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/../../../libgcj.a(DSAParameterGenerator.o)(.text+0xa7):DSAParameterGenerator.java: undefined reference to `java::security::spec::DSAParameterSpec::class$'
/usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/../../../libgcj.a(DSAParameterGenerator.o)(.text+0x2fa):DSAParameterGenerator.java: undefined reference to `java::security::spec::DSAParameterSpec::class$'
/usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/../../../libgcj.a(DSAParameters.o)(.text+0x16):DSAParameters.java: undefined reference to `java::security::spec::DSAParameterSpec::class$'
/usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/../../../libgcj.a(DSAParameters.o)(.text+0x2d):DSAParameters.java: undefined reference to `java::security::spec::DSAParameterSpec::class$'
/usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/../../../libgcj.a(DSAParameters.o)(.text+0x238):DSAParameters.java: more undefined references to `java::security::spec::DSAParameterSpec::class$' follow
collect2: ld returned 1 exit status
%
Thanks Horace
-- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/