Re: [fpc-pascal] FPC 3.0.0-rc1 release

2015-11-30 Thread Mark Morgan Lloyd

Martin Schreiber wrote:

In my Raspbian RPi 1 model B rev2 I installed FPC 2.6.0 by 
apt-get install fpc

Then I extracted fpc_eabihf_3_0_1.tar.gz to /home/pi/fpc.
cd to the svn fixes_3_0 checkout,
"
make PP=/home/pi/fpc/3_0/eabihf/lib/fpc/3.0.1/ppcarm OVERRIDEVERSIONCHECK=1 
all

"


Thought a status report might be useful here. Using Raspbian 4.1 
"Jessie" dated 2015-11-21 from 
https://www.raspberrypi.org/downloads/raspbian/ I find fpc_eabihf_3_0_1 
from http://sourceforge.net/projects/mseide-msegui/files/fpcarm/ 
installs and runs with no further prerequisites, and is able to build 
the standard 3.0.0 sources. There are some minor complaints that 
Subversion is missing, but that can be trivially fixed.


The new Jessie "Lite" similarly runs 3.0.1 and builds 3.0.0, there are 
no missing prerequisites so it is not necessary to start off at 2.6.x.


On "full fat" Jessie, Lazarus 1.4.4 compiles but requires libgtk2.0-dev 
as a prerequisite. The result doesn't run reliably but this is a Jessie 
issue which I believe is being addressed. Adding libqt4pas-dev and 
building Lazarus for Qt results in something that works fine.


I have not tried building Lazarus on Jessie Lite, since I see it as 
mainly being useful for embedded systems based on the original Rpi or 
the new RPi Zero. I don't anticipate significant problems other than 
caused by limited memory (Lazarus requires at least 512Mb RAM+swap to 
build).


Using standard RPi2 Debian (i.e. not Raspbian) from 
http://sjoerd.luon.net/posts/2015/02/debian-jessie-on-rpi2/ with the 
addition of a fairly standard collection of packages using tasksel 
followed by the build-essential, gdb and subversion packages runs 3.0.1 
and builds 3.0.0 in essentially the same way as is described above.


On standard RPi2 Debian, FPC 3.0.0 fails to build Lazarus 1.4.4 with 
errors like


paswstring.pas(425,46) Error: Incompatible types: got "procedure(PChar;var UnicodeString;LongInt);StdCall>" expected 
"TUnicodeStringManager.procedure(PChar;Word;var UnicodeString;LongInt);StdCall>"

paswstring.pas(439) Fatal: There were 4 errors compiling module, stopping
Fatal: Compilation aborted
Makefile:2276: recipe for target 'lazutils.ppu' failed

I'm not intending to pursue this at the moment, since I've hacked a lot 
of stuff onto the top of the supplied "lean and mean" distro ("Adde 
parvum parvo magnus acervus erit") and my guess is that the Unicode 
stuff is inadequately configured probably impacting on FPC. I mention it 
here entirely as a "heads up" for anybody attempting a similar combination.


In all of the above cases, /etc/fpc.cfg should contain a line

-Fl/usr/lib/gcc/arm-linux-gnueabihf/4.9

--
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] FPC 3.0.0-rc1 release

2015-09-07 Thread Mark Morgan Lloyd

Martin Schreiber wrote:

On Saturday 05 September 2015 19:55:38 Joost van der Sluis wrote:

Martin Schreiber wrote:

Starting over, I get to

Free Pascal Compiler version 3.0.1 [2015/08/29] for arm
Copyright (c) 1993-2015 by Florian Klaempfl and others
Target OS: Linux for ARMHF
Compiling fpmake.pp

Can you send the lines before these lines? I'm interested in how the
fpmake-binary is being build.


I was Mark who wrote it not me. Mark?


I'll revert to the 2014-era Raspbian and take a look this afternoon.

Raspbian 2015-05-05 is better, there's a benign failure (unable to find 
crtbegin.o) which doesn't appear to break anything but can be fixed by a 
-Fl.


--
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] FPC 3.0.0-rc1 release

2015-09-07 Thread Martin Schreiber
On Saturday 05 September 2015 19:55:38 Joost van der Sluis wrote:
> > Martin Schreiber wrote:
> >
> > Starting over, I get to
> >
> > Free Pascal Compiler version 3.0.1 [2015/08/29] for arm
> > Copyright (c) 1993-2015 by Florian Klaempfl and others
> > Target OS: Linux for ARMHF
> > Compiling fpmake.pp
>
> Can you send the lines before these lines? I'm interested in how the
> fpmake-binary is being build.
>
I was Mark who wrote it not me. Mark?

Martin
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] FPC 3.0.0-rc1 release

2015-09-07 Thread Joost van der Sluis

On 09/07/2015 08:24 PM, Mark Morgan Lloyd wrote:

Below on Raspbian 2015-05-05:

..

make[3]: Leaving directory '/usr/local/src/fpc/fixes_3_0/packages/fpmkunit'
/usr/local/src/fpc/fixes_3_0/compiler/ppcarm fpmake.pp
-Fu/usr/local/src/fpc/fixes_3_0/packages/fpmkunit/units_bs/arm-linux
-Fu/usr/local/src/fpc/fixes_3_0/rtl/units/arm-linux  -V3.0.1 -O- -gl
-Xs- -vt
Configfile search: /home/markMLl/.fpc.cfg
Configfile search: /usr/local/src/fpc/fixes_3_0/etc/fpc.cfg
Configfile search: /etc/fpc.cfg
Reading options from file /etc/fpc.cfg
Free Pascal Compiler version 3.0.1 [2015/09/07] for arm


Thanks.

Regards,

Joost.
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] FPC 3.0.0-rc1 release

2015-09-07 Thread Mark Morgan Lloyd

Mark Morgan Lloyd wrote:

Martin Schreiber wrote:

On Saturday 05 September 2015 19:55:38 Joost van der Sluis wrote:

Martin Schreiber wrote:

Starting over, I get to

Free Pascal Compiler version 3.0.1 [2015/08/29] for arm
Copyright (c) 1993-2015 by Florian Klaempfl and others
Target OS: Linux for ARMHF
Compiling fpmake.pp

Can you send the lines before these lines? I'm interested in how the
fpmake-binary is being build.


I was Mark who wrote it not me. Mark?


Below on Raspbian 2015-05-05:

..

make[3]: Leaving directory '/usr/local/src/fpc/fixes_3_0/packages/fpmkunit'
/usr/local/src/fpc/fixes_3_0/compiler/ppcarm fpmake.pp 
-Fu/usr/local/src/fpc/fixes_3_0/packages/fpmkunit/units_bs/arm-linux 
-Fu/usr/local/src/fpc/fixes_3_0/rtl/units/arm-linux  -V3.0.1 -O- -gl 
-Xs- -vt

Configfile search: /home/markMLl/.fpc.cfg
Configfile search: /usr/local/src/fpc/fixes_3_0/etc/fpc.cfg
Configfile search: /etc/fpc.cfg
Reading options from file /etc/fpc.cfg
Free Pascal Compiler version 3.0.1 [2015/09/07] for arm
Copyright (c) 1993-2015 by Florian Klaempfl and others
Target OS: Linux for ARMHF
Compiling fpmake.pp
fpmake.pp(16,3) Note: Local variable "T" is assigned but never used
Assembling fpmake
Linking fpmake
fpmake.pp(49) Warning: "crtbegin.o" not found, this will probably cause 
a linking failure
fpmake.pp(49) Warning: "crtend.o" not found, this will probably cause a 
linking failure

/usr/bin/ld: warning: link.res contains output sections; did you forget -T?
14595 lines compiled, 62.8 sec
2 warning(s) issued
1 note(s) issued
./fpmake compile --localunitdir=.. --os=linux --cpu=arm -o -Ur -o -Xs -o 
-O2 -o -n -o -Fu/usr/local/src/fpc/fixes_3_0/rtl/units/arm-linux -o 
-V3.0.1 -o -O- -o -gl -o -Xs- -o -vt -o -darm -o -dRELEASE 
--compiler=/usr/local/src/fpc/fixes_3_0/compiler/ppcarm -bu -o -XX -o -CX

Start compiling package a52 for target arm-linux.
Warning: Unable to determine the libgcc path.

.. also ...

make[1]: Leaving directory '/usr/local/src/fpc/fixes_3_0'
make utils_all FPC=/usr/local/src/fpc/fixes_3_0/compiler/ppcarm 
FPCFPMAKE=/usr/local/src/fpc/fixes_3_0/compiler/ppcarm RELEASE=1 
'OPT=-V3.0.1 -O- -gl -Xs- -vt'

