dragonlong_0808

dragonlong_0808

0个粉丝

2

问答

0

专栏

0

资料

dragonlong_0808  发布于  2019-04-01 17:09:35
采纳率 0%
2个问答
4851

Hi3559A 编译内核出现的错误请教

 
sdk 版本 Hi3559A V100R001C02SPC010  

内核版本 :linux-4.9.y_multi-core

我在 osdrv 下 使用  make BOOT_MEDIA=spi AMP_TYPE=linux atf 进行 kernel的编译 出现下面的 错误,这是什么原因引起的?

CC      arch/arm64/kernel/traps.o
arch/arm64/kernel/entry.S: Assembler messages:
arch/arm64/kernel/entry.S:401: 错误: operand 1 should be a floating-point register -- `stp lr,x21,[sp,#240]'
arch/arm64/kernel/entry.S:405: 错误: operand 1 should be a floating-point register -- `stp lr,x21,[sp,#240]'
arch/arm64/kernel/entry.S:409: 错误: operand 1 should be a floating-point register -- `stp lr,x21,[sp,#240]'
arch/arm64/kernel/entry.S:413: 错误: operand 1 should be a floating-point register -- `stp lr,x21,[sp,#240]'
arch/arm64/kernel/entry.S:418: 错误: operand 1 should be a floating-point register -- `stp lr,x21,[sp,#240]'
arch/arm64/kernel/entry.S:422: 错误: operand 1 should be a floating-point register -- `stp lr,x21,[sp,#240]'
arch/arm64/kernel/entry.S:427: 错误: operand 1 should be a floating-point register -- `stp lr,x21,[sp,#240]'
arch/arm64/kernel/entry.S:431: 错误: operand 1 should be a floating-point register -- `stp lr,x21,[sp,#240]'
arch/arm64/kernel/entry.S:435: 错误: operand 1 should be a floating-point register -- `stp lr,x21,[sp,#240]'
arch/arm64/kernel/entry.S:439: 错误: operand 1 should be a floating-point register -- `stp lr,x21,[sp,#240]'
arch/arm64/kernel/entry.S:447: 错误: operand 1 should be a floating-point register -- `stp lr,x21,[sp,#240]'
arch/arm64/kernel/entry.S:480: 错误: operand 1 should be an integer register -- `ldr lr,[sp,#240]'
arch/arm64/kernel/entry.S:506: 错误: operand 1 should be an integer register -- `ldr lr,[sp,#240]'
  CC      arch/arm64/kernel/io.o
arch/arm64/kernel/entry.S:518: 错误: operand 1 should be a floating-point register -- `stp lr,x21,[sp,#240]'
arch/arm64/kernel/entry.S:537: 错误: operand 1 should be an integer register -- `ldr lr,[sp,#240]'
arch/arm64/kernel/entry.S:554: 错误: operand 1 should be a floating-point register -- `stp lr,x21,[sp,#240]'
arch/arm64/kernel/entry.S:582: 错误: operand 1 should be a floating-point register -- `stp lr,x21,[sp,#240]'
arch/arm64/kernel/entry.S:623: 错误: operand 1 should be a floating-point register -- `stp lr,x21,[sp,#240]'
arch/arm64/kernel/entry.S:732: 错误: operand 1 should be a floating-point register -- `stp lr,x21,[sp,#240]'
arch/arm64/kernel/entry.S:771: 错误: operand 1 should be an integer register -- `str lr,[x8]'
arch/arm64/kernel/entry.S:779: 错误: operand 1 should be an integer register -- `ldr lr,[x8]'
arch/arm64/kernel/entry.S:799: 错误: operand 1 should be an integer register -- `ldr lr,[sp,#240]'
arch/arm64/kernel/entry.S:825: 错误: operand 1 should be an integer register -- `ldr lr,[sp,#240]'
scripts/Makefile.build:393: recipe for target 'arch/arm64/kernel/entry.o' failed
make[2]: *** [arch/arm64/kernel/entry.o] Error 1
我来回答
回答4个
时间排序
认可量排序

wr0602

0个粉丝

5

问答

0

专栏

0

资料

wr0602 2019-05-23 18:27:35
认可0
请问这个问题你解决了吗?我也遇到了同样的问题想请教一下

qn1560765274

0个粉丝

4

问答

0

专栏

1

资料

qn1560765274 2019-08-07 14:00:51
认可0
我也是同样的问题 我的SDK是2.0.0.7的

qn1560765274

0个粉丝

4

问答

0

专栏

1

资料

qn1560765274 2019-08-08 14:44:21
认可0

问题解决了 我最初使用的编译工具来自2.0.0.2版本

root@zzzz-MS-7816:/home/020# aarch64-himix100-linux-gcc -v
Using built-in specs.
COLLECT_GCC=aarch64-himix100-linux-gcc
COLLECT_LTO_WRAPPER=/opt/hisi-linux/x86-arm/aarch64-himix100-linux/host_bin/../libexec/gcc/aarch64-linux-gnu/6.2.1/lto-wrapper
Target: aarch64-linux-gnu
Configured with: /home/huaweiliteos/xzh/gcc6.2/gcc6.2_xzh/aarch64-COMPILE/aarch64-linux-liteOS_/source/aarch64-linux-liteOS/snapshots/gcc-linaro-6.2-2016.11/configure SHELL=/bin/bash --with-pkgversion=Huaweiliteos_v100_20170512 --with-mpc=/home/huaweiliteos/xzh/gcc6.2/gcc6.2_xzh/aarch64-COMPILE/aarch64-linux-liteOS_/source/aarch64-linux-liteOS/builds/destdir/i686-pc-linux-gnu --with-mpfr=/home/huaweiliteos/xzh/gcc6.2/gcc6.2_xzh/aarch64-COMPILE/aarch64-linux-liteOS_/source/aarch64-linux-liteOS/builds/destdir/i686-pc-linux-gnu --with-gmp=/home/huaweiliteos/xzh/gcc6.2/gcc6.2_xzh/aarch64-COMPILE/aarch64-linux-liteOS_/source/aarch64-linux-liteOS/builds/destdir/i686-pc-linux-gnu --with-gnu-as --with-gnu-ld --disable-libstdcxx-pch --disable-libmudflap --with-cloog=no --with-ppl=no --with-isl=no --enable-nls --enable-c99 --enable-gnu-indirect-function --disable-multilib --with-arch=armv8-a --enable-fix-cortex-a53-835769 --enable-fix-cortex-a53-843419 --enable-multiarch --with-build-sysroot=/home/huaweiliteos/xzh/gcc6.2/gcc6.2_xzh/aarch64-COMPILE/aarch64-linux-liteOS_/source/aarch64-linux-liteOS/sysroots/aarch64-linux-gnu --enable-lto --enable-linker-build-id --enable-long-long --enable-shared --with-sysroot=/home/huaweiliteos/xzh/gcc6.2/gcc6.2_xzh/aarch64-COMPILE/aarch64-linux-liteOS_/source/aarch64-linux-liteOS/builds/destdir/i686-pc-linux-gnu/aarch64-linux-gnu/libc --enable-languages=c,c++,fortran,lto --enable-checking=release --disable-bootstrap --build= --host=i686-pc-linux-gnu --target=aarch64-linux-gnu --prefix=/home/huaweiliteos/xzh/gcc6.2/gcc6.2_xzh/aarch64-COMPILE/aarch64-linux-liteOS_/source/aarch64-linux-liteOS/builds/destdir/i686-pc-linux-gnu
Thread model: posix
gcc version 6.2.1 20161016 (Huaweiliteos_v100_20170512)
root@zzzz-MS-7816:/home/020#

现在我使用0.2.0版本的编译工具

root@zzzz-MS-7816:/home/020/aarch64-himix100-linux# aarch64-himix100-linux-gcc -v
Using built-in specs.
COLLECT_GCC=aarch64-himix100-linux-gcc
COLLECT_LTO_WRAPPER=/opt/hisi-linux/x86-arm/aarch64-himix100-linux/host_bin/../libexec/gcc/aarch64-linux-gnu/6.3.0/lto-wrapper
Target: aarch64-linux-gnu
Configured with: /home/sying/SDK_CPU_UNIFIED/build/script/aarch64-himix100-linux/aarch64_himix100_build_dir/src/gcc-6.3.0/configure --build=i386-redhat-linux --host=i386-redhat-linux --target=aarch64-linux-gnu --with-arch=armv8-a --prefix=/home/sying/SDK_CPU_UNIFIED/build/script/aarch64-himix100-linux/aarch64_himix100_build_dir/install --with-specs='%{!ftree-coalesce-vars:-fno-tree-coalesce-vars}' --disable-libmudflap --disable-libssp --enable-gold=yes --disable-libstdcxx-pch --disable-multilib --enable-multiarch --with-gnu-as --with-gnu-ld --enable-libgomp --enable-gnu-indirect-function --enable-checking=yes --enable-lto --enable-c99 --enable-long-long --disable-nls --enable-fix-cortex-a53-835769 --enable-fix-cortex-a53-843419 --enable-shared --with-pkgversion='HC&C V100R002C00B027_20181107' --enable-languages=c,c++ --with-headers=/home/sying/SDK_CPU_UNIFIED/build/script/aarch64-himix100-linux/aarch64_himix100_build_dir/install/target/usr/include --with-sysroot=/home/sying/SDK_CPU_UNIFIED/build/script/aarch64-himix100-linux/aarch64_himix100_build_dir/install/target --with-build-sysroot=/home/sying/SDK_CPU_UNIFIED/build/script/aarch64-himix100-linux/aarch64_himix100_build_dir/install/target --with-gmp=/home/sying/SDK_CPU_UNIFIED/build/script/aarch64-himix100-linux/aarch64_himix100_build_dir/obj/host-libs/usr --with-mpfr=/home/sying/SDK_CPU_UNIFIED/build/script/aarch64-himix100-linux/aarch64_himix100_build_dir/obj/host-libs/usr --with-mpc=/home/sying/SDK_CPU_UNIFIED/build/script/aarch64-himix100-linux/aarch64_himix100_build_dir/obj/host-libs/usr --with-cloog=/home/sying/SDK_CPU_UNIFIED/build/script/aarch64-himix100-linux/aarch64_himix100_build_dir/obj/host-libs/usr --with-build-time-tools=/home/sying/SDK_CPU_UNIFIED/build/script/aarch64-himix100-linux/aarch64_himix100_build_dir/install/aarch64-linux-gnu/bin --libdir=/home/sying/SDK_CPU_UNIFIED/build/script/aarch64-himix100-linux/aarch64_himix100_build_dir/install/lib
Thread model: posix
gcc version 6.3.0 (HC&C V100R002C00B027_20181107)

编译通过了

xiaoxiaoshou

0个粉丝

0

问答

0

专栏

0

资料

xiaoxiaoshou 2020-05-16 16:35:39
认可0
楼主,请问如何编译通过的,我用的也是0.2.0版本的编译工具。
或将文件直接拖到这里
悬赏:
E币
网盘
* 网盘链接:
* 提取码:
悬赏:
E币

Markdown 语法

  • 加粗**内容**
  • 斜体*内容*
  • 删除线~~内容~~
  • 引用> 引用内容
  • 代码`代码`
  • 代码块```编程语言↵代码```
  • 链接[链接标题](url)
  • 无序列表- 内容
  • 有序列表1. 内容
  • 缩进内容
  • 图片![alt](url)
+ 添加网盘链接/附件

Markdown 语法

  • 加粗**内容**
  • 斜体*内容*
  • 删除线~~内容~~
  • 引用> 引用内容
  • 代码`代码`
  • 代码块```编程语言↵代码```
  • 链接[链接标题](url)
  • 无序列表- 内容
  • 有序列表1. 内容
  • 缩进内容
  • 图片![alt](url)
举报反馈

举报类型

  • 内容涉黄/赌/毒
  • 内容侵权/抄袭
  • 政治相关
  • 涉嫌广告
  • 侮辱谩骂
  • 其他

详细说明

易百纳技术社区