Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
fpc & lazarus
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on ARM
View previous topic :: View next topic  
Author Message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 46131
Location: 56N 3W

PostPosted: Sun Apr 12, 2020 5:34 pm    Post subject: Reply with quote

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
View user's profile Send private message
n1ese
n00b
n00b


Joined: 29 Sep 2019
Posts: 48

PostPosted: Sun Apr 12, 2020 5:43 pm    Post subject: fpc & lazarus Reply with quote

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
View user's profile Send private message
n1ese
n00b
n00b


Joined: 29 Sep 2019
Posts: 48

PostPosted: Sun Apr 12, 2020 5:52 pm    Post subject: Reply with quote

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
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 46131
Location: 56N 3W

PostPosted: Sun Apr 12, 2020 5:58 pm    Post subject: Reply with quote

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
View user's profile Send private message
n1ese
n00b
n00b


Joined: 29 Sep 2019
Posts: 48

PostPosted: Sun Apr 12, 2020 6:10 pm    Post subject: Reply with quote

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
View user's profile Send private message
n1ese
n00b
n00b


Joined: 29 Sep 2019
Posts: 48

PostPosted: Sun Apr 12, 2020 10:00 pm    Post subject: Reply with quote

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
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 46131
Location: 56N 3W

PostPosted: Sun Apr 12, 2020 10:05 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on ARM All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum