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]

Fw: Error while cross-compiling for PPC64 on x86(host)


Hi
?? I am trying to get a basic 'helloworld' LKM(Linux Kernel module) cross-compiled on my RHEL 5.5 x86 M/C for a PPC64 ?M/C??

Details of the PPC M/C (Target) are :
#uname -a : 2.6.32.9-0.5-ppc64 SMP
#gcc -v :?gcc version 4.3.4 [gcc-4_3-branch revision 152973] (SUSE Linux)
#/lib/libc.so.6GNU C Library stable release version 2.11.1 (20100118)
binutils version: 2.20.0?

On the Host M/C where the crosstool utility is downloaded, my?gcc-4.1.1-glibc-2.3.6.dat looks as
 below:
BINUTILS_DIR=binutils-2.20GCC_CORE_DIR=gcc-3.3.6GCC_DIR=gcc-4.3.4GLIBC_DIR=glibc-2.11.1LINUX_DIR=linux-2.6.32.9LINUX_SANITIZED_HEADER_DIR=linux-libc-headers-2.6.12.0GLIBCTHREADS_FILENAME=glibc-linuxthreads-2.3.6GDB_DIR=gdb-6.5
and run 'demo-power970.sh' i get the following error:x86_64-host_unknown-linux-gnu-ar rc ./libiberty.a \	 ?./regex.o ./cplus-dem.o ./cp-demangle.o ./md5.o ./alloca.o ./argv.o ./choose-temp.o ./concat.o ./cp-demint.o ./dyn-string.o ./fdmatch.o ./fibheap.o ./filename_cmp.o ./floatformat.o ./fnmatch.o ./fopen_unlocked.o ./getopt.o ./getopt1.o ./getpwd.o ./getruntime.o ./hashtab.o ./hex.o ./lbasename.o ./lrealpath.o ./make-relative-prefix.o ./make-temp-file.o ./objalloc.o ./obstack.o ./partition.o ./pexecute.o ./physmem.o
 ./pex-common.o ./pex-one.o ./pex-unix.o ./safe-ctype.o ./sort.o ./spaces.o ./splay-tree.o ./strerror.o ./strsignal.o ./unlink-if-ordinary.o ./xatexit.o ./xexit.o ./xmalloc.o ./xmemdup.o ./xstrdup.o ./xstrerror.o ./xstrndup.o ?./mkstemps.o ./strncmp.omake[2]: x86_64-host_unknown-linux-gnu-ar: Command not found

I tried another approach wherein i changed the binutils to 2.16.1 ( a previously working version) the gcc version to 4.1.2 , compilation et al goes through fine. I then compile my helloworld.ko against the 2.6.32.9.-05 kernel hdrs( that i obtained from my PPC M/C itself) and this time when i tried to 'insmod' this cross-compiled driver on the PPC M/C i get an error saying :
hello: disagrees about version of symbol module_layout

Could anyone pls help me resolve this
 problem?

Thanks
Som















      




--
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]