Re: [Lazarus] Syntax error compiling fpc 3.0.0 3.0.0rc1 3.0.0rc2
On Sat, 19 Dec 2015 18:28:06 -0500, Donald Ziesigwrote: >With the >additional 8 GB I don't think I'll have space problems. You may also have a problem with swap space. Have you increased swap? A figure of 1000 or even 1200 MB is needed in my experience. -- Bo Berglund Developer in Sweden -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Syntax error compiling fpc 3.0.0 3.0.0rc1 3.0.0rc2
Hi All, I ran out of room on the raspberry pi's 8GB NOOBS SD card so I just created a new SD 16GB card with the latest version of Raspbian. I got all of the usual tools working in short order (VNC, SSH, FTP,...). Then I decided to build a completely new version of FreePascal and Lazarus from source (just to prove that I can ;-) ), but I can't compile any style of fpc 3.0.0 from: svn co http://svn.freepascal.org/svn/fpc/tags/release_3_0_0_rc2 fpc2 svn co http://svn.freepascal.org/svn/fpc/tags/release_3_0_0_rc1 fpc1 svn co http://svn.freepascal.org/svn/fpc/branches/fixes_3_0 fpc I am using fpc 2.6.4 as the bootstrap compiler. The error is consistent at flt_pack.inc, line 119. The message is "Syntax error while parsing a conditional compiling expression". I looked at the code and although it is not a trivial expression, I can't see anything wrong with it (unless one of the conditional define values is erroneous): {$if defined(fpc_softfpu_implementation) or ( defined(FPC_SYSTEM_HAS_extractFloat64Frac) and defined(FPC_SYSTEM_HAS_extractFloat64Exp) and defined(FPC_SYSTEM_HAS_extractFloat64Sign) )} I am using the command: make clean all OPT="dFPC_ARMHF -CX -CfVFPV2 -CaEABIHF -OpARMV6 -O2 -XX -Xs" from mitchelcomputing.co.uk (slightly modified). == I tried commenting out the entire conditional statement and replacing it with a failing conditional: {$ifdef DRZ} // DRZ is not defined. The compilation then ran to completion but the build failed because "Binary files ppp3 and ppcarm differ". (Why there are two executables and what it means that they are different is beyond me :-[ ). That error message is followed by many "recipe failed" messages. Both ppp3 and ppcarm (which were left in the compiler directory) execute successfully in that they report version 3.0.1 for arm with detailed usage information. I haven't tried compilation with them (yet). I will try "hello world" a little later today (have to run an errand for my wife) and report the results. I don't want to spend the time compiling Lazarus till I get a clean build and install of fpc. Any help will be appreciated. Thanks, Don Ziesig -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Syntax error compiling fpc 3.0.0 3.0.0rc1 3.0.0rc2
Donald Ziesig wrote: Hi All, I ran out of room on the raspberry pi's 8GB NOOBS SD card so I just created a new SD 16GB card with the latest version of Raspbian. I got all of the usual tools working in short order (VNC, SSH, FTP,...). Then I decided to build a completely new version of FreePascal and Lazarus from source (just to prove that I can ;-) ), but I can't compile any style of fpc 3.0.0 from: svn co http://svn.freepascal.org/svn/fpc/tags/release_3_0_0_rc2 fpc2 svn co http://svn.freepascal.org/svn/fpc/tags/release_3_0_0_rc1 fpc1 svn co http://svn.freepascal.org/svn/fpc/branches/fixes_3_0 fpc I am using fpc 2.6.4 as the bootstrap compiler. make sure you start off with a binary tailored for the Rpi. I think that the last time I started from scratch I got it from http://sourceforge.net/projects/mseide-msegui/files/fpcarm/ Current Raspbian provides the necessary prerequisites, but you might need to tweak fpc.cfg or provide an explicit -Fl. The compilation then ran to completion but the build failed because "Binary files ppp3 and ppcarm differ". (Why there are two executables and what it means that they are different is beyond me :-[ ). Because the standard build checks that repeated recompilations are substantially the same. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Syntax error compiling fpc 3.0.0 3.0.0rc1 3.0.0rc2
Donald, if all you want is a minimal FPC 3.0.0 for the Pi, I suggest you use my minimal installers from http://www.getlazarus.org The minimal version weights in at 40MB and includes the compiler, a few tools like the console "fp" ide, and the rtl (no fcl, no lcl). I also includes a fpc terminal shortcut which opens you default terminal with fpc envirnonemt variables and configuration setup. It will not interfere any other existing FPC or Lazarus setup. It also makes for a good starting point to make the FPC compiler from sources: Minimal Pi PFC 3.0.0: http://cache.getlazarus.org/archives/fpc-3.0.0.raspberry-min.tar.gz If on the other hand you want to run a newer version of Lazarus with FPC 3.0.0 on the Pi, I also have a bundle for that. It's also quite small (I know SD card space on the Pi is a concern) at under 200MB for FPC 3.0.0 plus Lazarus. The FPC in this bundle comes with rtl, fcl, and a few other packages (again some have been removed), and the Lazarus version has had the graphic image sources, and tool sources removed (though tool binaries are included). This reduced in size and Pi specific FPC 3.0.0 with Lazarus can be installed from here: http://www.getlazarus.org/setup/?download#raspberry_pi Final note: I know many Pi users are concerned about the SD storage space required by FPC and Lazarus and I've taken some care to reduce their sizes on Pi, but please be aware more SD space will be used and is required when compiling with Lazarus. The first time you build with Lazarus it will require space to store the lcl compiled units (two hundred plus megabytes more), and any lcl programs you write and compile can take upwards of 20-30MB each. If you want to keep some of your compiled programs around, consider using the "strip -s yourprogram" utility to reduce their size after you're done developing a program. The storage saving will be significant. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Syntax error compiling fpc 3.0.0 3.0.0rc1 3.0.0rc2
On 12/19/2015 05:53 PM, Anthony Walter wrote: Donald, if all you want is a minimal FPC 3.0.0 for the Pi, I suggest you use my minimal installers from http://www.getlazarus.org The minimal version weights in at 40MB and includes the compiler, a few tools like the console "fp" ide, and the rtl (no fcl, no lcl). I also includes a fpc terminal shortcut which opens you default terminal with fpc envirnonemt variables and configuration setup. It will not interfere any other existing FPC or Lazarus setup. It also makes for a good starting point to make the FPC compiler from sources: Minimal Pi PFC 3.0.0: http://cache.getlazarus.org/archives/fpc-3.0.0.raspberry-min.tar.gz If on the other hand you want to run a newer version of Lazarus with FPC 3.0.0 on the Pi, I also have a bundle for that. It's also quite small (I know SD card space on the Pi is a concern) at under 200MB for FPC 3.0.0 plus Lazarus. The FPC in this bundle comes with rtl, fcl, and a few other packages (again some have been removed), and the Lazarus version has had the graphic image sources, and tool sources removed (though tool binaries are included). This reduced in size and Pi specific FPC 3.0.0 with Lazarus can be installed from here: http://www.getlazarus.org/setup/?download#raspberry_pi Final note: I know many Pi users are concerned about the SD storage space required by FPC and Lazarus and I've taken some care to reduce their sizes on Pi, but please be aware more SD space will be used and is required when compiling with Lazarus. The first time you build with Lazarus it will require space to store the lcl compiled units (two hundred plus megabytes more), and any lcl programs you write and compile can take upwards of 20-30MB each. If you want to keep some of your compiled programs around, consider using the "strip -s yourprogram" utility to reduce their size after you're done developing a program. The storage saving will be significant. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus Hi again Anthony, I used your tiny version on my original SD card and it works fine, but I need the full-up debugging version on the big SD card. With the additional 8 GB I don't think I'll have space problems. If I do, I'll remove Python and Mathematica like I did on the original SD card. That freed up a lot of space. Thanks, Don -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus