Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2008-12

FPC on ARM, Debian "Lenny"

13 messages · 6 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Mark Morgan Lloyd

Using Debian "Etch", which is arm rather than armel, I was able to compile FPC 2.2.2 running natively on an ARM system. I was subsequently able to use this to compile Lazarus 0.9.27, hence generate X applications natively. I can't remember whether I did any debugging.

Debian "Lenny" has switched to armel rather than arm. FPC 2.2.2 installs without error but trying to compile the canonical test.pas I get:

/usr/bin/ld: ERROR: Source object
/usr/local/lib/fpc/2.2.2/units/arm-linux/rtl/system.o has EABI version 0, but target test has EABI version 4

I think this is a fairly succinct indication of why I wasn't able to get FPC to compile itself prior to compiling Lazarus for Lenny.

Looking at the Debian "Lenny" repository, there is an fpc metapackage but the components- fp-compiler etc.- are not available.

From recent discussion I presume that to progress this I have to cross-compile, either on Debian "Etch" or on a non-ARM system. Can somebody point me at the information I need, and tell me explicitly what target I should be using?

Is there any way I can help by packaging an armel build for download, ditto for v2.2.3 for SPARC?

Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues]

Reply by email

Marco van de Voort
to Mark Morgan Lloyd

In our previous episode, Mark Morgan Lloyd said:

I think this is a fairly succinct indication of why I wasn't able to get FPC to compile itself prior to compiling Lazarus for Lenny.

Well, actually no, did you try to bootstrap FPC itself? Then the program generated only contains files generated with the new binutils set.

Reply by email

Mark Morgan Lloyd
to Marco van de Voort: In our previous episode, Mark Morgan Lloyd said: Well, actually no, did you try to…
Marco van de Voort wrote 6 lines
In our previous episode, Mark Morgan Lloyd said: > I think this is a fairly succinct indication of why I wasn't able to get > FPC to compile itself prior to compiling Lazarus for Lenny. Well, actually no, did you try to bootstrap FPC itself? Then the program generated only contains files generated with the new binutils set.

Sorry, I'm not with you. I installed the same 2.2.2 binary that I'd previously used then tried to use that to compile the 2.2.2 sources. It didn't work, at which point I went back and did some more basic tests.

Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues]

Reply by email

Luca Olivetti
to Mark Morgan Lloyd

En/na Mark Morgan Lloyd ha escrit:

Show quoted text 11 lines
Marco van de Voort wrote: > In our previous episode, Mark Morgan Lloyd said: >> I think this is a fairly succinct indication of why I wasn't able to >> get FPC to compile itself prior to compiling Lazarus for Lenny. > > Well, actually no, did you try to bootstrap FPC itself? Then the program > generated only contains files generated with the new binutils set. Sorry, I'm not with you. I installed the same 2.2.2 binary that I'd previously used then tried to use that to compile the 2.2.2 sources. It didn't work, at which point I went back and did some more basic tests.

There was a thread on fpc-pascal last june, I didn't succeed, maybe things have changed now

http://thread.gmane.org/gmane.comp.compilers.free-pascal.general/11546/

Bye

Luca

Reply by email

Marco van de Voort
to Mark Morgan Lloyd: Sorry, I'm not with you. I installed the same 2.2.2 binary that I'd previously used then…

In our previous episode, Mark Morgan Lloyd said:
[ Charset ISO-8859-1 unsupported, converting... ]

Show quoted text 11 lines
Marco van de Voort wrote: > In our previous episode, Mark Morgan Lloyd said: >> I think this is a fairly succinct indication of why I wasn't able to get >> FPC to compile itself prior to compiling Lazarus for Lenny. > > Well, actually no, did you try to bootstrap FPC itself? Then the program > generated only contains files generated with the new binutils set. Sorry, I'm not with you. I installed the same 2.2.2 binary that I'd previously used then tried to use that to compile the 2.2.2 sources. It didn't work, at which point I went back and did some more basic tests.

It sounded like you try to compile (actually: link) a new program for a armel 4 abi with a precompiled RTL for a armel 0 abi.

My suggestion would have been to try to recompile the RTL first with the binutils that come with the armel 4 abi system.

Reply by email

Mark Morgan Lloyd
to peter green: Lenny is availible for both arm and armel.
peter green wrote
> > Debian "Lenny" has switched to armel rather than arm. Lenny is availible for both arm and armel.

Thanks, Peter, I'll see if I can follow it up. I suspect that the problem is that the build tailored for the specific hardware I'm using is now armel-only and I've not got time to start working my way up the learning curve of repackaging the distro.

Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues]

Reply by email

Mark Morgan Lloyd
to Marco van de Voort: In our previous episode, Mark Morgan Lloyd said: [ Charset ISO-8859-1 unsupported,…
Marco van de Voort wrote
It sounded like you try to compile (actually: link) a new program for a armel 4 abi with a precompiled RTL for a armel 0 abi.

Yes, I think that's what's happening.

My suggestion would have been to try to recompile the RTL first with the binutils that come with the armel 4 abi system.

OK, I think I'm with that. Any pointers to documentation would be appreciated, I'm still at the stage of finding my way around.

Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues]

Reply by email

Mark Morgan Lloyd
to Luca Olivetti: En/na Mark Morgan Lloyd ha escrit: There was a thread on fpc-pascal last june, I didn't…
Luca Olivetti wrote
There was a thread on fpc-pascal last june, I didn't succeed, maybe things have changed now http://thread.gmane.org/gmane.comp.compilers.free-pascal.general/11546/

Thanks, I saw some of that last night before I posted but there's more on gmane than in my local archive. I'll get back onto this later.

Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues]

Reply by email

Henry Vermaak
to Mark Morgan Lloyd

2008/12/14 Mark Morgan Lloyd :

Show quoted text 9 lines
Luca Olivetti wrote: > There was a thread on fpc-pascal last june, I didn't succeed, maybe things > have changed now > > http://thread.gmane.org/gmane.comp.compilers.free-pascal.general/11546/ Thanks, I saw some of that last night before I posted but there's more on gmane than in my local archive. I'll get back onto this later.

florian's done some more work on arm eabi and afaik it works if you compile without optimisations (-O-). this is using fpc trunk.

henry

Reply by email

Florian Klaempfl
to Henry Vermaak
Show quoted text 13 lines
2008/12/14 Mark Morgan Lloyd : > Luca Olivetti wrote: > >> There was a thread on fpc-pascal last june, I didn't succeed, maybe things >> have changed now >> >> http://thread.gmane.org/gmane.comp.compilers.free-pascal.general/11546/ > Thanks, I saw some of that last night before I posted but there's more on > gmane than in my local archive. I'll get back onto this later. florian's done some more work on arm eabi and afaik it works if you compile without optimisations (-O-). this is using fpc trunk.

Yes. I uploaded a starting eabi compiler to
http://www.florianklaempfl.de/ppcarm

Please use only with -O-

Reply by email

Mark Morgan Lloyd
to Florian Klaempfl
Florian Klaempfl wrote 6 lines
> florian's done some more work on arm eabi and afaik it works if you > compile without optimisations (-O-). this is using fpc trunk. > Yes. I uploaded a starting eabi compiler to http://www.florianklaempfl.de/ppcarm

Lovely. I've got to give up the disc in this machine which will knock me back a couple of days but I'll get back onto it as soon as I am able.

Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues]

Reply by email