Recent

Author Topic: Fpcupdeluxe  (Read 813449 times)

mizar

  • New Member
  • *
  • Posts: 35
Re: Fpcupdeluxe
« Reply #525 on: May 27, 2017, 04:59:46 pm »
Using fpcupdeluxe in a linux 64bit box, I'm trying to get an ARM cross compiler.
I'm interested in running the code generated by the cross compiler in a Seagate Dockstar (Openwrt as a OS) that has an ARMV5TE cpu and the cross compiler got with the default options (ARMHF) generates code useless for my target due to the absence of the FPU at least .

Reading around, it seems to me that I need a cross compiler compiled at least with -CaEABI -CpARM5TE -CfSOFT while default crossopt are -CpARMV7A -CfVFPV3 -OoFASTMATH -CaEABIHF

Trying to set -CaEABI -CpARM5TE -CfSOFT in the cross build options of the Advanced setting form, fcpdeluxe terminate with an error:

Code: [Select]
Error: Illegal parameter: -CpARM5TE
fpcupdeluxe: ERROR: FPC: Running cross compiler fpc make all for arm-linux failed with an error code.
fpcupdeluxe: ERROR: Error running BuildModuleCustom for module FPC

Code: [Select]
make[5]: ingresso nella directory "/home/fernando/laz18/fpcsrc/rtl/linux"
/home/fernando/laz18/cross/bin/arm-linux/arm-linux-gnueabihf-as  -o /home/fernando/laz18/fpcsrc/rtl/units/arm-linux/prt0.o arm/prt0.as
/home/fernando/laz18/cross/bin/arm-linux/arm-linux-gnueabihf-as   -o /home/fernando/laz18/fpcsrc/rtl/units/arm-linux/dllprt0.o arm/dllprt0.as
/home/fernando/laz18/cross/bin/arm-linux/arm-linux-gnueabihf-as  -o /home/fernando/laz18/fpcsrc/rtl/units/arm-linux/cprt0.o arm/cprt0.as
/home/fernando/laz18/cross/bin/arm-linux/arm-linux-gnueabihf-as  -o /home/fernando/laz18/fpcsrc/rtl/units/arm-linux/gprt0.o arm/gprt0.as
/home/fernando/laz18/cross/bin/arm-linux/arm-linux-gnueabihf-as  -o /home/fernando/laz18/fpcsrc/rtl/units/arm-linux/ucprt0.o arm/ucprt0.as
Error: Illegal parameter: -CpARM5TE
make[5]: *** [system.ppu] Errore 1
make[5]: uscita dalla directory "/home/fernando/laz18/fpcsrc/rtl/linux"
make[4]: *** [linux_all] Errore 2
make[4]: uscita dalla directory "/home/fernando/laz18/fpcsrc/rtl"
make[3]: *** [rtl] Errore 2
make[3]: uscita dalla directory "/home/fernando/laz18/fpcsrc/compiler"
make[2]: *** [cycle] Errore 2
make[2]: uscita dalla directory "/home/fernando/laz18/fpcsrc/compiler"
make[1]: *** [compiler_cycle] Errore 2
make[1]: uscita dalla directory "/home/fernando/laz18/fpcsrc"

And the same with -CpARM5.

Can be determined by the fact that cross binutils are for EABIHF ?
Is there a way to change that ?
Any hint appreciated.


