cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Observer
Observer
1,519 Views
Registered: ‎01-25-2018

TRD 2017.4 heartbeat build failed

Jump to solution

Dear all:

  I followed the link to build heartbeat.elf, but I got lots of build failed.

http://www.wiki.xilinx.com/Zynq%20UltraScale%20MPSoC%20Base%20TRD%202017.4%20-%20Design%20Module%202

 

could someone share me some hint to deal with these fails?

 

Does anyone build heartbeat.elf successfully?

 

Thanks a lot.

 

[error message]

Selection_008.png

 

[failed log]

/home/lucas/Project/ZCU102/source/TRD_HOME_20174/rdf0421-zcu102-base-trd-2017-4/rpu0/heartbeat/heartbeat_bsp/psu_cortexr5_0/lib/libxil.a(outbyte.o): In function `outbyte':
/home/lucas/Project/ZCU102/source/TRD_HOME_20174/rdf0421-zcu102-base-trd-2017-4/rpu0/heartbeat/heartbeat_bsp/psu_cortexr5_0/libsrc/standalone_v6_5/src/outbyte.c:14: undefined reference to `XUartPs_SendByte'
/home/lucas/Project/ZCU102/source/TRD_HOME_20174/rdf0421-zcu102-base-trd-2017-4/rpu0/heartbeat/heartbeat_bsp/psu_cortexr5_0/lib/libfreertos.a(portZynqUltrascale.o): In function `FreeRTOS_SetupTickInterrupt':
makefile:36: recipe for target 'heartbeat.elf' failed
/home/lucas/Project/ZCU102/source/TRD_HOME_20174/rdf0421-zcu102-base-trd-2017-4/rpu0/heartbeat/heartbeat_bsp/psu_cortexr5_0/libsrc/freertos901_xilinx_v1_1/src/portZynqUltrascale.c:110: undefined reference to `XScuGic_LookupConfig'
/home/lucas/Project/ZCU102/source/TRD_HOME_20174/rdf0421-zcu102-base-trd-2017-4/rpu0/heartbeat/heartbeat_bsp/psu_cortexr5_0/libsrc/freertos901_xilinx_v1_1/src/portZynqUltrascale.c:111: undefined reference to `XScuGic_CfgInitialize'
/home/lucas/Project/ZCU102/source/TRD_HOME_20174/rdf0421-zcu102-base-trd-2017-4/rpu0/heartbeat/heartbeat_bsp/psu_cortexr5_0/libsrc/freertos901_xilinx_v1_1/src/portZynqUltrascale.c:117: undefined reference to `XScuGic_InterruptHandler'
/home/lucas/Project/ZCU102/source/TRD_HOME_20174/rdf0421-zcu102-base-trd-2017-4/rpu0/heartbeat/heartbeat_bsp/psu_cortexr5_0/libsrc/freertos901_xilinx_v1_1/src/portZynqUltrascale.c:117: undefined reference to `XScuGic_InterruptHandler'
/home/lucas/Project/ZCU102/source/TRD_HOME_20174/rdf0421-zcu102-base-trd-2017-4/rpu0/heartbeat/heartbeat_bsp/psu_cortexr5_0/libsrc/freertos901_xilinx_v1_1/src/portZynqUltrascale.c:125: undefined reference to `XScuGic_Connect'
/home/lucas/Project/ZCU102/source/TRD_HOME_20174/rdf0421-zcu102-base-trd-2017-4/rpu0/heartbeat/heartbeat_bsp/psu_cortexr5_0/libsrc/freertos901_xilinx_v1_1/src/portZynqUltrascale.c:130: undefined reference to `XTtcPs_LookupConfig'
/home/lucas/Project/ZCU102/source/TRD_HOME_20174/rdf0421-zcu102-base-trd-2017-4/rpu0/heartbeat/heartbeat_bsp/psu_cortexr5_0/libsrc/freertos901_xilinx_v1_1/src/portZynqUltrascale.c:132: undefined reference to `XTtcPs_CfgInitialize'
/home/lucas/Project/ZCU102/source/TRD_HOME_20174/rdf0421-zcu102-base-trd-2017-4/rpu0/heartbeat/heartbeat_bsp/psu_cortexr5_0/libsrc/freertos901_xilinx_v1_1/src/portZynqUltrascale.c:137: undefined reference to `XTtcPs_CfgInitialize'
/home/lucas/Project/ZCU102/source/TRD_HOME_20174/rdf0421-zcu102-base-trd-2017-4/rpu0/heartbeat/heartbeat_bsp/psu_cortexr5_0/libsrc/freertos901_xilinx_v1_1/src/portZynqUltrascale.c:144: undefined reference to `XTtcPs_SetOptions'
/home/lucas/Project/ZCU102/source/TRD_HOME_20174/rdf0421-zcu102-base-trd-2017-4/rpu0/heartbeat/heartbeat_bsp/psu_cortexr5_0/libsrc/freertos901_xilinx_v1_1/src/portZynqUltrascale.c:145: undefined reference to `XTtcPs_CalcIntervalFromFreq'
/home/lucas/Project/ZCU102/source/TRD_HOME_20174/rdf0421-zcu102-base-trd-2017-4/rpu0/heartbeat/heartbeat_bsp/psu_cortexr5_0/libsrc/freertos901_xilinx_v1_1/src/portZynqUltrascale.c:147: undefined reference to `XTtcPs_SetPrescaler'
/home/lucas/Project/ZCU102/source/TRD_HOME_20174/rdf0421-zcu102-base-trd-2017-4/rpu0/heartbeat/heartbeat_bsp/psu_cortexr5_0/lib/libfreertos.a(portZynqUltrascale.o): In function `FreeRTOS_ApplicationIRQHandler':
/home/lucas/Project/ZCU102/source/TRD_HOME_20174/rdf0421-zcu102-base-trd-2017-4/rpu0/heartbeat/heartbeat_bsp/psu_cortexr5_0/libsrc/freertos901_xilinx_v1_1/src/portZynqUltrascale.c:180: undefined reference to `XScuGic_ConfigTable'

