LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices

Reply
 
Search this Thread
Old 03-28-2010, 09:01 PM   #1
smeezekitty
Senior Member
 
Registered: Sep 2009
Location: Washington U.S.
Distribution: M$ Windows / Debian / Ubuntu / DSL / many others
Posts: 2,220

Rep: Reputation: 164Reputation: 164
Cross compile linux kernel from x86 to powerpc has error


Heres the output:
Code:
debian:~/linux-2.6.31.12# make ARCH=powerpc CROSS_COMPILE=powerpc-linux-
  CHK     include/linux/version.h
  CHK     include/linux/utsrelease.h
  SYMLINK include/asm -> include/asm-powerpc
  CALL    scripts/checksyscalls.sh
  CHK     include/linux/compile.h
  CALL    arch/powerpc/kernel/systbl_chk.sh
  VDSO32A arch/powerpc/kernel/vdso32/gettimeofday.o

arch/powerpc/kernel/vdso32/gettimeofday.S: Assembler messages:
arch/powerpc/kernel/vdso32/gettimeofday.S:34: Error: unknown pseudo-op: `.cfi_startproc'
arch/powerpc/kernel/vdso32/gettimeofday.S:36: Error: unknown pseudo-op: `.cfi_register'
arch/powerpc/kernel/vdso32/gettimeofday.S:81: Error: unknown pseudo-op: `.cfi_endproc'
arch/powerpc/kernel/vdso32/gettimeofday.S:91: Error: unknown pseudo-op: `.cfi_startproc'
arch/powerpc/kernel/vdso32/gettimeofday.S:99: Error: unknown pseudo-op: `.cfi_register'
arch/powerpc/kernel/vdso32/gettimeofday.S:161: Error: unknown pseudo-op: `.cfi_endproc'
arch/powerpc/kernel/vdso32/gettimeofday.S:172: Error: unknown pseudo-op: `.cfi_startproc'
arch/powerpc/kernel/vdso32/gettimeofday.S:196: Error: unknown pseudo-op: `.cfi_endproc'
arch/powerpc/kernel/vdso32/gettimeofday.S:208: Error: unknown pseudo-op: `.cfi_startproc'
arch/powerpc/kernel/vdso32/gettimeofday.S:223: Error: Unrecognized opcode: `mftbu'
arch/powerpc/kernel/vdso32/gettimeofday.S:224: Error: Unrecognized opcode: `mftbl'
arch/powerpc/kernel/vdso32/gettimeofday.S:225: Error: Unrecognized opcode: `mftbu'
arch/powerpc/kernel/vdso32/gettimeofday.S:271: Error: unknown pseudo-op: `.cfi_endproc'
arch/powerpc/kernel/vdso32/gettimeofday.S:282: Error: unknown pseudo-op: `.cfi_startproc'
arch/powerpc/kernel/vdso32/gettimeofday.S:297: Error: Unrecognized opcode: `mftbu'
arch/powerpc/kernel/vdso32/gettimeofday.S:298: Error: Unrecognized opcode: `mftbl'
arch/powerpc/kernel/vdso32/gettimeofday.S:299: Error: Unrecognized opcode: `mftbu'
arch/powerpc/kernel/vdso32/gettimeofday.S:366: Error: unknown pseudo-op: `.cfi_endproc'

make[2]: *** [arch/powerpc/kernel/vdso32/gettimeofday.o] Error 1
make[1]: *** [arch/powerpc/kernel/vdso32] Error 2
make: *** [arch/powerpc/kernel] Error 2
debian:~/linux-2.6.31.12#
Info:
Code:
debian:~/linux-2.6.31.12# powerpc-linux-gcc --version
powerpc-linux-gcc (GCC) 4.0.0
Copyright (C) 2005 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

debian:~/linux-2.6.31.12# 
debian:~/linux-2.6.31.12# powerpc-linux-ld --version
GNU ld version 2.14 20030612
Copyright 2002 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License.  This program has absolutely no warranty.
debian:~/linux-2.6.31.12# 
debian:~/linux-2.6.31.12# powerpc-linux-as --version
GNU assembler 2.14 20030612
Copyright 2002 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License.  This program has absolutely no warranty.
This assembler was configured for a target of `powerpc-linux'.
debian:~/linux-2.6.31.12# 
debian:~/linux-2.6.31.12# uname -a
Linux debian 2.6.26-2-486 #1 Sat Dec 26 08:37:39 UTC 2009 i686 GNU/Linux
debian:~/linux-2.6.31.12# 
debian:~/linux-2.6.31.12# ls
arch	 crypto		fs	 Kbuild       Makefile	     README	     security  virt
block	 Documentation	include  kernel       mm	     REPORTING-BUGS  sound
COPYING  drivers	init	 lib	      modules.order  samples	     tools
CREDITS  firmware	ipc	 MAINTAINERS  net	     scripts	     usr
debian:~/linux-2.6.31.12#
 
Old 03-29-2010, 02:55 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,533

Rep: Reputation: 148Reputation: 148
It seems that your assembler doesn't understand new directives. You should update to a more recent version.
 
Old 03-29-2010, 03:13 PM   #3
smeezekitty
Senior Member
 
Registered: Sep 2009
Location: Washington U.S.
Distribution: M$ Windows / Debian / Ubuntu / DSL / many others
Posts: 2,220

Original Poster
Rep: Reputation: 164Reputation: 164
Already did:
Code:
GNU assembler (GNU Binutils) 2.20
Copyright 2009 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License version 3 or later.
This program has absolutely no warranty.
This assembler was configured for a target of `powerpc-linux'.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Why can't I compile this kernel module? (kernel: 2.6.8-powerpc Debian sarge) Lannix Linux - Hardware 5 05-01-2007 12:29 PM
kernel 2.6 cross compile error NeoMagic Linux - Kernel 1 10-27-2006 12:41 PM
Problem with gcc powerpc cross compile !! rohya_joshi Linux - Software 2 02-07-2006 12:44 AM
Could not compile glibc-2.3.3 for powerpc on x86 architecture kaito Linux - General 3 12-20-2004 11:13 AM
Building cross-compiler gcc for powerpc-linux ccool Linux - General 3 09-17-2004 06:33 AM


All times are GMT -5. The time now is 02:31 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration