Forum > Embedded - ARM

[FPC, CROSS ARM] for LPC1114

<< < (2/2)

Laksen:
What options did you use?

lvaskov:
These are the options as reported by Lazarus (excluding some project specific paths):

C:\FreePascal\fpc\bin\x86_64-win64\fpc.exe
-Tlinux
-Parm
-CpARMV7A
-MDelphi
-Scaghi
-CirotR
-Ch33554432
-O1
-gw2
-godwarfsets
-gl
-Xg
-gt
-vewnhibq
-Fi..\..\Binary\Linux32ARM\Debug\Units
-FuC:\FreePascal\lazarus\lcl\units\arm-linux\gtk2
-FuC:\FreePascal\lazarus\lcl\units\arm-linux
-FuC:\FreePascal\lazarus\components\lazutils\lib\arm-linux
-FuC:\FreePascal\lazarus\packager\units\arm-linux
-Fu.
-FU..\..\Binary\Linux32ARM\Debug\Units
-FE..\..\Binary\Linux32ARM\Debug
-o..\..\Binary\Linux32ARM\Debug\Project
-dLCL
-dLCLgtk2

Lazarus manages to find and open the file when I Control+Click on it, so it must be something with the compiler.

I tried to copy heapmgr.pp to my project's directory and add it to the project but when it is compiled it gives an error:

--- Code: Pascal  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---heapmgr.pp(288,38) Fatal: Syntax error, ":" expected but "identifier NAME" found
at this section:

--- Code: Pascal  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---var  initialheap : record end; external name '__fpc_initialheap';  heapsize : PtrInt; external name '__heapsize';

lvaskov:
Further tries:
Since the project is marked as {$MODE DELPHI}, looks like it prevents heapmgr from compiling, as mentioned in the previous comment. I put a {$MODE OBJFPC} in the beginning of it and the project compiled . But next another error follows:


--- Code: Pascal  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---(9015) Linking C:\FreePascal\Projects\Test\Binary\Linux32ARM\Debug\ProjectC:\FreePascal\Projects\Test\Binary\Linux32ARM\Debug\Units\heapmgr.o: In function `HEAPMGR_$$_init$':C:/FreePascal/Projects/Test/Packages/Application//heapmgr.pp:289: undefined reference to `__fpc_initialheap'C:\FreePascal\Projects\Test\Packages\Application\Project.lpr(40,1) Error: (9013) Error while linkingC:\FreePascal\Projects\Test\Packages\Application\Project.lpr(40,1) Fatal: (10026) There were 1 errors compiling module, stoppingFatal: (1018) Compilation abortedError: C:\FreePascal\fpc\bin\x86_64-win64\ppcrossarm.exe returned an error exitcode

Navigation

[0] Message Index

[*] Previous page

Go to full version