0 Kudos
1 Solution

Accepted Solutions
Highlighted
Observer
Observer
1,563 Views
Registered: ‎01-25-2018

Dear Lesea

I have found the solution, here is my solution. would you incorporate the solution into your 2017.4 TRD guide?

 

Firstly, root cause is that Xilinx build modules under heartbeat_bsp/libsrc with the following order:

ex:
libs: banner xaxipmon_libs clean

 

unfortunately, it didn't set the number of building thread, so it may run in parallel way in customers end. Therefore,  the xaxipmon_libs building procedure has change to run with make clean at the same time. it makes object files unable to be found.

 

secondly, the solution is that,


1. set make -j1 in the statement in heartbeat_bsp/Makefile, ex:
    28 %/make.libs: include
    29 @echo "Running Make libs in $(subst /make.libs,,$@)"
    30 $(MAKE) -j1 -C $(subst /make.libs,,$@) -s libs


2. build heartbeat with release mode, since their debug mode is not working.

 

BRs

CJ

View solution in original post

0 Kudos
5 Replies
Highlighted
Scholar
Scholar
1,478 Views
Registered: ‎02-27-2008

Did you: (change directory to your 'TRD_Home')

 

cd $TRD_HOME/apu/petalinux_bsp

before you did 

 

petalinux-build

 

??

Austin Lesea
Principal Engineer
Xilinx San Jose
0 Kudos
Highlighted
Observer
Observer
1,465 Views
Registered: ‎01-25-2018

Dear Xilinx:

  I did build petalinux correctly and successfully with petalinux-build under the directory, $TRD_HOME/apu/petalinux-build.

 

Is hearbeat build failed related to petalinux build result of TRD?

 

I just observed that, it seems hearbeat_bsp build failed caused heart_beat build failed.

but..I still don't know how to do?

 

thanks for helping me.

 

 

Selection_009.png

 

 

 

Best regards

Chieh-jay

