Recent

Author Topic: Fpcupdeluxe  (Read 792680 times)

jc99

  • Hero Member
  • *****
  • Posts: 553
    • My private Site
Re: Fpcupdeluxe
« Reply #555 on: June 12, 2017, 08:50:38 pm »
First i have to thank you for doing such an excelent job.

I only have a small request. Please check if the Executabe has writing rights in the directory prior of writing to the ini-file otherwise you'll get (I got ) a very nasty error which ended that i had to kill fpcupdeluxe with the task-manager.

Thanks in Advance
OS: Win XP x64, Win 7, Win 7 x64, Win 10, Win 10 x64, Suse Linux 13.2
Laz: 1.4 - 1.8.4, 2.0
https://github.com/joecare99/public
'~|    /''
,_|oe \_,are
If you want to do something for the environment: Twitter: #reduceCO2 or
https://www.betterplace.me/klimawandel-stoppen-co-ueber-preis-reduzieren

DonAlfredo

  • Hero Member
  • *****
  • Posts: 1738
Re: Fpcupdeluxe
« Reply #556 on: June 16, 2017, 05:56:48 pm »
@jc99
Check added in newest version.

@jacmoe; @jctaborda
Thanks for the advice. URL switch added in newest version and enabled by default !
You should now be able to change an URL on-the-fly.

jacmoe

  • Full Member
  • ***
  • Posts: 249
    • Jacmoe's Cyber SoapBox
Re: Fpcupdeluxe
« Reply #557 on: June 17, 2017, 07:11:41 am »
Sir Don Alfredo: you are the best!  ;D :D
more signal - less noise

jc99

  • Hero Member
  • *****
  • Posts: 553
    • My private Site
Re: Fpcupdeluxe
« Reply #558 on: June 18, 2017, 01:03:09 am »
Sir Don Alfredo: you are the best!  ;D :D
+1
OS: Win XP x64, Win 7, Win 7 x64, Win 10, Win 10 x64, Suse Linux 13.2
Laz: 1.4 - 1.8.4, 2.0
https://github.com/joecare99/public
'~|    /''
,_|oe \_,are
If you want to do something for the environment: Twitter: #reduceCO2 or
https://www.betterplace.me/klimawandel-stoppen-co-ueber-preis-reduzieren

jc99

  • Hero Member
  • *****
  • Posts: 553
    • My private Site
Re: Fpcupdeluxe
« Reply #559 on: June 23, 2017, 06:59:38 pm »
Still got an error:
Write-Protected place
Program loads, On exit i get:
OS: Win XP x64, Win 7, Win 7 x64, Win 10, Win 10 x64, Suse Linux 13.2
Laz: 1.4 - 1.8.4, 2.0
https://github.com/joecare99/public
'~|    /''
,_|oe \_,are
If you want to do something for the environment: Twitter: #reduceCO2 or
https://www.betterplace.me/klimawandel-stoppen-co-ueber-preis-reduzieren

raulik

  • New member
  • *
  • Posts: 9
Re: Fpcupdeluxe
« Reply #560 on: July 28, 2017, 10:10:35 pm »
Hello,
sorry for my ignorance, but i have searched for many terms with no results. I have downloaded FPCDeluxe 1.4.0k 64bit Windows 8.1, and install trunk fpc/lazarus (trunk i need for some features (this time i develope only test releases)).
But, when i try to install crosscompiler for linux there is error :
Code: Pascal  [Select][+][-]
  1. system.pp(463,4) Fatal: Internal error 2015030501
  2. Fatal: Compilation aborted
  3. make.exe[5]: *** [system.ppu] Error 1
  4. make.exe[4]: *** [linux_all] Error 2
  5. make.exe[3]: *** [rtl] Error 2
  6. make.exe[2]: *** [cycle] Error 2
  7. make.exe[1]: *** [compiler_cycle] Error 2
  8. C:\Lazarus\trunk_original\fpcbootstrap\make.exe: *** [build-stamp.x86_64-linux] Error 2
  9. fpcupdeluxe: ERROR: FPCCrossInstaller (BuildModuleCustom: FPC): Running cross compiler fpc make all for x86_64-linux failed with an error code.
  10. fpcupdeluxe: ERROR: FPCCrossInstaller (BuildModuleCustom: FPC): Error running !
  11. fpcupdeluxe: ERROR: Sequencer (FPCBuildOnly): Failure running fpcup. Technical details: error executing sequence FPCBuildOnly; line: 2, param: FPC
  12. fpcupdeluxe: ERROR: Sequencer (Only): Failure running fpcup. Technical details: error executing sequence Only; line: 2, param: FPCBuildOnly
  13.  