make[1]: Entering directory '/usr/local/src/fpc/fixes_3_0'
make -C utils all
make[2]: Entering directory '/usr/local/src/fpc/fixes_3_0/utils'
/usr/local/src/fpc/fixes_3_0/compiler/ppcarm fpmake.pp 
-Fu/usr/local/src/fpc/fixes_3_0/rtl/units/arm-linux 
-Fu/usr/local/src/fpc/fixes_3_0/packages/paszlib/units/arm-linux 
-Fu/usr/local/src/fpc/fixes_3_0/packages/fcl-process/units/arm-linux 
-Fu/usr/local/src/fpc/fixes_3_0/packages/hash/units/arm-linux 
-Fu/usr/local/src/fpc/fixes_3_0/packages/libtar/units/arm-linux 
-Fu/usr/local/src/fpc/fixes_3_0/packages/fpmkunit/units/arm-linux 
-Fu/usr/local/src/fpc/fixes_3_0/packages/fcl-json/units/arm-linux 
-V3.0.1 -O- -gl -Xs- -vt

Configfile search: /home/markMLl/.fpc.cfg
Configfile search: /usr/local/src/fpc/fixes_3_0/etc/fpc.cfg
Configfile search: /etc/fpc.cfg
Reading options from file /etc/fpc.cfg
Free Pascal Compiler version 3.0.1 [2015/09/07] for arm
Copyright (c) 1993-2015 by Florian Klaempfl and others
Target OS: Linux for ARMHF
Compiling fpmake.pp
fpmake.pp(83,52) Warning: Local variable "P" does not seem to be initialized
fpmake.pp(12,3) Note: Local variable "T" is assigned but never used
fpmake.pp(12,3) Note: Local variable "T" is assigned but never used
fpmake.pp(12,3) Note: Local variable "T" is assigned but never used
fpmake.pp(12,3) Note: Local variable "T" is assigned but never used
fpmake.pp(12,3) Note: Local variable "T" is assigned but never used
Assembling fpmake
Linking fpmake
fpmake.pp(105) Warning: "crtbegin.o" not found, this will probably cause 
a linking failure
fpmake.pp(105) Warning: "crtend.o" not found, this will probably cause a 
linking failure

/usr/bin/ld: warning: link.res contains output sections; did you forget -T?
1498 lines compiled, 15.1 sec
3 warning(s) issued
5 note(s) issued
./fpmake compile --localunitdir=.. --globalunitdir=../packages 
--os=linux --cpu=arm -o -Ur -o -Xs -o -O2 -o -n -o 
-Fu/usr/local/src/fpc/fixes_3_0/rtl/units/arm-linux -o 
-Fu/usr/local/src/fpc/fixes_3_0/packages/paszlib/units/arm-linux -o 
-Fu/usr/local/src/fpc/fixes_3_0/packages/fcl-process/units/arm-linux -o 
-Fu/usr/local/src/fpc/fixes_3_0/packages/hash/units/arm-linux -o 
-Fu/usr/local/src/fpc/fixes_3_0/packages/libtar/units/arm-linux -o 
-Fu/usr/local/src/fpc/fixes_3_0/packages/fpmkunit/units/arm-linux -o 
-Fu/usr/local/src/fpc/fixes_3_0/packages/fcl-json/units/arm-linux -o 
-V3.0.1 -o -O- -o -gl -o -Xs- -o -vt -o -darm -o -dRELEASE 
--compiler=/usr/local/src/fpc/fixes_3_0/compiler/ppcarm -bu

Start compiling package utils for target arm-linux.

.. also ...

make[1]: Leaving directory '/usr/local/src/fpc/fixes_3_0'
make ide_all FPC=/usr/local/src/fpc/fixes_3_0/compiler/ppcarm 
FPCFPMAKE=/usr/local/src/fpc/fixes_3_0/compiler/ppcarm RELEASE=1 
'OPT=-V3.0.1 -O- -gl -Xs- -vt'

make[1]: Entering directory '/usr/local/src/fpc/fixes_3_0'
make -C ide 

Re: [fpc-pascal] FPC 3.0.0-rc1 release

2015-09-05 Thread Joost van der Sluis
> Martin Schreiber wrote:
> 
> Starting over, I get to
> 
> Free Pascal Compiler version 3.0.1 [2015/08/29] for arm
> Copyright (c) 1993-2015 by Florian Klaempfl and others
> Target OS: Linux for ARMHF
> Compiling fpmake.pp

Can you send the lines before these lines? I'm interested in how the 
fpmake-binary is being build.

Joost.___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] FPC 3.0.0-rc1 release

2015-09-02 Thread Mark Morgan Lloyd

Mark Morgan Lloyd wrote:

Anyway, even with that older Rasbian release FPC 3.0.1 is now making a 
valiant attempt to compile Lazarus. Whichever way that goes I'll discuss 
it in the Lazarus mailing list.


Just in case this is something that anybody thinks is worth discussing:

The good news is that after successful tests on x86 and x86-64 Linux 
(Debian Jessie), yesterday evening I was able to compile and run Lazarus 
1.4 using FPC 3.0.1 on a SPARC running OpenSXCE (very approximately, 
Solaris 11).


The bad news is that when I try to do the same natively on a Raspberry 
Pi running 2014-era Raspbian, it consistently fails with


(3104) Compiling etsrceditmarks.pas
/usr/local/share/lazarus-trunk/ide/etsrceditmarks.pas(177,27) Hint: 
(5024) Parameter "Data" not used
/usr/local/share/lazarus-trunk/ide/etsrceditmarks.pas(204,26) Hint: 
(5024) Parameter "Sender" not used
/usr/local/share/lazarus-trunk/ide/etsrceditmarks.pas(205,34) Hint: 
(5024) Parameter "aText" not used

(9009) Assembling etsrceditmarks
etsrceditmarks.pas(1184) Error: (9008) Can't call the assembler, error 
-1 switching to external assembling
etsrceditmarks.pas(1184) Fatal: (10026) There were 2 errors compiling 
module, stopping