Another question  :-[

Is there a way to get a MIPS crosscompiler ?

Tia and sorry for my English
« Last Edit: May 27, 2017, 07:15:16 pm by mizar »

DonaldShimoda

  • Full Member
  • ***
  • Posts: 109
    • Parallel Pascal Worlds
Re: Fpcupdeluxe
« Reply #526 on: May 28, 2017, 09:37:02 pm »
Added a patch to make trunk compile on Darwin.
https://github.com/newpascal/fpcupdeluxe/tree/master/patchlazarus

Download this patch and point fpcupdeluxe towards it in setup+ !

Not working with actual lazarus trunk on macOSx sierra


DonAlfredo

  • Hero Member
  • *****
  • Posts: 1739
Re: Fpcupdeluxe
« Reply #527 on: May 31, 2017, 10:46:20 am »
@DonaldShimoda

I presume you are trying to install a 64bit version of Lazarus on Mac.
AFAIK, this is not (yet) possible. But I stand corrected if it is.

To get 64bit on Darwin, just install a 32bit version of Lazarus, and install a cross-compiler for 64bit.

DonAlfredo

  • Hero Member
  • *****
  • Posts: 1739
Re: Fpcupdeluxe
« Reply #528 on: May 31, 2017, 10:56:32 am »
@mizar

Fpcupdeluxe has been tuned to build a hardfloat cross-compiler for ARM on all targets.
And the provided cross-tools are suitable for ARMV6 and higher.

Fpcupdeluxe is a tool that limits the user-choices to what is used most.
MIPS and ARMV5 are not used that much by the average FPC user.
So, this feature is not available yet.

I will look into it, to see if it can be included in an easy way.

mizar

  • New Member
  • *
  • Posts: 35
Re: Fpcupdeluxe
« Reply #529 on: May 31, 2017, 11:06:13 am »
@DonAlfredo
Thank you very much for your time and your effort !

DonAlfredo

  • Hero Member
  • *****
  • Posts: 1739
Re: Fpcupdeluxe
« Reply #530 on: May 31, 2017, 11:29:04 am »
@mizar
It would be appreciated (and will make my life easier) if you can provide me with the mips(el) library files.
I have already uploaded (for use by fpcupdeluxe) the binary utilities for mips and mipsel for Windows, Linux i386 and Linux x8664.

DonaldShimoda

  • Full Member
  • ***
  • Posts: 109
    • Parallel Pascal Worlds
Re: Fpcupdeluxe
« Reply #531 on: May 31, 2017, 02:54:13 pm »
@DonaldShimoda

I presume you are trying to install a 64bit version of Lazarus on Mac.
AFAIK, this is not (yet) possible. But I stand corrected if it is.

To get 64bit on Darwin, just install a 32bit version of Lazarus, and install a cross-compiler for 64bit.

That version down work?

fpcupdeluxe-x86_64-darwin-cocoa.app.zip

Im downloading now 32 bits version and will they, tanks-

fpcupdeluxe-i386-darwin-cocoa.app.zip



mizar

  • New Member
  • *
  • Posts: 35
Re: Fpcupdeluxe
« Reply #532 on: May 31, 2017, 05:07:43 pm »
@DonAlfredo
Regarding mips(el) library I'm trying to get them from openwrt. I'll reply ASAP

mizar

  • New Member
  • *
  • Posts: 35
Re: Fpcupdeluxe
« Reply #533 on: May 31, 2017, 07:16:51 pm »
@DonAlfredo
Attached mips library as generated by openwrt Caos Calmer (uClib)

Searching for a mipsel target.

Let me know how can I help

Thank you

mizar

  • New Member
  • *
  • Posts: 35
Re: Fpcupdeluxe
« Reply #534 on: May 31, 2017, 07:17:30 pm »
/usr/lib

Josh

  • Hero Member
  • *****
  • Posts: 1273
Re: Fpcupdeluxe
« Reply #535 on: June 01, 2017, 01:20:46 pm »
Hi

Just tried to update my trunk installation, this failed with all kind of error messages, but as I had many other components installed, thought these were the issue.

Installed Trunk into new folder (osx carbon).

Installation finished, with message 'that went well'.

When I try to start the new installation I get to the screen to check/set debugger etc. But the screen is all messed up, so unable to set required location fro debugger etc.

The best way to get accurate information on the forum is to post something wrong and wait for corrections.

DonAlfredo

  • Hero Member
  • *****
  • Posts: 1739
Re: Fpcupdeluxe
« Reply #536 on: June 01, 2017, 01:39:59 pm »
Hi again Josh,

I would like to remind you about this:
http://forum.lazarus.freepascal.org/index.php/topic,34645.msg246167.html#msg246167

AFAIU, this is not a fpcupdeluxe issue, but a Lazarus trunk issue.

Besides, Lazarus trunk is really fast moving, resulting in risks as you encounter.
My advice: update only if needed. And revert back when encountering failures.

Josh

  • Hero Member
  • *****
  • Posts: 1273
Re: Fpcupdeluxe
« Reply #537 on: June 01, 2017, 01:48:54 pm »
Hi

Unfortunately, I am unable to report on bugtracker, for some reason even when I go to alternative link to bugtracker, it does not let me login, I get errors.
Before I could login, so something has changed. I have tried on windows and mac to login and get same error.
Others are getting problems as well, so wonder how many problems are not being reported and hence not corrected.

Apologies posting here, but no other option is currently open to me...

Josh
The best way to get accurate information on the forum is to post something wrong and wait for corrections.

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4467
  • I like bugs.
Re: Fpcupdeluxe
« Reply #538 on: June 01, 2017, 03:19:07 pm »
When I try to start the new installation I get to the screen to check/set debugger etc. But the screen is all messed up, so unable to set required location fro debugger etc.
Bad timing. Apparently Felipe tries to get rid of the "multiple inheritance" hack for LCL classes. Lazarus trunk may be in experimental state for a while.
I recommend the fixes_1_8 branch now. It gets better and better and it needs more testers anyway before the release.
Mostly Lazarus trunk and FPC 3.2 on Manjaro Linux 64-bit.

Josh

  • Hero Member
  • *****
  • Posts: 1273
Re: Fpcupdeluxe
« Reply #539 on: June 01, 2017, 03:39:03 pm »
@JuhaManninen

Thanks for the heads up on current state of Trunk, I will go back to svn 55017, so as to keep same as testing version on Win machine.
I do currently have various installation on both win and mac, including 1.8 with fixes. When ever I get some spare time i experiment with varying versions to see if my little projects work, and if not why.  I have reported a few issues I have found on bugtracker previously, some are still non resolved ( mainly cocoa related).
The best way to get accurate information on the forum is to post something wrong and wait for corrections.

 

TinyPortal © 2005-2018