Advertisement
Guest User

err

a guest
Dec 25th, 2013
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.55 KB | None | 0 0
  1. > avr-gcc --version
  2. avr-gcc (GCC) 4.8.2
  3.  
  4. > uname -a
  5. Linux foo 3.10.22-1-MANJARO #1 SMP Wed Dec 4 22:15:26 UTC 2013 i686 GNU/Linux
  6.  
  7.  
  8.  
  9. ... glcd_ks0108_v11/ > ls
  10. arial_bold_14.h corsiva_12.h ks0108.c ks0108.h ks0108Test.c makefile readme.txt
  11. > make
  12.  
  13. -------- begin --------
  14. avr-gcc (GCC) 4.8.2
  15. Copyright (C) 2013 Free Software Foundation, Inc.
  16. This is free software; see the source for copying conditions. There is NO
  17. warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  18.  
  19.  
  20. Compiling: ks0108Test.c
  21. avr-gcc -c -mmcu=atmega128 -I. -gstabs -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-adhlns=ks0108Test.lst -std=gnu99 -Wp,-M,-MP,-MT,ks0108Test.o,-MF,.dep/ks0108Test.o.d ks0108Test.c -o ks0108Test.o
  22. In file included from ks0108Test.c:16:0:
  23. arial_bold_14.h:48:16: error: variable 'Arial_Bold_14' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
  24. static uint8_t Arial_Bold_14[] PROGMEM = {
  25. ^
  26. In file included from ks0108Test.c:17:0:
  27. corsiva_12.h:48:16: error: variable 'Corsiva_12' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
  28. static uint8_t Corsiva_12[] PROGMEM = {
  29. ^
  30. ks0108Test.c: In function 'main':
  31. ks0108Test.c:28:2: warning: pointer targets in passing argument 1 of 'ks0108SelectFont' differ in signedness [-Wpointer-sign]
  32. ks0108SelectFont(Arial_Bold_14, ks0108ReadFontData, BLACK);
  33. ^
  34. In file included from ks0108Test.c:15:0:
  35. ks0108.h:86:6: note: expected 'const char *' but argument is of type 'uint8_t *'
  36. void ks0108SelectFont(const char* font, ks0108FontCallback callback, uint8_t color);
  37. ^
  38. ks0108Test.c:38:2: warning: pointer targets in passing argument 1 of 'ks0108SelectFont' differ in signedness [-Wpointer-sign]
  39. ks0108SelectFont(Corsiva_12, ks0108ReadFontData, BLACK);
  40. ^
  41. In file included from ks0108Test.c:15:0:
  42. ks0108.h:86:6: note: expected 'const char *' but argument is of type 'uint8_t *'
  43. void ks0108SelectFont(const char* font, ks0108FontCallback callback, uint8_t color);
  44. ^
  45. ks0108Test.c: At top level:
  46. ks0108.h:97:16: warning: inline function 'ks0108ReadData' declared but never defined [enabled by default]
  47. inline uint8_t ks0108ReadData(void);
  48. ^
  49. ks0108.h:97:16: warning: inline function 'ks0108ReadData' declared but never defined [enabled by default]
  50. makefile:376: recipe for target 'ks0108Test.o' failed
  51. make: *** [ks0108Test.o] Error 1
  52. >
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60. ...glcd_rar_2004-02-17_1316/ > ls
  61. font12x16.h font6x8.h glcd.rar ks0108.c ks0108.h main.c makefile
  62. > make
  63. set -e; avr-gcc -MM -mmcu=atmega16 -I. -g -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-adhlns=ks0108.lst -std=gnu99 ks0108.c \
  64. | sed 's,\(.*\)\.o[ :]*,\1.o \1.d : ,g' > ks0108.d; \
  65. [ -s ks0108.d ] || rm -f ks0108.d
  66. set -e; avr-gcc -MM -mmcu=atmega16 -I. -g -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-adhlns=main.lst -std=gnu99 main.c \
  67. | sed 's,\(.*\)\.o[ :]*,\1.o \1.d : ,g' > main.d; \
  68. [ -s main.d ] || rm -f main.d
  69.  
  70. -------- begin --------
  71. avr-gcc (GCC) 4.8.2
  72. Copyright (C) 2013 Free Software Foundation, Inc.
  73. This is free software; see the source for copying conditions. There is NO
  74. warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  75.  
  76.  
  77. Compiling: main.c
  78. avr-gcc -c -mmcu=atmega16 -I. -g -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-adhlns=main.lst -std=gnu99 main.c -o main.o
  79. In file included from main.c:6:0:
  80. font12x16.h:22:42: error: variable 'Font12x16' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
  81. static uint8_t __attribute__ ((progmem)) Font12x16[] = {
  82. ^
  83. In file included from main.c:7:0:
  84. font6x8.h:22:42: error: variable 'Font6x8' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
  85. static uint8_t __attribute__ ((progmem)) Font6x8[] = {
  86. ^
  87. main.c: In function 'main':
  88. main.c:20:21: warning: pointer targets in assignment differ in signedness [-Wpointer-sign]
  89. largeFont.charData = Font12x16;
  90. ^
  91. main.c:24:21: warning: pointer targets in assignment differ in signedness [-Wpointer-sign]
  92. smallFont.charData = Font6x8;
  93. ^
  94. makefile:338: recipe for target 'main.o' failed
  95. make: *** [main.o] Error 1
  96. >
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement