Latest LTS mps430-gdb could not bib uilt with clang host compiler due to obvious C errors

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Latest LTS mps430-gdb could not bib uilt with clang host compiler due to obvious C errors

Lev Serebryakov-2
Hello, Mspgcc-users.

  What  should  I  do with these errors? msp430-gdb is not usable with
system compiler (which is clang 3.3/3.4) on FreeBSD CURRENT anymore
:( Errors looks like easy to fix (as they are obvious
almost-syntax-level errors -- especially, errors with
get_stop_addr()), but I'm not sure what should I do with them/ Report
to upstream? Add local patch? Pull fix for them from upstream gdb 7.4,
if it has them fixed?

mv version.c-tmp version.c
cc -c -DHAVE_CONFIG_H     -DPROFILE=1 -DWITH_PROFILE=-1          -DDEFAULT_INLINE=0              -I. -I. -I../common -I./../common -I../../include -I./../../include -I../../bfd -I./../../bfd -I../../opcodes -I./../../opcodes  -O2 -pipe -fno-strict-aliasing version.c
cc -c -DHAVE_CONFIG_H     -DPROFILE=1 -DWITH_PROFILE=-1          -DDEFAULT_INLINE=0              -I. -I. -I../common -I./../common -I../../include -I./../../include -I../../bfd -I./../../bfd -I../../opcodes -I./../../opcodes  -O2 -pipe -fno-strict-aliasing interp.c
interp.c:1276:8: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat]
       sizeof (unsigned long));
       ^~~~~~~~~~~~~~~~~~~~~~
interp.c:1686:27: warning: passing 'char *' to parameter of type 'const unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign]
      sim_write (sd, lma, buffer, size);
                          ^~~~~~
interp.c:1827:38: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat]
          fprintf (stderr, "Cycles:      %d\n", alu.cycles);
                                         ~~     ^~~~~~~~~~
                                         %lu
interp.c:1828:43: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat]
          fprintf (stderr, "Instructions: %d\n", alu.insns);
                                          ~~     ^~~~~~~~~
                                          %lu
interp.c:1829:42: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat]
          fprintf (stderr, "Interrupts:  %d\n", alu.interrupts);
                                         ~~     ^~~~~~~~~~~~~~
                                         %lu
interp.c:1883:5: error: non-void function 'get_stop_addr' should return a value [-Wreturn-type]
    return;
    ^
interp.c:1887:7: error: non-void function 'get_stop_addr' should return a value [-Wreturn-type]
      return;
      ^
interp.c:1894:5: error: non-void function 'get_stop_addr' should return a value [-Wreturn-type]
    return;
    ^
5 warnings and 3 errors generated.
gmake[3]: *** [interp.o] Error 1
gmake[3]: Leaving directory `/work/a/ports/devel/msp430-gdb/work/gdb-7.2/sim/msp430'
gmake[2]: *** [all] Error 1

--
// Black Lion AKA Lev Serebryakov <[hidden email]>


------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Mspgcc-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mspgcc-users
Reply | Threaded
Open this post in threaded view
|

Re: Latest LTS mps430-gdb could not bib uilt with clang host compiler due to obvious C errors

Peter Bigot-4
If you're using the msp430-gdb patches from mspgcc, add local patch.
msp430-gdb from mspgcc is not supported anymore; eventually RH will provide
a replacement but it'll probably only work with their version of the
compiler.


On Tue, Jun 11, 2013 at 3:28 AM, Lev Serebryakov <[hidden email]>wrote:

> Hello, Mspgcc-users.
>
>   What  should  I  do with these errors? msp430-gdb is not usable with
> system compiler (which is clang 3.3/3.4) on FreeBSD CURRENT anymore
> :( Errors looks like easy to fix (as they are obvious
> almost-syntax-level errors -- especially, errors with
> get_stop_addr()), but I'm not sure what should I do with them/ Report
> to upstream? Add local patch? Pull fix for them from upstream gdb 7.4,
> if it has them fixed?
>
> mv version.c-tmp version.c
> cc -c -DHAVE_CONFIG_H     -DPROFILE=1 -DWITH_PROFILE=-1
>  -DDEFAULT_INLINE=0              -I. -I. -I../common -I./../common
> -I../../include -I./../../include -I../../bfd -I./../../bfd -I../../opcodes
> -I./../../opcodes  -O2 -pipe -fno-strict-aliasing version.c
> cc -c -DHAVE_CONFIG_H     -DPROFILE=1 -DWITH_PROFILE=-1
>  -DDEFAULT_INLINE=0              -I. -I. -I../common -I./../common
> -I../../include -I./../../include -I../../bfd -I./../../bfd -I../../opcodes
> -I./../../opcodes  -O2 -pipe -fno-strict-aliasing interp.c
> interp.c:1276:8: warning: format specifies type 'int' but the argument has
> type 'unsigned long' [-Wformat]
>        sizeof (unsigned long));
>        ^~~~~~~~~~~~~~~~~~~~~~
> interp.c:1686:27: warning: passing 'char *' to parameter of type 'const
> unsigned char *' converts between pointers to integer types with different
> sign [-Wpointer-sign]
>       sim_write (sd, lma, buffer, size);
>                           ^~~~~~
> interp.c:1827:38: warning: format specifies type 'int' but the argument
> has type 'unsigned long' [-Wformat]
>           fprintf (stderr, "Cycles:      %d\n", alu.cycles);
>                                          ~~     ^~~~~~~~~~
>                                          %lu
> interp.c:1828:43: warning: format specifies type 'int' but the argument
> has type 'unsigned long' [-Wformat]
>           fprintf (stderr, "Instructions: %d\n", alu.insns);
>                                           ~~     ^~~~~~~~~
>                                           %lu
> interp.c:1829:42: warning: format specifies type 'int' but the argument
> has type 'unsigned long' [-Wformat]
>           fprintf (stderr, "Interrupts:  %d\n", alu.interrupts);
>                                          ~~     ^~~~~~~~~~~~~~
>                                          %lu
> interp.c:1883:5: error: non-void function 'get_stop_addr' should return a
> value [-Wreturn-type]
>     return;
>     ^
> interp.c:1887:7: error: non-void function 'get_stop_addr' should return a
> value [-Wreturn-type]
>       return;
>       ^
> interp.c:1894:5: error: non-void function 'get_stop_addr' should return a
> value [-Wreturn-type]
>     return;
>     ^
> 5 warnings and 3 errors generated.
> gmake[3]: *** [interp.o] Error 1
> gmake[3]: Leaving directory
> `/work/a/ports/devel/msp430-gdb/work/gdb-7.2/sim/msp430'
> gmake[2]: *** [all] Error 1
>
> --
> // Black Lion AKA Lev Serebryakov <[hidden email]>
>
>
>
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by Windows:
>
> Build for Windows Store.
>
> http://p.sf.net/sfu/windows-dev2dev
> _______________________________________________
> Mspgcc-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/mspgcc-users
>

------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Mspgcc-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mspgcc-users