Fatal: (1018) Compilation aborted
make[2]: *** [lazbuild] Error 1
make[2]: Leaving directory `/usr/local/share/lazarus-trunk/ide'

I mention this here rather than in the Lazarus ML because of the 
successful tests on other platforms. The failure is the same on both 
Lazarus 1.4 and lazarus-trunk, which suggests that it's not something 
gross like an out-of-RAM condition. For various reasons I'm making very 
heavy going of upgrading to a more recent Raspbian (e.g. 2015-05-05) and 
I think it would be useful for somebody with a current version to check 
this combination, alternatively if somebody could tell me what options 
etc. to use to get more detailed failure info...


--
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] FPC 3.0.0-rc1 release

2015-08-31 Thread Martin Schreiber
On Monday 31 August 2015 16:25:38 Mark Morgan Lloyd wrote:
> 
> As I've said already- more than once-

I wrote the previous mail "for the benefit of 
anybody getting here via Google" too. ;-)
Sorry for annoying you.

Martin
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] FPC 3.0.0-rc1 release

2015-08-31 Thread Mark Morgan Lloyd

Martin Schreiber wrote:

On Monday 31 August 2015 16:25:38 Mark Morgan Lloyd wrote:

As I've said already- more than once-


I wrote the previous mail "for the benefit of 
anybody getting here via Google" too. ;-)

Sorry for annoying you.


[GRIN] Nonono, I'm not annoyed. But particularly taking into account the 
ld-linux issue there was something very obviously wrong with the 
2014-era Raspbian, and since the Raspberry Pi Foundation (via Element 14 
and their resellers) shipped a lot of cards containing that I think it's 
important for the casual user to know what to blame.


Anyway, even with that older Rasbian release FPC 3.0.1 is now making a 
valiant attempt to compile Lazarus. Whichever way that goes I'll discuss 
it in the Lazarus mailing list.


--
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] FPC 3.0.0-rc1 release

2015-08-31 Thread Jonas Maebe

Mark Morgan Lloyd wrote:

I've already got both in the fpc.cfg file:

# path to the gcclib
-Fl/usr/lib/gcc/arm-linux-gnueabi/4.6.3
-Fl/usr/lib/arm-linux-gnueabi


"make all" in the top level directory ignores your fpc.cfg (by design).


Jonas
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] FPC 3.0.0-rc1 release

2015-08-31 Thread Martin Schreiber
On Monday 31 August 2015 13:00:59 Mark Morgan Lloyd wrote:

> Thanks Jonas, that fixes it. To wrap this up and for the benefit of
> anybody getting here via Google: this is for a Raspeberry Pi with
> 2014-era Raspbian.
>
> Binaries from: http://sourceforge.net/projects/mseide-msegui/files/fpcarm/
>
> Corresponding sources from
> http://svn.freepascal.org/svn/fpc/branches/fixes_3_0  using svn co
>
> Build command line: make NO_GDB=1 OPT='-FL/lib/ld-linux.so.3
> -Fl/usr/lib/gcc/arm-linux-gnueabi/4.6.3 -Fl/usr/lib/arm-linux-gnueabi'
> all  with OVERRIDEVERSIONCHECK=1 if necessary, and my preference is to
> also use -O- -gl -Xs- for ease of debugging.
>
> Install command line: sudo OPT='-FL/lib/ld-linux.so.3
> -Fl/usr/lib/gcc/arm-linux-gnueabi/4.6.3 -Fl/usr/lib/arm-linux-gnueabi'
> make install
>
How it worked for me with a Raspbian image from last week from here:
https://www.raspberrypi.org/downloads/raspbian/

In my Raspbian RPi 1 model B rev2 I installed FPC 2.6.0 by
"
sudo apt-get update
sudo apt-get install fpc
"

Then I extracted fpc_eabihf_3_0_1.tar.gz from
http://sourceforge.net/projects/mseide-msegui/files/fpcarm/ to /home/pi/fpc.
cd to the svn fixes_3_0 checkout,
"
make PP=/home/pi/fpc/3_0/eabihf/lib/fpc/3.0.1/ppcarm OVERRIDEVERSIONCHECK=1 all
"

Martin
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] FPC 3.0.0-rc1 release

2015-08-31 Thread Mark Morgan Lloyd

Jonas Maebe wrote:

Mark Morgan Lloyd wrote:

I've already got both in the fpc.cfg file:

# path to the gcclib
-Fl/usr/lib/gcc/arm-linux-gnueabi/4.6.3
-Fl/usr/lib/arm-linux-gnueabi


"make all" in the top level directory ignores your fpc.cfg (by design).


[Slaps forehead] I'll be back.

--
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] FPC 3.0.0-rc1 release

2015-08-31 Thread Mark Morgan Lloyd

Jonas Maebe wrote:

Mark Morgan Lloyd wrote:

/usr/local/src/fpc/fixes_3_0/rtl/units/arm-linux/cprt0.o: In function
`_haltproc_eabi':
(.text+0x88): undefined reference to `_fini'
/usr/local/src/fpc/fixes_3_0/rtl/units/arm-linux/cprt0.o: In function
`_haltproc_eabi':
(.text+0x90): undefined reference to `_init'
chmcmd.lpr(238,46) Error: Error while linking
chmcmd.lpr(238,46) Fatal: There were 1 errors compiling module, stopping
Fatal: Compilation aborted


This is also related to the fact that you have an armhf system that uses 
the directory/file layout of an armel system. Pass 
-Fl/usr/lib/arm-linux-gnueabi to the compiler, as it is only looking in 
/usr/lib/arm-linux-gnueabihf for the crt*.o files (which contain those 
symbols).


I've already got both in the fpc.cfg file:

# path to the gcclib
-Fl/usr/lib/gcc/arm-linux-gnueabi/4.6.3
-Fl/usr/lib/arm-linux-gnueabi

where the system already has the symlink

/usr/lib/gcc/arm-linux-gnueabi/4.6.3 -> 4.6

Doing a brute-force search for crt*.o:

/usr/lib/arm-linux-gnueabi/crtn.o
/usr/lib/arm-linux-gnueabi/crti.o
/usr/lib/arm-linux-gnueabi/crt1.o
/usr/lib/gcc/arm-linux-gnueabi/4.6/crtbegin.o
/usr/lib/gcc/arm-linux-gnueabi/4.6/crtbeginT.o
/usr/lib/gcc/arm-linux-gnueabi/4.6/crtbeginS.o
/usr/lib/gcc/arm-linux-gnueabi/4.6/crtend.o
/usr/lib/gcc/arm-linux-gnueabi/4.6/crtendS.o
/usr/local/lib/fpc/3.0.1/units/arm-linux/rtl-console/crt.o
/usr/local/src/fpc/fixes_3_0/rtl/palmos/m68k/crt0.o

I really do think that I need to get Raspbian upgraded, I know that 
there are problems with the one currently running.


--
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] FPC 3.0.0-rc1 release

2015-08-31 Thread Jonas Maebe

Mark Morgan Lloyd wrote:

/usr/local/src/fpc/fixes_3_0/rtl/units/arm-linux/cprt0.o: In function
`_haltproc_eabi':
(.text+0x88): undefined reference to `_fini'
/usr/local/src/fpc/fixes_3_0/rtl/units/arm-linux/cprt0.o: In function
`_haltproc_eabi':
(.text+0x90): undefined reference to `_init'
chmcmd.lpr(238,46) Error: Error while linking
chmcmd.lpr(238,46) Fatal: There were 1 errors compiling module, stopping
Fatal: Compilation aborted


This is also related to the fact that you have an armhf system that uses 
the directory/file layout of an armel system. Pass 
-Fl/usr/lib/arm-linux-gnueabi to the compiler, as it is only looking in 
/usr/lib/arm-linux-gnueabihf for the crt*.o files (which contain those 
symbols).



Jonas
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] FPC 3.0.0-rc1 release

2015-08-31 Thread Mark Morgan Lloyd

Mark Morgan Lloyd wrote:

Jonas Maebe wrote:

Mark Morgan Lloyd wrote:

I've already got both in the fpc.cfg file:

# path to the gcclib
-Fl/usr/lib/gcc/arm-linux-gnueabi/4.6.3
-Fl/usr/lib/arm-linux-gnueabi


"make all" in the top level directory ignores your fpc.cfg (by design).


[Slaps forehead] I'll be back.


Thanks Jonas, that fixes it. To wrap this up and for the benefit of 
anybody getting here via Google: this is for a Raspeberry Pi with 
2014-era Raspbian.


Binaries from: http://sourceforge.net/projects/mseide-msegui/files/fpcarm/

Corresponding sources from 
http://svn.freepascal.org/svn/fpc/branches/fixes_3_0  using svn co


Build command line: make NO_GDB=1 OPT='-FL/lib/ld-linux.so.3 
-Fl/usr/lib/gcc/arm-linux-gnueabi/4.6.3 -Fl/usr/lib/arm-linux-gnueabi' 
all  with OVERRIDEVERSIONCHECK=1 if necessary, and my preference is to 
also use -O- -gl -Xs- for ease of debugging.


Install command line: sudo OPT='-FL/lib/ld-linux.so.3 
-Fl/usr/lib/gcc/arm-linux-gnueabi/4.6.3 -Fl/usr/lib/arm-linux-gnueabi' 
make install


Those -Fl and -FL options will probably need to be added to fpc.cfg for 
that specific version of Raspbian.


--
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] FPC 3.0.0-rc1 release

2015-08-31 Thread Mark Morgan Lloyd

Martin Schreiber wrote:

On Monday 31 August 2015 13:00:59 Mark Morgan Lloyd wrote:


Thanks Jonas, that fixes it. To wrap this up and for the benefit of
anybody getting here via Google: this is for a Raspeberry Pi with
2014-era Raspbian.

Binaries from: http://sourceforge.net/projects/mseide-msegui/files/fpcarm/

Corresponding sources from
http://svn.freepascal.org/svn/fpc/branches/fixes_3_0  using svn co

Build command line: make NO_GDB=1 OPT='-FL/lib/ld-linux.so.3
-Fl/usr/lib/gcc/arm-linux-gnueabi/4.6.3 -Fl/usr/lib/arm-linux-gnueabi'
all  with OVERRIDEVERSIONCHECK=1 if necessary, and my preference is to
also use -O- -gl -Xs- for ease of debugging.

Install command line: sudo OPT='-FL/lib/ld-linux.so.3
-Fl/usr/lib/gcc/arm-linux-gnueabi/4.6.3 -Fl/usr/lib/arm-linux-gnueabi'
make install


How it worked for me with a Raspbian image from last week from here:
https://www.raspberrypi.org/downloads/raspbian/

In my Raspbian RPi 1 model B rev2 I installed FPC 2.6.0 by
"
sudo apt-get update
sudo apt-get install fpc
"

Then I extracted fpc_eabihf_3_0_1.tar.gz from
http://sourceforge.net/projects/mseide-msegui/files/fpcarm/ to /home/pi/fpc.
cd to the svn fixes_3_0 checkout,
"
make PP=/home/pi/fpc/3_0/eabihf/lib/fpc/3.0.1/ppcarm OVERRIDEVERSIONCHECK=1 all
"


As I've said already- more than once- the Raspbian version I'd got dated 
from 2014 and an attempt to load 2.6.0 on it failed due to various 
missing/held packages. An attempt to do an update/upgrade/dist-upgrade 
also failed, leaving it in a broken state with e.g. the display manager 
deinstalled and not installable. So I'm very grateful for Jonas's help 
and patience, when he could easily have told me to get lost and fix the 
system software.


I anticipate that once I'm working from the current (2015-05-05) 
Raspbian that things will be much easier. However it looks as though the 
people who put the older version together left it in a state where the 
metadata was broken or inconsistent, which was possibly unavoidable 
taking into account that source.list and sources.list.d identify three 
distinct repositories (debian.net, qmh-project.org and raspberrypi.org).


Incidentally (and I hope that the ML managers will excuse the 
digression), if anybody has a plugtop USB PSU badged "MW" with their Rpi 
I strongly suggest checking that it's robustly assembled: one of these 
came apart when I tried to unplug it and I found that it was held 
together only by silicone RTV sealant. Scraping the gunge off and gluing 
properly appears to have improved reliability, presumably by improving 
heat dissipation.


--
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] FPC 3.0.0-rc1 release

2015-08-30 Thread Mark Morgan Lloyd

Jonas Maebe wrote:

On 30/08/15 17:36, Mark Morgan Lloyd wrote:

  [Requesting program interpreter: /lib/ld-linux.so.3]
..

$ ls -l /lib/ld-linux.so.3
lrwxrwxrwx 1 root root 28 Oct 16  2014 /lib/ld-linux.so.3 -
arm-linux-gnueabi/ld-2.13.so

$ ls -l /lib/arm-linux-gnueabi/ld-2.13.so
-rwxr-xr-x 1 root root 122136 Oct 16  2014
/lib/arm-linux-gnueabi/ld-2.13.so

You win that one, but I'm still a bit suspicious about what's in this
Raspbian: it's almost a year old and seems a bit sensitive to attempted
upgrades.


The problem is that some old Debian (and hence Raspbian) versions used
/lib/ld-linux.so.3 even on armhf, while newer ones (and other
distributions) use /lib/ld-linux-armhf.so.3 .


Their current release (2015-05-05) does appear to use ld-linux-armhf.so.3


You should be able to work
around this problem using the -FL/lib/ld-linux.so.3 compiler option.


Confirmed. Is that a setting which should have been created in fpc.cfg 
during installation (that bit failed, so I'm giving somebody a chance to 
tell me I should have checked things more carefully when I did it 
manually :-)



See also
http://stackoverflow.com/questions/20717838/gcc-arm-executable-no-such-file-orr-directory-wrong-dynamic-lib
and the first answer to that question.


Noted, but Google overlooked that one earlier although I was being 
fairly FPC-specific with the search.


Almost there I think, but using a command like

make OVERRIDEVERSIONCHECK=1 NO_GDB=1 OPT='-O- -gl -Xs- 
-FL/lib/ld-linux.so.3' all


I get

..
   Linking chm/bin/arm-linux/chmcmd
The installer encountered the following error:
External command /usr/local/src/fpc/fixes_3_0/compiler/ppcarm -Tlinux 
-FEchm/bin/arm-linux -FUchm/units/arm-linux/ 
-Fu/usr/local/src/fpc/fixes_3_0/rtl/units/arm-linux/ 
-Fu/usr/local/src/fpc/fixes_3_0/packages/fcl-xml/units/arm-linux/ 
-Fu/usr/local/src/fpc/fixes_3_0/packages/fcl-base/units/arm-linux/ 
-Fu/usr/local/src/fpc/fixes_3_0/packages/fcl-res/units/arm-linux/ 
-Fu/usr/local/src/fpc/fixes_3_0/packages/rtl-objpas/units/arm-linux/ 
-Fu/usr/local/src/fpc/fixes_3_0/packages/iconvenc/units/arm-linux/ -Ur 
-Xs -O2 -n -Fu/usr/local/src/fpc/fixes_3_0/rtl/units/arm-linux -V3.0.1 
-O- -gl -Xs- -vt -FL/lib/ld-linux.so.3 -darm -dRELEASE -XX -CX -viq 
chm/src/chmcmd.lpr failed with exit code 256. Console output:

Target OS: Linux for ARMHF
Compiling chm/src/chmcmd.lpr
Assembling chmcmd
make[2]: *** [smart] Error 1
make[1]: *** [packages_smart] Error 2
make: *** [build-stamp.arm-linux] Error 2
Linking chm/bin/arm-linux/chmcmd
/usr/bin/ld: warning: chm/bin/arm-linux/link.res contains output 
sections; did you forget -T?
/usr/local/src/fpc/fixes_3_0/rtl/units/arm-linux/cprt0.o: In function 
`_haltproc_eabi':

