Recent

Author Topic: Fpcupdeluxe  (Read 351234 times)

marcov

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 7305
Re: Fpcupdeluxe
« Reply #270 on: January 09, 2017, 12:03:07 pm »
This issue has been reported as a bug:
http://bugs.freepascal.org/view.php?id=31171
And has been closed as solved.

However, the new makefile still does not work (for me) with 3.82.
But I cannot re-open the issue.

Included a patch for the FreeBSD makefile that does work (for me) with 3.82.

I now merged r34166 too.

DonAlfredo

  • Hero Member
  • *****
  • Posts: 1119
Re: Fpcupdeluxe
« Reply #271 on: January 09, 2017, 12:39:51 pm »
Working perfect now with 3.82 ... thanks !

criageek

  • Jr. Member
  • **
  • Posts: 79
Re: Fpcupdeluxe
« Reply #272 on: January 10, 2017, 02:49:01 pm »
Hey DonAlfredo - I'm having trouble installing Fixes via fpcupdeluxe on both an Odroid C2 and a Pine A64, which are both aarch64.  Here is the bottom of the log file...let me know if you need more  ;)

I see it says "Makefile:209: *** The Makefile doesn't support target aarch64-linux, please run fpcmake first." but fpcmake doesn't exist.  There is no bin folder under the fpc folder.

I'm running Ubuntu Mate 16.04.

Thanks,
Rich

fpcupdeluxe: info: FPC was at: failure
fpcupdeluxe: info: FPC is now at: revision 35273
fpcupdeluxe: info: TFPCInstaller: building module FPC...
fpcupdeluxe: info: We have a FPC source (@ /home/rich/LazarusFixes/fpc) with version: 3.0.1
fpcupdeluxe: info: To compile this FPC, we need (required) a compiler with version : 3.1.1
Executing : /home/rich/LazarusFixes/fpcbootstrap/ppca64 "-iV" (working dir: )
fpcupdeluxe: info: Looking for a bootstrap compiler from official FPC bootstrap binaries.
fpcupdeluxe: info: Looking for official FPC bootstrapper with version 3.1.1
fpcupdeluxe: info: Looking for (online) bootstrapper aarch64-linux-ppca64.bz2
fpcupdeluxe: ERROR: Slight panic: No official FPC bootstrapper found.
fpcupdeluxe: ERROR: Now looking for last resort bootstrap compiler from Github FPCUP(deluxe) releases.
fpcupdeluxe: info: Checking existence of: https://github.com/newpascal/fpcupdeluxe/releases/download/bootstrappers_v1.0/fpcup-3_1_1-aarch64-linux-ppca64
fpcupdeluxe: info: Got a bootstrap compiler from FPCUP bootstrap sources.
Executing : /home/rich/LazarusFixes/fpcbootstrap/ppca64 "-iV" (working dir: )
fpcupdeluxe: info: Check if we already have a bootstrap compiler with version 3.1.1
fpcupdeluxe: info: No correct bootstrapper. Going to download bootstrapper from https://github.com/newpascal/fpcupdeluxe/releases/download/bootstrappers_v1.0/fpcup-3_1_1-aarch64-linux-ppca64
fpcupdeluxe: info: Native downloader: Getting fpcup-3_1_1-aarch64-linux-ppca64 from github.com/newpascal/fpcupdeluxe/releases/download/bootstrappers_v1.0/
fpcupdeluxe: WARNING: Going to copy /tmp/TMP00004.tmp to /home/rich/LazarusFixes/fpcbootstrap/ppca64
Executing : /home/rich/LazarusFixes/fpcbootstrap/ppca64 "-iV" (working dir: )
3.1.1
Executing : /home/rich/LazarusFixes/fpcbootstrap/ppca64 "-iV" (working dir: )
3.1.1
fpcupdeluxe: info: Available bootstrapper has correct version !
Executing : make "-v" (working dir: )
GNU Make 4.1
Built for aarch64-unknown-linux-gnu
Copyright (C) 1988-2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
fpcupdeluxe: info: FPC: running make all install for FPC:
Executing : make "--jobs=4" "FPC=/home/rich/LazarusFixes/fpcbootstrap/ppca64" "--directory=/home/rich/LazarusFixes/fpc" "INSTALL_PREFIX=/home/rich/LazarusFixes/fpc" "INSTALL_BINDIR=/home/rich/LazarusFixes/fpc/bin/aarch64-linux" "OVERRIDEVERSIONCHECK=1" "OPT=-Sg -vi-n-h-" "all" "install" (working dir: /home/rich/LazarusFixes/fpc)
make: Entering directory '/home/rich/LazarusFixes/fpc'
Makefile:209: *** The Makefile doesn't support target aarch64-linux, please run fpcmake first.  Stop.
make: Leaving directory '/home/rich/LazarusFixes/fpc'

