* * *

Author Topic: Raspberry Pi 3 - Lazarus svn "fixes_18" sources fail to compile  (Read 856 times)

ertank

  • Full Member
  • ***
  • Posts: 201
Hello,

Using Raspberry Pi 3. Operating system is up to date as of today.
Code: [Select]
Linux raspberrypi 4.14.30-v7+ #1102 SMP Mon Mar 26 16:45:49 BST 2018 armv7l GLinux

Updated my Lazarus SVN sources to below:
Code: [Select]
Working Copy Root Path: /home/pi/lazarus18/source
URL: https://svn.freepascal.org/svn/lazarus/branches/fixes_1_8
Relative URL: ^/branches/fixes_1_8
Repository Root: https://svn.freepascal.org/svn/lazarus
Repository UUID: 4005530d-fff6-0310-9dd1-cebe43e6787f
Revision: 57583
Node Kind: directory
Schedule: normal
Last Changed Author: mattias
Last Changed Rev: 57430
Last Changed Date: 2018-03-02 14:47:52 +0300 (Fri, 02 Mar 2018)

"make clean bigide" fails with below error:
Code: [Select]
/home/pi/lazarus18/source/components/PascalScript/Source/arm.inc(142,2) Error: (8006) Asm: Opcode fmrrd not in table
/home/pi/lazarus18/source/components/PascalScript/Source/uPSRuntime.pas(12743,1) Fatal: (10026) There were 1 errors compiling module, stopping
Fatal: (1018) Compilation aborted
Makefile:2767: recipe for target 'pascalscript.ppu' failed
make[2]: *** [pascalscript.ppu] Error 1
make[2]: Leaving directory '/home/pi/lazarus18/source/components/PascalScript/Source'
Makefile:1603: recipe for target 'bigide' failed
make[1]: *** [bigide] Error 2
make[1]: Leaving directory '/home/pi/lazarus18/source/components'
Makefile:3251: recipe for target 'bigidecomponents' failed
make: *** [bigidecomponents] Error 2

Any help is appreciated.

ertank

  • Full Member
  • ***
  • Posts: 201
Re: Raspberry Pi 3 - Lazarus svn "fixes_18" sources fail to compile
« Reply #1 on: April 04, 2018, 06:41:33 am »
I confirm that error is still present in a freshly downloaded SNV branch.
I also confirm, there is no error on Win32 platform, and I get it on Raspberry Pi.

molly

  • Hero Member
  • *****
  • Posts: 2345
Re: Raspberry Pi 3 - Lazarus svn "fixes_18" sources fail to compile
« Reply #2 on: April 04, 2018, 07:19:21 am »
are you sure ertank ? (can't check myself atm) it should have been addressed with FPC revision 38720. note: FPC, did you do a fresh checkout for that as well ?
« Last Edit: April 04, 2018, 07:22:09 am by molly »

ertank

  • Full Member
  • ***
  • Posts: 201
Re: Raspberry Pi 3 - Lazarus svn "fixes_18" sources fail to compile
« Reply #3 on: April 05, 2018, 10:53:10 am »
Tested more than once, and also tested on an empty directory, completed fresh checkout. Both fail on provided code.

I only updated my Lazarus sources. fpc I am using is
Code: [Select]
Free Pascal Compiler version 3.1.1 [2017/12/24] for arm

Working Copy Root Path: /home/pi/fpc/source
URL: https://svn.freepascal.org/svn/fpc/trunk
Relative URL: ^/trunk
Repository Root: https://svn.freepascal.org/svn/fpc
Repository UUID: 3ad0048d-3df7-0310-abae-a5850022a9f2
Revision: 37792
Node Kind: directory
Schedule: normal
Last Changed Author: mattias
Last Changed Rev: 37792
Last Changed Date: 2017-12-24 13:12:59 +0300 (Sun, 24 Dec 2017)

Will try with updated codes for fpc and report in here.

Thaddy

  • Hero Member
  • *****
  • Posts: 5989
Re: Raspberry Pi 3 - Lazarus svn "fixes_18" sources fail to compile
« Reply #4 on: April 05, 2018, 11:38:40 am »
Hmm. I suspect that you  will need a newer FPC trunk indeed.
I just tested with fpc trunk and laz trunk and both build.

Note if you were using an old trunk 3.1.1 combined with the - not recommended! - overrideversioncheck option there was a breaking change two weeks ago.
(Trunk could not bootstrap newer trunk for a short period, but that is usually not a recommended way: 3.0.4 should bootstrap trunk and that works)
But if you use 3.0.4 as the starting compiler I see no issues here. (written on RPi3).
Code: Bash  [Select]
  1. pi@raspberrypi:~/fpc311 $ fpc
  2. Free Pascal Compiler version 3.1.1-r38689 [2018/04/05] for arm

And the latest Lazarus also works ok.
« Last Edit: April 05, 2018, 12:04:38 pm by Thaddy »
I might not give the answer that you want me to.. Peter Green 1969

molly

  • Hero Member
  • *****
  • Posts: 2345
Re: Raspberry Pi 3 - Lazarus svn "fixes_18" sources fail to compile
« Reply #5 on: April 05, 2018, 08:59:20 pm »
Tested more than once, and also tested on an empty directory, completed fresh checkout. Both fail on provided code.

I only updated my Lazarus sources.
It was solved in FPC, not lazarus.

Quote
Free Pascal Compiler version 3.1.1 [2017/12/24] for arm
That is too old, hence updating lazarus alone won't help (in fact you shouldn't have to update lazarus at all, just recompile with new(er) fpc).

... it should have been addressed with FPC revision 38720. note: FPC, did you do a fresh checkout for that as well ?
Stupid typo's  :-[. It should read: revision 38270 (date 17 feb 2018)

so:
Hmm. I suspect that you  will need a newer FPC trunk indeed.
latest Lazarus also works ok.
is correct  :)

ertank

  • Full Member
  • ***
  • Posts: 201
Re: Raspberry Pi 3 - Lazarus svn "fixes_18" sources fail to compile
« Reply #6 on: April 05, 2018, 10:15:25 pm »
That is too old, hence updating lazarus alone won't help (in fact you shouldn't have to update lazarus at all, just recompile with new(er) fpc).
I believe, there are occasional updates to fixes_18 branch. So, I think it is "sometimes" necessary to update & build lazarus.

About my error, it disappeared after compiling fpc using updated trunk sources. All good now.

Lesson learned: First update fpc and then lazarus.

Thanks & regards,
Ertan

molly

  • Hero Member
  • *****
  • Posts: 2345
Re: Raspberry Pi 3 - Lazarus svn "fixes_18" sources fail to compile
« Reply #7 on: April 05, 2018, 11:36:06 pm »
I believe, there are occasional updates to fixes_18 branch. So, I think it is "sometimes" necessary to update & build lazarus.
It can also happen that a change in FPC also requires to 'update' lazarus. So yes, 'sometimes' it is necessary.

Quote
Lesson learned: First update fpc and then lazarus.
For me it also isn't always clear where the error originates from (FPC or Lazarus), but in this case it was (for me at least) as the exact same error was reported on the bug-tracker ;)

I'm glad that you are able to continue now. Happy coding !  :)

 

Recent

Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads Open Hub project report for Lazarus