Recent

Author Topic: Can't recompile fpc 3.2 after update  (Read 3247 times)

renabor

  • Jr. Member
  • **
  • Posts: 73
Can't recompile fpc 3.2 after update
« on: July 07, 2021, 12:47:31 pm »
Hi all,
with latest svn update to revision 49581 I can't recompile freepascal due to segmentation error.

The freepascal code version is:

Relative URL: ^/branches/fixes_3_2
Repository: https://svn.freepascal.org/svn/fpc
UUID del Repository: 3ad0048d-3df7-0310-abae-a5850022a9f2
Revision: 49581

and the error that i got when i launch the make all command is:

/home/renabor/bin/freepascal/fpc_fixes_3_2/compiler/ppc1 -Ur -Ur -Xs -O2 -n -Fi../inc -Fi../x86_64 -Fi../unix -Fix86_64 -FE. -FU/home/renabor/bin/freepascal/fpc_fixes_3_2/rtl/units/x86_64-linux -Cg -dx86_64 -dRELEASE  -Us -Sg system.pp
make[7]: *** [Makefile:3848: system.ppu] Segmentation error

I use Ubuntu 21.04
Can anyone help me to solve it?
Thank you!
FPC 3.2.2 | Lazarus 2.0.13 | Kubuntu 21.04 64bit

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 9589
  • FPC developer.
Re: Can't recompile fpc 3.2 after update
« Reply #1 on: July 07, 2021, 01:25:32 pm »
I use Ubuntu 21.04
Can anyone help me to solve it?
Thank you!

I just tried and here it is fine. Do you use FPC 3.2.2 as starting compiler?

Thaddy

  • Hero Member
  • *****
  • Posts: 10928
Re: Can't recompile fpc 3.2 after update
« Reply #2 on: July 07, 2021, 01:32:57 pm »
Or 3.0.4 as starting compiler? That one is too old, has been removed as bootstrap.
The average programmer productivity is 4-5 hours per day. Peak performance 72 hours for short bursts. MTBF is 1 second or less.

renabor

  • Jr. Member
  • **
  • Posts: 73
Re: Can't recompile fpc 3.2 after update
« Reply #3 on: July 07, 2021, 03:16:53 pm »
I use fpc 3.0.5 as starting compiler:
Free Pascal Compiler version 3.0.5 [2020/08/12] for x86_64
I'm unable to update this compiler due to the same error: segmentation fault (using Free Pascal Compiler version 3.0.0 [2015/12/05] for x86_64 as starting compiler)
FPC 3.2.2 | Lazarus 2.0.13 | Kubuntu 21.04 64bit

PascalDragon

  • Hero Member
  • *****
  • Posts: 3398
  • Compiler Developer
Re: Can't recompile fpc 3.2 after update
« Reply #4 on: July 08, 2021, 09:09:50 am »
I use fpc 3.0.5 as starting compiler:
Free Pascal Compiler version 3.0.5 [2020/08/12] for x86_64

Use FPC 3.2.0 or FPC 3.2.2 as starting compiler. Never use an odd version except if you know what you're doing, because those are not supported as starting compilers.

renabor

  • Jr. Member
  • **
  • Posts: 73
Re: Can't recompile fpc 3.2 after update
« Reply #5 on: July 08, 2021, 07:01:37 pm »
After switching to fpc 3.2.2 tree and using fpc 3.2 as starting compiler I was able to have a running version of fpc,  the crosscompiler and lazarus 2.0.13 compiled with the new fpc!
great!
thank you all for your advice!
FPC 3.2.2 | Lazarus 2.0.13 | Kubuntu 21.04 64bit

 

TinyPortal © 2005-2018