[Bug libgcj/11288] New: Libjava is not made when making linux cross cygwin compiler.
kredba at mistral dot cz
gcc-bugzilla@gcc.gnu.org
Sun Jun 22 20:38:00 GMT 2003
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11288
Summary: Libjava is not made when making linux cross cygwin
compiler.
Product: gcc
Version: 3.3
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: libgcj
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: kredba at mistral dot cz
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: i686-pc-linux
GCC host triplet: i686-pc-linux
GCC target triplet: i686-pc-cygwin
I am using gcc-3.3 compiler to build cross gcc compiler.
gcc -v :
Reading specs from ./../lib/gcc-lib/i686-pc-linux-gnu/3.3/specs
Configured with: ../gcc-3.3/configure --prefix=/usr/local/gcc-3.3
--enable-shared --enable-threads=posix --disable-checking --enable-long-long
--enable-__cxa_atexit --enable-languages=c,c++,ada,f77,objc,java --with-system-zlib
Thread model: posix
gcc version 3.3
./xgcc -v
Reading specs from /usr/local/xcygwin/lib/gcc-lib/i686-pc-cygwin/3.3/specs
Configured with: ../gcc-3.3/configure --prefix=/usr/local/xcygwin --with-gnu-as
--with-gnu-ld --with-newlib --disable-nls --enable-sjlj-exceptions
--enable-languages=c,c++,objc,f77,ada,java
--with-headers=/usr/local/xcygwin/include --target=i686-pc-cygwin --enable-libgcj
Thread model: single
gcc version 3.3
Target gcc -v :
Headers and newlib are from cygwin-1.3.22-1 package.
If I do this without java and ada languages enabled, cross compiler is builded
and it is making working binaries.
/home/dave/cross-cygwin/gcc-build/gcc/xgcc -shared-libgcc
-B/home/dave/cross-cygwin/gcc-build/gcc/ -nostdinc++
-L/home/dave/cross-cygwin/gcc-build/i686-pc-cygwin/libstdc++-v3/src
-L/home/dave/cross-cygwin/gcc-build/i686-pc-cygwin/libstdc++-v3/src/.libs
-B/usr/local/xcygwin/i686-pc-cygwin/bin/
-B/usr/local/xcygwin/i686-pc-cygwin/lib/ -isystem
/usr/local/xcygwin/i686-pc-cygwin/include -DHAVE_CONFIG_H -I.
-I../../../gcc-3.3/libjava -I./include -I./gcj -I../../../gcc-3.3/libjava
-Iinclude -I../../../gcc-3.3/libjava/include
-I../../../gcc-3.3/libjava/../boehm-gc/include -DSILENT=1 -DNO_SIGNALS=1
-DNO_EXECUTE_PERMISSION=1 -DALL_INTERIOR_POINTERS=1 -DJAVA_FINALIZATION=1
-DGC_GCJ_SUPPORT=1 -DATOMIC_UNCOLLECTABLE=1 -DNO_SIGSET=1 -DNO_DEBUGGING=1
-I../../../gcc-3.3/libjava/.././libjava/../gcc
-I../../../gcc-3.3/libjava/../zlib -I../../../gcc-3.3/libjava/../libffi/include
-I../libffi/include -fno-rtti -fnon-call-exceptions -fdollars-in-identifiers
-Wswitch-enum -D__NO_MATH_INLINES -ffloat-store -I/usr/X11R6/include -W -Wall
-D_GNU_SOURCE -DPREFIX=\"/usr/local/xcygwin\" -g -O2 -MD -MT
java/net/natInetAddress.lo -MF java/net/natInetAddress.pp -c
../../../gcc-3.3/libjava/java/net/natInetAddress.cc -o java/net/natInetAddress.o
../../../gcc-3.3/libjava/java/net/natInetAddress.cc:59: error: declaration of C
function `int gethostname(char*, int)' conflicts with
/usr/local/xcygwin/i686-pc-cygwin/include/sys/unistd.h:168: error: previous
declaration `int gethostname(char*, unsigned int)' here
make[2]: *** [java/net/natInetAddress.lo] Error 1
make[2]: Leaving directory
`/home/dave/cross-cygwin/gcc-build/i686-pc-cygwin/libjava'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/home/dave/cross-cygwin/gcc-build/i686-pc-cygwin/libjava'
make: *** [all-target-libjava] Error 2
More information about the Gcc-bugs
mailing list