[fpc-devel] Could someone verify this WinCE issue (and maybe check with other FPC versions also)

2011-10-05 Thread Tommi Prami

( NOTE :  Lazarus  FPC newbie alert ;) )


Test app included in the Bug report (Just use latest trunk version of 
Lazarus)


http://bugs.freepascal.org/view.php?id=20362

As it is suggested that this is an FPC issue, and I really should get 
this project (not the Test app, but project using the SqLite package) 
published to the field tests...


Any help would be appreciated...

Thanks in advance...

.-Tee-.
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


RE : [fpc-devel] Could someone verify this WinCE issue (and maybe check with other FPC versions also)

2011-10-05 Thread Ludo Brands
 
 ( NOTE :  Lazarus  FPC newbie alert ;) )
 
 
 Test app included in the Bug report (Just use latest trunk version of 
 Lazarus)
 
 http://bugs.freepascal.org/view.php?id=20362
 
 As it is suggested that this is an FPC issue, and I really should get 
 this project (not the Test app, but project using the SqLite package) 
 published to the field tests...
 
 Any help would be appreciated...
 
 Thanks in advance...
 
 .-Tee-.
 ___

Have you read this?  
http://lists.freepascal.org/lists/fpc-devel/2010-October/022572.html

Compiling with dwarf seemed to be the cause of the problem and recent
lazarus now defaults to dwarf.


Ludo

___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: RE : [fpc-devel] Could someone verify this WinCE issue (and maybe check with other FPC versions also)

2011-10-05 Thread Tommi Prami

On 5.10.2011 10:51, Ludo Brands wrote:

( NOTE :  Lazarus  FPC newbie alert ;) )


Test app included in the Bug report (Just use latest trunk version of
Lazarus)

http://bugs.freepascal.org/view.php?id=20362

As it is suggested that this is an FPC issue, and I really should get
this project (not the Test app, but project using the SqLite package)
published to the field tests...

Any help would be appreciated...

Thanks in advance...

.-Tee-.
___

Have you read this?
http://lists.freepascal.org/lists/fpc-devel/2010-October/022572.html

Compiling with dwarf seemed to be the cause of the problem and recent
lazarus now defaults to dwarf.



OK, seems to be same error...

Just did not get how to get around it. Not using DWARF??

I tested the all the Options in the Chose type of debug info -Options 
in the Lazarus, and always got the same error.


I think I don't understand something here.

.-Tee-.
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


RE : RE : [fpc-devel] Could someone verify this WinCE issue (and maybecheck with other FPC versions also)

2011-10-05 Thread Ludo Brands
 OK, seems to be same error...
 
 Just did not get how to get around it. Not using DWARF??
 

Had a quick look at the fpc compiler code and secrel32 seems to be used only
when creating dwarf debug info. Several messages on gcc and other mailing
lists suggest also the link between secrel32 and dwarf symbols.

 I tested the all the Options in the Chose type of debug 
 info -Options 
 in the Lazarus, and always got the same error.
 
 I think I don't understand something here.
 
 .-Tee-.

Go to Tools/Configure Build Lazarus and make sure you don't have dwarf
enabled in there. AFAIK packages are compiled with these settings and not
with the project settings.

Also check your fpc.cfg for any dwarf settings. In the messages box do a
right click and do a copy all shown and hidden messages to the clipboard,
paste into any editor and check the path used for fpc.cfg

Ludo


___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: RE : RE : [fpc-devel] Could someone verify this WinCE issue (and maybecheck with other FPC versions also)

2011-10-05 Thread Tommi Prami

On 5.10.2011 11:31, Ludo Brands wrote:

OK, seems to be same error...

Just did not get how to get around it. Not using DWARF??


Had a quick look at the fpc compiler code and secrel32 seems to be used only
when creating dwarf debug info. Several messages on gcc and other mailing
lists suggest also the link between secrel32 and dwarf symbols.