(.text+0x88): undefined reference to `_fini'
/usr/local/src/fpc/fixes_3_0/rtl/units/arm-linux/cprt0.o: In function 
`_haltproc_eabi':

(.text+0x90): undefined reference to `_init'
chmcmd.lpr(238,46) Error: Error while linking
chmcmd.lpr(238,46) Fatal: There were 1 errors compiling module, stopping
Fatal: Compilation aborted

make[2]: Leaving directory `/usr/local/src/fpc/fixes_3_0/packages'
..

I see discussion in the past suggesting that this was some residual 
eabihf issue, but nothing conclusive. Adding an explicit -dFPC_ARMHF 
doesn't help.


If this doesn't have a blindingly obvious solution I'll redo with a 
newer Raspbian as soon as a colleague finds a spare SDCard.


Alternatively, what's the quick-and-dirty way to exclude a single 
package under the new build regime?


--
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] FPC 3.0.0-rc1 release

2015-08-30 Thread John Lee
Not clear about rpi compilers for rc1. My testing on rpi 2 of Martin's
3.0.0 of 18th Aug (similar to rc1?) suggests that compilation works ok, but
linking doesn't.

So does this mean that 3.0.0 doesn't have a working fpc for rpi 2?
What about rpi 1?

I have both rpi 1 and 2 available, so let me know if I can help with more
testing. What's plan?

btw, dont think the rc1 release notes make status clear.

john




On 29 August 2015 at 19:50, John Lee johnel...@gmail.com wrote:

 What is fix please? I noticed Jonas committed a link patch to svn today.
 Does that fix it? If so can pls you provide a new ver.

 TIA John.




 On 29 August 2015 at 19:22, Martin Schreiber mse00...@gmail.com wrote:

 On Saturday 29 August 2015 20:05:35 John Lee wrote:
 
  /usr/bin/ld: warning: link.res contains output sections; did you forget
 -T?

 This is normal.

 Martin
 ___
 fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
 http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal



___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] FPC 3.0.0-rc1 release

2015-08-30 Thread Jonas Maebe
On 30/08/15 14:47, John Lee wrote:
 Can you please tell me which packages are needed so linking works. Martin? 

What linker error did you get? You only posted /usr/bin/ld: warning:
link.res contains output sections; did you forget -T?, but as the
message literally says that's a warning, not an error. It's even been in
the faq for 5 or more years: http://www.freepascal.org/faq.var#unix-ld219

 Don't understand your point(s) - it is complicated by the problems of
 arm on 2.6.4 and the arm flavours, but you seem to be making it worse!

What did we do that made it worse?

 We support fpc on various win (and linux) os for i386  various
 versions, eg win xp (maybe), 7, 10. Also we used to say for these 'you
 need certain utils eg as, ls etc' until we had the internal as and lds   

For Windows, we always provide all utilities ourselves, so that's easy.
For Linux, we assume the user set it up for development already using
their distribution's specific method (if you installed FPC 2.6.4 using
apt-get install, you should have everything you need already; if not,
file a bug report with your distribution).


Jonas
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] FPC 3.0.0-rc1 release

