Re: [fpc-pascal] Wikies

2007-02-23 Thread Felipe Monteiro de Carvalho

On 2/23/07, Vincent Snijders <[EMAIL PROTECTED]> wrote:

Felipe, as you have noticed, I have unblocked the main page. Please let
me know when you are finished with it.


I am finished. It can be improved, but I'm out of ideas =)

--
Felipe Monteiro de Carvalho
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Wikies

2007-02-23 Thread Vincent Snijders

Florian Klaempfl schreef:

Felipe Monteiro de Carvalho schrieb:

I couldn´t find it because I am used to ignoring the About section.
IMHO the links to fpc things aren´t as easy to find as they could be,
specially to new users.

My suggestion would be to add a small section for FPC of the same size
as the "The Lazarus Documentation Project" section on the main page

What do you guys think?



Fine with me.


Felipe, as you have noticed, I have unblocked the main page. Please let 
me know when you are finished with it.


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


Re: [fpc-pascal] Wikies

2007-02-23 Thread Florian Klaempfl

Felipe Monteiro de Carvalho schrieb:

I couldn´t find it because I am used to ignoring the About section.
IMHO the links to fpc things aren´t as easy to find as they could be,
specially to new users.

My suggestion would be to add a small section for FPC of the same size
as the "The Lazarus Documentation Project" section on the main page

What do you guys think?



Fine with me.
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] fpc assembler

2007-02-23 Thread Daniël Mantione


Op Sat, 24 Feb 2007, schreef Krishna:

> Hi all,
> 
> Is it possible (ok, without too much work) to make a standalone
> version of the assembler buried inside fpc?

It is possible and doable, however, I'm not sure what your definition of 
"not much work" is.

> Would be interesting as it
> would be able to handle both AT&T and Intel syntax.

The assembler reader use a "asmgetchar" procedure to get source code from 
the scanner. This probably where you would want to hook them.

> I tried feeding some (straight) asm files to the compiler (silly me!)
> but it bombed. Does fpc accept asm files?

Definately a no.

Daniël___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

RE: [fpc-pascal] fpc have problem with dynarray in ARM

2007-02-23 Thread Jose Pascual
Dynamic arrays is working okey
It was a problem with libraries I'm linking,

sorry for error



> -Mensaje original-
> De: [EMAIL PROTECTED] [mailto:fpc-pascal-
> [EMAIL PROTECTED] En nombre de Micha Nelissen
> Enviado el: viernes, 23 de febrero de 2007 19:39
> Para: FPC-Pascal users discussions
> Asunto: Re: [fpc-pascal] fpc have problem with dynarray in ARM
> 
> Jose Pascual wrote:
> > Could it be resolved in 2.1.1?
> >
> > I'm compiling ppcrossarm 2.1.1 in order to be it's corrected in this
> > version,
> 
> Open a (descriptive) bug report (in case there is none about this issue
> yet) and attach a test case.
> 
> Micha
> ___
> fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal
> 
> __ Información de NOD32, revisión 2078 (20070223) __
> 
> Este mensaje ha sido analizado con  NOD32 antivirus system
> http://www.nod32.com


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


[fpc-pascal] fpc assembler

2007-02-23 Thread Krishna

Hi all,

Is it possible (ok, without too much work) to make a standalone
version of the assembler buried inside fpc? Would be interesting as it
would be able to handle both AT&T and Intel syntax.

I tried feeding some (straight) asm files to the compiler (silly me!)
but it bombed. Does fpc accept asm files?

Cheers,
Krishna
--
We will never run out of things to program as long as there is a
single program around.
- Alan Perlis
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Wikies

2007-02-23 Thread Felipe Monteiro de Carvalho

I couldn´t find it because I am used to ignoring the About section.
IMHO the links to fpc things aren´t as easy to find as they could be,
specially to new users.

My suggestion would be to add a small section for FPC of the same size
as the "The Lazarus Documentation Project" section on the main page

What do you guys think?

--
Felipe Monteiro de Carvalho
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] fpc have problem with dynarray in ARM

2007-02-23 Thread Micha Nelissen
Jose Pascual wrote:
> Could it be resolved in 2.1.1?
> 
> I'm compiling ppcrossarm 2.1.1 in order to be it's corrected in this
> version,

Open a (descriptive) bug report (in case there is none about this issue
yet) and attach a test case.

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


Re: [fpc-pascal] Flushing serial inqueue on Linux

2007-02-23 Thread Bernd Mueller
I can read incoming characters, so the connection is ok and lHandle is 
valid. I tried TCIOFLUSH as another QueSelector and tried also ioctl 
instead of Fpioctl.


termio.tcflush but that does 


fpioctl(fd,TCIOflush,pointer(qsel));


TCFlush is working now. Thank you.

Regards, Bernd.
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


RE: [fpc-pascal] FPC for Scratchbox-ARM (compiling with errors)

2007-02-23 Thread Daniël Mantione


Op Fri, 23 Feb 2007, schreef Jose Pascual:

