取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
Highlighted
Visitor
Visitor
183 次查看
注册日期: ‎06-18-2020

petalinux build 出现错误

工作人员您好:

我在使用petalinux的过程中遇到了如下的错误:

[INFO] building project
[INFO] sourcing bitbake
INFO: bitbake petalinux-user-image
Loading cache: 100% |##################################################################################################################################################| Time: 0:00:02
Loaded 3257 entries from dependency cache.
Parsing recipes: 100% |################################################################################################################################################| Time: 0:00:06
Parsing of 2466 .bb files complete (2434 cached, 32 parsed). 3259 targets, 226 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
Initialising tasks: 100% |#############################################################################################################################################| Time: 0:00:09
Checking sstate mirror object availability: 100% |#####################################################################################################################| Time: 1:28:32
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
fsbl-2017.4+gitAUTOINC+77448ae629-r0 do_compile: NOTE: fsbl: compiling from external source tree /opt/pkg/petalinux/tools/hsm/data/embeddedsw
ERROR: fsbl-2017.4+gitAUTOINC+77448ae629-r0 do_compile: fsbl compile failed.
ERROR: fsbl-2017.4+gitAUTOINC+77448ae629-r0 do_compile: Function failed: do_compile (log file is located at /opt/pkg/work/test_pj2/build/tmp/work/plnx_arm-xilinx-linux-gnueabi/fsbl/2017.4+gitAUTOINC+77448ae629-r0/temp/log.do_compile.19793)
ERROR: Logfile of failure stored in: /opt/pkg/work/test_pj2/build/tmp/work/plnx_arm-xilinx-linux-gnueabi/fsbl/2017.4+gitAUTOINC+77448ae629-r0/temp/log.do_compile.19793
Log data follows:
| DEBUG: Executing python function xsct_externalsrc_compile_prefunc
| NOTE: fsbl: compiling from external source tree /opt/pkg/petalinux/tools/hsm/data/embeddedsw
| DEBUG: Python function xsct_externalsrc_compile_prefunc finished
| DEBUG: Executing shell function do_compile
| Starting xsdk. This could take few seconds... Picked up _JAVA_OPTIONS: -Duser.home=/opt/pkg/work/test_pj2/build/tmp/xsctenv
| done
| 'fsbl_hwproj' will not be imported... [ALREADY EXIST]
| 'fsbl' will not be imported... [ALREADY EXIST]
| 'fsbl_bsp' will not be imported... [ALREADY EXIST]
| Building '/fsbl_bsp'
| 02:06:47 **** Clean-only build of project fsbl_bsp ****

我的操作系统版本是Ubuntu16.04,petalinux版本是2017.4

错误日志如下:

DEBUG: Executing python function xsct_externalsrc_compile_prefunc
NOTE: fsbl: compiling from external source tree /opt/pkg/petalinux/tools/hsm/data/embeddedsw
DEBUG: Python function xsct_externalsrc_compile_prefunc finished
DEBUG: Executing shell function do_compile
Starting xsdk. This could take few seconds... Picked up _JAVA_OPTIONS: -Duser.home=/opt/pkg/work/ax_proj/build/tmp/xsctenv
done
'fsbl_hwproj' will not be imported... [ALREADY EXIST]
'fsbl' will not be imported... [ALREADY EXIST]
'fsbl_bsp' will not be imported... [ALREADY EXIST]
Building '/fsbl_bsp'
01:14:54 **** Clean-only build of project fsbl_bsp ****
make -k clean
make -C ps7_cortexa9_0/libsrc/dmaps_v2_3/src -s clean

[...]

rm -f ps7_cortexa9_0/lib/libxil.a

01:14:56 Build Finished (took 2s.468ms)

