Recent

Author Topic: Fpcupdeluxe  (Read 490163 times)

sstvmaster

  • Full Member
  • ***
  • Posts: 210
Re: Fpcupdeluxe
« Reply #1755 on: February 18, 2021, 04:46:05 pm »
Solved, thanks to Don and Michael. See: https://github.com/LongDirtyAnimAlf/fpcupdeluxe/issues/342
« Last Edit: February 18, 2021, 07:16:13 pm by sstvmaster »
Windows 10 (64 bit)
Lazarus: 2.0.10 / Trunk x32

Bi0T1N

  • Jr. Member
  • **
  • Posts: 55
Re: Fpcupdeluxe
« Reply #1756 on: February 20, 2021, 02:37:21 pm »
Solved, thanks to Don and Michael. See: https://github.com/LongDirtyAnimAlf/fpcupdeluxe/issues/342
Thanks, I've had the same problem. Deleting the fpcbootstrap folder solved it :)
However, I only replace the fpcupdeluxe binary so all these bootstrap utilities seem to stay and not getting updated or is v1.8.2g of fpcupdeluxe too old and v1.8.2h forces to download a newer FPC version?
If the utilities are not updated maybe show a message that they should be updated/fpcbootstrap folder be deleted so that this error do not pop up again.

DonAlfredo

  • Hero Member
  • *****
  • Posts: 1396
Re: Fpcupdeluxe
« Reply #1757 on: February 20, 2021, 04:05:58 pm »
The bootstrap utilities (m.i. the bootstrap compiler) are not influenced by the fpcupdeluxe version.
Fpcupdeluxe reads the Makefile of FPC to find a bootstrap version.

FPC 3.2 contains this:
REQUIREDVERSION=3.0.4
REQUIREDVERSION2=3.2.0

FPC trunk (3.3.1) contains this:
REQUIREDVERSION=3.2.0
REQUIREDVERSION2=3.0.4

As you can see, version 3.0.4 is allowed for both 3.2 as well as 3.3.1.
However, 3.0.4 does not work that well anymore.

If fpcupdeluxe finds an available 3.0.4 in the bootstrap directory, it will use it while it is allowed by the Makefile.
If you delete the bootstrapper, fpcupdeluxe will download a new one. The highest allowed. So, it will try to download a 3.2.0 bootstrapper.
So, deleting the bootstrapper and re-run fpcupdeluxe might solve this problem.

OkobaPatino

  • Full Member
  • ***
  • Posts: 197
Re: Fpcupdeluxe
« Reply #1758 on: February 22, 2021, 11:29:28 am »
DonAlfredo,

Today I faced an issue I wanted to share with you, Fpcupdeluxe was saying it had done everything well, but Lazarus was not the latest Trunk. After a while I found out that there is an untracked file "packager/globallinks/chmhelppkg-0.2.1.lpl" that prevents git to merge, but there was no hint in the logs and I find this while executing git separately. After removing that file, git could merge and Fpcupdeluxe done the job.

Here is the git output:
Quote
git.exe pull --progress -v --no-rebase "origin"
From https://github.com/graemeg/lazarus
= [up to date]            upstream     -> origin/upstream
= [up to date]            fixes_0.9.28 -> origin/fixes_0.9.28
= [up to date]            master       -> origin/master
error: The following untracked working tree files would be overwritten by merge:
packager/globallinks/chmhelppkg-0.2.1.lpl
Please move or remove them before you merge.
Updating 11bab9a731..1fdfd8b521
Aborting

I think there should be a warning or stop if git throws such error.

ydd

  • New Member
  • *
  • Posts: 35
Re: Fpcupdeluxe
« Reply #1759 on: February 22, 2021, 10:59:04 pm »
Quote
do you have plans for Apple M1 native support?
https://github.com/LongDirtyAnimAlf/fpcupdeluxe/releases/download/1.8.2g/fpcupdeluxe-aarch64-darwin-cocoa.zip
This version might work for you.

I want to try with LLVM support, for reference I use: https://wiki.freepascal.org/LLVM
As I understand I should enable LLVM=1 and -Clflto
I tried to pase this in Advance settings / Options Override / FPC options
but it failed.
Please help what I should to do? thanks

DonAlfredo

  • Hero Member
  • *****
  • Posts: 1396
Re: Fpcupdeluxe
« Reply #1760 on: Today at 09:52:15 am »
@OkobaPatino
If I would know how to detect this error, there would definitely be a warning or a stop.
To implement this I need a reproduceable setup to simulate this error and to handle it.
If you can provide me with this, I will look into it.

@ydd
Will look into this.
However. As I have no Mac, I am only able to test inside an x86_64 VM 10.15 on Windows.

OkobaPatino

  • Full Member
  • ***
  • Posts: 197
Re: Fpcupdeluxe
« Reply #1761 on: Today at 10:50:57 am »
I reproduce the problem like this:
Check the source repo and find the latest commit that I didn't pull already, for example this: https://github.com/graemeg/freepascal/commit/b87c37003e8b0c4680690ab7be171695e76680ae
Change the file (i_linux.pas in this case) so it will conflict when I want to pull.
If I use a git client, it will raise a merge error. But if I use Fpcupdeluxe, git pull task will be cancelled and ignored, so it will only do the clean and compile.


Side question, how do you compile Fpcupdeluxe for this many platforms for each release?

DonAlfredo

  • Hero Member
  • *****
  • Posts: 1396
Re: Fpcupdeluxe
« Reply #1762 on: Today at 11:32:18 am »
@OkobaPatino

Ok. Will try to reproduce.

About all those binaries ... I like to cross-compile ... and use fpcupdeluxe (on Windows) to do all the dirty work for me.
See included screenshot. Two installs of FPC 3.2 and Lazarus trunk. One for normal use. One for specials.
FPC and Lazarus are amazing.

OkobaPatino

  • Full Member
  • ***
  • Posts: 197
Re: Fpcupdeluxe
« Reply #1763 on: Today at 02:23:19 pm »
Indeed they are amazing!
Your work made it made it very easy. Thank you.

DonAlfredo

  • Hero Member
  • *****
  • Posts: 1396
Re: Fpcupdeluxe
« Reply #1764 on: Today at 07:28:27 pm »
@ydd
LLVM support is not something that is easily implemented in fpcupdeluxe. So, for now, this will not be supported. If more platforms are supported and the feature has made it into a stable FPC version, I will have another look at it. Please remind me.

 

TinyPortal © 2005-2018