ERROR: Fpcupdeluxe fatal error !

in log window :
Code: Pascal  [Select][+][-]
  1. Building compiler for linux-x86_64.
  2. Compiler error: 2015030501
  3. FPC revision 30351 introduced some changed into the compiler causing this error.
  4. Has something todo about how floating points are handled. And that has changed.
  5. See: http://svn.freepascal.org/cgi-bin/viewvc.cgi?view=revision&revision=30351
  6. Fatal: Compilation aborted
  7. system.pp(463,4) Fatal: Internal error 2015030501
  8.  

This revision is very old, so i think, that it is allready clear, but nothing found about it.

In other FPC/Laz version (not trunk) there all compiles fine, but not my aplication after :( (console server application (that's why i use crosscompile - on destination system, there is no GUI installed). I have to bad understanding for this version trees, patches, and etc.

Any idea ? Many thanks.

Josh

  • Hero Member
  • *****
  • Posts: 1270
Re: Fpcupdeluxe
« Reply #561 on: July 29, 2017, 09:47:09 am »
Hi

Just tried to update Trunk ( win 32 version) installation, and getting error.
Code: [Select]
(3104) Compiling .\win32\win32wscalendar.pp
(3104) Compiling .\win32\win32wschecklst.pp
(3104) Compiling .\win32\win32wsstdctrls.pp
(3104) Compiling .\win32\win32wscomctrls.pp
(3104) Compiling .\win32\win32wsdialogs.pp
C:\lazarus_trunk\lazarus\lcl\interfaces\.\win32\win32wsdialogs.pp(770,62) Error: (4001) Incompatible types: got "Pointer" expected "TGuid"
win32wsdialogs.pp(1530) Fatal: (10026) There were 1 errors compiling module, stopping
Fatal: (1018) Compilation aborted
Error: C:\lazarus_trunk\fpc\bin\i386-win32\ppc386.exe returned an error exitcode
Error: (lazarus) Compile package LCL 1.9: stopped with exit code 1
Error: (lazarus) [TLazPackageGraph.CompileRequiredPackages] "Exit code 1"

looks like something has changed in Trunk
The best way to get accurate information on the forum is to post something wrong and wait for corrections.

engkin

  • Hero Member
  • *****
  • Posts: 3112
Re: Fpcupdeluxe
« Reply #562 on: July 29, 2017, 04:38:43 pm »
Quote
looks like something has changed in Trunk

This change. I saw it discussed on the mailing list here:

Quote
Hello,

I have fixed bug 28760:

https://bugs.freepascal.org/view.php?id=28760

This will cause compilation of win32wsdialogs.pp to fail, in particular in


class procedure TWin32WSOpenDialog.SetupVistaFileDialog(ADialog: IFileDialog; const AOpenDialog: TOpenDialog);

search for:

   if InitialDir <> '' then
   begin
     if Succeeded(SHCreateItemFromParsingName(PWideChar(UTF8ToUTF16(InitialDir)), nil, IShellItem, DefaultFolderItem)) then
       ADialog.SetFolder(DefaultFolderItem);
   end;

Directly passing an interface where (T)REFIID is expected, will no longer be possible.

Michael.

Josh

  • Hero Member
  • *****
  • Posts: 1270
Re: Fpcupdeluxe
« Reply #563 on: July 29, 2017, 05:08:13 pm »
@engkin,
That would explain the compile error, so looks like the patch/fix is having a knock-on effect with win32wsdialogs.pp, I suspect other as well.
Hopefully this will be corrected soon, and all lazarus units, will get the update/fix applied.
The best way to get accurate information on the forum is to post something wrong and wait for corrections.

Mocte

  • New Member
  • *
  • Posts: 21
Re: Fpcupdeluxe
« Reply #564 on: August 07, 2017, 08:33:34 pm »
Hi everyone,

I have been following this community for sometime, but I had not used Lazarus on a regular basis until last week that I decided to migrate a delphi server program I need running on Linux to Lazarus, I used FPCUPDELUXE ( great tool BTW ) to install FPC + Lazarus Trunk and I got a working environment after a few minutes without a hitch, I tried to setup the IDE to look as close to Delphi as I could, used Anchor Docking and Sparta but it had some glitches and I uninstalled them ( I mention this for what is worth ), the IDE was working well for a few days until today when I saw some changes commited recently on trunk related to Anchor Docking and GTK2 so I decided to update my environment using FPCUPDELUXE to give Anchor docking & Sparta another try, sadly FPCUPDELUXE couldn't complete the process and now I can't use Lazarus anymore, the update process failed with these messages :

Quote
/home/linuxlite/desarrollo/lazarustrunk/lazarus/ide/lazarus.pp(161,1) Error: (9030) Can't call the resource compiler "/home/linuxlite/desarrollo/lazarustrunk/fpc/bin/x86_64-linux/fpcres", switching to external mode
/home/linuxlite/desarrollo/lazarustrunk/lazarus/ide/lazarus.pp(161,1) Fatal: (10026) There were 1 errors compiling module, stopping
/home/linuxlite/desarrollo/lazarustrunk/lazarus/ide/lazarus.pp(161,1) Error: (9030) Can't call the resource compiler "/home/linuxlite/desarrollo/lazarustrunk/fpc/bin/x86_64-linux/fpcres", switching to external mode
Fatal: (1018) Compilation aborted
/home/linuxlite/desarrollo/lazarustrunk/lazarus/ide/lazarus.pp(161,1) Fatal: (10026) There were 1 errors compiling module, stopping
Error: /home/linuxlite/desarrollo/lazarustrunk/fpc/bin/x86_64-linux/ppcx64 returned an error exitcode
Error: (lazarus) Build IDE: stopped with exit code 512
fpcupdeluxe: ERROR: UniversalInstaller (ConfigModule: suggestedpackages): Failure trying to rebuild Lazarus.
fpcupdeluxe: ERROR: Sequencer (suggestedpackages): Failure running fpcup. Technical details: error executing sequence suggestedpackages; line: 5, param: suggestedpackages
fpcupdeluxe: ERROR: Sequencer (UniversalDefault): Failure running fpcup. Technical details: error executing sequence UniversalDefault; line: 2, param: suggestedpackages
fpcupdeluxe: ERROR: Sequencer (Default): Failure running fpcup. Technical details: error executing sequence Default; line: 6, param: UniversalDefault

I can confirm :
1. fpcres exists on the mentioned path ( /home/linuxlite/desarrollo/lazarustrunk/fpc/bin/x86_64-linux/ )
2. It has execution rights

I found these lines on fpc.cfg :
Quote
# fpc 3.1+ fpcres etc can be found.
-FD/home/linuxlite/desarrollo/lazarustrunk/fpc/bin/x86_64-linux/;/home/linuxlite/desarrollo/lazarustrunk/fpc/bin/

That looks fine to me, but I'm still a newbie with Lazarus.

I can delete all and make a fresh install, but I would rather avoid it, Is there an easy fix for this ?

Thank you.

P.D. all is installed on a VM with Linux Lite 3.4, 64 bits, 1.5 Gb RAM

molly

  • Hero Member
  • *****
  • Posts: 2330
Re: Fpcupdeluxe
« Reply #565 on: August 07, 2017, 09:15:54 pm »
# fpc 3.1+ fpcres etc can be found.
-FD/home/linuxlite/desarrollo/lazarustrunk/fpc/bin/x86_64-linux/;/home/linuxlite/desarrollo/lazarustrunk/fpc/bin/

That looks fine to me, but I'm still a newbie with Lazarus.

To me it doesn't as i was unable to find any mention inside the documentation that it is allowed to provide a list of comma semicolon separated directories for the -FD option (aka -e option). Note that other command-line options that do allow such a comma separated list have this specifically mentioned.

You can easily check this by splitting up the comma semicolon separated list and add a second -FD entry just underneath the first one.

edit: use correct semantics.

edit2: seems that i have to correct myself. documentation states "Specify xxx as the directory containing the executables for the programs as (the assembler) and ld (the linker)", so that would mean one directory.
« Last Edit: August 07, 2017, 09:43:56 pm by molly »

Mocte

  • New Member
  • *
  • Posts: 21
Re: Fpcupdeluxe
« Reply #566 on: August 07, 2017, 10:23:55 pm »
Thank you Molly, tried splitting lines (twice), still no joy I got the same error, commented the last line on my last attempt without success

Quote
-FD/home/linuxlite/desarrollo/lazarustrunk/fpc/bin/x86_64-linux/
#-FD/home/linuxlite/desarrollo/lazarustrunk/fpc/bin/

I'm not able to see on the log what is the exact command being executed, this is the line before the error occurs :
Quote
(9022) Compiling resource /home/linuxlite/desarrollo/lazarustrunk/lazarus/units/x86_64-linux/gtk2/lazarus.or

I couldn't find any "lazarus.or" file, there is a "lazarus.o" instead,  maybe a typo on some fpcupdeluxe config or source file ? 

molly

  • Hero Member
  • *****
  • Posts: 2330
Re: Fpcupdeluxe
« Reply #567 on: August 07, 2017, 10:36:51 pm »
A shot in the dark then (at least for me). try read this thread and see if that could perhaps apply for your situation.

Note that fpc-deluxe can be a bit 'heavy' on a not so empty hd (depending a little on what files it  dragged in for your setup).
« Last Edit: August 07, 2017, 10:42:05 pm by molly »

Mocte

  • New Member
  • *
  • Posts: 21
Re: Fpcupdeluxe
« Reply #568 on: August 07, 2017, 11:53:05 pm »
From the linked thread one can deduce the problem is the need of a swap file/partition or more space? 

This is what I just did :

1. Shutdown the VM
2. I gave it another 256 MB of RAM
3. I started the VM
4. My swap partition status was something like 760M/1.5G before shutting down, after the boot it was 0.0M/1.5G, ran FPCUPDELUXE again, everything worked as the first time, no one single problem! the swap partition ended as: 4.04M/1.5G

Seems to me that the RAM increase benefited the swap partition usage, I don't know for sure but I can continue working now  :)

Thank you for your time and advice !

molly

  • Hero Member
  • *****
  • Posts: 2330
Re: Fpcupdeluxe
« Reply #569 on: August 08, 2017, 01:36:57 pm »
Quote
From the linked thread one can deduce the problem is the need of a swap file/partition or more space?
It starts with the (physical) amount of memory.

When the system runs out of (free) physical memory then it uses the swap- file/partition in order to try to fulfill the requests.

If physical memory and swap are not enough for what is required by your software then you literally run out of memory.

In practice the actual process of swapping memory to a file/partition and back again is a bit more complicated then described above though but that is not really important to know. You just ran out of memory  :D

The more sources that fpc-deluxe needs to compile to be able to finish its work correctly, the more strain is put on both physical memory and swap.

Quote
Seems to me that the RAM increase benefited the swap partition usage, I don't know for sure but I can continue working now
Yes, you are good to go now.

It is always a bit trial and error to find a good balance between physical memory and size of swap file/partition. Compiling a compiler is very demanding and often exceeds settings that usually work for normal circumstances (such as running your every day application)

Quote
Thank you for your time and advice !
No problem.

thank you for trying and reporting back, as the latter advice was really a long-shot for me.

Your symptoms just matched those from the linked thread. For some reason i never seem to have ran into a similar situation myself (i was already warned when i tried to compile the compiler on my pi for instance).
« Last Edit: August 08, 2017, 01:53:43 pm by molly »

 

TinyPortal © 2005-2018