cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Observer
Observer
1,000 Views
Registered: ‎08-02-2017

SDSoC(ver 2016.4): pragma_gen.exe has stopped working...

Jump to solution

Hi.

 

I'm trying to build a design on SDSoC 2016.4.

However, I got the error "pragma_gen.exe has stopped working".

Does anyone know possible cases for that?

 

Although I tried the same design (same HW function) in Vivado HLS, there is no error.

 

Thank you in advance.

0 Kudos
1 Solution

Accepted Solutions
Highlighted
Xilinx Employee
Xilinx Employee
1,369 Views
Registered: ‎09-22-2015

This bug was reported in 2016.4 SDSoC tools. SDSoC fails to compile C structs. Please upgrade to 2017.1 SDx to prevent this failure.

------------------------------------------------------------------------------------------------------------------------
Please mark an answer "Accept as solution" if a post has the solution to your issue.
------------------------------------------------------------------------------------------------------------------------

View solution in original post

0 Kudos
3 Replies
Highlighted
Explorer
Explorer
998 Views
Registered: ‎09-19-2017
Hi

Please provide more info:

1. Operating system (windows7, 8, 10,...)
2. Sample code that causes the problem
3. Log file from the build

Thanks!
Sam
0 Kudos
Highlighted
Observer
Observer
977 Views
Registered: ‎08-02-2017

Thank you for your reply!

 

1. Operating system (windows7, 8, 10,...)

  windows 7 64bit

 

2. Sample code that causes the problem

The below is top function (HW function).

 

#include <stdio.h>
~~some include files~~~

 

    typedef struct {
        int      A;
        float   B;
    } Struct2;

 

    typedef struct {
        int         N;
        Struct2  Array[5];
    } Struct1;

 

    void HW_Acceralator(
        short     array1[10],
        short     array2[10],
        int         var1,
        int         var2
        Struct1  *Stu1
    )
    {
        short     AR1[10];
        short     AR2[10];
        short     AR3[10];

        Struct1  Stu_tmp;

        Func1( array1, AR1 );
        Func1( array2, AR2 );

        Func2( AR3, AR1, AR2, var1, var2, &Stu_tmp );

        *Stu1 = Stu_tmp;

        return;
    }


3. Log file from the build

===============

E:\Projects\SDSoC\Sample\Debug>exit /b 0
pragma_gen -func HW_Acceralator -tcl E:/Projects/SDSoC/Sample/Debug/_sds/vhls/HW_Acceralator.tcl E:/Projects/SDSoC/Sample/Debug/_sds/vhls/HW_Acceralator_pp.c -multi_aximm -- -c -D __SDSVHLS__ -IE:/Projects/SDSoC/Sample/src -Wall -O0 -g -fmessage-length=0 -MMD -MP -D __SDSCC__ -m32 -I C:/Xilinx/SDx/2016.4/aarch32-linux/include -IE:/Projects/SDSoC/Sample/src/subfunc -target arm-linux-gnueabihf -mcpu=cortex-a9 -mfpu=vfpv3 -mfloat-abi=hard -O0 -g -w -I C:/Xilinx/SDx/2016.4/aarch32-linux/include -I C:/Xilinx/SDx/2016.4/Vivado_HLS/include -IC:/Xilinx/SDx/2016.4/SDK/gnu/aarch32/nt/gcc-arm-linux-gnueabi/lib/gcc/arm-linux-gnueabihf/5.2.1/include -IC:/Xilinx/SDx/2016.4/SDK/gnu/aarch32/nt/gcc-arm-linux-gnueabi/lib/gcc/arm-linux-gnueabihf/5.2.1/include-fixed -IC:/Xilinx/SDx/2016.4/SDK/gnu/aarch32/nt/gcc-arm-linux-gnueabi/arm-linux-gnueabihf/include -IC:/Xilinx/SDx/2016.4/SDK/gnu/aarch32/nt/gcc-arm-linux-gnueabi/arm-linux-gnueabihf/libc/usr/include
ERROR: [SDSoC 0-0] Exiting sdscc : Error when calling 'pragma_gen -func HW_Acceralator -tcl E:/Projects/SDSoC/Sample/Debug/_sds/vhls/HW_Acceralator.tcl E:/Projects/SDSoC/Sample/Debug/_sds/vhls/HW_Acceralator_pp.c -multi_aximm -- -c -D __SDSVHLS__ -IE:/Projects/SDSoC/Sample/src -Wall -O0 -g -fmessage-length=0 -MMD -MP -D __SDSCC__ -m32 -I C:/Xilinx/SDx/2016.4/aarch32-linux/include -IE:/Projects/SDSoC/Sample/src/subfunc -target arm-linux-gnueabihf -mcpu=cortex-a9 -mfpu=vfpv3 -mfloat-abi=hard -O0 -g -w -I C:/Xilinx/SDx/2016.4/aarch32-linux/include -I C:/Xilinx/SDx/2016.4/Vivado_HLS/include -IC:/Xilinx/SDx/2016.4/SDK/gnu/aarch32/nt/gcc-arm-linux-gnueabi/lib/gcc/arm-linux-gnueabihf/5.2.1/include -IC:/Xilinx/SDx/2016.4/SDK/gnu/aarch32/nt/gcc-arm-linux-gnueabi/lib/gcc/arm-linux-gnueabihf/5.2.1/include-fixed -IC:/Xilinx/SDx/2016.4/SDK/gnu/aarch32/nt/gcc-arm-linux-gnueabi/arm-linux-gnueabihf/include -IC:/Xilinx/SDx/2016.4/SDK/gnu/aarch32/nt/gcc-arm-linux-gnueabi/arm-linux-gnueabihf/libc/usr/include'
sdscc log file saved as E:/Projects/SDSoC/Sample/Debug/_sds/reports/sds_HW_Acceralator.log
ERROR: [SDSoC 0-0] Build failed
sdscc completed at Fri Nov 10 10:47:13 +0900 2017

===============

 

Thank you for your cooperation.

0 Kudos
Highlighted
Xilinx Employee
Xilinx Employee
1,370 Views
Registered: ‎09-22-2015

This bug was reported in 2016.4 SDSoC tools. SDSoC fails to compile C structs. Please upgrade to 2017.1 SDx to prevent this failure.

------------------------------------------------------------------------------------------------------------------------
Please mark an answer "Accept as solution" if a post has the solution to your issue.
------------------------------------------------------------------------------------------------------------------------

View solution in original post

0 Kudos