0 Kudos
Highlighted
Scholar
Scholar
1,452 Views
Registered: ‎02-27-2008

You seem to be missing some really basic and important files,

 

I suspect previous petalinux-build did not really complete without errors, or the install is broken (files missing).  Look at the log files.

 

 

Austin Lesea
Principal Engineer
Xilinx San Jose
0 Kudos
Highlighted
Observer
Observer
1,406 Views
Registered: ‎01-25-2018

Dear Austin:

  For clearify the issue, I rebuild petalinux  bsp and I got this messages which suggests that the petalinux bsp has been build pass.

 

​NOTE: recipe petalinux-user-image-1.0-r0: task do_rm_work_all: Started
NOTE: recipe petalinux-user-image-1.0-r0: task do_rm_work_all: Succeeded
NOTE: Tasks Summary: Attempted 6440 tasks of which 1907 didn't need to be rerun and all succeeded.
[INFO] successfully built project

 

 

And this time, I still have the build error on heatbeat and heartbeat_bsp, but it seems different on error message. would you please give me another hint to tackle this error?

 

[heartbeat build error]

armr5-none-eabi-gcc -Wl,-T -Wl,../src/lscript.ld -L../../heartbeat_bsp/psu_cortexr5_0/lib -o "heartbeat.elf" ./src/heartbeat.o -Wl,--start-group,-lxil,-lfreertos,-lgcc,-lc,--end-group
../../heartbeat_bsp/psu_cortexr5_0/lib/libxil.a(outbyte.o): In function `outbyte':
/home/lucas/Project/ZCU102/source/TRD_HOME_20174/03/rdf0421-zcu102-base-trd-2017-4/rpu0/heartbeat/heartbeat_bsp/psu_cortexr5_0/libsrc/standalone_v6_5/src/outbyte.c:14: undefined reference to `XUartPs_SendByte'
makefile:36: recipe for target 'heartbeat.elf' failed
../../heartbeat_bsp/psu_cortexr5_0/lib/libfreertos.a(portZynqUltrascale.o): In function `FreeRTOS_SetupTickInterrupt':
/home/lucas/Project/ZCU102/source/TRD_HOME_20174/03/rdf0421-zcu102-base-trd-2017-4/rpu0/heartbeat/heartbeat_bsp/psu_cortexr5_0/libsrc/freertos901_xilinx_v1_1/src/portZynqUltrascale.c:110: undefined reference to `XScuGic_LookupConfig'
/home/lucas/Project/ZCU102/source/TRD_HOME_20174/03/rdf0421-zcu102-base-trd-2017-4/rpu0/heartbeat/heartbeat_bsp/psu_cortexr5_0/libsrc/freertos901_xilinx_v1_1/src/portZynqUltrascale.c:111: undefined reference to `XScuGic_CfgInitialize'
/home/lucas/Project/ZCU102/source/TRD_HOME_20174/03/rdf0421-zcu102-base-trd-2017-4/rpu0/heartbeat/heartbeat_bsp/psu_cortexr5_0/libsrc/freertos901_xilinx_v1_1/src/portZynqUltrascale.c:117: undefined reference to `XScuGic_InterruptHandler'
/home/lucas/Project/ZCU102/source/TRD_HOME_20174/03/rdf0421-zcu102-base-trd-2017-4/rpu0/heartbeat/heartbeat_bsp/psu_cortexr5_0/libsrc/freertos901_xilinx_v1_1/src/portZynqUltrascale.c:117: undefined reference to `XScuGic_InterruptHandler'
/home/lucas/Project/ZCU102/source/TRD_HOME_20174/03/rdf0421-zcu102-base-trd-2017-4/rpu0/heartbeat/heartbeat_bsp/psu_cortexr5_0/libsrc/freertos901_xilinx_v1_1/src/portZynqUltrascale.c:125: undefined reference to `XScuGic_Connect'
/home/lucas/Project/ZCU102/source/TRD_HOME_20174/03/rdf0421-zcu102-base-trd-2017-4/rpu0/heartbeat/heartbeat_bsp/psu_cortexr5_0/libsrc/freertos901_xilinx_v1_1/src/portZynqUltrascale.c:130: undefined reference to `XTtcPs_LookupConfig'
/home/lucas/Project/ZCU102/source/TRD_HOME_20174/03/rdf0421-zcu102-base-trd-2017-4/rpu0/heartbeat/heartbeat_bsp/psu_cortexr5_0/libsrc/freertos901_xilinx_v1_1/src/portZynqUltrascale.c:132: undefined reference to `XTtcPs_CfgInitialize'
/home/lucas/Project/ZCU102/source/TRD_HOME_20174/03/rdf0421-zcu102-base-trd-2017-4/rpu0/heartbeat/heartbeat_bsp/psu_cortexr5_0/libsrc/freertos901_xilinx_v1_1/src/portZynqUltrascale.c:137: undefined reference to `XTtcPs_CfgInitialize'
/home/lucas/Project/ZCU102/source/TRD_HOME_20174/03/rdf0421-zcu102-base-trd-2017-4/rpu0/heartbeat/heartbeat_bsp/psu_cortexr5_0/libsrc/freertos901_xilinx_v1_1/src/portZynqUltrascale.c:144: undefined reference to `XTtcPs_SetOptions'
/home/lucas/Project/ZCU102/source/TRD_HOME_20174/03/rdf0421-zcu102-base-trd-2017-4/rpu0/heartbeat/heartbeat_bsp/psu_cortexr5_0/libsrc/freertos901_xilinx_v1_1/src/portZynqUltrascale.c:145: undefined reference to `XTtcPs_CalcIntervalFromFreq'
/home/lucas/Project/ZCU102/source/TRD_HOME_20174/03/rdf0421-zcu102-base-trd-2017-4/rpu0/heartbeat/heartbeat_bsp/psu_cortexr5_0/libsrc/freertos901_xilinx_v1_1/src/portZynqUltrascale.c:147: undefined reference to `XTtcPs_SetPrescaler'
../../heartbeat_bsp/psu_cortexr5_0/lib/libfreertos.a(portZynqUltrascale.o): In function `FreeRTOS_ApplicationIRQHandler':
/home/lucas/Project/ZCU102/source/TRD_HOME_20174/03/rdf0421-zcu102-base-trd-2017-4/rpu0/heartbeat/heartbeat_bsp/psu_cortexr5_0/libsrc/freertos901_xilinx_v1_1/src/portZynqUltrascale.c:180: undefined reference to `XScuGic_ConfigTable'
collect2: error: ld returned 1 exit status

 

 