fpcupdeluxe: info: FPC: Error running make failed with exit code 512
. Details:
fpcupdeluxe: ERROR: Error running BuildModuleCustom for module FPC
fpcupdeluxe: WARNING: FPC cleanup: could not cleanup /home/rich/LazarusFixes/fpc/utils/bin
fpcupdeluxe: WARNING: FPC cleanup: could not cleanup /home/rich/LazarusFixes/fpc/utils/units/aarch64-linux
fpcupdeluxe: ERROR: FPC cleanup: could not cleanup /home/rich/LazarusFixes/fpc/rtl/units/aarch64-linux
fpcupdeluxe: info: Error running fpcup. Technical details: error executing sequence fpc; line: 5, param: FPC
fpcupdeluxe: info: Error running fpcup. Technical details: error executing sequence defaultARM; line: 3, param: fpc

« Last Edit: January 10, 2017, 02:58:32 pm by criageek »

DonAlfredo

  • Hero Member
  • *****
  • Posts: 1119
Re: Fpcupdeluxe
« Reply #273 on: January 10, 2017, 03:11:37 pm »
This is actually quite simple: only trunk supports aarch64 !!
So, try with trunk.
Its been a long time since my last install on a C2, so I am interested in your reslts.

criageek

  • Jr. Member
  • **
  • Posts: 79
Re: Fpcupdeluxe
« Reply #274 on: January 10, 2017, 05:54:40 pm »
Thanks DonAlfredo - I'll give it a shot!

In the meantime I'm having two other issues when I try to use fpcupdeluxe, both in Windows 10 (using 32 bit) and Ubuntu 16.10 (using 64 bit).

1)  When I try to install newpascal, everything goes well and it installs and I can run Lazarus.  But the LazControls tab is missing from the palette and my programs that use controls on that tab (such as TListFilterEdit) fail. When I go to Install/Uninstall packages it says LazControls is installed. Any idea what's going on there?

2)  When I try to install Fixes, it fails when it gets to lhelp.  If I uncheck 'Include Help' in Setup+ then it installs correctly.   I don't have a log file now but can run it again to get one if you need it.

Thanks!  Great project  :)

Rich

DonAlfredo

  • Hero Member
  • *****
  • Posts: 1119
Re: Fpcupdeluxe
« Reply #275 on: January 10, 2017, 10:08:59 pm »
1) I have added LazControls into the standard install.
2) Still investigating.

Extra)
Please be informed that the aarch64 binary has been (cross-)compiled on Windows for aarch64 !
This could alo ease your own work for aarch64: design app on Windows -> cross towards aarch64 -> copy binary and run on aarch64.

criageek

  • Jr. Member
  • **
  • Posts: 79
Re: Fpcupdeluxe
« Reply #276 on: January 11, 2017, 03:02:32 am »
Thanks DonAlfredo!  I'll give newpascal another shot.

I do want to get to the point that I can build arm and aarch64 apps via cross-compiling, but I need to learn alot more about cross-compiling before I can do that.