2015-08-30 Thread Jonas Maebe
On 29/08/15 17:57, Mark Morgan Lloyd wrote:
 ./fpmake compile --localunitdir=.. --os=linux --cpu=arm -o -Ur -o -Xs -o
 -O2 -o -n -o -Fu/usr/local/src/fpc/fixes_3_0/rtl/units/arm-linux -o
 -V3.0.1 -o -O- -o -gl -o -Xs- -o -vt -o -darm -o -dRELEASE
 --compiler=/usr/local/src/fpc/fixes_3_0/compiler/ppcarm -bu -o -XX -o -CX
 make[2]: ./fpmake: Command not found
 make[2]: *** [smart] Error 127
 make[2]: Leaving directory `/usr/local/src/fpc/fixes_3_0/packages'
 make[1]: *** [packages_smart] Error 2
 make[1]: Leaving directory `/usr/local/src/fpc/fixes_3_0'
 make: *** [build-stamp.arm-linux] Error 2
 
 /usr/local/src/fpc/fixes_3_0$ find . -name fpmake -ls
 157069 4460 -rwxr-xr-x   1 markMLl  staff 4565218 Aug 29 15:46
 ./packages/fpmake
 
 /usr/local/src/fpc/fixes_3_0$ file ./packages/fpmake
 ./packages/fpmake: ELF 32-bit LSB executable, ARM, version 1 (SYSV),
 dynamically linked (uses shared libs), for GNU/Linux 2.0.0, not stripped
 
 /usr/local/src/fpc/fixes_3_0$ ./packages/fpmake --help
 -bash: ./packages/fpmake: No such file or directory

What does readelf -aW ./packages/fpmake print after Requesting
program interpreter: ? And does that file exist?


Jonas

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] FPC 3.0.0-rc1 release

2015-08-30 Thread Jonas Maebe
On 30/08/15 15:35, Mark Morgan Lloyd wrote:
 ..
   [Requesting program interpreter: /lib/ld-linux-armhf.so.3]
 ..
 
 That file's missing, something's obviously badly wrong with the Rpi
 filesystem etc.: I strongly suspect that somebody did an incautious
 update/upgrade/dist-upgrade.

What does readelf say about the program interpreter of the system
binaries, such as /bin/ls?


Jonas
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] FPC 3.0.0-rc1 release

2015-08-30 Thread Mark Morgan Lloyd

Jonas Maebe wrote:

On 30/08/15 15:35, Mark Morgan Lloyd wrote:

..
  [Requesting program interpreter: /lib/ld-linux-armhf.so.3]
..

That file's missing, something's obviously badly wrong with the Rpi
filesystem etc.: I strongly suspect that somebody did an incautious
update/upgrade/dist-upgrade.


What does readelf say about the program interpreter of the system
binaries, such as /bin/ls?


ELF Header:
  Magic:   7f 45 4c 46 01 01 01 00 00 00 00 00 00 00 00 00
  Class: ELF32
  Data:  2's complement, little endian
  Version:   1 (current)
  OS/ABI:UNIX - System V
  ABI Version:   0
  Type:  EXEC (Executable file)
  Machine:   ARM
  Version:   0x1
  Entry point address:   0xc3f8
  Start of program headers:  52 (bytes into file)
  Start of section headers:  99312 (bytes into file)
  Flags: 0x502, has entry point, 
Version5 EABI

  Size of this header:   52 (bytes)
  Size of program headers:   32 (bytes)
  Number of program headers: 9
  Size of section headers:   40 (bytes)
  Number of section headers: 28
  Section header string table index: 27
..
  [Requesting program interpreter: /lib/ld-linux.so.3]
..

$ ls -l /lib/ld-linux.so.3
lrwxrwxrwx 1 root root 28 Oct 16  2014 /lib/ld-linux.so.3 - 
arm-linux-gnueabi/ld-2.13.so


$ ls -l /lib/arm-linux-gnueabi/ld-2.13.so
-rwxr-xr-x 1 root root 122136 Oct 16  2014 /lib/arm-linux-gnueabi/ld-2.13.so

You win that one, but I'm still a bit suspicious about what's in this 
Raspbian: it's almost a year old and seems a bit sensitive to attempted 
upgrades.


--
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] FPC 3.0.0-rc1 release

2015-08-30 Thread Jonas Maebe
On 30/08/15 17:36, Mark Morgan Lloyd wrote:
   [Requesting program interpreter: /lib/ld-linux.so.3]
 ..
 
 $ ls -l /lib/ld-linux.so.3
 lrwxrwxrwx 1 root root 28 Oct 16  2014 /lib/ld-linux.so.3 -
 arm-linux-gnueabi/ld-2.13.so
 
 $ ls -l /lib/arm-linux-gnueabi/ld-2.13.so
 -rwxr-xr-x 1 root root 122136 Oct 16  2014
 /lib/arm-linux-gnueabi/ld-2.13.so
 
 You win that one, but I'm still a bit suspicious about what's in this
 Raspbian: it's almost a year old and seems a bit sensitive to attempted
 upgrades.

The problem is that some old Debian (and hence Raspbian) versions used
/lib/ld-linux.so.3 even on armhf, while newer ones (and other
distributions) use /lib/ld-linux-armhf.so.3 . You should be able to work
around this problem using the -FL/lib/ld-linux.so.3 compiler option.

See also
http://stackoverflow.com/questions/20717838/gcc-arm-executable-no-such-file-orr-directory-wrong-dynamic-lib
and the first answer to that question.


Jonas
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] FPC 3.0.0-rc1 release

2015-08-30 Thread John Lee
Can you please tell me which packages are needed so linking works. Martin?

Don't understand your point(s) - it is complicated by the problems of arm
on 2.6.4 and the arm flavours, but you seem to be making it worse! We
support fpc on various win (and linux) os for i386  various versions, eg
win xp (maybe), 7, 10. Also we used to say for these 'you need certain
utils eg as, ls etc' until we had the internal as and lds

Suspect the most common linux on rpi is wheezy or jessie (I run this on rpi
2 and rpi 1) - the rpi people seem to favour these,  So why don't we say
fpc supports rpi 1 and 2 on wheezy/jessie, at versions x, and you need
certain utilities too, like we do with everything else?  We don't need to
mention the arm flavour, except in the details, any more than we mention
the instruction set of i386 with all their variants.

So why not keep it simple, tho' not too simple, as the great man is
supposed to have said, and release rpi compilers in 3.0.0 (as betas if
necessary) - there are a lot of them out there..
john










On 30 August 2015 at 13:22, Jonas Maebe jonas.ma...@elis.ugent.be wrote:

 On 30/08/15 14:11, John Lee wrote:
  Not clear about rpi compilers for rc1. My testing on rpi 2 of Martin's
  3.0.0 of 18th Aug (similar to rc1?) suggests that compilation works ok,
  but linking doesn't.

 Maybe you don't have the correct extra packages installed.

  So does this mean that 3.0.0 doesn't have a working fpc for rpi 2?
  What about rpi 1?
 
  I have both rpi 1 and 2 available, so let me know if I can help with
  more testing. What's plan?
 
  btw, dont think the rc1 release notes make status clear.

 FPC 3.0rc1 supports the armhf eabi, which is used by (most?) Linux
 distributions on the Raspberry Pi 1 and 2. We don't advertise that we
 support a particular model of a particular board with a particular Linux
 distribution and if so, under which conditions (which packages might be
 needed). That is up to the maintainers of those Linux distributions, and
 something we have no expertise about nor any control over.

 It is impossible to develop for Linux/ARM without familiarity with Linux
 and ARM development in general, especially if you want to use
 tools/packages that have not been built by the maintainers of your Linux
 distribution. This is regardless of which compiler/language you use.


 Jonas
 ___
 fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
 http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] FPC 3.0.0-rc1 release

2015-08-30 Thread Martin Schreiber
On Sunday 30 August 2015 14:11:17 John Lee wrote:
 Not clear about rpi compilers for rc1. My testing on rpi 2 of Martin's
 3.0.0 of 18th Aug (similar to rc1?) suggests that compilation works ok, but
 linking doesn't.

What means but linking doesn't? the 
/usr/bin/ld: warning: link.res contains output sections; did you forget -T? 
warning?
This warning is issued always on Linux by ld while linking FPC binaries, 
nothing what you should be concerned about.

Martin
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] FPC 3.0.0-rc1 release

2015-08-30 Thread Jonas Maebe
On 30/08/15 14:11, John Lee wrote:
 Not clear about rpi compilers for rc1. My testing on rpi 2 of Martin's
 3.0.0 of 18th Aug (similar to rc1?) suggests that compilation works ok,
 but linking doesn't. 

Maybe you don't have the correct extra packages installed.

 So does this mean that 3.0.0 doesn't have a working fpc for rpi 2? 
 What about rpi 1?
 
 I have both rpi 1 and 2 available, so let me know if I can help with
 more testing. What's plan? 
 
 btw, dont think the rc1 release notes make status clear. 

