Sign in Join

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

Mailing lists / fpc-pascal / 2011-11

Compilation error in crosscompiling lNet to arm-linux

4 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

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

Torsten Bonde Christiansen

Hi List.

I get the following error when crosscompiling lNet to arm-linux.

$ fpc -MObjFPC -Sgim -CX -O2 -Parm -gs -gl -vew -l -Fi../lib/sys -Fu../lib -Fu. -FUlib/arm-linux/ -dLNET_BASE -fPIC lnetbase.pas Free Pascal Compiler version 2.4.4 [2011/11/14] for arm Copyright (c) 1993-2010 by Florian Klaempfl
Target OS: Linux for ARMEL
Compiling lnetbase.pas
Compiling /home/torsten/FreePascal/lnet/lib/lnet.pp Compiling /home/torsten/FreePascal/lnet/lib/levents.pp Compiling /home/torsten/FreePascal/lnet/lib/lcommon.pp *lcommon.pp(370,13) Fatal: Internal error 200502052* Fatal: Compilation aborted
Error: /usr/bin/ppcrossarm returned an error exitcode (normal if you did not specify a source file to be compiled)

Is this a bug in the compiler?

Kind regards,
Torsten Bonde Christiansen.

Reply by email

Jonas Maebe
to Torsten Bonde Christiansen
Torsten Bonde Christiansen wrote 15 lines
I get the following error when crosscompiling lNet to arm-linux. $ fpc -MObjFPC -Sgim -CX -O2 -Parm -gs -gl -vew -l -Fi../lib/sys -Fu../lib -Fu. -FUlib/arm-linux/ -dLNET_BASE -fPIC lnetbase.pas Free Pascal Compiler version 2.4.4 [2011/11/14] for arm Copyright (c) 1993-2010 by Florian Klaempfl Target OS: Linux for ARMEL Compiling lnetbase.pas Compiling /home/torsten/FreePascal/lnet/lib/lnet.pp Compiling /home/torsten/FreePascal/lnet/lib/levents.pp Compiling /home/torsten/FreePascal/lnet/lib/lcommon.pp *lcommon.pp(370,13) Fatal: Internal error 200502052* Fatal: Compilation aborted Error: /usr/bin/ppcrossarm returned an error exitcode (normal if you did not specify a source file to be compiled) Is this a bug in the compiler?

It's a missing feature. The problem is that you are trying to generate PIC ARM code, which is not yet implemented/supported.

Jonas

Reply by email

Torsten Bonde Christiansen
to Jonas Maebe
Jonas Maebe wrote 19 lines
On 20 Nov 2011, at 21:30, Torsten Bonde Christiansen wrote: > I get the following error when crosscompiling lNet to arm-linux. > > $ fpc -MObjFPC -Sgim -CX -O2 -Parm -gs -gl -vew -l -Fi../lib/sys -Fu../lib -Fu. -FUlib/arm-linux/ -dLNET_BASE -fPIC lnetbase.pas > Free Pascal Compiler version 2.4.4 [2011/11/14] for arm > Copyright (c) 1993-2010 by Florian Klaempfl > Target OS: Linux for ARMEL > Compiling lnetbase.pas > Compiling /home/torsten/FreePascal/lnet/lib/lnet.pp > Compiling /home/torsten/FreePascal/lnet/lib/levents.pp > Compiling /home/torsten/FreePascal/lnet/lib/lcommon.pp > *lcommon.pp(370,13) Fatal: Internal error 200502052* > Fatal: Compilation aborted > Error: /usr/bin/ppcrossarm returned an error exitcode (normal if you did not specify a source file to be compiled) > > Is this a bug in the compiler? It's a missing feature. The problem is that you are trying to generate PIC ARM code, which is not yet implemented/supported.

Is it going to be in 2.6. Perhaps in trunk?

-Torsten.

Reply by email

Jonas Maebe
to Torsten Bonde Christiansen
Torsten Bonde Christiansen wrote
On 2011-11-20 21:36, Jonas Maebe wrote: > It's a missing feature. The problem is that you are trying to generate PIC ARM code, which is not yet implemented/supported. > Is it going to be in 2.6. Perhaps in trunk?

It's not implemented anywhere currently.

Jonas

Reply by email