> 
> > -Mensaje original-
> > De: [EMAIL PROTECTED] [mailto:fpc-pascal-
> > [EMAIL PROTECTED] En nombre de Daniël Mantione
> > Enviado el: viernes, 23 de febrero de 2007 9:51
> > Para: FPC-Pascal users discussions
> > Asunto: RE: [fpc-pascal] FPC for Scratchbox-ARM (compiling with errors)
> > 
> > 
> > 
> > Your C code crashes. That is not something we can help with, you have
> > to debug it.
> 
> but I have no C code in my test program only pascal. So It seems be
> something in startup c generate for fpc

Well, xsputn writes characters to a file. We never use any C code to write 
data to files, let alone write during startup, so there must be some C 
code that gets called somewhere.

Perhaps the C library wants to write some message due to incorrect 
startup?

Daniël Mantione___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

RE: [fpc-pascal] FPC for Scratchbox-ARM (compiling with errors)

2007-02-23 Thread Jose Pascual

> -Mensaje original-
> De: [EMAIL PROTECTED] [mailto:fpc-pascal-
> [EMAIL PROTECTED] En nombre de Daniël Mantione
> Enviado el: viernes, 23 de febrero de 2007 9:51
> Para: FPC-Pascal users discussions
> Asunto: RE: [fpc-pascal] FPC for Scratchbox-ARM (compiling with errors)
> 
> 
> 
> Op Fri, 23 Feb 2007, schreef Jose Pascual:
> 
> > > Program received signal SIGSEGV, Segmentation fault.
> > > 0x40094018 in _IO_file_xsputn () from /lib/libc.so.6
> > >
> > > any idea about this problem? (perhaps 2.1.1 snapshot?)
> >
> >
> > any idea or suggestion?
> 
> Your C code crashes. That is not something we can help with, you have
> to debug it.

but I have no C code in my test program only pascal. So It seems be
something in startup c generate for fpc

Jose Pascual


> Daniël
> 
> __ Información de NOD32, revisión 2076 (20070222) __
> 
> Este mensaje ha sido analizado con  NOD32 antivirus system
> http://www.nod32.com


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


RE: [fpc-pascal] FPC for Scratchbox-ARM (compiling with errors)

2007-02-23 Thread Daniël Mantione


Op Fri, 23 Feb 2007, schreef Jose Pascual:

> > Program received signal SIGSEGV, Segmentation fault.
> > 0x40094018 in _IO_file_xsputn () from /lib/libc.so.6
> > 
> > any idea about this problem? (perhaps 2.1.1 snapshot?)
> 
> 
> any idea or suggestion?

Your C code crashes. That is not something we can help with, you have to 
debug it.

Daniël___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

[fpc-pascal] fpc have problem with dynarray in ARM

2007-02-23 Thread Jose Pascual
Hi everyone,

I have testing ppcrossarm 2.0.4 (also 2.1.1 in other situations) for ARM It
work enough good 
I have introduce in the test program Dynamic Array. It's working well in
ppc386 but ppcarm

in a debug session with gdb I have found segmentation fault working sometime
accessing data contained
in dynamic array, this is a example of it,

.
.
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 16384 (LWP 646)]
0x00017eb4 in fpc_dynarray_high ()
(gdb)
.
.

Could it be resolved in 2.1.1?

I'm compiling ppcrossarm 2.1.1 in order to be it's corrected in this
version,

thank you

Jose Pascual


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


RE: [fpc-pascal] FPC for Scratchbox-ARM (compiling with errors)

2007-02-23 Thread Jose Pascual
> > > >
> > > > > Assembling test1
> > > > > Linking test1
> > > > > /usr/local/lib/fpc/2.1.1/units/arm-linux/rtl/cprt0.o: In
> function
> > > > > `_haltproc':
> > > > > : undefined reference to `_fini'
> > > > > /usr/local/lib/fpc/2.1.1/units/arm-linux/rtl/cprt0.o: In
> function
> > > > > `_haltproc':
> > > > > : undefined reference to `_init'
> > > > > test1.pas(28) Error: Error while linking
> > > > > test1.pas(28) Fatal: There were 1 errors compiling module,
> > > > > stopping
> > > > > Fatal: Compilation aborted
> > > > > .
> > > > > .
> > > > >
> > > > > what's wrong?
> > > >
> > > > Libc. Your libc is different than what the cprt0 startup code
> > expects.
> > > > Try a pure Pascal program.
> > >
> > > yes, pure pascal program build but how can I resolve with libc
> > problem
> > > (i need libc)?
> >
> > What libc does scratchbox use? If it is uclibc you might need to
> modify
> > cprt0
> 
> I'm using glibc (v2.3.2), I have resolved problem I have a mistake in
> configuration for /etc/fpc.cfg
> 
> right now, I'm build more complex program with units and libc with fpc
> but
> it does not run,
> 
> I have debugged it with gdb in real ARM target and Program does not
> arrive
> to my first line of pascal (after begin).
> 
> this is the gdb message:
> 
> Program received signal SIGSEGV, Segmentation fault.
> 0x40094018 in _IO_file_xsputn () from /lib/libc.so.6
> 
> any idea about this problem? (perhaps 2.1.1 snapshot?)


any idea or suggestion?


> 
> regards
> Jose Pascual
> 
> > Daniël
> >
> > __ Información de NOD32, revisión 2073 (20070221) __
> >
> > Este mensaje ha sido analizado con  NOD32 antivirus system
> > http://www.nod32.com
> 
> 
> ___
> fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal
> 
> __ Información de NOD32, revisión 2073 (20070221) __
> 
> Este mensaje ha sido analizado con  NOD32 antivirus system
> http://www.nod32.com


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