This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Compile problem on gcc-4.2-20060204
- From: "Rui Wang" <Rui dot Wang at newcastle dot ac dot uk>
- To: <gcc at gcc dot gnu dot org>
- Date: Sun, 5 Feb 2006 15:30:25 -0000
- Subject: Compile problem on gcc-4.2-20060204
Hi,
I came across the following problem while I was trying to compile
gcc-4.2-20060204 on RedHat Linux.
checking for shared library run path origin... (cached) done
checking for iconv... (cached) yes
checking for iconv declaration... (cached)
extern size_t iconv (iconv_t cd, char * *inbuf, size_t
*inbytesleft, char * *outbuf, size_t *outbytesleft);
checking for X... disabled
configure: error: GTK+ peers requested but no X library available
configure: error: /bin/sh
'/root/GCC/gcc-4.2-20060204/libjava/classpath/configure' failed for
classpath
make[1]: *** [configure-target-libjava] Error 1
make[1]: Leaving directory `/root/GCC/gcc-build'
make: *** [bootstrap] Error 2
The shell script I use to call ./configure is:
GCC_SRC_DIR=/root/GCC/gcc-4.2-20060204
export BOOT_CFLAGS='-g0 -O2 -pipe'
export CFLAGS='-g0 -O2 -pipe'
export CXXFLAGS='-g0 -O2 -pipe'
export DEBUG_FLAGS='-g0'
export LDFLAGS='-s'
export LIBRARY_PATH=/usr/lib:/usr/X11R6/lib
$GCC_SRC_DIR/configure --enable-languages=c,c++,java --enable-threads\
--disable-nls --disable-debug \
--with-gcc --with-gnu-as --with-gnu-ld \
--disable-shared \
--enable-libgcj --enable-java-awt=gtk,xlib --without-x
--enable-java-gc=boehm \
--disable-libgcj-debug
The shell script I use to make is:
MAKE=make
$MAKE \
BOOT_CFLAGS='-O2 -pipe -g0' \
CFLAGS='-O2 -pipe -g0' CXXFLAGS='-O2 -pipe -g0' \
LIBCFLAGS='-O2 -pipe -g0' \
LIBCXXFLAGS='-O2 -pipe -g0 -fno-implicit-templates' \
DEBUG_FLAGS='-g0' LIBGCC2_DEBUG_CFLAGS='-g0' \
JCFLAGS='-pipe -g0' GCJFLAGS='-O2 -pipe -g0' \
LIBGCJ_CFLAGS='-O2 -pipe -g0' \
LIBGCJ_CXXFLAGS='-O2 -pipe -g0 -fno-implicit-templates' \
LDFLAGS='-s' bootstrap
I am not sure I have set the parameters right. Any suggestions are
highly welcomed.
Regards
Rui