This is the mail archive of the java-discuss@sources.redhat.com 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]

Re: [ANNOUNCE] Libgcj in gcc tree availability.


Alexandre Petit-Bianco wrote:

> The libgcj (libjava, libffi and boehm-gc) have been brought to the top
> level of the gcc tree.

Unfortunately, I can't build libjava in the new tree (at least not without
hacking the generated Makefile):

../../../libjava/posix.cc: In function `void _Jv_gettimeofday(timeval*)':
../../../libjava/posix.cc:41: invalid use of undefined type `struct timeval'

/usr/include/sys/select.h:46: forward declaration of `struct timeval'
../../../libjava/posix.cc:42: invalid use of undefined type `struct timeval'

/usr/include/sys/select.h:46: forward declaration of `struct timeval'
../../../libjava/posix.cc: In function `int _Jv_select(int, fd_set*,
fd_set*,
   fd_set*, timeval*)':

GNU C++ version 2.97 20001209 (experimental) (i686-pc-linux-gnu) compiled by
GNU C version 2.97 20001122 (experimental).
ignoring nonexistent directory
"/home/bryce/cvs/gcc/build/lib/gcc-lib/i686-pc-linux-gnu/2.97/include"
ignoring nonexistent directory
"/home/bryce/cvs/gcc/build/i686-pc-linux-gnu/include"
ignoring duplicate directory "../../../libjava"
ignoring duplicate directory "include"
ignoring duplicate directory "../../../libjava/libltdl"
ignoring duplicate directory "/home/bryce/gcc/i686-pc-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:
 /home/bryce/cvs/gcc/build/i686-pc-linux-gnu/libstdc++-v3
 /home/bryce/cvs/gcc/libstdc++-v3/include/std
 /home/bryce/cvs/gcc/libstdc++-v3/include/c
 /home/bryce/cvs/gcc/libstdc++-v3/libsupc++
 /home/bryce/cvs/gcc/libstdc++-v3/include
 /home/bryce/cvs/gcc/build/i686-pc-linux-gnu/libstdc++-v3/libio
 /home/bryce/cvs/gcc/libstdc++-v3/libio
 /home/bryce/cvs/gcc/libstdc++-v3/libmath
 /home/bryce/cvs/gcc/build/i686-pc-linux-gnu/libstdc++-v3/include
 .
 ../../../libjava
 include
 ../../../libjava/include
 ../../../boehm-gc
 ../boehm-gc
 ../../../libjava/libltdl
 ../../../gcc
 ../../../include
 ../../../zlib
 ../../../libffi/include
 ../libffi/include
 /home/bryce/cvs/gcc/build/gcc/include
 /home/bryce/gcc/i686-pc-linux-gnu/include
 /home/bryce/gcc/include
 /home/bryce/gcc/lib/gcc-lib/i686-pc-linux-gnu/2.97/include
 /usr/include
End of search list.

It's picking up the wrong config.h, since the libstdc++-v3 include dirs have
pre-empted the libjava ones.

It looks like these libstdc++-v3 "-I" definitions are getting passed down
from the top-level configure in the $(CXX) variable?

  [ bryce ]



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