Unfortunately the install from trunk failed on my Odroid C2  :(   I decided to start from scratch with my Odroid so reloaded a fresh Ubuntu Mate image and reloaded the required packages before trying it again.  Here is the bottom of the log file:

make[7]: Entering directory '/home/rich/LazarusTrunk/fpc/rtl/linux'
/bin/mkdir -p /home/rich/LazarusTrunk/fpc/rtl/units/aarch64-linux
/home/rich/LazarusTrunk/fpcbootstrap/ppca64 -Ur -Ur -Xs -O2 -n -Fi../inc -Fi../aarch64 -Fi../unix -Fiaarch64 -FE. -FU/home/rich/LazarusTrunk/fpc/rtl/units/aarch64-linux -Sg -vi-n-h- -daarch64 -dRELEASE -Us -Sg system.pp
system.pp(393,4) Fatal: Internal error 2014091202
Fatal: Compilation aborted
Makefile:3680: recipe for target 'system.ppu' failed
make[7]: *** [system.ppu] Error 1
make[7]: Leaving directory '/home/rich/LazarusTrunk/fpc/rtl/linux'
Makefile:2000: recipe for target 'linux_all' failed
make[6]: *** [linux_all] Error 2
make[6]: Leaving directory '/home/rich/LazarusTrunk/fpc/rtl'
Makefile:4309: recipe for target 'rtl' failed
make[5]: ***
Error 2
make[5]: Leaving directory '/home/rich/LazarusTrunk/fpc/compiler'
Makefile:4186: recipe for target 'next' failed
make[4]: *** [next] Error 2
make[4]: Leaving directory '/home/rich/LazarusTrunk/fpc/compiler'
Makefile:4191: recipe for target 'ppc1' failed
make[3]: *** [ppc1] Error 2
make[3]: Leaving directory '/home/rich/LazarusTrunk/fpc/compiler'
Makefile:4203: recipe for target 'cycle' failed
make[2]: *** [cycle] Error 2
make[2]: Leaving directory '/home/rich/LazarusTrunk/fpc/compiler'
Makefile:2901: recipe for target 'compiler_cycle' failed
make[1]: *** [compiler_cycle] Error 2
make[1]: Leaving directory '/home/rich/LazarusTrunk/fpc'
Makefile:2933: recipe for target 'build-stamp.aarch64-linux' failed
make: *** [build-stamp.aarch64-linux] Error 2
make: Leaving directory '/home/rich/LazarusTrunk/fpc'

fpcupdeluxe: info: FPC: Error running make failed with exit code 512
. Details:
fpcupdeluxe: ERROR: Error running BuildModuleCustom for module FPC
fpcupdeluxe: WARNING: FPC cleanup: could not cleanup /home/rich/LazarusTrunk/fpc/utils/bin
fpcupdeluxe: WARNING: FPC cleanup: could not cleanup /home/rich/LazarusTrunk/fpc/utils/units/aarch64-linux
fpcupdeluxe: info: Error running fpcup. Technical details: error executing sequence fpc; line: 5, param: FPC
fpcupdeluxe: info: Error running fpcup. Technical details: error executing sequence defaultARM; line: 3, param: fpc

Thanks for your efforts!

Rich

criageek

  • Jr. Member
  • **
  • Posts: 79
Re: Fpcupdeluxe
« Reply #277 on: January 11, 2017, 04:13:02 am »
Just tried newpascal in Windows 10 and the LazControls tab (and it's components) is still missing.  I see the Misc tab is now there, which was missing before, but LazControls is still missing.

Thanks,
Rich

Thaddy

  • Hero Member
  • *****
  • Posts: 8502
Re: Fpcupdeluxe
« Reply #278 on: January 11, 2017, 09:45:03 am »
Just tried newpascal
This is not a forum for NewPascal..., sigh, >:D >:D NewPascal is a rather new fork.

But maybe the moderators will open a section for that?  O:-)
« Last Edit: January 11, 2017, 09:47:09 am by Thaddy »
Read the manuals and if you are a professional get a proper education in computer science. Makes the forum a lot cleaner.

DonAlfredo

  • Hero Member
  • *****
  • Posts: 1119
Re: Fpcupdeluxe
« Reply #279 on: January 11, 2017, 09:50:56 am »
@Thaddy
I don't dare to ask ... ;-)

@criageek
As long as the other issues are not resolved, I keep the public update on hold.
Sorry about the confusion: LazControls is added in my local version and working.
Public update later today !

DonAlfredo

  • Hero Member
  • *****
  • Posts: 1119
Re: Fpcupdeluxe
« Reply #280 on: January 11, 2017, 10:47:50 am »
@criageek
I have exactly the same error (Internal error 2014091202) on my C2 !
Will investigate further !

criageek

  • Jr. Member
  • **
  • Posts: 79
Re: Fpcupdeluxe
« Reply #281 on: January 11, 2017, 02:27:27 pm »
Just tried newpascal
This is not a forum for NewPascal..., sigh, >:D >:D NewPascal is a rather new fork.

But maybe the moderators will open a section for that?  O:-)

Sorry Thaddy, but this IS a forum for fpcupdeluxe, which is what I'm using to try to get newpascal loaded.  At the very least this seems to be the right place to bring up the issues...if I'm pointed elsewhere to resolve them so be it.

Rich

criageek

  • Jr. Member
  • **
  • Posts: 79
Re: Fpcupdeluxe
« Reply #282 on: January 11, 2017, 02:30:02 pm »
@DonAlfredo - thanks!  I appreciate all your efforts on this...I'm sure it must keep you plenty busy  :)

On the plus side, I was able to successfully cross-compile a small program on a Windows 32 installation to create an aarch64 binary that I was then able to execute on my C2  :)

Rich

DonAlfredo

  • Hero Member
  • *****
  • Posts: 1119
Re: Fpcupdeluxe
« Reply #283 on: January 11, 2017, 02:31:08 pm »
Good !
I also just succeeded in installing FPC and Lazarus on C2.
Will post fpcupdeluxe update soon !

DonAlfredo

  • Hero Member
  • *****
  • Posts: 1119
Re: Fpcupdeluxe
« Reply #284 on: January 11, 2017, 04:05:28 pm »