MrRockchip

shitty-ada-failure

Feb 19th, 2024 (edited)
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.61 KB | None | 0 0
  1. csb_patcher.sh ERRATA:
  2.  
  3. cbfs_emptyspacer_line=$(( $cbfs_emptyspacer_line / 1024 ))
  4.  
  5. without quotes, otherwise:
  6.  
  7. NOTE: ./pci1002,990b.rom for Lenovo G505S with A10-5750M : iGPU HD-8650G is already at your ./build/coreflop.rom.
  8. ./../csb_patcher.sh: 393: arithmetic expression: expecting primary: " "3280676" / 1024 "
  9.  
  10. ======================
  11.  
  12. === ./build/coreflop.rom - final memory map
  13.  
  14. FMAP REGION: COREBOOT
  15. Name Offset Type Size Comp
  16. cbfs_master_header 0x0 cbfs header 32 none
  17. fallback/romstage 0x80 stage 329264 none
  18. fallback/ramstage 0x50780 stage 193586 LZMA (487792 decompressed)
  19. config 0x7fc80 raw 2758 LZMA (8491 decompressed)
  20. revision 0x80800 raw 727 none
  21. build_info 0x80b80 raw 109 none
  22. fallback/dsdt.aml 0x80c80 raw 8250 none
  23. cmos_layout.bin 0x82d40 cmos_layout 616 none
  24. pci1002,990b.rom 0x83040 optionrom 61952 none
  25. pci1002,6665.rom 0x922c0 optionrom 32768 none
  26. fallback/postcar 0x9a340 stage 37456 none
  27. img/coreinfo 0xa3640 simple elf 43539 none
  28. fallback/payload 0xae100 simple elf 66195 none
  29. payload_config 0xbe440 raw 1672 none
  30. payload_revision 0xbeb40 raw 263 none
  31. img/tint 0xbecc0 simple elf 37775 none
  32. pci1002,6663.rom 0xc80c0 optionrom 33792 none
  33. pci1002,9830.rom 0xd0540 optionrom 59904 none
  34. pci1002,990c.rom 0xdefc0 optionrom 61952 none
  35. floppyimg/flopbird.lzma 0xee240 raw 2150 LZMA (1474560 decompressed)
  36. floppyimg/plop.lzma 0xeeb40 raw 75831 LZMA (1474560 decompressed)
  37. floppyimg/tatos.lzma 0x101400 raw 61281 LZMA (1474560 decompressed)
  38. floppyimg/memtst32.lzma 0x110400 raw 60421 LZMA (1474560 decompressed)
  39. floppyimg/memtst64.lzma 0x11f0c0 raw 61141 LZMA (1474560 decompressed)
  40. floppyimg/fiwix.lzma 0x12e040 raw 423748 LZMA (1474560 decompressed)
  41. floppyimg/snowdrop.lzma 0x195840 raw 185685 LZMA (1474560 decompressed)
  42. floppyimg/visopsys.lzma 0x1c2e40 raw 451284 LZMA (1474560 decompressed)
  43. floppyimg/michalos.lzma 0x2311c0 raw 626672 LZMA (1474560 decompressed)
  44. floppyimg/freedos.lzma 0x2ca240 raw 376308 LZMA (1474560 decompressed)
  45. floppyimg/kolibri.lzma 0x3260c0 raw 1314250 LZMA (1474560 decompressed)
  46. floppyimg/vigenere.lzma 0x466f40 raw 1343165 LZMA (1474560 decompressed)
  47. (empty) 0x5aeec0 null 10723492 none
  48. bootblock 0xfe8f80 bootblock 28224 none
  49.  
  50. =======
  51.  
  52.  
  53. rm -f ada/bldtools/sinfo/sinfo.ads ada/bldtools/sinfo/sinfo.adb ada/bldtools/sinfo/xsinfo.adb ada/bldtools/sinfo/csinfo.adb
  54. cp -p ../../gcc-8.3.0/gcc/ada/sinfo.ads ../../gcc-8.3.0/gcc/ada/sinfo.adb ../../gcc-8.3.0/gcc/ada/xsinfo.adb ../../gcc-8.3.0/gcc/ada/csinfo.adb ada/bldtools/sinfo
  55. (cd ada/bldtools/sinfo; gnatmake -q xsinfo ; ./xsinfo sinfo.h )
  56.  
  57. Check for field name consistency
  58. OK
  59.  
  60. Check for function consistency
  61. OK
  62.  
  63. Check for missing functions
  64. OK
  65.  
  66. Check for set procedure consistency
  67. OK
  68.  
  69. Check for missing set procedures
  70. OK
  71.  
  72. Check pragma Inlines are all for existing subprograms
  73. OK
  74.  
  75. Check no pragma Inlines were omitted
  76. OK
  77.  
  78. Check references in functions in body
  79. OK
  80.  
  81. Check for missing functions in body
  82. OK
  83.  
  84. Check Set procedures in body
  85. OK
  86.  
  87. Check for missing set procedures in body
  88. OK
  89.  
  90. All tests completed successfully, no errors detected
  91. mv -f ada/bldtools/sinfo/sinfo.h ada/sinfo.h
  92. mkdir -p ada/bldtools/einfo
  93. rm -f ada/bldtools/einfo/einfo.ads ada/bldtools/einfo/einfo.adb ada/bldtools/einfo/xeinfo.adb ada/bldtools/einfo/ceinfo.adb
  94. cp -p ../../gcc-8.3.0/gcc/ada/einfo.ads ../../gcc-8.3.0/gcc/ada/einfo.adb ../../gcc-8.3.0/gcc/ada/xeinfo.adb ../../gcc-8.3.0/gcc/ada/ceinfo.adb ada/bldtools/einfo
  95. (cd ada/bldtools/einfo; gnatmake -q xeinfo ; ./xeinfo einfo.h )
  96.  
  97. Acquiring field names from spec
  98. Checking consistent references in spec
  99. Check listing of fields in body
  100. Check references in access routines in body
  101. Check references in set routines in body
  102. All tests completed successfully, no errors detected
  103. mv -f ada/bldtools/einfo/einfo.h ada/einfo.h
  104. mkdir -p ada/bldtools/nmake
  105. rm -f ada/bldtools/nmake/sinfo.ads ada/bldtools/nmake/nmake.adt ada/bldtools/nmake/xnmake.adb ada/bldtools/nmake/xutil.ads ada/bldtools/nmake/xutil.adb
  106. cp -p ../../gcc-8.3.0/gcc/ada/sinfo.ads ../../gcc-8.3.0/gcc/ada/nmake.adt ../../gcc-8.3.0/gcc/ada/xnmake.adb ../../gcc-8.3.0/gcc/ada/xutil.ads ../../gcc-8.3.0/gcc/ada/xutil.adb ada/bldtools/nmake
  107. (cd ada/bldtools/nmake; gnatmake -q xnmake ; ./xnmake -b nmake.adb ; ./xnmake -s nmake.ads)
  108. mv -f ada/bldtools/nmake/nmake.ads ada/nmake.ads
  109. mv -f ada/bldtools/nmake/nmake.adb ada/nmake.adb
  110. touch ada/stamp-nmake
  111. mkdir -p ada/bldtools/treeprs
  112. rm -f ada/bldtools/treeprs/treeprs.adt ada/bldtools/treeprs/sinfo.ads ada/bldtools/treeprs/xtreeprs.adb
  113. cp -p ../../gcc-8.3.0/gcc/ada/treeprs.adt ../../gcc-8.3.0/gcc/ada/sinfo.ads ../../gcc-8.3.0/gcc/ada/xtreeprs.adb ada/bldtools/treeprs
  114. (cd ada/bldtools/treeprs; gnatmake -q xtreeprs ; ./xtreeprs treeprs.ads )
  115. mv -f ada/bldtools/treeprs/treeprs.ads ada/treeprs.ads
  116. mkdir -p ada/bldtools/snamest
  117. rm -f ada/bldtools/snamest/snames.ads-tmpl ada/bldtools/snamest/snames.adb-tmpl ada/bldtools/snamest/snames.h-tmpl ada/bldtools/snamest/xsnamest.adb ada/bldtools/snamest/xutil.ads ada/bldtools/snamest/xutil.adb
  118. cp -p ../../gcc-8.3.0/gcc/ada/snames.ads-tmpl ../../gcc-8.3.0/gcc/ada/snames.adb-tmpl ../../gcc-8.3.0/gcc/ada/snames.h-tmpl ../../gcc-8.3.0/gcc/ada/xsnamest.adb ../../gcc-8.3.0/gcc/ada/xutil.ads ../../gcc-8.3.0/gcc/ada/xutil.adb ada/bldtools/snamest
  119. (cd ada/bldtools/snamest; gnatmake -q xsnamest ; ./xsnamest )
  120. mv -f ada/bldtools/snamest/snames.ns ada/snames.ads
  121. mv -f ada/bldtools/snamest/snames.nb ada/snames.adb
  122. mv -f ada/bldtools/snamest/snames.nh ada/snames.h
  123. touch ada/stamp-snames
  124. touch ada/GNAT_DATE
  125. mkdir -p ada/generated
  126. s=`cat ../../gcc-8.3.0/gcc/BASE-VER | sed -e "s/\([0-9]*\)\.\([0-9]*\)\..*/-\1\2/g"`; \
  127. d=`if test -f ../../gcc-8.3.0/gcc/ada/GNAT_DATE; then \
  128. cat ../../gcc-8.3.0/gcc/ada/GNAT_DATE; else date +%Y%m%d; fi`; \
  129. cat ../../gcc-8.3.0/gcc/ada/gnatvsn.ads | sed -e "/Version/s/(\([0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]\).*)/($d$s)/g" >ada/generated/gnatvsn.ads
  130. g++ -fno-PIE -c -DIN_GCC_FRONTEND -O2 -fomit-frame-pointer -m64 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -Woverloaded-virtual -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -DHAVE_CONFIG_H -I. -Iada -I../../gcc-8.3.0/gcc -I../../gcc-8.3.0/gcc/ada -I../../gcc-8.3.0/gcc/../include -I../../gcc-8.3.0/gcc/../libcpp/include -I/p/coreboot/util/crossgcc/xgcc/include -I/p/coreboot/util/crossgcc/xgcc/include -I/p/coreboot/util/crossgcc/xgcc/include -I../../gcc-8.3.0/gcc/../libdecnumber -I../../gcc-8.3.0/gcc/../libdecnumber/dpd -I../libdecnumber -I../../gcc-8.3.0/gcc/../libbacktrace -o ada/adadecode.o -MT ada/adadecode.o -MMD -MP -MF ada/.deps/adadecode.TPo ../../gcc-8.3.0/gcc/ada/adadecode.c
  131. g++ -fno-PIE -c -DIN_GCC_FRONTEND -O2 -fomit-frame-pointer -m64 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -Woverloaded-virtual -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Wno-error -DHAVE_CONFIG_H -I. -Iada -I../../gcc-8.3.0/gcc -I../../gcc-8.3.0/gcc/ada -I../../gcc-8.3.0/gcc/../include -I../../gcc-8.3.0/gcc/../libcpp/include -I/p/coreboot/util/crossgcc/xgcc/include -I/p/coreboot/util/crossgcc/xgcc/include -I/p/coreboot/util/crossgcc/xgcc/include -I../../gcc-8.3.0/gcc/../libdecnumber -I../../gcc-8.3.0/gcc/../libdecnumber/dpd -I../libdecnumber -I../../gcc-8.3.0/gcc/../libbacktrace -o ada/adaint.o -MT ada/adaint.o -MMD -MP -MF ada/.deps/adaint.TPo ../../gcc-8.3.0/gcc/ada/adaint.c
  132. ../../gcc-8.3.0/gcc/ada/adaint.c: In function 'int __gnat_try_lock(char*, char*)':
  133. ../../gcc-8.3.0/gcc/ada/adaint.c:550:8: warning: ignoring return value of 'int link(const char*, const char*)' declared with attribute 'warn_unused_result' [-Wunused-result]
  134. 550 | link (temp_file, full_path);
  135. | ~~~~~^~~~~~~~~~~~~~~~~~~~~~
  136. In file included from ../../gcc-8.3.0/gcc/system.h:691,
  137. from ../../gcc-8.3.0/gcc/ada/adaint.c:120:
  138. ../../gcc-8.3.0/gcc/ada/adaint.c: In function 'char* __gnat_locate_exec(char*, char*)':
  139. ../../gcc-8.3.0/gcc/ada/adaint.c:2903:19: warning: argument 1 null where non-null expected [-Wnonnull]
  140. 2903 | (strlen (exec_name) + strlen (HOST_EXECUTABLE_SUFFIX) + 1);
  141. | ~~~~~~~^~~~~~~~~~~
  142. ../../gcc-8.3.0/gcc/../include/libiberty.h:722:37: note: in definition of macro 'alloca'
  143. 722 | # define alloca(x) __builtin_alloca(x)
  144. | ^
  145. In file included from /usr/include/c++/11/cstring:42,
  146. from ../../gcc-8.3.0/gcc/system.h:235,
  147. from ../../gcc-8.3.0/gcc/ada/adaint.c:120:
  148. /usr/include/string.h:407:15: note: in a call to function 'size_t strlen(const char*)' declared 'nonnull'
  149. 407 | extern size_t strlen (const char *__s)
  150. | ^~~~~~
  151. g++ -fno-PIE -c -DIN_GCC_FRONTEND -O2 -fomit-frame-pointer -m64 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -Woverloaded-virtual -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -DHAVE_CONFIG_H -I. -Iada -I../../gcc-8.3.0/gcc -I../../gcc-8.3.0/gcc/ada -I../../gcc-8.3.0/gcc/../include -I../../gcc-8.3.0/gcc/../libcpp/include -I/p/coreboot/util/crossgcc/xgcc/include -I/p/coreboot/util/crossgcc/xgcc/include -I/p/coreboot/util/crossgcc/xgcc/include -I../../gcc-8.3.0/gcc/../libdecnumber -I../../gcc-8.3.0/gcc/../libdecnumber/dpd -I../libdecnumber -I../../gcc-8.3.0/gcc/../libbacktrace -o ada/argv.o -MT ada/argv.o -MMD -MP -MF ada/.deps/argv.TPo ../../gcc-8.3.0/gcc/ada/argv.c
  152. g++ -fno-PIE -c -DIN_GCC_FRONTEND -O2 -fomit-frame-pointer -m64 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -Woverloaded-virtual -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -DHAVE_CONFIG_H -I. -Iada -I../../gcc-8.3.0/gcc -I../../gcc-8.3.0/gcc/ada -I../../gcc-8.3.0/gcc/../include -I../../gcc-8.3.0/gcc/../libcpp/include -I/p/coreboot/util/crossgcc/xgcc/include -I/p/coreboot/util/crossgcc/xgcc/include -I/p/coreboot/util/crossgcc/xgcc/include -I../../gcc-8.3.0/gcc/../libdecnumber -I../../gcc-8.3.0/gcc/../libdecnumber/dpd -I../libdecnumber -I../../gcc-8.3.0/gcc/../libbacktrace -o ada/cio.o -MT ada/cio.o -MMD -MP -MF ada/.deps/cio.TPo ../../gcc-8.3.0/gcc/ada/cio.c
  153. ../../gcc-8.3.0/gcc/ada/cio.c: In function 'int get_int()':
  154. ../../gcc-8.3.0/gcc/ada/cio.c:90:9: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
  155. 90 | scanf (" %d", &x);
  156. | ~~~~~~^~~~~~~~~~~
  157. g++ -fno-PIE -c -DIN_GCC_FRONTEND -O2 -fomit-frame-pointer -m64 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -Woverloaded-virtual -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -DHAVE_CONFIG_H -I. -Iada -I../../gcc-8.3.0/gcc -I../../gcc-8.3.0/gcc/ada -I../../gcc-8.3.0/gcc/../include -I../../gcc-8.3.0/gcc/../libcpp/include -I/p/coreboot/util/crossgcc/xgcc/include -I/p/coreboot/util/crossgcc/xgcc/include -I/p/coreboot/util/crossgcc/xgcc/include -I../../gcc-8.3.0/gcc/../libdecnumber -I../../gcc-8.3.0/gcc/../libdecnumber/dpd -I../libdecnumber -I../../gcc-8.3.0/gcc/../libbacktrace -o ada/cstreams.o -MT ada/cstreams.o -MMD -MP -MF ada/.deps/cstreams.TPo ../../gcc-8.3.0/gcc/ada/cstreams.c
  158. g++ -fno-PIE -c -DIN_GCC_FRONTEND -O2 -fomit-frame-pointer -m64 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -Woverloaded-virtual -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -DHAVE_CONFIG_H -I. -Iada -I../../gcc-8.3.0/gcc -I../../gcc-8.3.0/gcc/ada -I../../gcc-8.3.0/gcc/../include -I../../gcc-8.3.0/gcc/../libcpp/include -I/p/coreboot/util/crossgcc/xgcc/include -I/p/coreboot/util/crossgcc/xgcc/include -I/p/coreboot/util/crossgcc/xgcc/include -I../../gcc-8.3.0/gcc/../libdecnumber -I../../gcc-8.3.0/gcc/../libdecnumber/dpd -I../libdecnumber -I../../gcc-8.3.0/gcc/../libbacktrace -o ada/env.o -MT ada/env.o -MMD -MP -MF ada/.deps/env.TPo ../../gcc-8.3.0/gcc/ada/env.c
  159. g++ -fno-PIE -c -DIN_GCC_FRONTEND -O2 -fomit-frame-pointer -m64 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -Woverloaded-virtual -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -DHAVE_CONFIG_H -I. -Iada -I../../gcc-8.3.0/gcc -I../../gcc-8.3.0/gcc/ada -I../../gcc-8.3.0/gcc/../include -I../../gcc-8.3.0/gcc/../libcpp/include -I/p/coreboot/util/crossgcc/xgcc/include -I/p/coreboot/util/crossgcc/xgcc/include -I/p/coreboot/util/crossgcc/xgcc/include -I../../gcc-8.3.0/gcc/../libdecnumber -I../../gcc-8.3.0/gcc/../libdecnumber/dpd -I../libdecnumber -I../../gcc-8.3.0/gcc/../libbacktrace -o ada/init.o -MT ada/init.o -MMD -MP -MF ada/.deps/init.TPo ../../gcc-8.3.0/gcc/ada/init.c
  160. In file included from /usr/include/signal.h:328,
  161. from /usr/include/x86_64-linux-gnu/sys/param.h:28,
  162. from ../../gcc-8.3.0/gcc/system.h:298,
  163. from ../../gcc-8.3.0/gcc/ada/init.c:65:
  164. ../../gcc-8.3.0/gcc/ada/init.c:575:18: error: missing binary operator before token "("
  165. 575 | # if 16 * 1024 < MINSIGSTKSZ
  166. | ^~~~~~~~~~~
  167. make[1]: *** [Makefile:1110: ada/init.o] Error 1
  168. make[1]: Leaving directory '/p/coreboot/util/crossgcc/build-i386-elf-GCC/gcc'
  169. make: *** [Makefile:4244: all-gcc] Error 2
Advertisement
Add Comment
Please, Sign In to add comment