FPC 3.0rc1 supports the armhf eabi, which is used by (most?) Linux
distributions on the Raspberry Pi 1 and 2. We don't advertise that we
support a particular model of a particular board with a particular Linux
distribution and if so, under which conditions (which packages might be
needed). That is up to the maintainers of those Linux distributions, and
something we have no expertise about nor any control over.

It is impossible to develop for Linux/ARM without familiarity with Linux
and ARM development in general, especially if you want to use
tools/packages that have not been built by the maintainers of your Linux
distribution. This is regardless of which compiler/language you use.


Jonas
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] FPC 3.0.0-rc1 release

2015-08-30 Thread Mark Morgan Lloyd

Jonas Maebe wrote:

On 29/08/15 17:57, Mark Morgan Lloyd wrote:

./fpmake compile --localunitdir=.. --os=linux --cpu=arm -o -Ur -o -Xs -o
-O2 -o -n -o -Fu/usr/local/src/fpc/fixes_3_0/rtl/units/arm-linux -o
-V3.0.1 -o -O- -o -gl -o -Xs- -o -vt -o -darm -o -dRELEASE
--compiler=/usr/local/src/fpc/fixes_3_0/compiler/ppcarm -bu -o -XX -o -CX
make[2]: ./fpmake: Command not found
make[2]: *** [smart] Error 127
make[2]: Leaving directory `/usr/local/src/fpc/fixes_3_0/packages'
make[1]: *** [packages_smart] Error 2
make[1]: Leaving directory `/usr/local/src/fpc/fixes_3_0'
make: *** [build-stamp.arm-linux] Error 2

/usr/local/src/fpc/fixes_3_0$ find . -name fpmake -ls
157069 4460 -rwxr-xr-x   1 markMLl  staff 4565218 Aug 29 15:46
./packages/fpmake

/usr/local/src/fpc/fixes_3_0$ file ./packages/fpmake
./packages/fpmake: ELF 32-bit LSB executable, ARM, version 1 (SYSV),
dynamically linked (uses shared libs), for GNU/Linux 2.0.0, not stripped

/usr/local/src/fpc/fixes_3_0$ ./packages/fpmake --help
-bash: ./packages/fpmake: No such file or directory


What does readelf -aW ./packages/fpmake print after Requesting
program interpreter: ? And does that file exist?


ELF Header:
  Magic:   7f 45 4c 46 01 01 01 00 00 00 00 00 00 00 00 00
  Class: ELF32
  Data:  2's complement, little endian
  Version:   1 (current)
  OS/ABI:UNIX - System V
  ABI Version:   0
  Type:  EXEC (Executable file)
  Machine:   ARM
  Version:   0x1
  Entry point address:   0x843c
  Start of program headers:  52 (bytes into file)
  Start of section headers:  3549332 (bytes into file)
  Flags: 0x502, has entry point, 
Version5 EABI

  Size of this header:   52 (bytes)
  Size of program headers:   32 (bytes)
  Number of program headers: 7
  Size of section headers:   40 (bytes)
  Number of section headers: 30
  Section header string table index: 27
..
  [Requesting program interpreter: /lib/ld-linux-armhf.so.3]
..

That file's missing, something's obviously badly wrong with the Rpi 
filesystem etc.: I strongly suspect that somebody did an incautious 
update/upgrade/dist-upgrade.


Leave it with me, I'll be back.

p.s. Currently looking at an x86 Android tablet, appears to have a 
significant amount of ARM code run by emulation.


--
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] FPC 3.0.0-rc1 release

2015-08-29 Thread John Lee
Just downloaded the non debug version onto my rpi 2. Extracted - 6 files in
/bin, including fpc but it is 2.6.4 not 3.0. Any ideas? Is there a rc1 .gz
anywhere?

John

On 29 August 2015 at 10:55, Martin Schreiber mse00...@gmail.com wrote:

 On Friday 28 August 2015 10:30:24 Mark Morgan Lloyd wrote:
  Martin Schreiber wrote:
   On Wednesday 26 August 2015 20:14:09 Mark Morgan Lloyd wrote:
   Is there a native ARM version compatible with the Raspberry Pi?
  
   Here:
   http://sourceforge.net/projects/mseide-msegui/files/fpcarm/
  
   Please run eabihf/lib/fpc/3.0.1/samplecfg in order to create a default
   configuration file.
 
  /usr/local/lib/fpc/3.0.1/samplecfg: fpcmkcfg: not found

 I don't know where to get fpcmkcfg, in my RPI installation it probably has
 been installed by apt-get install fpc which installs FPC 2.6.0.

 [...]

  Has problems rebuilding 3.0.0 rc1 from source:
 
  /bin/mv -f ppcarm ppc2
  make 'FPC=/usr/local/src/fpc/fpcbuild-3.0.0-rc1/fpcsrc/compiler/ppc2'
  'OLDFPC=/usr/local/src/fpc/fpcbuild-3.0.0-rc1/fpcsrc/compiler/ppc1' next
  CYCLELEVEL=3
  An unhandled exception occurred at $00087480:
  EAccessViolation: Access violation
 $00087480  TMESSAGE__GET,  line 445 of cmsgs.pas
 $00057754  MESSAGE,  line 767 of verbose.pas
 $0004F574  COMPILE,  line 370 of compiler.pas
 $8384  main,  line 246 of pp.pas
 
  That happens several times until the make bombs. Original command line
 was
 
  make OVERRIDEVERSIONCHECK=1 NO_GDB=1 OPT='-V3.0.1 -dFPC_ARMHF -O- -gl
  -Xs-' all
 
 make PP=/home/pi/fpc/3_0/eabihf/lib/fpc/3.0.1/ppcarm OVERRIDEVERSIONCHECK=1
 all
 
 in a fixes_3_0 checkout works for me.
 A FPC version with debug info is here:
 https://sourceforge.net/projects/mseide-msegui/files/fpcarm/

 Martin



 ___
 fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
 http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] FPC 3.0.0-rc1 release

2015-08-29 Thread Mark Morgan Lloyd

Jonas Maebe wrote:

On 29/08/15 11:55, Martin Schreiber wrote:


make PP=/home/pi/fpc/3_0/eabihf/lib/fpc/3.0.1/ppcarm OVERRIDEVERSIONCHECK=1 
all


in a fixes_3_0 checkout works for me.


Note that Mark is building 3.0.0rc1, not fixes_3_0. Building an older
revision with a compiler built from a newer revision is never supported
(although in this very specific case, it might work since there are
barely any differences between 3.0.0rc1 and the current fixes_3_0 branch).


I'm under a bit of pressure to demonstrate that a Raspberry Pi is a 
real computer, not just a target for a cross compiler (I've done 
plenty of that sort of thing in the past).


Martin, what would be really useful is knowing /exactly/ what sources 
you used to build your binary at 
http://sourceforge.net/projects/mseide-msegui/files/fpcarm/



In any case: you should have to pass OPT=-dFPC_ARMHF to get an armhf
compiler (even if you already start with an armhf compiler). I haven't
updated the compiler readme yet, but I've at least mentioned this in the
mean time at
http://wiki.freepascal.org/FPC_New_Features_3.0#Support_for_the_armhf_EABI


Thanks, noted and aware.

--
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] FPC 3.0.0-rc1 release

2015-08-29 Thread Jonas Maebe
On 29/08/15 11:55, Martin Schreiber wrote:
 
 make PP=/home/pi/fpc/3_0/eabihf/lib/fpc/3.0.1/ppcarm OVERRIDEVERSIONCHECK=1 
 all
 
 in a fixes_3_0 checkout works for me.

Note that Mark is building 3.0.0rc1, not fixes_3_0. Building an older
revision with a compiler built from a newer revision is never supported
(although in this very specific case, it might work since there are
barely any differences between 3.0.0rc1 and the current fixes_3_0 branch).

In any case: you should have to pass OPT=-dFPC_ARMHF to get an armhf
compiler (even if you already start with an armhf compiler). I haven't
updated the compiler readme yet, but I've at least mentioned this in the
mean time at
http://wiki.freepascal.org/FPC_New_Features_3.0#Support_for_the_armhf_EABI


Jonas
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] FPC 3.0.0-rc1 release

2015-08-29 Thread Martin Schreiber
On Friday 28 August 2015 10:30:24 Mark Morgan Lloyd wrote:
 Martin Schreiber wrote:
  On Wednesday 26 August 2015 20:14:09 Mark Morgan Lloyd wrote:
  Is there a native ARM version compatible with the Raspberry Pi?
 
  Here:
  http://sourceforge.net/projects/mseide-msegui/files/fpcarm/
 
  Please run eabihf/lib/fpc/3.0.1/samplecfg in order to create a default
  configuration file.

 /usr/local/lib/fpc/3.0.1/samplecfg: fpcmkcfg: not found

