[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Error: Unrecognized opcode: `lvx'



>{standard input}: Assembler messages:
>{standard input}:64: Error: Unrecognized opcode: `lvx'
>{standard input}:64: Error: Unrecognized opcode: `mtvscr'

options ALTIVEC をはずすのが一番簡単でしょう。

ついでに、sys/lib/libkern/arch/powerpc/{bzero.S,ffs.S,strlen.S}
を消した上で以下のパッチをあてないとコンパイルできないはず。

Index: sys/lib/libkern/arch/powerpc/Makefile.inc
*** sys/lib/libkern/arch/powerpc/Makefile.inc	Thu Dec  6 08:37:39 2001
--- sys/lib/libkern/arch/powerpc/Makefile.inc	Thu Mar 14 17:33:08 2002
***************
*** 5,15 ****
  	bswap16.c bswap32.c bswap64.c \
  	bcmp.c bzero.c \
  	memchr.c memcmp.c memset.c \
! 	strcat.c strcmp.c strcpy.c strcasecmp.c \
  	strncasecmp.c strncmp.c strncpy.c \
  	scanc.c skpc.c \
  	htonl.c htons.c ntohl.c ntohs.c \
! 	random.c strtoul.c \
! 	syncicache.c
! 
! SRCS+=	ffs.S strlen.S
--- 5,12 ----
  	bswap16.c bswap32.c bswap64.c \
  	bcmp.c bzero.c \
  	memchr.c memcmp.c memset.c \
! 	strcat.c strcmp.c strcpy.c strlen.c strcasecmp.c \
  	strncasecmp.c strncmp.c strncpy.c \
  	scanc.c skpc.c \
  	htonl.c htons.c ntohl.c ntohs.c \
! 	random.c strtoul.c
*** sys/lib/libkern/libkern.h~	Sat Dec 29 08:43:56 2001
--- sys/lib/libkern/libkern.h	Sun Dec 30 14:56:58 2001
***************
*** 286,293 ****
  char	*strchr __P((const char *, int));
  char	*strrchr __P((const char *, int));
  
- /* This exists in GCC 3.x, but we don't bother (yet). */
  int	 ffs __P((int));
  
  void	 __assert __P((const char *, const char *, int, const char *))
  	    __attribute__((__noreturn__));
--- 286,295 ----
  char	*strchr __P((const char *, int));
  char	*strrchr __P((const char *, int));
  
  int	 ffs __P((int));
+ #ifdef __GNUC__
+ #define ffs(a)			__builtin_ffs(a)
+ #endif
  
  void	 __assert __P((const char *, const char *, int, const char *))
  	    __attribute__((__noreturn__));