Recent

Author Topic: Panic : internal error: access violation  (Read 2181 times)

kau-92

  • Newbie
  • Posts: 6
Re: Panic : internal error: access violation
« Reply #15 on: July 10, 2022, 03:50:26 am »
Code: Pascal  [Select][+][-]
  1.  
  2. #
  3. # Config file generated by fpcmkcfg on 2-7-22 - 14:02:40
  4. # Example fpc.cfg for Free Pascal Compiler
  5. #
  6.  
  7. # ----------------------
  8. # Defines (preprocessor)
  9. # ----------------------
  10.  
  11. #
  12. # nested #IFNDEF, #IFDEF, #ENDIF, #ELSE, #DEFINE, #UNDEF are allowed
  13. #
  14. # -d is the same as #DEFINE
  15. # -u is the same as #UNDEF
  16. #
  17.  
  18. #
  19. # Some examples (for switches see below, and the -? helppages)
  20. #
  21. # Try compiling with the -dRELEASE or -dDEBUG on the commandline
  22. #
  23.  
  24. # For a release compile with optimizes and strip debuginfo
  25. #IFDEF RELEASE
  26.   -O2
  27.   -Xs
  28.   #WRITE Compiling Release Version
  29. #ENDIF
  30.  
  31. # For a debug version compile with debuginfo and all codegeneration checks on
  32. #IFDEF DEBUG
  33.   -gl
  34.   -Crtoi
  35.   #WRITE Compiling Debug Version
  36. #ELSE
  37.   # Strip debuginfo from the executable if not in debug mode
  38.   -Xs
  39. #ENDIF
  40.  
  41. # assembling
  42. #ifdef darwin
  43. # use pipes instead of temporary files for assembling
  44. -ap
  45. #endif
  46.  
  47. # ----------------
  48. # Parsing switches
  49. # ----------------
  50.  
  51. # Pascal language mode
  52. #      -Mfpc      free pascal dialect (default)
  53. #      -Mobjfpc   switch some Delphi 2 extensions on
  54. #      -Mdelphi   tries to be Delphi compatible
  55. #      -Mtp       tries to be TP/BP 7.0 compatible
  56. #      -Mgpc      tries to be gpc compatible
  57. #      -Mmacpas   tries to be compatible to the macintosh pascal dialects
  58. #
  59. # Turn on Object Pascal extensions by default
  60. #-Mobjfpc
  61.  
  62. # Assembler reader mode
  63. #      -Rdefault  use default assembler
  64. #      -Ratt      read AT&T style assembler
  65. #      -Rintel    read Intel style assembler
  66. #
  67. # All assembler blocks are AT&T styled by default
  68. #-Ratt
  69.  
  70. # Semantic checking
  71. #      -S2        same as -Mobjfpc
  72. #      -Sc        supports operators like C (*=,+=,/= and -=)
  73. #      -Sa        include assertion code.
  74. #      -Sd        same as -Mdelphi
  75. #      -Se<x>     error options. <x> is a combination of the following:
  76. #         <n> : compiler stops after <n> errors (default is 1)
  77. #         w   : compiler stops also after warnings
  78. #         n   : compiler stops also after notes
  79. #         h   : compiler stops also after hints
  80. #      -Sg        allow LABEL and GOTO
  81. #      -Sh        Use ansistrings
  82. #      -Si        support C++ styled INLINE
  83. #      -Sk        load fpcylix unit
  84. #      -SI<x>     set interface style to <x>
  85. #         -SIcom    COM compatible interface (default)
  86. #         -SIcorba  CORBA compatible interface
  87. #      -Sm        support macros like C (global)
  88. #      -So        same as -Mtp
  89. #      -Sp        same as -Mgpc
  90. #      -Ss        constructor name must be init (destructor must be done)
  91. #      -Sx        enable exception keywords (default in Delphi/ObjFPC modes)
  92. #
  93. # Allow goto, inline, C-operators, C-vars
  94. -Sgic
  95.  
  96. # ---------------
  97. # Code generation
  98. # ---------------
  99.  
  100. # Uncomment the next line if you always want static/dynamic units by default
  101. # (can be overruled with -CD, -CS at the commandline)
  102. #-CS
  103. #-CD
  104.  
  105. # Set the default heapsize to 8Mb
  106. #-Ch8000000
  107.  
  108. # Set default codegeneration checks (iocheck, overflow, range, stack)
  109. #-Ci
  110. #-Co
  111. #-Cr
  112. #-Ct
  113.  
  114. # Optimizer switches
  115. # -Os        generate smaller code
  116. # -Oa=N      set alignment to N
  117. # -O1        level 1 optimizations (quick optimizations, debuggable)
  118. # -O2        level 2 optimizations (-O1 + optimizations which make debugging more difficult)
  119. # -O3        level 3 optimizations (-O2 + optimizations which also may make the program slower rather than faster)
  120. # -Oo<x>     switch on optimalization x. See fpc -i for possible values
  121. # -OoNO<x>   switch off optimalization x. See fpc -i for possible values
  122. # -Op<x>     set target cpu for optimizing, see fpc -i for possible values
  123.  
  124. #ifdef darwin
  125. #ifdef cpui386
  126. -Cppentiumm
  127. -Oppentiumm
  128. #endif
  129. #endif
  130.  
  131. # -----------------------
  132. # Set Filenames and Paths
  133. # -----------------------
  134.  
  135. # Both slashes and backslashes are allowed in paths
  136.  
  137. # path to the messagefile, not necessary anymore but can be used to override
  138. # the default language
  139. #-Fr/usr/lib/x86_64-linux-gnu/fpc/$fpcversion/msg/errore.msg
  140. #-Fr/usr/lib/x86_64-linux-gnu/fpc/$fpcversion/msg/errorn.msg
  141. #-Fr/usr/lib/x86_64-linux-gnu/fpc/$fpcversion/msg/errores.msg
  142. #-Fr/usr/lib/x86_64-linux-gnu/fpc/$fpcversion/msg/errord.msg
  143. #-Fr/usr/lib/x86_64-linux-gnu/fpc/$fpcversion/msg/errorr.msg
  144.  
  145. # search path for unicode binary files (FPC 2.x does not know this switch)
  146. #ifndef VER2
  147. -FM/unicode/
  148. #endif
  149.  
  150. # Search for $fpctarget/$fpcsubarch-$fpcmemorymodel/ subdirectory first
  151. # for i8086 CPU
  152. #ifdef cpui8086
  153. -Fu/usr/lib/x86_64-linux-gnu/fpc/$fpcversion/units/$fpctarget/$fpcsubarch-$fpcmemorymodel
  154. -Fu/usr/lib/x86_64-linux-gnu/fpc/$fpcversion/units/$fpctarget/$fpcsubarch-$fpcmemorymodel/*
  155. -Fu/usr/lib/x86_64-linux-gnu/fpc/$fpcversion/units/$fpctarget/$fpcsubarch-$fpcmemorymodel/rtl
  156. #endif
  157.  
  158. # searchpath for units and other system dependent things
  159. -Fu/usr/lib/x86_64-linux-gnu/fpc/$fpcversion/units/$fpctarget
  160. -Fu/usr/lib/x86_64-linux-gnu/fpc/$fpcversion/units/$fpctarget/*
  161. -Fu/usr/lib/x86_64-linux-gnu/fpc/$fpcversion/units/$fpctarget/rtl
  162.  
  163. #IFDEF FPCAPACHE_1_3
  164. -Fu/usr/lib/x86_64-linux-gnu/fpc/$fpcversion/units/$fpctarget/httpd13/
  165. #ELSE
  166. #IFDEF FPCAPACHE_2_0
  167. -Fu/usr/lib/x86_64-linux-gnu/fpc/$fpcversion/units/$fpctarget/httpd20
  168. #ELSE
  169. -Fu/usr/lib/x86_64-linux-gnu/fpc/$fpcversion/units/$fpctarget/httpd22
  170. #ENDIF
  171. #ENDIF
  172.  
  173. # searchpath for fppkg user-specific packages
  174. -Fu~/.fppkg/lib/fpc/$fpcversion/units/$FPCTARGET/*
  175.  
  176. # searchpath for tools
  177. -FD/usr/lib/x86_64-linux-gnu/fpc/$fpcversion/bin/$FPCTARGET
  178.  
  179. # path to the gcclib
  180. #ifdef cpui386
  181. -Fl/usr/lib/gcc/x86_64-linux-gnu/10
  182. #endif
  183. #ifdef cpux86_64
  184. -Fl/usr/lib/gcc/x86_64-linux-gnu/10
  185. #endif
  186.  
  187. # searchpath for libraries
  188. #-Fl/usr/lib/x86_64-linux-gnu/fpc/$fpcversion/lib
  189. #-Fl/lib;/usr/lib
  190. -Fl/usr/lib/x86_64-linux-gnu/fpc/$fpcversion/lib/$FPCTARGET
  191.  
  192. #IFNDEF CPUI386
  193. #IFNDEF CPUAMD64
  194. #DEFINE NEEDCROSSBINUTILS
  195. #ENDIF
  196. #ENDIF
  197.  
  198. #IFNDEF Linux
  199. #DEFINE NEEDCROSSBINUTILS
  200. #ENDIF
  201.  
  202. # never need cross-prefix when targeting the JVM
  203. # (no native compiler, always cross-compiling)
  204. #ifdef cpujvm
  205. #undef NEEDCROSSBINUTILS
  206. #endif
  207.  
  208. # for android cross-prefix is set by compiler
  209. #ifdef android
  210. #undef NEEDCROSSBINUTILS
  211. #endif
  212.  
  213. # never need cross-prefix when targeting the i8086
  214. # (no native compiler, always cross-compiling)
  215. #ifdef cpui8086
  216. #undef NEEDCROSSBINUTILS
  217. #endif
  218.  
  219. # never need cross-prefix when targeting the i8086
  220. # (no native compiler, always cross-compiling)
  221. #ifdef cpujvm
  222. #undef NEEDCROSSBINUTILS
  223. #endif
  224.  
  225. # binutils prefix for cross compiling
  226. #IFDEF FPC_CROSSCOMPILING
  227. #IFDEF NEEDCROSSBINUTILS
  228.   -XP$FPCTARGET-
  229. #ENDIF
  230. #ENDIF
  231.  
  232.  
  233. # -------------
  234. # Linking
  235. # -------------
  236.  
  237. # generate always debugging information for GDB (slows down the compiling
  238. # process)
  239. #      -gc        generate checks for pointers
  240. #      -gd        use dbx
  241. #      -gg        use gsym
  242. #      -gh        use heap trace unit (for memory leak debugging)
  243. #      -gl        use line info unit to show more info for backtraces
  244. #      -gv        generates programs tracable with valgrind
  245. #      -gw        generate dwarf debugging info
  246. #
  247. # Enable debuginfo and use the line info unit by default
  248. #-gl
  249.  
  250. # always pass an option to the linker
  251. #-k-s
  252.  
  253. # Always use smartlinking on i8086, because the system unit exceeds the 64kb
  254. # code limit
  255. #ifdef cpui8086
  256. -CX
  257. -XX
  258. #endif
  259.  
  260.  
  261. # -------------
  262. # Miscellaneous
  263. # -------------
  264.  
  265. # Write always a nice FPC logo ;)
  266. -l
  267.  
  268. # Verbosity
  269. #      e : Show errors (default)       d : Show debug info
  270. #      w : Show warnings               u : Show unit info
  271. #      n : Show notes                  t : Show tried/used files
  272. #      h : Show hints                  s : Show time stamps
  273. #      i : Show general info           q : Show message numbers
  274. #      l : Show linenumbers            c : Show conditionals
  275. #      a : Show everything             0 : Show nothing (except errors)
  276. #      b : Write file names messages   r : Rhide/GCC compatibility mode
  277. #          with full path              x : Executable info (Win32 only)
  278. #      v : write fpcdebug.txt with     p : Write tree.log with parse tree
  279. #          lots of debugging info
  280. #
  281. # Display Info, Warnings and Notes
  282. -viwn
  283. # If you don't want so much verbosity use
  284. #-vw
  285. # multiarch library search path
  286. -Fl/usr/lib/$fpctarget-*
  287. # Third party units should be installe in a, multi-arch compatible location.
  288. # Units should be installed in /usr/lib/$fpctarget-gnu/fp-units-2.6.2/$pkg/.
  289. # Ech fp-units package should install a configuration file called $pkg.cfg in
  290. #CFGDIR /etc/fpc-$fpcversion.cfg.d/$fpctarget
  291.  
  292.  

also see the warnings than come up when starting lazarus, maybe they are relevant?

MarkMLl

  • Hero Member
  • *****
  • Posts: 6676
Re: Panic : internal error: access violation
« Reply #16 on: July 10, 2022, 09:54:00 am »
See thread containing https://forum.lazarus.freepascal.org/index.php/topic,56937.msg423239.html#msg423239

It's a Debian packaging problem.

MarkMLl
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

winni

  • Hero Member
  • *****
  • Posts: 3197
Re: Panic : internal error: access violation
« Reply #17 on: July 10, 2022, 11:29:36 am »
Code: Pascal  [Select][+][-]
  1.  
  2.  
  3. kaushan@oldred:~$ uname -a
  4. Linux oldred 5.10.0-13-amd64 #1 SMP Debian 5.10.106-1 (2022-03-17) x86_64 GNU/Linux
  5.  

looks like there is no fpc and lazarus files?

wildfire

  • Full Member
  • ***
  • Posts: 109
Re: Panic : internal error: access violation
« Reply #18 on: July 10, 2022, 11:28:52 pm »
That's the kernel version winni, my bullseye system reports 5.15.32-v7l+
« Last Edit: July 10, 2022, 11:32:49 pm by wildfire »
A halo is a mere circle, when does it end?

 

TinyPortal © 2005-2018