Recent

Author Topic: Trunk 3.3.1 access violation  (Read 4559 times)

peter.dell

  • New Member
  • *
  • Posts: 20
Trunk 3.3.1 access violation
« on: April 25, 2024, 01:38:41 am »
Hello,

I'm new to the forum, so this may be the wrong place to post. Please advise if that's the case.
I've pulled the latest 3.3.1 from Git and during the "make all" I get this error at 30% completion:

make all
....
Target OS: Win32 for i386
Compiling fppkg\pkglnet.pp
PPU Loading fppkg\units\i386-win32\lftp.ppu
pkglnet.pp(10,9) Fatal: Can't find unit lftp used by pkglnet
Fatal: Compilation aborted

  $00427393
  $00427651
  $0042C1FF
  $0042C6B6
  $0042DA4C
  $0042D427
  $0042E278
  $0042680C
  $00407E11
make[2]: *** [Makefile:2904: all] Error 1
make[2]: Leaving directory '/cygdrive/c/jac/system/Windows/Programming/Repositories/fpc/utils'
make[1]: *** [Makefile:3090: utils_all] Error 2
make[1]: Leaving directory '/cygdrive/c/jac/system/Windows/Programming/Repositories/fpc'
make: *** [Makefile:3294: build-stamp.i386-win32] Error 2

Any suggestion on what I could do?

Kind regards, Peter-


JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4567
  • I like bugs.
Re: Trunk 3.3.1 access violation
« Reply #1 on: April 25, 2024, 08:16:41 pm »
I'm new to the forum, so this may be the wrong place to post. Please advise if that's the case.
I've pulled the latest 3.3.1 from Git ...
Yes it was a wrong place. This thread is about a dot release FPC 3.2.4.  Your issue is with FPC trunk (3.3.1).
Please open a new thread.
Mostly Lazarus trunk and FPC 3.2 on Manjaro Linux 64-bit.

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 12142
  • FPC developer.
Re: Trunk 3.3.1 access violation
« Reply #2 on: April 25, 2024, 08:23:31 pm »
I splitted off the topic to save the OP work.

dbannon

  • Hero Member
  • *****
  • Posts: 3305
    • tomboy-ng, a rewrite of the classic Tomboy
Re: Trunk 3.3.1 access violation
« Reply #3 on: April 26, 2024, 02:07:05 pm »
Oh Peter, I was hoping someone who knows what they are talking about would answer but not looking good. So, I'll try...

I'll start with what you have not told us. That is, why are you using main ? I ask because main is the developmental branch, it will from time to time completely fall over. So, perhaps not a great choice for someone who might just be new to FPC ?  The developers push changes to main, often only tested on their own system, to see if they work. Its expected to be broken from time to time. Especially on less than mainstream platforms.

So, why did you choose main ?  Because you want to compile some old code you found that, when first written, needed something in main ?  If so, its likely that something is now in in the release, FPC3.2.2. So, try that perhaps ?

If you need something newer than FPC3.2,2, perhaps for something like supporting openssl 3.0, then consider FPC fixes, aka 3.2.3. Its a lot less likely to break (but no guarantee).

Really, really must have main ?  Wait a few days and download a fresh copy, maybe what ever the problem is has been fixed. Otherwise, time do do some debugging I am afraid.

Davo

Lazarus 3, Linux (and reluctantly Win10/11, OSX Monterey)
My Project - https://github.com/tomboy-notes/tomboy-ng and my github - https://github.com/davidbannon

noname01

  • New Member
  • *
  • Posts: 11
Re: Trunk 3.3.1 access violation
« Reply #4 on: March 23, 2025, 06:00:02 pm »
I apologize if I write in this place, but
when I try to compile the FPC trunk from
https://gitlab.com/freepascal.org/fpc/source
I get this error:

The installer encountered the following error:
External command "C:/lazarus/fpc/compiler/ppcx64.exe  -Twin64 -FEbin\x86_64-win64 -FUunits\x86_64-win64\ -FuC:\lazarus\fpc\rtl\units\x86_64-win64\ -FuC:\lazarus\fpc\packages\fcl-base\units\x86_64-win64\ -FuC:\lazarus\fpc\packages\rtl-objpas\units\x86_64-win64\ -FuC:\lazarus\fpc\packages\paszlib\units\x86_64-win64\ -FuC:\lazarus\fpc\packages\hash\units\x86_64-win64\ -FuC:\lazarus\fpc\packages\rtl-extra\units\x86_64-win64\ -FuC:\lazarus\fpc\packages\fcl-json\units\x86_64-win64\ -FuC:\lazarus\fpc\packages\fcl-fpcunit\units\x86_64-win64\ -FuC:\lazarus\fpc\packages\fcl-xml\units\x86_64-win64\ -FuC:\lazarus\fpc\packages\libtar\units\x86_64-win64\ -Ur -Xs -O2 -n -O4 -g- -Xs -CX -XX -dx86_64 -dRELEASE -viq fpcsubst.pp" failed with exit code -1073741819. Console output:
Target OS: Win64 for x64
Compiling fpcsubst.pp
Writing Resource String Table file: fpcsubst.rsj
Linking bin\x86_64-win64\fpcsubst.exe
243 lines compiled, 0.2 sec, 204880 bytes code, 11012 bytes data

  $0000000100029569
  $00000001000298B1
  $000000010002F1A3
  $000000010002F6ED
  $0000000100030F1B
  $0000000100030962
  $0000000100031861
  $00000001000343EA
  $0000000100028797
  $0000000100028D5F
  $000000010000832E
  $0000000100008FD6
  $0000000100015FE0
  $0000000100001940
  $00007FFC493CE8D7
  $00007FFC4A79BF6C
make[2]: *** [makefile:2939: all] Error 1
make[2]: Leaving directory 'C:/lazarus/fpc/utils'
make[1]: *** [makefile:3126: utils_all] Error 2
make[1]: Leaving directory 'C:/lazarus/fpc'
make: *** [makefile:3330: build-stamp.x86_64-win64] Error 2

I have identified the commit that breaked the compilation
https://gitlab.com/freepascal.org/fpc/source/-/commit/0f2248f923dc1cd790a9588b64d0a2dcffcf3560

I resolved changing compiler/link.pas file:

1823  -        SetLength(IsHandled,ScriptCount);
1823 +        SetLength(IsHandled,ScriptCount+1);

I hope this helps.

Marc

  • Administrator
  • Hero Member
  • *
  • Posts: 2645
Re: Trunk 3.3.1 access violation
« Reply #5 on: March 24, 2025, 02:16:02 pm »
Currently the internal memory allocation of the compiler is refactored. This may cause some issues and is worked on.
IIRC this specific issue was already noticed
//--
{$I stdsig.inc}
//-I still can't read someones mind
//-Bugs reported here will be forgotten. Use the bug tracker

 

TinyPortal © 2005-2018