piggy
驱动牛犊
驱动牛犊
  • 注册日期2001-08-24
  • 最后登录2012-01-14
  • 粉丝0
  • 关注0
  • 积分4分
  • 威望27点
  • 贡献值0点
  • 好评度16点
  • 原创分0分
  • 专家分0分
阅读:1157回复:1

Warning and error on Solaris 8

楼主#
更多 发布于:2002-05-02 21:30
Hello, everyone, I got a problem when I want to build a driver on a sparc 64-bit kernel . The OS is Solaris 8.
I got the following message.

cc -O -I. -D_KERNEL -xarch=v9 -xregs=no%appl -D_SYSCALL32 -D_SYSCALL32_IMPL -D_ELF64 -D__sparcv9cpu -DSYSACCT -DC2_AUDIT -c -o
/obj64/driver_lyr.o driver_lyr.c
cc -O -I. -D_KERNEL -xarch=v9 -xregs=no%appl -D_SYSCALL32 -D_SYSCALL32_IMPL -D_ELF64 -D__sparcv9cpu -DSYSACCT -DC2_AUDIT -c -o /obj64/hsed.o
hsed.c
ld -r -o /obj64/hsed /obj64/driver_lyr.o /obj64/hsed.o
ld: warning: sparc:v9 architecture of input file `/obj64/driver_lyr.o\' is incompatible with sparc output
ld: warning: sparc:v9 architecture of input file `/obj64/hsed.o\' is incompatible with sparc output
ld: bfd assertion fail elflink.h:2483
ld: final link failed: Bad value
make: *** [/obj64/hsed] Error 1

I am just wondering what is the \"sparc:v9 architecture of input file `/obj64/driver_lyr.o\' is incompatible with sparc output\". What is this problem? Why this problem
appeared? The cc compiler has compiled the files successfully.

Thank you very much.
zhengq
驱动牛犊
驱动牛犊
  • 注册日期2002-03-05
  • 最后登录2003-05-18
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
沙发#
发布于:2002-05-05 21:52
你的SPARC机器上的C编译器和连接器ld是什么类型,什么版本的?
游客

返回顶部