Re: Problems building arm-linux-gcj with latest trunk (gcc 4.4.0):

Andrew Haley <[email protected]>
Newsgroups gmane.comp.gcc.java.devel
Message-ID <[email protected]>
ffileppo wrote:
> Hi all,
> 
> I'm trying to build gcj for arm target using lastest trunk (gcc 4.4.0)
> 
> Here is my configure:
> 
> ../configure --prefix=/root/tmp/f8/install --with-sysroot=/mnt/new --disable-libssp --disable-libgomp --disable-libmudflap --enable-libgcj --disable-bootstrap --disable-multilib --disable-static --disable-sjlj-exceptions --target=arm-linux-uclibcgnueabi --enable-languages=c,c++,java --with-build-time-tools=/root/tmp/buildroot/build_arm/staging_dir/usr/arm-linux-uclibcgnueabi/bin --disable-libstdcxx-debug
> 
> I have my arm toolchain (built using buildroot) placed in /root/tmp/buildroot/build_arm/staging_dir/usr/arm-linux-uclibcgnueabi/bin
> 
> During compilaton I get this error:
> 
> libtool: compile:  /root/tmp/trunk/new/./gcc/xgcc -shared-libgcc -B/root/tmp/trunk/new/./gcc -nostdinc++ -L/root/tmp/trunk/new/arm-linux-uclibcgnueabi/libstdc++-v3/src -L/root/tmp/trunk/new/arm-linux-uclibcgnueabi/libstdc++-v3/src/.libs -B/root/tmp/f8/install/arm-linux-uclibcgnueabi/bin/ -B/root/tmp/f8/install/arm-linux-uclibcgnueabi/lib/ -isystem /root/tmp/f8/install/arm-linux-uclibcgnueabi/include -isystem /root/tmp/f8/install/arm-linux-uclibcgnueabi/sys-include -DHAVE_CONFIG_H -I. -I../../../libjava -I./include -I./gcj -I../../../libjava -Iinclude -I../../../libjava/include -I../../../libjava/classpath/include -Iclasspath/include -I../../../libjava/classpath/native/fdlibm -I../../../libjava/../boehm-gc/include -I../boehm-gc/include -I../../../libjava/libltdl -I../../../libjava/libltdl
  -I../../../libjava/.././libjava/../gcc -I../../../libjava/../zlib -I../../../libjava/../libffi/include -I../libffi/include -fno-rtti -fnon-call-exceptions -fdollars-in-identifiers -Wswitch-
enum -D_FILE_OFFSET_BITS=64 -Wextra -Wall -D_GNU_SOURCE -DPREFIX=\"/root/tmp/f8/install\" -DTOOLEXECLIBDIR=\"/root/tmp/f8/install/arm-linux-uclibcgnueabi/lib\" -DJAVA_HOME=\"/root/tmp/f8/install\" -DBOOT_CLASS_PATH=\"/root/tmp/f8/install/share/java/libgcj-4.4.0.jar\" -DJAVA_EXT_DIRS=\"/root/tmp/f8/install/share/java/ext\" -DGCJ_ENDORSED_DIRS=\"/root/tmp/f8/install/share/java/gcj-endorsed\" -DGCJ_VERSIONED_LIBDIR=\"/root/tmp/f8/install/lib/gcj-4.4.0-9\" -DPATH_SEPARATOR=\":\" -DECJ_JAR_FILE=\"\" -DLIBGCJ_DEFAULT_DATABASE=\"/root/tmp/f8/install/lib/gcj-4.4.0-9/classmap.db\" -DLIBGCJ_DEFAULT_DATABASE_PATH_TAIL=\"gcj-4.4.0/classmap.db\" -g -O2 -D_GNU_SOURCE -MT jni-libjvm.lo -MD -MP -MF .deps/jni-libjvm.Tpo -c ../../../libjava/jni-libjvm.cc  -fPIC -DPIC -o .libs/jni-libjvm.o
> In file included from ../../../libjava/java/lang/String.h:10,
>                  from ../../../libjava/java/lang/Class.h:19,
>                  from ../../../libjava/gcj/cni.h:17,
>                  from ../../../libjava/jni-libjvm.cc:11:
> ../../../libjava/gcj/array.h: In constructor '__JArray::__JArray()':
> ../../../libjava/gcj/array.h:24: error: non-trivial conversion at assignment
> void
> struct __JArray * const
> <retval> = this
> ../../../libjava/gcj/array.h:24: internal compiler error: verify_gimple failed
> Please submit a full bug report,
> with preprocessed source if appropriate.
> 
> 
> I've tried to search in Google but I could not find anything usefull
> 
> Maybe this problem is due I'm using an arm toolchain based on 4.2.3 (that was the latest gcc version availabe from buildroot) which
> is not compatible with gcc 4.4.0
> 
> I dont know how to build from scratch a new arm toolchain based on 4.4.0 (I would like to use uClibc also); I've always used
> only buildroot to build my toolchains.

This one is new to me.  It clearly is a bug in the current ARM compiler.

Andrew.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.