Re: [fpc-pascal] ARM Linux crosscompiler: compiles but... executable gives segmentation fault

2014-01-14 Thread Michael Ring
imization which somehow has been enabled even though it's still broken - Reply message - Fra: "Reinier Olislagers" Dato: man., jan. 13, 2014 13:44 Emne: [fpc-pascal] ARM Linux crosscompiler: compiles but... executable gives segmentation fault Til: On 13/01/2014 12:34, Mic

Re: [fpc-pascal] ARM Linux crosscompiler: compiles but... executable gives segmentation fault

2014-01-14 Thread Jeppe Græsdal Johansen
- Fra: "Reinier Olislagers" Dato: man., jan. 13, 2014 13:44 Emne: [fpc-pascal] ARM Linux crosscompiler: compiles but... executable gives segmentation fault Til: On 13/01/2014 12:34, Michael Ring wrote: > I had a look at armv6m yesterday evening, parts of my code run fine in > gdb

Re: [fpc-pascal] ARM Linux crosscompiler: compiles but... executable gives segmentation fault

2014-01-14 Thread Reinier Olislagers
On 10/01/2014 13:27, Reinier Olislagers wrote: > Thanks to earlier help I got to build an ARM Linux cross compiler module > in fpcup which even compiles fpcup itself (both using trunk and stable > starting compiler): > opt="-fPIC -dFPC_ARMHF" > crossopt="-CpARMV6 -CaEABIHF -CfVFPV2" > > fpc -g -gl

Re: [fpc-pascal] ARM Linux crosscompiler: compiles but... executable gives segmentation fault

2014-01-14 Thread Michael Ring
/mls optimization which somehow has been enabled even though it's still broken - Reply message - Fra: "Reinier Olislagers" Dato: man., jan. 13, 2014 13:44 Emne: [fpc-pascal] ARM Linux crosscompiler: compiles but... executable gives segmentation fault Til: On 13/01/2014 12:34, Mich

Re: [fpc-pascal] ARM Linux crosscompiler: compiles but... executable gives segmentation fault

2014-01-13 Thread Michael Ring
x crosscompiler: compiles but... executable gives segmentation fault Til: On 13/01/2014 12:34, Michael Ring wrote: > I had a look at armv6m yesterday evening, parts of my code run fine in > gdb, the code crashes in the init of a procedure when trying to prepare > the access to contents of

Re: [fpc-pascal] ARM Linux crosscompiler: compiles but... executable gives segmentation fault

2014-01-13 Thread Jeppe Græsdal Johansen
Might be related to the mla/mls optimization which somehow has been enabled even though it's still broken - Reply message - Fra: "Reinier Olislagers" Dato: man., jan. 13, 2014 13:44 Emne: [fpc-pascal] ARM Linux crosscompiler: compiles but... executable gives segment

Re: [fpc-pascal] ARM Linux crosscompiler: compiles but... executable gives segmentation fault

2014-01-13 Thread Reinier Olislagers
On 13/01/2014 12:34, Michael Ring wrote: > I had a look at armv6m yesterday evening, parts of my code run fine in > gdb, the code crashes in the init of a procedure when trying to prepare > the access to contents of a set. > The address of the set seems to get calculated totally wrong ending up > i

Re: [fpc-pascal] ARM Linux crosscompiler: compiles but... executable gives segmentation fault

2014-01-13 Thread Michael Ring
I had a look at armv6m yesterday evening, parts of my code run fine in gdb, the code crashes in the init of a procedure when trying to prepare the access to contents of a set. The address of the set seems to get calculated totally wrong ending up in a memory access at the end of the chip's addre

Re: [fpc-pascal] ARM Linux crosscompiler: compiles but... executable gives segmentation fault

2014-01-11 Thread Reinier Olislagers
On 11/01/2014 14:03, Florian Klämpfl wrote: > Just type fpc -i to see the possible options. If one does not understand > those options, one does not need them :) I had a suspicion you were going to say that ;) > As said, arm targets are very different and every target has its optimal > parameters.

Re: [fpc-pascal] ARM Linux crosscompiler: compiles but... executable gives segmentation fault

2014-01-11 Thread Florian Klämpfl
Am 11.01.2014 13:38, schrieb Reinier Olislagers: > On 11/01/2014 13:32, Florian Klämpfl wrote: >> Am 11.01.2014 11:14, schrieb Reinier Olislagers: >>> On 11/01/2014 08:02, Florian Klämpfl wrote: Am 10.01.2014 13:27, schrieb Reinier Olislagers: >>> As I couldn't find any existing docs, I've sta

Re: [fpc-pascal] ARM Linux crosscompiler: compiles but... executable gives segmentation fault

2014-01-11 Thread Reinier Olislagers
On 11/01/2014 13:32, Florian Klämpfl wrote: > Am 11.01.2014 11:14, schrieb Reinier Olislagers: >> On 11/01/2014 08:02, Florian Klämpfl wrote: >>> Am 10.01.2014 13:27, schrieb Reinier Olislagers: >> As I couldn't find any existing docs, I've started this page: >> http://wiki.lazarus.freepascal.org/A

Re: [fpc-pascal] ARM Linux crosscompiler: compiles but... executable gives segmentation fault

2014-01-11 Thread Florian Klämpfl
Am 11.01.2014 11:14, schrieb Reinier Olislagers: > On 11/01/2014 08:02, Florian Klämpfl wrote: >> Am 10.01.2014 13:27, schrieb Reinier Olislagers: >>> crossopt="-CpARMV6 -CaEABIHF -CfVFPV2" >> >> The eabihf switch is not needed if the cross compiler is build with >> -dFPC_ARMHF. >> >> Though it sho

Re: [fpc-pascal] ARM Linux crosscompiler: compiles but... executable gives segmentation fault

2014-01-11 Thread Reinier Olislagers
On 11/01/2014 08:02, Florian Klämpfl wrote: > Am 10.01.2014 13:27, schrieb Reinier Olislagers: >> crossopt="-CpARMV6 -CaEABIHF -CfVFPV2" > > The eabihf switch is not needed if the cross compiler is build with > -dFPC_ARMHF. > > Though it shouldn't change anything regarding the crash. Thanks. As

Re: [fpc-pascal] ARM Linux crosscompiler: compiles but... executable gives segmentation fault

2014-01-10 Thread Florian Klämpfl
Am 10.01.2014 13:27, schrieb Reinier Olislagers: > crossopt="-CpARMV6 -CaEABIHF -CfVFPV2" The eabihf switch is not needed if the cross compiler is build with -dFPC_ARMHF. Though it shouldn't change anything regarding the crash. ___ fpc-pascal maillist

Re: [fpc-pascal] ARM Linux crosscompiler: compiles but... executable gives segmentation fault

2014-01-10 Thread Reinier Olislagers
On 10/01/2014 14:29, Pierre Free Pascal wrote: >> Am 10.01.14 13:27, schrieb Reinier Olislagers: >>> a segmentation fault. Running under gdb gives >>> (gdb) run >>> Starting program: /root/simple >>> >>> Program received signal SIGSEGV, Segmentation fault. >>> 0x0002b6e4 in >>> SYSTEM_$$_ARRAYSTRIN

Re: [fpc-pascal] ARM Linux crosscompiler: compiles but... executable gives segmentation fault

2014-01-10 Thread Michael Ring
: fpc-pascal-boun...@lists.freepascal.org [mailto:fpc-pascal- boun...@lists.freepascal.org] De la part de Michael Ring Envoyé : vendredi 10 janvier 2014 13:40 À : FPC-Pascal users discussions Objet : Re: [fpc-pascal] ARM Linux crosscompiler: compiles but... executable gives segmentation fault I think

Re: [fpc-pascal] ARM Linux crosscompiler: compiles but... executable gives segmentation fault

2014-01-10 Thread Pierre Free Pascal
> -Message d'origine- > De : fpc-pascal-boun...@lists.freepascal.org [mailto:fpc-pascal- > boun...@lists.freepascal.org] De la part de Michael Ring > Envoyé : vendredi 10 janvier 2014 13:40 > À : FPC-Pascal users discussions > Objet : Re: [fpc-pascal] ARM Linux

Re: [fpc-pascal] ARM Linux crosscompiler: compiles but... executable gives segmentation fault

2014-01-10 Thread Reinier Olislagers
On 10/01/2014 13:39, Michael Ring wrote: > I think this is an ARMV6 specific Problem, I also realized while > debugging on embedded target that it does not work anymore, same code > compiled for ARMV7 debugs (and runs) just fine... > > Until now I did not find the time to search for the revision t

Re: [fpc-pascal] ARM Linux crosscompiler: compiles but... executable gives segmentation fault

2014-01-10 Thread Michael Ring
I think this is an ARMV6 specific Problem, I also realized while debugging on embedded target that it does not work anymore, same code compiled for ARMV7 debugs (and runs) just fine... Until now I did not find the time to search for the revision that broke armv6m. Michael Am 10.01.14 13:27,

[fpc-pascal] ARM Linux crosscompiler: compiles but... executable gives segmentation fault

2014-01-10 Thread Reinier Olislagers
Hi all, For the Dutch among us: de dag die je wist dat zou komen... Thanks to earlier help I got to build an ARM Linux cross compiler module in fpcup which even compiles fpcup itself (both using trunk and stable starting compiler): opt="-fPIC -dFPC_ARMHF" crossopt="-CpARMV6 -CaEABIHF -CfVFPV2" f