Recent

Author Topic: Can't recompile fpc 3.2 after update  (Read 4123 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.2.3 | Kubuntu 22.04 64bit

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 11452
  • 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: 14373
  • Sensorship about opinions does not belong here.
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.
Object Pascal programmers should get rid of their "component fetish" especially with the non-visuals.

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.2.3 | Kubuntu 22.04 64bit

PascalDragon

  • Hero Member
  • *****
  • Posts: 5481
  • 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.2.3 | Kubuntu 22.04 64bit

 

TinyPortal © 2005-2018