I tested the all the Options in the Chose type of debug
info -Options
in the Lazarus, and always got the same error.

I think I don't understand something here.

.-Tee-.

Go to Tools/Configure Build Lazarus and make sure you don't have dwarf
enabled in there. AFAIK packages are compiled with these settings and not
with the project settings.


I really don't know how to do that. I think I should modify the Command 
lien options which are currently the : -O2 -g- -Xs


By changin it into the

-O2 -gl -Xs (just a guess by the  Message linker earlier) the IDE 
won't build :(


PPU Loading C:\lazarus\components\codetools\units\i386-win32\laz2_xmlcfg.ppu
PPU Source: laz2_xmlcfg.pas not found
Recompiling Laz2_XMLCfg, checksum changed for FileProcs
laz2_xmlcfg.pas(64,58) Fatal: Can't find unit Laz2_XMLCfg used by LazUtils

I don't have idea what causes this one...



Also check your fpc.cfg for any dwarf settings. In the messages box do a
right click and do a copy all shown and hidden messages to the clipboard,
paste into any editor and check the path used for fpc.cfg



To me the file looks like very basic and default. But I am not sure what 
should be in thee to get rid of this dwarf, thingy


-TP-
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] OpenBSD compiler

2011-10-05 Thread Jonas Maebe


On 05 Oct 2011, at 01:31, Leonardo M. Ramé wrote:

Does anyone knows where can I find a bootstraping compiler for this  
platform?.


There is none that is usable for current trunk, you have to cross- 
compile.



Jonas___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


RE : RE : RE : [fpc-devel] Could someone verify this WinCE issue (andmaybecheck with other FPC versions also)

2011-10-05 Thread Ludo Brands
 I really don't know how to do that. I think I should modify 
 the Command 
 lien options which are currently the : -O2 -g- -Xs
 

These settings are fine. -g- means no debugging info.

 By changin it into the
 
 -O2 -gl -Xs (just a guess by the  Message linker earlier) the IDE 
 won't build :(
 
 PPU Loading 
 C:\lazarus\components\codetools\units\i386-win32\laz2_xmlcfg.ppu
 PPU Source: laz2_xmlcfg.pas not found
 Recompiling Laz2_XMLCfg, checksum changed for FileProcs
 laz2_xmlcfg.pas(64,58) Fatal: Can't find unit Laz2_XMLCfg 
 used by LazUtils
 
 I don't have idea what causes this one...
 

With above setings (-O2 -g- -Xs), check clean + build IDE, check Clean
all and do a build.  

 
  Also check your fpc.cfg for any dwarf settings. In the 
 messages box do 
  a right click and do a copy all shown and hidden messages to the 
  clipboard, paste into any editor and check the path used 
 for fpc.cfg
 
 
 To me the file looks like very basic and default. But I am 
 not sure what 
 should be in thee to get rid of this dwarf, thingy
 
 -TP-

Your main problem is that you are using probably old cross binutils for
arm-wince. The assembler found here
ftp://ftp.freepascal.org/pub/fpc/contrib/cross/arm-wince-binutils.zip is
version 2.15.94 while .secrel32 was introduced in 2.16.
You could check here for a newer version (cygwin required!):
http://sourceforge.net/projects/cegcc/

Ludo

___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


RE: [fpc-devel] OpenBSD compiler

2011-10-05 Thread Pierre Free Pascal
  I tried to get i386-openbsd port up to date,

using mingw cross Binutils that I compiled myself

using openbsd sources.

Should I add those to ftp?

 

But I am stuck because I have a 64-bit OpenBSD virtual machine

(and no room to add a i386 version on my machine)

but all cross-compiled executables.

 

Is it possible to install an openbsd equivalent of lib32?

 

  How do you compile i386 openbsd executables

using GCC on a amd64 machine?

 

Pierre

 