I don't know where to get fpcmkcfg, in my RPI installation it probably has 
been installed by apt-get install fpc which installs FPC 2.6.0.

[...]

 Has problems rebuilding 3.0.0 rc1 from source:

 /bin/mv -f ppcarm ppc2
 make 'FPC=/usr/local/src/fpc/fpcbuild-3.0.0-rc1/fpcsrc/compiler/ppc2'
 'OLDFPC=/usr/local/src/fpc/fpcbuild-3.0.0-rc1/fpcsrc/compiler/ppc1' next
 CYCLELEVEL=3
 An unhandled exception occurred at $00087480:
 EAccessViolation: Access violation
$00087480  TMESSAGE__GET,  line 445 of cmsgs.pas
$00057754  MESSAGE,  line 767 of verbose.pas
$0004F574  COMPILE,  line 370 of compiler.pas
$8384  main,  line 246 of pp.pas

 That happens several times until the make bombs. Original command line was

 make OVERRIDEVERSIONCHECK=1 NO_GDB=1 OPT='-V3.0.1 -dFPC_ARMHF -O- -gl
 -Xs-' all

make PP=/home/pi/fpc/3_0/eabihf/lib/fpc/3.0.1/ppcarm OVERRIDEVERSIONCHECK=1 
all

in a fixes_3_0 checkout works for me.
A FPC version with debug info is here:
https://sourceforge.net/projects/mseide-msegui/files/fpcarm/

Martin



___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] FPC 3.0.0-rc1 release

2015-08-29 Thread Jonas Maebe
On 29/08/15 13:40, Florian Klämpfl wrote:
 Am 29. August 2015 12:00:26 nachm. schrieb Jonas Maebe
 jonas.ma...@elis.ugent.be:

 In any case: you should have to pass OPT=-dFPC_ARMHF to get an armhf
 compiler (even if you already start with an armhf compiler).
 
 This should not be necessary?

I also used to think so, but I can't find where FPC_ARMHF it would be
automatically defined for an armhf compiler. It only defines CPUARMHF as
far as I can see.


Jonas

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] FPC 3.0.0-rc1 release

2015-08-29 Thread Florian Klämpfl
Am 29. August 2015 1:58:06 nachm. schrieb Jonas Maebe
jonas.ma...@elis.ugent.be:

 On 29/08/15 13:40, Florian Klämpfl wrote:
 Am 29. August 2015 12:00:26 nachm. schrieb Jonas Maebe
 jonas.ma...@elis.ugent.be:

 In any case: you should have to pass OPT=-dFPC_ARMHF to get an armhf
 compiler (even if you already start with an armhf compiler).

 This should not be necessary?

 I also used to think so, but I can't find where FPC_ARMHF

compiler/fpcdefs.inc:155


___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] FPC 3.0.0-rc1 release

2015-08-29 Thread Florian Klämpfl
Am 29. August 2015 12:00:26 nachm. schrieb Jonas Maebe
jonas.ma...@elis.ugent.be:

 In any case: you should have to pass OPT=-dFPC_ARMHF to get an armhf
 compiler (even if you already start with an armhf compiler).

This should not be necessary?


___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] FPC 3.0.0-rc1 release

2015-08-29 Thread Martin Schreiber
On Saturday 29 August 2015 13:32:57 John Lee wrote:
 Just downloaded the non debug version onto my rpi 2. Extracted - 6 files in
 /bin, including fpc but it is 2.6.4 not 3.0. Any ideas?

Try to start

your extracting dir of 
fpc_eabihf_3_0_1.tar.gz/eabihf/lib/fpc/3.0.1/ppcrossarm

directly. /bin/fpc probably picks the wrong compiler.

Martin
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] FPC 3.0.0-rc1 release

2015-08-29 Thread Jonas Maebe
On 29/08/15 14:49, Florian Klämpfl wrote:
 Am 29. August 2015 1:58:06 nachm. schrieb Jonas Maebe
 jonas.ma...@elis.ugent.be:
 
 On 29/08/15 13:40, Florian Klämpfl wrote:
 Am 29. August 2015 12:00:26 nachm. schrieb Jonas Maebe
 jonas.ma...@elis.ugent.be:

 In any case: you should have to pass OPT=-dFPC_ARMHF to get an armhf
 compiler (even if you already start with an armhf compiler).

 This should not be necessary?

 I also used to think so, but I can't find where FPC_ARMHF
 
 compiler/fpcdefs.inc:155

Damn grep ARMHF *.pas :)


Jonas
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] FPC 3.0.0-rc1 release

2015-08-29 Thread John Lee
Dohhh, still getting 2.6.4.

Did you mean ppcarm?

Downloaded fpc_eabihf_3_0_1.tar.gz, extracted

If I cd to eabihf/lib/fpc/3.0.1  there is ppcarm of 14th Aug there but
running ppcarm still gives 2.6.4!

Or should I do exec ppcarm?

John

















On 29 August 2015 at 12:52, Martin Schreiber mse00...@gmail.com wrote:

 On Saturday 29 August 2015 13:32:57 John Lee wrote:
  Just downloaded the non debug version onto my rpi 2. Extracted - 6 files
 in
  /bin, including fpc but it is 2.6.4 not 3.0. Any ideas?

 Try to start
 
 your extracting dir of
 fpc_eabihf_3_0_1.tar.gz/eabihf/lib/fpc/3.0.1/ppcrossarm
 
 directly. /bin/fpc probably picks the wrong compiler.

 Martin
 ___
 fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
 http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] FPC 3.0.0-rc1 release

2015-08-29 Thread Mark Morgan Lloyd

Martin Schreiber wrote:

On Saturday 29 August 2015 15:38:35 Mark Morgan Lloyd wrote:

Martin, what would be really useful is knowing /exactly/ what sources
you used to build your binary at
http://sourceforge.net/projects/mseide-msegui/files/fpcarm/



svn info
Path: .
Working Copy Root Path: /home/mse/packs/standard/svn/fp/arm/fixes_3_0
URL: http://svn.freepascal.org/svn/fpc/branches/fixes_3_0
Relative URL: ^/branches/fixes_3_0
Repository Root: http://svn.freepascal.org/svn/fpc
Repository UUID: 3ad0048d-3df7-0310-abae-a5850022a9f2
Revision: 31324
Node Kind: directory
Schedule: normal
Last Changed Author: joost
Last Changed Rev: 31297
Last Changed Date: 2015-08-06 22:26:00 +0200 (Thu, 06 Aug 2015)



Starting off with your binary on the system, i.e. with no 2.6.x, I have 
to use a generic fpc.cfg but apart from that things appear to work.


Got sources from svn as above. Attempting to rebuild using a generic 
command line:


make OVERRIDEVERSIONCHECK=1 NO_GDB=1 OPT='-O- -gl -Xs-' all

when building fpmake objects about missing crti.o crtbegin.o crtend.o 
crtn.o. Add -Fl/usr/lib/gcc/arm-linux-gnueabi/4.6.3 
-Fl/usr/lib/arm-linux-gnueabi


Starting over, I get to

Free Pascal Compiler version 3.0.1 [2015/08/29] for arm
Copyright (c) 1993-2015 by Florian Klaempfl and others
Target OS: Linux for ARMHF
Compiling fpmake.pp
fpmake.pp(16,3) Note: Local variable T is assigned but never used
Assembling fpmake
Linking fpmake
/usr/bin/ld: warning: link.res contains output sections; did you forget -T?
14595 lines compiled, 58.7 sec
1 note(s) issued
./fpmake compile --localunitdir=.. --os=linux --cpu=arm -o -Ur -o -Xs -o 
-O2 -o -n -o -Fu/usr/local/src/fpc/fixes_3_0/rtl/units/arm-linux -o 
-V3.0.1 -o -O- -o -gl -o -Xs- -o -vt -o -darm -o -dRELEASE 
--compiler=/usr/local/src/fpc/fixes_3_0/compiler/ppcarm -bu -o -XX -o -CX

make[2]: ./fpmake: Command not found
make[2]: *** [smart] Error 127
make[2]: Leaving directory `/usr/local/src/fpc/fixes_3_0/packages'
make[1]: *** [packages_smart] Error 2
make[1]: Leaving directory `/usr/local/src/fpc/fixes_3_0'
make: *** [build-stamp.arm-linux] Error 2