Building '/fsbl'
Building '/fsbl_bsp'
Invoking Make Builder...fsbl_bsp
01:15:05 **** Build of project fsbl_bsp ****
make -k all
Running Make include in ps7_cortexa9_0/libsrc/dmaps_v2_3/src
make -C ps7_cortexa9_0/libsrc/dmaps_v2_3/src -s include "SHELL=/bin/sh" "COMPILER=arm-none-eabi-gcc" "ARCHIVER=arm-none-eabi-ar" "COMPILER_FLAGS= -O2 -c" "EXTRA_COMPILER_FLAGS=-mcpu=cortex-a9 -mfpu=vfpv3 -mfloat-abi=hard -nostartfiles -Wall -Wextra"
Running Make include in ps7_cortexa9_0/libsrc/ddrps_v1_0/src

[...]

Running Make libs in ps7_cortexa9_0/libsrc/scutimer_v2_1/src
make -C ps7_cortexa9_0/libsrc/scutimer_v2_1/src -s libs "SHELL=/bin/sh" "COMPILER=arm-none-eabi-gcc" "ARCHIVER=arm-none-eabi-ar" "COMPILER_FLAGS= -O2 -c" "EXTRA_COMPILER_FLAGS=-mcpu=cortex-a9 -mfpu=vfpv3 -mfloat-abi=hard -nostartfiles -Wall -Wextra"
Compiling scutimer
Finished building libraries

01:16:30 Build Finished (took 1m:24s.937ms)

Building '/fsbl'
01:16:34 **** Build of configuration Release for project fsbl ****
make pre-build main-build
a9-linaro-pre-build-step

[...]


Building target: fsbl.elf
Invoking: ARM v7 gcc linker
arm-none-eabi-gcc -mcpu=cortex-a9 -mfpu=vfpv3 -mfloat-abi=hard -Wl,-build-id=none -specs=Xilinx.spec -Wl,-T -Wl,../src/lscript.ld -L../../fsbl_bsp/ps7_cortexa9_0/lib -o "fsbl.elf" ./src/fsbl_handoff.o ./src/fsbl_hooks.o ./src/image_mover.o ./src/main.o ./src/md5.o ./src/nand.o ./src/nor.o ./src/pcap.o ./src/ps7_init.o ./src/qspi.o ./src/rsa.o ./src/sd.o -Wl,--start-group,-lxil,-lgcc,-lc,--end-group -Wl,--start-group,-lxilffs,-lxil,-lgcc,-lc,--end-group -Wl,--start-group,-lrsa,-lxil,-lgcc,-lc,--end-group
arm-none-eabi-gcc: fatal error: -fuse-linker-plugin, but liblto_plugin.so not found
compilation terminated.
make: *** [makefile:41: fsbl.elf] Error 1

01:16:41 Build Finished (took 7s.476ms)

Invoking scanner config builder on project
WARNING: /opt/pkg/work/ax_proj/build/tmp/work/plnx_arm-xilinx-linux-gnueabi/fsbl/2017.4+gitAUTOINC+77448ae629-r0/temp/run.do_compile.94049:1 exit 1 from 'exit 1'
ERROR: Function failed: do_compile (log file is located at /opt/pkg/work/ax_proj/build/tmp/work/plnx_arm-xilinx-linux-gnueabi/fsbl/2017.4+gitAUTOINC+77448ae629-r0/temp/log.do_compile.94049)

期待您的解答,谢谢!

0 项奖励
2 回复数
Highlighted
Xilinx Employee
Xilinx Employee
128 次查看
注册日期: ‎09-14-2018

@astudent 

看起来你使用了external的FSBL源。相比default流程是否还有其它修改?fsbl makefile是否有改动?

0 项奖励
Highlighted
Visitor
Visitor
113 次查看
注册日期: ‎06-18-2020

您好!

相对于default流程,我对设备树文件(system-user.dsti)文件做了修改,我没有对fsbl的makefile文件进行改动。

现在这个问题已经解决了,我在重装了系统和petalinux并且把所有的安装目录都设置成为默认目录后就解决了。我不清楚这是什么原因,会是因为我vivado安装在共享文件夹下面吗?

感谢您能抽空回复。

0 项奖励