De : fpc-devel-boun...@lists.freepascal.org
[mailto:fpc-devel-boun...@lists.freepascal.org] De la part de Leonardo M.
Ramé
Envoyé : mercredi 5 octobre 2011 01:31
À : FPC developers' list
Objet : [fpc-devel] OpenBSD compiler

 

Hi, I noted that Pierre is updating the OpenBSD port. 

 

Does anyone knows where can I find a bootstraping compiler for this
platform?.

 

Leonardo M. Ramé
http://leonardorame.blogspot.com

___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: RE : RE : RE : [fpc-devel] Could someone verify this WinCE issue (andmaybecheck with other FPC versions also)

2011-10-05 Thread Tommi Prami

On 5.10.2011 12:44, Ludo Brands wrote:

I really don't know how to do that. I think I should modify
the Command
lien options which are currently the : -O2 -g- -Xs


These settings are fine. -g- means no debugging info.


OK, I'll also have the Clean option on...


___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] OpenBSD compiler

2011-10-05 Thread Leonardo M . Ramé

From: Pierre Free Pascal pie...@freepascal.org
To: 'Leonardo M. Ramé' martinr...@yahoo.com; 'FPC developers' list' 
fpc-devel@lists.freepascal.org
Sent: Wednesday, October 5, 2011 7:32 AM
Subject: RE: [fpc-devel] OpenBSD compiler


  I tried to get i386-openbsd port up to date,
using mingw cross Binutils that I compiled myself
using openbsd sources.
Should I add those to ftp?
 
But I am stuck because I have a 64-bit OpenBSD virtual machine
(and no room to add a i386 version on my machine)
but all cross-compiled executables.
 
Is it possible to install an openbsd equivalent of lib32?
 
  How do you compile i386 openbsd executables
using GCC on a amd64 machine?
 
Pierre
 
De :fpc-devel-boun...@lists.freepascal.org 
[mailto:fpc-devel-boun...@lists.freepascal.org] De la part de Leonardo M. Ramé
Envoyé : mercredi 5 octobre 2011 01:31
À : FPC developers' list
Objet : [fpc-devel] OpenBSD compiler
 
Hi, I noted that Pierre is updating the OpenBSD port. 
 
Does anyone knows where can I find a bootstraping compiler for this platform?.
 
Leonardo M. Ramé
http://leonardorame.blogspot.com



Pierre, I have one VM of OpenBSD 4.4 i386 running all day long. If you want I 
can let you access using ssh to it, otherwhise you could send me the 
executables and I can test them in that machine.

Leonardo M. Ramé
http://leonardorame.blogspot.com

___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


RE : RE : RE : RE : [fpc-devel] Could someone verify this WinCE issue(andmaybecheck with other FPC versions also)

2011-10-05 Thread Ludo Brands

 On 5.10.2011 12:44, Ludo Brands wrote:
  I really don't know how to do that. I think I should modify the 
  Command lien options which are currently the : -O2 -g- -Xs
 
  These settings are fine. -g- means no debugging info.
 
 OK, I'll also have the Clean option on...
 

In Lazarus Package/Open Package File select sqlite3laz.lpk in the
components\sqlite directory, click on options and in CompilerOptions/Linking
select stabs. Close and compile. This should compile fine. When compiling
your project the package won't be rebuild. 


Ludo

___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: RE : RE : RE : [fpc-devel] Could someone verify this WinCE issue (andmaybecheck with other FPC versions also)

2011-10-05 Thread Tommi Prami

Your main problem is that you are using probably old cross binutils for
arm-wince. The assembler found here
ftp://ftp.freepascal.org/pub/fpc/contrib/cross/arm-wince-binutils.zip is
version 2.15.94 while .secrel32 was introduced in 2.16.
You could check here for a newer version (cygwin required!):
http://sourceforge.net/projects/cegcc/

Ludo

Is there any info how to use/build/install that I think that I am not 
familiar with.


This clearly could be the problem. I just would need more information on 
that...


