This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Failure to boot into cross built environment (iWMMXt NPTL EABI)


Mike,
I have attached hopefully the only changed I needed to make to the glibc-2.4-r2
ebuild.  It is building now so fingers crossed.

My changes to the toolchain.eclass are rather more substantial and need
cleaning up somewhat.  Most of the changes to the glibc ebuild replicated
changes you made anyway such as removing linuxthreads etc.  Since I've got you
attention I'd like to ask a question about the gcc ebuild; when a
cross-<target>/gcc is installed the gcc library path gets added via LDPATH to
the env.d -> ld.so.conf, this puts incompatible libraries in the library search
path which causes dynamic linking to then fail for native programs that find
the alien library before the native one they seek.  I assume this is not
intended!  I made the LDPATH addition conditional on is_crosscompile and CHOST
!= CTARGET, is that OK?

Another thing that's come up is when cross-emerging (with ROOT=<target-root>
CHOST=<target> CBUILD=<build> etc), CBUILD is being overridden by CHOST
somewhere in the emerge process.  I had to hack a bit to get it working, do you
know what might be causing that?  I have also been adding cross-emerge fixed
ebuilds to my local overlay while I've been working on this, I'll get those
sent of to the relevant maintainers.

Steve


	
	
		
___________________________________________________________ 
Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with voicemail http://uk.messenger.yahoo.com
--- /usr/portage/sys-libs/glibc/glibc-2.4-r2.ebuild	2006-04-22 20:07:07.000000000 +0100
+++ glibc-2.4-r2.ebuild	2006-04-24 00:39:33.401884482 +0100
@@ -224,6 +224,7 @@
 		ARCH=$(tc-arch) \
 		epatch "${WORKDIR}"/patches
 	fi
+	epatch "${FILESDIR}"/binutils-cvs-configure.patch
 
 	gnuconfig_update
 }
@@ -643,6 +644,9 @@
 			# Punt this when amd64's 2004.3 is removed
 			CFLAGS_x86="-m32"
 		;;
+		arm)
+			[[ ${CTARGET} == *-iwmmxt-*eabi ]] && append-flags "-march=iwmmxt -mcpu=iwmmxt -mabi=aapcs"
+		;;
 		ppc)
 			append-flags "-freorder-blocks"
 		;;
@@ -857,6 +861,10 @@
 
 	[[ ${CTARGET} == *-softfloat-* ]] && myconf="${myconf} --without-fp"
 
+	if [[ ${CTARGET} == *-iwmmxt-*eabi ]] ; then
+		myconf="${myconf} --with-abi=aapcs --with-arch=iwmmxt"
+	fi
+
 	if [ "$1" == "linuxthreads" ] ; then
 		if want_tls ; then
 			myconf="${myconf} --with-tls"
--- /dev/null	2000-10-22 01:01:00.000000000 +0100
+++ files/binutils-cvs-configure.patch	2006-04-11 23:33:57.137391380 +0100
@@ -0,0 +1,20 @@
+--- configure.shit	2006-04-11 19:52:55.805850000 +0100
++++ configure	2006-04-11 19:59:48.985850000 +0100
+@@ -4048,7 +4048,7 @@
+   # Found it, now check the version.
+   echo "$as_me:$LINENO: checking version of $AS" >&5
+ echo $ECHO_N "checking version of $AS... $ECHO_C" >&6
+-  ac_prog_version=`$AS --version 2>&1 | sed -n 's/^.*GNU assembler.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
++  ac_prog_version=`$AS --version 2>&1 | sed 's/ 06..../ 2\.16\.99\.9/g' | sed -n 's/^.*GNU assembler.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
+   case $ac_prog_version in
+     '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
+     2.1[3-9]*)
+@@ -4109,7 +4109,7 @@
+   # Found it, now check the version.
+   echo "$as_me:$LINENO: checking version of $LD" >&5
+ echo $ECHO_N "checking version of $LD... $ECHO_C" >&6
+-  ac_prog_version=`$LD --version 2>&1 | sed -n 's/^.*GNU ld.* \([0-9][0-9]*\.[0-9.]*\).*$/\1/p'`
++  ac_prog_version=`$LD --version 2>&1 | sed 's/ 06..../ 2\.16\.99\.9/g' | sed -n 's/^.*GNU ld.* \([0-9][0-9]*\.[0-9.]*\).*$/\1/p'`
+   case $ac_prog_version in
+     '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
+     2.1[3-9]*)

--
For unsubscribe information see http://sourceware.org/lists.html#faq

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