This is the mail archive of the java@gcc.gnu.org mailing list for the Java 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]

Had to hand-modify makefiles to get libjava to build - did I get configuration options wrong?


Doing "make bootstrap" on 3.2.1 release on RedHat 8.0.
In directories:
 source - /home/scott/gcc/release321/gcc.orig
 build - /home/scott/gcc/release321/obj.orig
Using this configuration (somewhat based on the RedHat gcc 3.2 source RPM
spec file):
../gcc.orig/configure
 --prefix=/usr
 --mandir=/usr/share/man
 --infodir=/usr/share/info
 --enable-shared
 --enable-threads=posix
 --disable-checking
 --host=i386-redhat-linux
 --enable-java-awt=xlib
 --enable-libgcj
 --enable-languages=java
 --with-system-zlib
 --enable-__cxa_atexit

I get the error shown later in this message.  The file it's trying to
include ("vector") is:
/home/scott/gcc/release321/obj.orig/i386-redhat-linux/libstdc++-v3/include/v
ector
Once you fix that (modify INCLUDES in the libjava Makefile), it's looking
for:
/home/scott/gcc/release321/gcc.orig/libstdc++-v3/libsupc++/exception_defines
.h
Then bits/c++config.h:
/home/scott/gcc/release321/obj.orig/i386-redhat-linux/libstdc++-v3/include/i
386-redhat-linux/bits/c++config.h

So altogether, I had to add the following to the INCLUDES definition:
        -I/home/scott/gcc/release321/obj.orig/i386-redhat-linux/libstdc++-v3
/include \
        -I/home/scott/gcc/release321/gcc.orig/libstdc++-v3/libsupc++ \
        -I/home/scott/gcc/release321/obj.orig/i386-redhat-linux/libstdc++-v3
/include/i386-redhat-linux

This got me building, but I can't help thinking it wouldn't have been
necessary if I had the configuration options right.  What should I have done
to avoid the manual Makefile changes?

Here is the original error, including the command line which make spat out:

/home/scott/gcc/release321/obj.orig/gcc/xgcc
-shared-libgcc
-B/home/scott/gcc/release321/obj.orig/gcc/
-nostdinc++
-L/home/scott/gcc/release321/obj.orig/i386-redhat-linux/libstdc++-v3/src
-L/home/scott/gcc/release321/obj.orig/i386-redhat-linux/libstdc++-v3/src/.li
bs
-B/usr/i386-redhat-linux/bin/
-B/usr/i386-redhat-linux/lib/
-isystem
/usr/i386-redhat-linux/include
-DHAVE_CONFIG_H
-I.
-I../../../gcc.orig/libjava
-I./include
-I./gcj
-I../../../gcc.orig/libjava
-Iinclude
-I../../../gcc.orig/libjava/include
-I../../../gcc.orig/libjava/../boehm-gc/include
-DGC_LINUX_THREADS=1
-D_REENTRANT=1
-DSILENT=1
-DNO_SIGNALS=1
-DNO_EXECUTE_PERMISSION=1
-DALL_INTERIOR_POINTERS=1
-DJAVA_FINALIZATION=1
-DGC_GCJ_SUPPORT=1
-DATOMIC_UNCOLLECTABLE=1
-I../../../gcc.orig/libjava/libltdl
-I../../../gcc.orig/libjava/libltdl
-I../../../gcc.orig/libjava/.././libjava/../gcc
-I../../../gcc.orig/libjava/../libffi/include
-I../libffi/include
-fno-rtti
-fnon-call-exceptions
-fdollars-in-identifiers
-D__NO_MATH_INLINES
-ffloat-store
-I/usr/X11R6/include
-W
-Wall
-D_GNU_SOURCE
-DPREFIX=\"/usr\"
-g
-O2
-D_GNU_SOURCE
-MD
-MT gnu/gcj/xlib/natClip.lo
-MF gnu/gcj/xlib/natClip.pp
-c ../../../gcc.orig/libjava/gnu/gcj/xlib/natClip.cc
-fPIC
-DPIC
-o gnu/gcj/xlib/.libs/natClip.o


../../../gcc.orig/libjava/gnu/gcj/xlib/natClip.cc:15:18: vector: No such
file or directory
../../../gcc.orig/libjava/gnu/gcj/xlib/natClip.cc:26: syntax error before
`;'
   token
../../../gcc.orig/libjava/gnu/gcj/xlib/natClip.cc: In member function `void
   gnu::gcj::xlib::Clip::init(AWTRectArray*)':


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