Wait a hour or to so I try to burn my fingers with this :)

I maybe managed to do that Update, atleast the sqlite-package was 
building without an error.


Now it failed like this :

SqLiteBuildTest.lpr(22) Warning: Object lazaruspackageintf.o not found, 
Linking may fail !
SqLiteBuildTest.lpr(22) Error: Failed reading coff file, illegal 
reloctype $000F while reading 
C:\lazarus\components\sqlite\lib\arm-wince\wince\sqlite3laz.o
SqLiteBuildTest.lpr(22) Error: Failed reading coff file, illegal 
reloctype $000F while reading 
C:\lazarus\components\sqlite\lib\arm-wince\wince\registersqlite3.o
SqLiteBuildTest.lpr(22) Warning: Object lazaruspackageintf.o not found, 
Linking may fail !

SqLiteBuildTest.lpr(22) Error: Can't open object file: lazaruspackageintf.o
SqLiteBuildTest.lpr(22) Error: Failed reading coff file, illegal 
reloctype $000F while reading 
C:\lazarus\components\sqlite\lib\arm-wince\wince\sqlitecomponenteditor.o

SqLiteBuildTest.lpr(22) Error: Undefined symbol: INIT$_LAZARUSPACKAGEINTF
SqLiteBuildTest.lpr(22) Error: Undefined symbol: 
FINALIZE$_LAZARUSPACKAGEINTF
SqLiteBuildTest.lpr(22) Error: Undefined symbol: 
THREADVARLIST_LAZARUSPACKAGEINTF
SqLiteBuildTest.lpr(22) Error: Undefined symbol: 
LAZARUSPACKAGEINTF_REGISTERUNIT$ANSISTRING$TREGISTERPROC
SqLiteBuildTest.lpr(22) Error: Undefined symbol: 
LAZARUSPACKAGEINTF_REGISTERPACKAGE$ANSISTRING$TREGISTERPROC
SqLiteBuildTest.lpr(22) Fatal: There were 9 errors compiling module, 
stopping


What this means, and/or can this be fixed in some way?

-TP-



___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] OpenBSD compiler

2011-10-05 Thread Marco van de Voort
In our previous episode, Pierre Free Pascal said:
 I tried to get i386-openbsd port up to date,

I had a openbsd 4.8 VM lying around, so I tried my usual cross bootstrap
routine (I'm lazy, you don't need crossbinutils on BSD systems since they
can run the linux bootstrap compiler)

What I did (preparation):

0. checked out the repo on the openbsd VM
1. compiled a linux compiler on linux with -dCMEM, this so that the binary
has a decent ELF ident section
2. Copy it over to the openbsd VM. chmod +x
3. ran 
   sysctl kern.emul.linux=1
   as root to enable linux emulation
4. ran pkg_add fedora_base to install basic userland
5. ran pkg_add gmake to install GNU make
6. modified rtl/openbsd/makefile to also compile cmem
7. ran 
gmake PP=~/linux-bootstrap-with-cmem-ppc386 OS_TARGET=openbsd
BINUTILSPREFIX= OPT=-gl 
   in rtl/openbsd to build rtl

First I tried to build the compiler straight:

gmake all PP=~/linux-bootstrap-with-cmem-ppc386 OS_TARGET=openbsd
RTL=/fpc/fpc/rtl/units/i386-openbsd OPT=-gl BINUTILSPREFIX=

this yields a compiler that gives an exception in readdir (if I try to
compile) or options.readparameters with no parameters.

If I run with -i or -h, the usual output appears with a crash in
SYSTEM_REMOVE_FIXED_CHUNKS following it, which I assume is a heapmanager
function calling munmap?

I then tried to build with CMEM (same line as above but with -dCMEM added to
OPT) to work around potential memory allocation problems, but that didn't
link on a bunch of operating_system_* missing symbols (envp/argv/argc), so I
assume its startup code wasn't fixed.

___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel