Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2019-02

Makefile error or what else?

4 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Joe

Hi,

under Raspbian Stretch (current version) on a Pi 3B+,  making of Lazarus 2 fails. What's the reason, how to fix?

Log:
Executing: /usr/bin/svn info /home/pi/fpcupdeluxe/lazarus (working dir: ) URL: https://svn.freepascal.org/svn/lazarus/tags/lazarus_2_0_0 Revision: 60442
Letzter Autor: mattias
Letzte geänderte Rev: 60307
Letztes Änderungsdatum: 2019-02-02 21:09:45 +0100 (Sam, 02. Feb 2019) ...
fpcupdeluxe: info: LazarusNativeInstaller (BuildModuleCustom: Lazarus): Running make all
fpcupdeluxe: info: LazarusNativeInstaller (BuildModuleCustom: Lazarus): make. Params:
FPC=/home/pi/fpcupdeluxe/fpc/bin/arm-linux/fpc.sh,PP=/home/pi/fpcupdeluxe/fpc/bin/arm-linux/ppcarm,USESVN2REVISIONINC=0,--directory=.,INSTALL_PREFIX=/home/pi/fpcupdeluxe/lazarus,FPCDIR=/home/pi/fpcupdeluxe/fpcsrc,FPCMAKE=/home/pi/fpcupdeluxe/fpc/bin/arm-linux/fpcmake,PPUMOVE=/home/pi/fpcupdeluxe/fpc/bin/arm-linux/ppumove,OPT=-vw-n-h-l-d-u-t-p-c-,all Executing: make FPC=/home/pi/fpcupdeluxe/fpc/bin/arm-linux/fpc.sh PP=/home/pi/fpcupdeluxe/fpc/bin/arm-linux/ppcarm USESVN2REVISIONINC=0 --directory=. INSTALL_PREFIX=/home/pi/fpcupdeluxe/lazarus FPCDIR=/home/pi/fpcupdeluxe/fpcsrc
FPCMAKE=/home/pi/fpcupdeluxe/fpc/bin/arm-linux/fpcmake PPUMOVE=/home/pi/fpcupdeluxe/fpc/bin/arm-linux/ppumove OPT=-vw-n-h-l-d-u-t-p-c- all (working dir: /home/pi/fpcupdeluxe/lazarus) make: Verzeichnis »/home/pi/fpcupdeluxe/lazarus« wird betreten Makefile:3388: *** Es ist nur ein »else« pro Bedingung erlaubt. Schluss. make: Verzeichnis »/home/pi/fpcupdeluxe/lazarus« wird verlassen fpcupdeluxe: ERROR: LazarusNativeInstaller (BuildModuleCustom: Lazarus): make returned error code #512

Regards --  Joe

Reply by email

Bo Berglund
to Joe
Joe wrote
under Raspbian Stretch (current version) on a Pi 3B+,  making of Lazarus 2 fails. What's the reason, how to fix?

I do not know enough to parse an error dump, but as I have reported here in another hread about building Lazarus 2.0.0 using Fpc 3.0.4 I got it working fine *after* I changed the swap size to 1GB. I had forgotten all about thta in the time since I built Lazarus 1.6 on another RPi.

So change the swap space to 1GB and retry, chances are it will work.

If you are already using 1GB swap, then disregard this message. The problem is elsewhere. But my build script, which I use on all RPi devices I make, works just fine wity 1GB swap.
I wrote it specifically to not forget stuff I need to do to get Fpc/lazarus on to a new RPi unit. But I cannot script the swap space...

Is there any way to script a test for swap space so I can display an error in my script and exit if swap is too small?
(Not good at bash scripting)

Bo Berglund Developer in Sweden

Reply by email

Andreas Frieß
to Joe: under Raspbian Stretch (current version) on a Pi 3B+,  making of Lazarus 2 fails. What's…

See https://bugs.freepascal.org/view.php?id=34787

i delete the whole installation and it works. At this time i think i was alone with this issue. But now i see more and more people with the same issue.

For a fast fix, delete the extra lines in the makefile.

Andreas

Joe wrote 37 lines
Hi, under Raspbian Stretch (current version) on a Pi 3B+,  making of Lazarus 2 fails. What's the reason, how to fix? Log: Executing: /usr/bin/svn info /home/pi/fpcupdeluxe/lazarus (working dir: ) url: https://svn.freepascal.org/svn/lazarus/tags/lazarus_2_0_0 Revision: 60442 Letzter Autor: mattias Letzte geänderte Rev: 60307 Letztes Änderungsdatum: 2019-02-02 21:09:45 +0100 (Sam, 02. Feb 2019) ... fpcupdeluxe: info: LazarusNativeInstaller (BuildModuleCustom: Lazarus): Running make all fpcupdeluxe: info: LazarusNativeInstaller (BuildModuleCustom: Lazarus): make. Params: FPC=/home/pi/fpcupdeluxe/fpc/bin/arm-linux/fpc.sh,PP=/home/pi/fpcupdel uxe/fpc/bin/arm-linux/ppcarm,USESVN2REVISIONINC=0,--directory=.,INSTAL L_PREFIX=/home/pi/fpcupdeluxe/lazarus,FPCDIR=/home/pi/fpcupdeluxe/fpcs rc,FPCMAKE=/home/pi/fpcupdeluxe/fpc/bin/arm-linux/fpcmake,PPUMOVE=/hom e/pi/fpcupdeluxe/fpc/bin/arm-linux/ppumove,OPT=-vw-n-h-l-d-u-t-p-c-,al l Executing: make FPC=/home/pi/fpcupdeluxe/fpc/bin/arm-linux/fpc.sh PP=/home/pi/fpcupdeluxe/fpc/bin/arm-linux/ppcarm USESVN2REVISIONINC=0 --directory=. INSTALL_PREFIX=/home/pi/fpcupdeluxe/lazarus FPCDIR=/home/pi/fpcupdeluxe/fpcsrc FPCMAKE=/home/pi/fpcupdeluxe/fpc/bin/arm-linux/fpcmake PPUMOVE=/home/pi/fpcupdeluxe/fpc/bin/arm-linux/ppumove OPT=-vw-n-h-l-d-u-t-p-c- all (working dir: /home/pi/fpcupdeluxe/lazarus) make: Verzeichnis »/home/pi/fpcupdeluxe/lazarus« wird betreten Makefile:3388: *** Es ist nur ein »else« pro Bedingung erlaubt. Schluss. make: Verzeichnis »/home/pi/fpcupdeluxe/lazarus« wird verlassen fpcupdeluxe: ERROR: LazarusNativeInstaller (BuildModuleCustom: Lazarus): make returned error code #512 Regards --  Joe

Reply by email