/usr/local/src/fpc/fixes_3_0$ find . -name fpmake -ls
157069 4460 -rwxr-xr-x   1 markMLl  staff 4565218 Aug 29 15:46 
./packages/fpmake


/usr/local/src/fpc/fixes_3_0$ file ./packages/fpmake
./packages/fpmake: ELF 32-bit LSB executable, ARM, version 1 (SYSV), 
dynamically linked (uses shared libs), for GNU/Linux 2.0.0, not stripped


/usr/local/src/fpc/fixes_3_0$ ./packages/fpmake --help
-bash: ./packages/fpmake: No such file or directory

I get stuck at the same point irrespective of any -dFPC_ARMHF etc.

Now I'm quite sure it's me doing something silly...

--
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] FPC 3.0.0-rc1 release

2015-08-29 Thread Florian Klaempfl
Am 27.08.2015 um 02:08 schrieb Ched:
 Hello,
 
 I strongly discourage the use of {$optimization deadstore} which induced
 strong numerical errors on our solar system calculations (i386 linux).
 The other new ones
{$optimization deadvalues}
{$optimization orderfields}
{$optimization fastmath}
{$optimization constprop}
 seem to be ok.
 
 Unfortunately, deadstore will be difficult to debug with the actual code
 (10 lines).


Since it shouldn't affect too much code, it would be worth a try to
compare the generated assembler with and without {$optimization
deadstore}. With a tool like WinMerge this can be normally done pretty easy.

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] FPC 3.0.0-rc1 release

2015-08-29 Thread Jonas Maebe
On 29/08/15 17:30, John Lee wrote:
 If I cd to eabihf/lib/fpc/3.0.1  there is ppcarm of 14th Aug there but
 running ppcarm still gives 2.6.4!

On Unix-like platforms, you have to use ./ppcarm to execute the ppcarm
binary in the current directory instead of the one in the PATH. The
reason is that many Unix systems are (or can be) multi-user and that
e.g. the /tmp directory is writeable by everyone, so if someone would
put a program called ls in /tmp that was malevolent, a lot of users
would be caught by that.


Jonas
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] FPC 3.0.0-rc1 release

2015-08-29 Thread Florian Klaempfl
Am 29.08.2015 um 14:54 schrieb Jonas Maebe:
 On 29/08/15 14:49, Florian Klämpfl wrote:
 Am 29. August 2015 1:58:06 nachm. schrieb Jonas Maebe
 jonas.ma...@elis.ugent.be:

 On 29/08/15 13:40, Florian Klämpfl wrote:
 Am 29. August 2015 12:00:26 nachm. schrieb Jonas Maebe
 jonas.ma...@elis.ugent.be:

 In any case: you should have to pass OPT=-dFPC_ARMHF to get an armhf
 compiler (even if you already start with an armhf compiler).

 This should not be necessary?

 I also used to think so, but I can't find where FPC_ARMHF

 compiler/fpcdefs.inc:155
 
 Damn grep ARMHF *.pas :)

Nevertheless, it does not explain why the OPT=-dFPC_ARMHF is needed.

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] FPC 3.0.0-rc1 release

2015-08-29 Thread Martin Schreiber
On Saturday 29 August 2015 20:05:35 John Lee wrote:

 /usr/bin/ld: warning: link.res contains output sections; did you forget -T?

This is normal.

Martin
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] FPC 3.0.0-rc1 release

2015-08-29 Thread Jonas Maebe
On 29/08/15 20:50, John Lee wrote:
 What is fix please? I noticed Jonas committed a link patch to svn today.
 Does that fix it?

No.


Jonas



___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] FPC 3.0.0-rc1 release

2015-08-29 Thread Jonas Maebe
On 29/08/15 19:48, Florian Klaempfl wrote:
 Nevertheless, it does not explain why the OPT=-dFPC_ARMHF is needed.

It is not necessary, I had simply (wrongly) made that deduction from
looking all over the compiler source code (except for in fpcdefs.inc)
and checking where it would automatically set it when recompiling the
compiler.

I've now also verified on an actual ARM board that it is not necessary.
Sorry for the wrong information (although it won't hurt to specify
-dFPC_ARMHF again, of course).


Jonas

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] FPC 3.0.0-rc1 release

2015-08-27 Thread Mark Morgan Lloyd

Martin Schreiber wrote:

On Wednesday 26 August 2015 20:14:09 Mark Morgan Lloyd wrote:

Is there a native ARM version compatible with the Raspberry Pi?


Here:
http://sourceforge.net/projects/mseide-msegui/files/fpcarm/

Please run eabihf/lib/fpc/3.0.1/samplecfg in order to create a default 
configuration file.


Cross development environment Linux X86 - Raspberry Pi is here:
http://sourceforge.net/projects/mseide-msegui/files/fpcrossarm/crossfpc-i386_linux_eabihf_3_0_1.tar.gz/download

How cross development looks in MSEide:
http://mseide-msegui.sourceforge.net/pics/crossarm.png


Thanks Martin, I'll look at that.

--
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] FPC 3.0.0-rc1 release

2015-08-26 Thread Mark Morgan Lloyd

Joost van der Sluis wrote:

Hello

We have placed the first release candidate of the Free Pascal Compiler
version 3.0.0 on our ftp servers.

You can help improve the upcoming 3.0.0 release by downloading and
testing this release. If you want you can report what you have done here:
http://wiki.freepascal.org/Testers_3.0.0

New features are listed at
http://wiki.freepascal.org/FPC_New_Features_3.0

Changes that may break backwards compatibility are documented at
http://wiki.freepascal.org/User_Changes_3.0.0

Issues with this release candidate that we already know of are listed in
the wiki: http://wiki.freepascal.org/Issues_3.0.0

A preview of the 3.0.0 docs is available at
http://www.freepascal.org/docs-html/3.0.0/

Downloads are available at:
* ftp://freepascal.stack.nl/pub/fpc/beta/3.0.0-rc1
* ftp://gd.tuwien.ac.at/languages/pascal/fpc/beta/3.0.0-rc1
* ftp://ftp.freepascal.org/pub/fpc/beta/3.0.0-rc1


Is there a native ARM version compatible with the Raspberry Pi?

--
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] FPC 3.0.0-rc1 release

2015-08-26 Thread Ched

Hello,

I strongly discourage the use of {$optimization deadstore} which induced strong numerical errors on our 
solar system calculations (i386 linux). The other new ones

   {$optimization deadvalues}
   {$optimization orderfields}
   {$optimization fastmath}
   {$optimization constprop}
seem to be ok.

Unfortunately, deadstore will be difficult to debug with the actual code 
(10 lines).

Kindest regards, Raoul





Le 26. 08. 15 18:14, Mark Morgan Lloyd a écrit :

Joost van der Sluis wrote:

Hello

We have placed the first release candidate of the Free Pascal Compiler
version 3.0.0 on our ftp servers.

You can help improve the upcoming 3.0.0 release by downloading and
testing this release. If you want you can report what you have done here:
http://wiki.freepascal.org/Testers_3.0.0

New features are listed at
http://wiki.freepascal.org/FPC_New_Features_3.0

Changes that may break backwards compatibility are documented at
http://wiki.freepascal.org/User_Changes_3.0.0

Issues with this release candidate that we already know of are listed in
the wiki: http://wiki.freepascal.org/Issues_3.0.0

A preview of the 3.0.0 docs is available at
http://www.freepascal.org/docs-html/3.0.0/

Downloads are available at:
* ftp://freepascal.stack.nl/pub/fpc/beta/3.0.0-rc1
* ftp://gd.tuwien.ac.at/languages/pascal/fpc/beta/3.0.0-rc1
* ftp://ftp.freepascal.org/pub/fpc/beta/3.0.0-rc1


Is there a native ARM version compatible with the Raspberry Pi?



___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] FPC 3.0.0-rc1 release

2015-08-26 Thread Martin Schreiber
On Wednesday 26 August 2015 20:14:09 Mark Morgan Lloyd wrote:

 Is there a native ARM version compatible with the Raspberry Pi?

Here:
http://sourceforge.net/projects/mseide-msegui/files/fpcarm/

Please run eabihf/lib/fpc/3.0.1/samplecfg in order to create a default 
configuration file.

Cross development environment Linux X86 - Raspberry Pi is here:
http://sourceforge.net/projects/mseide-msegui/files/fpcrossarm/crossfpc-i386_linux_eabihf_3_0_1.tar.gz/download

How cross development looks in MSEide:
http://mseide-msegui.sourceforge.net/pics/crossarm.png

Martin
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal