Menu

GCC refuses to compile genereated xap.h when process-image members exceed 32bit

2017-02-23
2017-02-23
  • Clemens Eisserer

    Hi,

    A small finding - when using datatypes >32bit for the process image, gcc refuses to compile sources which include the generated xap.h:

    #define COMPUTED_PI_OUT_SIZE 76
    typedef struct
    {
       ....
        unsigned PADDING_VAR_1:48;
        ....
    } PI_OUT;
    
    
    In file included from apps/demo_mn_console/src/app.c:54:0:
    apps/demo_mn_console/src/xap.h:15:11: error: width of PADDING_VAR_1 exceeds its type
      unsigned PADDING_VAR_1:48;
    

    ... which is quite correct, stuffing 48bits into a 32-bit datatype won't work ;)

    Br, Clemens

     
  • Christoph Ruecker

    Hi Clemens,

    Thanks for reporting. Can you please provide me your OC project for testing my fix.

    br
    Christoph

     
  • Clemens Eisserer

    Hi Christoph,

    Please find an OC project exhibiting the issue at: http://93.83.133.214/newnet.tar.gz

    Br, Clemens

     
  • Clemens Eisserer

    Thanks a lot for fixing the issue!

    Br, Clemens

     

Log in to post a comment.