[heartbeat bsp build error]

Makefile:31: recipe for target 'xipipsu_libs' failed
Makefile:29: recipe for target 'psu_cortexr5_0/libsrc/ipipsu_v2_3/src/make.libs' failed
make[1]: *** [xipipsu_libs] Error 1
make[1]: Target 'libs' not remade because of errors.
make: *** [psu_cortexr5_0/libsrc/ipipsu_v2_3/src/make.libs] Error 2

 

appreciate for your works

Lucas

0 Kudos
Highlighted
Observer
Observer
1,564 Views
Registered: ‎01-25-2018

Dear Lesea

I have found the solution, here is my solution. would you incorporate the solution into your 2017.4 TRD guide?

 

Firstly, root cause is that Xilinx build modules under heartbeat_bsp/libsrc with the following order:

ex:
libs: banner xaxipmon_libs clean

 

unfortunately, it didn't set the number of building thread, so it may run in parallel way in customers end. Therefore,  the xaxipmon_libs building procedure has change to run with make clean at the same time. it makes object files unable to be found.

 

secondly, the solution is that,


1. set make -j1 in the statement in heartbeat_bsp/Makefile, ex:
    28 %/make.libs: include
    29 @echo "Running Make libs in $(subst /make.libs,,$@)"
    30 $(MAKE) -j1 -C $(subst /make.libs,,$@) -s libs


2. build heartbeat with release mode, since their debug mode is not working.

 

BRs

CJ

View solution in original post

0 Kudos