Skip to content

make error #1

@liyang53719

Description

@liyang53719

I'm using ubuntu22.04 with vivado_hls2021.1
when make in tcl some error catched like this:


/tools/Xilinx/Vitis_HLS/2021.1/include/mpfr.h:721:34: error: ‘mpfr_srcptr’ was not declared in this scope
 __MPFR_DECLSPEC mpfr_exp_t mpfr_custom_get_exp  _MPFR_PROTO ((mpfr_srcptr));
                                  ^~~~~~~~~~~
/tools/Xilinx/Vitis_HLS/2021.1/include/mpfr.h:725:28: error: ‘mpfr_srcptr’ was not declared in this scope
 __MPFR_DECLSPEC int    mpfr_custom_get_kind   _MPFR_PROTO ((mpfr_srcptr));
                            ^~~~~~~~~~~
In file included from /tools/Xilinx/Vitis_HLS/2021.1/include/hls_fpo.h:189:0,
                 from /tools/Xilinx/Vitis_HLS/2021.1/include/hls_half_fpo.h:64,
                 from /tools/Xilinx/Vitis_HLS/2021.1/include/hls_half.h:71,
                 from /tools/Xilinx/Vitis_HLS/2021.1/include/etc/ap_private.h:91,
                 from /tools/Xilinx/Vitis_HLS/2021.1/include/ap_common.h:653,
                 from /tools/Xilinx/Vitis_HLS/2021.1/include/ap_int.h:55,
                 from /home/yang/Documents/github/ISP/xkISP/tb/../src/top.h:19,
                 from /home/yang/Documents/github/ISP/xkISP/tb/../src/tpg.h:4,
                 from /home/yang/Documents/github/ISP/xkISP/tb/tb_tpg.cpp:1:
/tools/Xilinx/Vitis_HLS/2021.1/include/floating_point_v7_0_bitacc_cmodel.h:246:45: error: ‘mpfr_srcptr’ has not been declared
 __XIP_FPO_DLL xip_fpo_exc_t xip_fpo_set_fr      (xip_fpo_ptr, mpfr_srcptr);
                                             ^~~~~~~~~~~
/tools/Xilinx/Vitis_HLS/2021.1/include/floating_point_v7_0_bitacc_cmodel.h:247:53: error: ‘mpfr_srcptr’ has not been declared
 __XIP_FPO_DLL xip_fpo_exc_t xip_fpo_fix_set_fr  (xip_fpo_fix_ptr, mpfr_srcptr);
                                                     ^~~~~~~~~~~
make[1]: *** [cosim.tv.mk:62: obj/tb_tpg.cpp_pre.cpp.tb.o] Error 1
ERROR: [COSIM 212-317] C++ compile error.
ERROR: [COSIM 212-321] EXE file generate failed.
ERROR: [COSIM 212-321] EXE file generate failed.
ERROR: [COSIM 212-331] Aborting co-simulation: C simulation failed, compilation errors.
ERROR: [COSIM 212-5] *** C/RTL co-simulation file generation failed. ***
ERROR: [COSIM 212-4] *** C/RTL co-simulation finished: FAIL ***
INFO: [HLS 200-111] Finished Command cosim_design CPU user time: 5.72 seconds. CPU system time: 0.46 seconds. Elapsed time: 6.2 seconds; current allocated memory: 375.555 MB.
command 'ap_source' returned error code
    while executing
"source "./script.tcl""
    (file "tpg.tcl" line 10)
    invoked from within
"source tpg.tcl"
    ("uplevel" body line 1)
    invoked from within
"uplevel \#0 [list source $arg] "

INFO: [HLS 200-112] Total CPU user time: 16.81 seconds. Total CPU system time: 1.63 seconds. Total elapsed time: 17.61 seconds; peak allocated memory: 373.383 MB.
INFO: [Common 17-206] Exiting vitis_hls at Mon Jun 27 23:19:59 2022...
make: *** [Makefile:13:tpg] 错误 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions