This is the mail archive of the java-patches@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]

[patch] libjava build failure on arm-linux-gnueabi


I didn't build the trunk for some time, now I get:

/bin/bash ./libtool --tag=GCJ --mode=link
/build/buildd/gcc-snapshot-20090108/build/gcc/gcj
-B/build/buildd/gcc-snapshot-20090108/build/arm-linux-gnueab
i/libjava/ -B/build/buildd/gcc-snapshot-20090108/build/gcc/
-L/build/buildd/gcc-snapshot-20090108/build/arm-linux-gnueabi/libjava -g -O2  -o
ecjx -findi
rect-dispatch --main=org.eclipse.jdt.internal.compiler.batch.GCCMain
-Djava.class.path=/usr/share/java/eclipse-ecj.jar ecjx.o -L/build/buildd/gcc-snapsh
ot-20090108/build/arm-linux-gnueabi/libjava/.libs
libtool: link: /build/buildd/gcc-snapshot-20090108/build/gcc/gcj
-B/build/buildd/gcc-snapshot-20090108/build/arm-linux-gnueabi/libjava/
-B/build/buildd/
gcc-snapshot-20090108/build/gcc/ -g -O2 -o ecjx -findirect-dispatch
--main=org.eclipse.jdt.internal.compiler.batch.GCCMain -Djava.class.path=/usr/share/
java/eclipse-ecj.jar ecjx.o
-L/build/buildd/gcc-snapshot-20090108/build/arm-linux-gnueabi/libjava
-L/build/buildd/gcc-snapshot-20090108/build/arm-linux
-gnueabi/libjava/.libs
/usr/bin/ld: cannot find -lstdc++
collect2: ld returned 1 exit status
make[5]: *** [ecjx] Error 1
make[5]: Leaving directory
`/build/buildd/gcc-snapshot-20090108/build/arm-linux-gnueabi/libjava'
make[4]: *** [all-recursive] Error 1

I'm testing now

	* Makefile.am (ecjx_LDADD): Add $(extra_ldflags).
	* Makefile.in: Regenerate.

Ok to checkin, if bootstrap succeeds on arm-linux-gnueabi?

  Matthias

Index: Makefile.am
===================================================================
--- Makefile.am	(revision 143198)
+++ Makefile.am	(working copy)
@@ -888,7 +888,7 @@
 ecjx_LDFLAGS = $(ECJX_BASE_FLAGS) $(ECJ_BUILD_JAR) -fbootclasspath=$(BOOTCLASSPATH)
 endif !ENABLE_SHARED

-ecjx_LDADD = -L$(here)/.libs
+ecjx_LDADD = -L$(here)/.libs $(extra_ldflags)
 ecjx_DEPENDENCIES = libgcj.la libgcj.spec
 if USE_LIBGCJ_BC
 ecjx_DEPENDENCIES += libgcj_bc.la


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