Re: [fpc-pascal] 2.2.2 INSTALL PROBLEM

2008-08-15 Thread Jonas Maebe


On 15 Aug 2008, at 09:39, Michael Van Canneyt wrote:


On Fri, 15 Aug 2008, John Youngquist wrote:

I also routinely see unusual behavior during debug. In routine  
debugging

suddenly breakpoints
don't break anymore. I exit FPC and restart to return to normal  
operation.

SImilarly the watching
of record structures just quits. Restart fixes that to. I was  
hoping 2.2.2

might fix these problems.
But it won't even run for me.


The debug problem is not really in our hands. We use the GNU debugger,
and if the GNU team (not exactly a cheering crowd of pascal fans)  
breaks

things for Pascal, then we are pretty much powerless.


It is extremely unlikely the above symptoms (both the ones described  
for 2.2.0 and 2.2.2) have anything to do whatsoever with Pascal  
support in gdb. It sounds much more like bugs in the internal debugger  
interface of the IDE (and as for the 2.2.2 symptom, I read that as  
"the 2.2.2 IDE won't even run for me").


in fact, gdb's Pascal support has been extremely stable (I've seen  
less than a handful regressions during the last 10 years). And that  
while the first basic Pascal test cases for gdb were only added during  
the last couple of years (by Pierre).



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


Re: [fpc-pascal] RE: Laz Snapshot Link

2008-08-15 Thread Vincent Snijders

Richard Ward schreef:

That is an old link. IT should be http://www.hu.freepascal.org/lazarus/
--

Thanks for the info.

I was at this page:

http://wiki.lazarus.freepascal.org/OS_X_Programming_Tips#Download_Free_Pascal_and_Lazarus


and the link in question   
*
*
Lazarus daily snapshot page :




Thanks. Fixed.

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


[fpc-pascal] RE: Laz Snapshot Link

2008-08-15 Thread Richard Ward

That is an old link. IT should be http://www.hu.freepascal.org/lazarus/
--

Thanks for the info.

I was at this page:

http://wiki.lazarus.freepascal.org/OS_X_Programming_Tips#Download_Free_Pascal_and_Lazarus


and the link in question

Lazarus daily snapshot page:

was contained in the following text:

Download Free Pascal and Lazarus
Download and install all three .dmg files from Source Forge or the  
Lazarus daily snapshot page:

 fpc.dmg
 fpcsrc.dmg
 lazarus.dmg
When done installing, you can delete these .dmg files.
[edit]
-RWard
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Converting C's bit field struct

2008-08-15 Thread Jonas Maebe


On 15 Aug 2008, at 13:23, leledumbo wrote:


Tried Vinzent solution and it works :clap:!
The layout is I think the same as in C.


It may be the same as in C in certain cases on certain platforms when  
compiled with a particular version of FPC. Do not depend on it always  
being or remaining the same, because it *will* not work at some point.



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


[fpc-pascal] Failed to bootstrap under Linux (wrong filename casing, needs manual workaround)

2008-08-15 Thread leledumbo

I try to bootstrap my FPC, but I failed on:

Can't find unit variants used by db

when I check it out, the unit is there but with the wrong case. It's
Variants. The weird thing, only the .ppu is affected. The .o has the correct
case. Some other units also have the wrong casing. Even worse, one unit may
have the .ppu affected while others have their .o affected. I'm using
Freespire 2.0.8.
-- 
View this message in context: 
http://www.nabble.com/Failed-to-bootstrap-under-Linux-%28wrong-filename-casing%2C-needs-manual-workaround%29-tp18998040p18998040.html
Sent from the Free Pascal - General mailing list archive at Nabble.com.

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


Re: [fpc-pascal] Converting C's bit field struct

2008-08-15 Thread leledumbo

Tried Vinzent solution and it works :clap:!
The layout is I think the same as in C. The difference is that FPC generates
it as

resb 4

while C uses

.comm 16

I don't know what .comm for. But since everything runs fine, who cares?
I just have some issues where assignment to the fields using pointer to that
type (^page_t) doesn't work. For instance:

var
  P: PPage; // the type is named TPage
...
with P^ do begin
  Present:=true;
  ReadWrite:=false;
  UserMode:=true;
  Frame:=FrameStack[FrameStackTop];
end;

When I check the value of each field, it's all ZERO! But the pointer isn't
nil. I guess the problem lies in my OS, but I'll do a re-check.
-- 
View this message in context: 
http://www.nabble.com/Converting-C%27s-bit-field-struct-tp18959002p18997771.html
Sent from the Free Pascal - General mailing list archive at Nabble.com.

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


Re: [fpc-pascal] 2.2.2 INSTALL PROBLEM

2008-08-15 Thread Michael Van Canneyt


On Fri, 15 Aug 2008, John Youngquist wrote:

> Just an update I removed FPC with Add/Remove programs which didn't remove
> everything.
> It left the bin directory with fp.cfg alone. I reinstalled 2.2.0 which would
> not launch but just
> blinked on screen. I deleted the FPC root directory and everything below it. I
> reinstalled
> 2.2.0 and it works. I have regularly seen this failure to launch behavior
> about once a month.
> I delete the files in  C:\FPC\2.2.0\BIN\i86-WIN32\ and then re-install.
> Re-installing without
> removing those files doesn't work.
> 
> I also routinely see unusual behavior during debug. In routine debugging
> suddenly breakpoints
> don't break anymore. I exit FPC and restart to return to normal operation.
> SImilarly the watching
> of record structures just quits. Restart fixes that to. I was hoping 2.2.2
> might fix these problems.
> But it won't even run for me.

The debug problem is not really in our hands. We use the GNU debugger,
and if the GNU team (not exactly a cheering crowd of pascal fans) breaks 
things for Pascal, then we are pretty much powerless.

Secondly, can you look in the fp.cfg file using notepad, and see if there 
is a -Opentiom option somewhere in it ? If so, remove it. This option is
no longer supported.

Thirdly, you might consider simply (re)moving the file. As far as I know
(don't use the text mode IDE) the IDE will look for this file also in 
the current directory.

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


Re: [fpc-pascal] Fatal Error

2008-08-15 Thread Arne Hanssen

Brad Woosley skrev:

--- On Thu, 8/14/08, Michael Van Canneyt <[EMAIL PROTECTED]> wrote:

On Wed, 13 Aug 2008, Brad Woosley wrote:


When I try to Compile I get an error that it is

"Unable to open file C:\FPC\2.2.2\bin\i386-win32\fp.cfg"
but when I go to that directory in Windows Explorer, I can
find that exact file.  Any ideas on how to fix this?

Check the permissions on the file. You should be able to
write to it;
if you are under Vista, this may require some work.


> I am running Windows XP.  Checking permissions on the file? I looked
> at the properties of the file and it the Read only box is Unchecked,
> so writing to the file should be allowed as far as I can tell.

I'd guess that a better test would be to open the file with Notepad and 
see if you are allowed to save changes (but from other messages on this 
list, it seems that there can be other issues...).


BTW: Please don't top-post on a mailing list! :-)

--
Vennlig hilsen / Best regards  |\ ___,,--,_
Arne Hanssen, Senja, Norway/,`--''\-,,__,'/
http://www.tuxic.net/ |,4   ) )_) /~-'
-'---^~(_/-_)--(_/_)---
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal