Recent

Author Topic: Issue of building fpc_trunk and lazarus_trunk x64 for Windows  (Read 7125 times)

DonAlfredo

  • Hero Member
  • *****
  • Posts: 1852
Re: Issue of building fpc_trunk and lazarus_trunk x64 for Windows
« Reply #30 on: May 06, 2020, 07:47:41 am »
FPC rev 45216 is also ok.
Newer FPC revisions seem to cause this issue !
Getting closer.

PascalDragon

  • Hero Member
  • *****
  • Posts: 6238
  • Compiler Developer
Re: Issue of building fpc_trunk and lazarus_trunk x64 for Windows
« Reply #31 on: May 06, 2020, 08:58:53 am »
@PascalDragon

Could you please explain ?
The code-sample shows a very simple way of testing this.
This issue has now been reproduced by some people.
Just build FPC trunk and Lazarus trunk. And build+look at startlazarus.

I want one simple program file that I can use for testing that either halts with an exit code <> 0 if the error occurred or with an exit code = 0 if it didn't. And that doesn't need any special options to compile. Something that I can stuff into the compiler's testsuite once this bug is fixed.

JiaXing

  • Jr. Member
  • **
  • Posts: 75
Re: Issue of building fpc_trunk and lazarus_trunk x64 for Windows
« Reply #32 on: May 06, 2020, 09:47:32 am »
I want one simple program file that I can use for testing that either halts with an exit code <> 0 if the error occurred or with an exit code = 0 if it didn't. And that doesn't need any special options to compile. Something that I can stuff into the compiler's testsuite once this bug is fixed.

The fact is we have no idea what's wrong with startlazarus. As other said, they can't reproduce the bug outside of startlazarus. So you have to go straight into startlazarus to find the cause. Perhaps by isolate the problematic code and check the produced asembly?
I'm subscribed to the church of 440bx. Say no to OOP  :P

PascalDragon

  • Hero Member
  • *****
  • Posts: 6238
  • Compiler Developer
Re: Issue of building fpc_trunk and lazarus_trunk x64 for Windows
« Reply #33 on: May 06, 2020, 10:43:29 am »
That's why I'm asking someone to reproduce this with a simple example. I have enough other stuff to work on already.

zoltanleo

  • Hero Member
  • *****
  • Posts: 509
Re: Issue of building fpc_trunk and lazarus_trunk x64 for Windows
« Reply #34 on: May 06, 2020, 11:00:50 am »
That's why I'm asking someone to reproduce this with a simple example. I have enough other stuff to work on already.
Hi Sven.

If I understand you correctly, then the problem is easy to reproduce. You must (for Windows) build any trunk compiler after revision 45216, then build the latest version of Lazarus and try to run the IDE using starlazarus.exe. This is true for both x32 and x64.

If necessary, I will give a step-by-step code on how this error is reproduced by me.
Win10 LTSC x64/Deb 12 amd64(gtk2)/Kubuntu(qt5)/Darwin Cocoa x86_64 (Sequoia):
Lazarus x32_64 (trunk); FPC(trunk), FireBird 3.0.11; IBX by TonyW

Sorry for my bad English, I'm using translator ;)

PascalDragon

  • Hero Member
  • *****
  • Posts: 6238
  • Compiler Developer
Re: Issue of building fpc_trunk and lazarus_trunk x64 for Windows
« Reply #35 on: May 06, 2020, 12:08:05 pm »
That's why I'm asking someone to reproduce this with a simple example. I have enough other stuff to work on already.
Hi Sven.

If I understand you correctly, then the problem is easy to reproduce. You must (for Windows) build any trunk compiler after revision 45216, then build the latest version of Lazarus and try to run the IDE using starlazarus.exe. This is true for both x32 and x64.

If necessary, I will give a step-by-step code on how this error is reproduced by me.

I don't want to reproduce this in startlazarus.exe, I want a self contained example that is a simple Pascal program.

DonAlfredo

  • Hero Member
  • *****
  • Posts: 1852
Re: Issue of building fpc_trunk and lazarus_trunk x64 for Windows
« Reply #36 on: May 06, 2020, 12:47:30 pm »
Sorry about this. I have tried to isolate this issue, but did not succeed.
GetExeExt works everywhere in my tests, except in startlazarus.
I think it is related to the inline changes of commit 45217.

PascalDragon

  • Hero Member
  • *****
  • Posts: 6238
  • Compiler Developer
Re: Issue of building fpc_trunk and lazarus_trunk x64 for Windows
« Reply #37 on: May 06, 2020, 01:51:48 pm »
Sorry about this. I have tried to isolate this issue, but did not succeed.
GetExeExt works everywhere in my tests, except in startlazarus.
I think it is related to the inline changes of commit 45217.

If you can show that startlazarus fails with 45217, but succeeds with 45216 you can open a bug report with that information as well.

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 12571
  • FPC developer.
Re: Issue of building fpc_trunk and lazarus_trunk x64 for Windows
« Reply #38 on: May 06, 2020, 01:58:48 pm »
Sorry about this. I have tried to isolate this issue, but did not succeed.
GetExeExt works everywhere in my tests, except in startlazarus.
I think it is related to the inline changes of commit 45217.

If you can show that startlazarus fails with 45217, but succeeds with 45216 you can open a bug report with that information as well.

Unlikely, since that is a z80 related change. More likely 2-3 revs before when there was some inline related work.

PascalDragon

  • Hero Member
  • *****
  • Posts: 6238
  • Compiler Developer
Re: Issue of building fpc_trunk and lazarus_trunk x64 for Windows
« Reply #39 on: May 06, 2020, 02:52:15 pm »
Sorry about this. I have tried to isolate this issue, but did not succeed.
GetExeExt works everywhere in my tests, except in startlazarus.
I think it is related to the inline changes of commit 45217.

If you can show that startlazarus fails with 45217, but succeeds with 45216 you can open a bug report with that information as well.

Unlikely, since that is a z80 related change. More likely 2-3 revs before when there was some inline related work.

But 45217 is related to inlining. If it fails with that, then reverting to 45216 (no matter what that was about) will show whether that was the faulty one or not.


PascalDragon

  • Hero Member
  • *****
  • Posts: 6238
  • Compiler Developer
Re: Issue of building fpc_trunk and lazarus_trunk x64 for Windows
« Reply #41 on: May 07, 2020, 01:29:08 pm »
Thank you. As Florian had already noticed other bugs related to inlining he'll hopefully find that as well. :)

zoltanleo

  • Hero Member
  • *****
  • Posts: 509
Re: Issue of building fpc_trunk and lazarus_trunk x64 for Windows
« Reply #42 on: May 07, 2020, 01:48:11 pm »
Bugger filed.
https://bugs.freepascal.org/view.php?id=37034
Good news.   :)

Guys, thanks everyone for participating in the discussion of this problem.
Win10 LTSC x64/Deb 12 amd64(gtk2)/Kubuntu(qt5)/Darwin Cocoa x86_64 (Sequoia):
Lazarus x32_64 (trunk); FPC(trunk), FireBird 3.0.11; IBX by TonyW

Sorry for my bad English, I'm using translator ;)

 

TinyPortal © 2005-2018