View previous topic :: View next topic |
Author |
Message |
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54578 Location: 56N 3W
|
Posted: Sun Apr 12, 2020 5:34 pm Post subject: |
|
|
n1ese,
Tell us more ... but maybe it should be a new topic?
fpc & lazarus ... Thats the Free Pascal Compiler, that's written in Pascal and its development environment if I remember correctly.
It might be more educational for us all to help you help yourself :) _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
n1ese Tux's lil' helper
Joined: 29 Sep 2019 Posts: 82
|
Posted: Sun Apr 12, 2020 5:43 pm Post subject: fpc & lazarus |
|
|
Trying to figure out how to get fpc & lazarus built for my arm64 devices. I have some applications I need to compile that require the Free Pascal Compiler. From what I know, it can't be compiled natively on arm64 and has to be cross-compiled from say an x86 platform. I only have arm64 devices.
There is an ebuild for both but it says it doesn't support arm64.
Code: | >>> Unpacking source...
* ERROR: dev-lang/fpc-3.0.4::gentoo failed (unpack phase):
* This ebuild doesn't support arm64. |
Thoughts on how to figure this out? |
|
Back to top |
|
|
n1ese Tux's lil' helper
Joined: 29 Sep 2019 Posts: 82
|
Posted: Sun Apr 12, 2020 5:52 pm Post subject: |
|
|
Ok, I dug into google a bit deeper. Looks like v3.0.4 of fpc doesn't support aarch64 at all. 3.2.0 adds support for aarch64 but there is no ebuild for it so I will try compiling it manually. Im not clear if it can be compiled natively but I will give it a go. |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54578 Location: 56N 3W
|
Posted: Sun Apr 12, 2020 5:58 pm Post subject: |
|
|
n1ese,
The fpc needs the fpc to build itself, so as you say, to get started someone somewhere has to cross compile frc.
fpc-3.0.4.ebuild: | DESCRIPTION="Free Pascal Compiler"
SRC_URI="mirror://sourceforge/freepascal/fpcbuild-${PV}.tar.gz
mirror://sourceforge/freepascal/fpc-${PV}.source.tar.gz
amd64? ( mirror://sourceforge/freepascal/${P}.x86_64-linux.tar )
x86? ( mirror://sourceforge/freepascal/${P}.i386-linux.tar )
doc? ( mirror://sourceforge/freepascal/Documentation/${PV}/doc-html.tar.gz -> ${P}-doc-html.tar.gz )" |
so the ebuild starts off by fetching the binary fpc for your arch.
The Lazarus fourms suggest that it can be made to work but that looks non trivial. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
n1ese Tux's lil' helper
Joined: 29 Sep 2019 Posts: 82
|
Posted: Sun Apr 12, 2020 6:10 pm Post subject: |
|
|
Sweet, there is a binary for fpc 3.2.0rc1. Hopefully lazarus will compile fine next.
Code: | n1ese@ganymede ~ $ tar -xvf Downloads/fpc-3.2.0rc1.aarch64-linux.tar
fpc-3.2.0rc1.aarch64-linux/
fpc-3.2.0rc1.aarch64-linux/doc-pdf.tar.gz
fpc-3.2.0rc1.aarch64-linux/install.sh
fpc-3.2.0rc1.aarch64-linux/demo.tar.gz
fpc-3.2.0rc1.aarch64-linux/binary.aarch64-linux.tar |
|
|
Back to top |
|
|
n1ese Tux's lil' helper
Joined: 29 Sep 2019 Posts: 82
|
Posted: Sun Apr 12, 2020 10:00 pm Post subject: |
|
|
well, well.. this was much easier than I thought. fpc & laz compiled and installed correctly.
Release versions do not work with aarch64 it seems. I downloaded fpc-3.2.0rc1 aarch64 binary package and checked out the svn trunk of lazarus. All seems well.
Code: | n1ese@ganymede ~ $ fpc -v
Free Pascal Compiler version 3.2.0rc1 [2020/02/26] for aarch64
Copyright (c) 1993-2020 by Florian Klaempfl and others
n1ese@ganymede ~ $ lazarus-ide -v
2.1.0 SVN Revision: 62952 |
|
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54578 Location: 56N 3W
|
Posted: Sun Apr 12, 2020 10:05 pm Post subject: |
|
|
n1ese,
Thank you for posting that. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
dieselnutjob n00b
Joined: 06 Oct 2020 Posts: 2
|
|
Back to top |
|
|
|