Hello,
I was thrilled to see two different powerpc64 precompiled binaries in this
folder:
https://downloads.freepascal.org/fpc/beta/3.2.4-rc1/powerpc64-linux/
One is named
fpc-3.2.4-rc1.powerpc64-linux.tar
and the other
fpc-3.2.4-rc1.powerpc64-linux-big-endian.tar
But both contain the same bi
and in the future I would like
> to maintain this project.
> For now, I would be very happy with a lazarus project that successfully
> compiles the (preferred) latest version of the source code.
>
> Thank you so much
> Jessica
>
> Sent with [ProtonMail](https://protonma
Hello,
it seems that the newest 32-bit FPC sometimes creates complete Boolean
Evaluation
rather than partial, which causes my application to crash. My context is like
this:
type BOOL=LongBool;
PBOOL=^LongBool;
function DoSomething(const Cancel:PBOOL=nil);
begin
if Assigned(Cancel) a
Hello Florian,
many thanks for this!
To compare performance, is it sufficient to add the FTP=xxx parameter
and point it to the different ppca64 versions?
And should I compile the older source snapshort with the older version,
and today's snapshot with the newer ppca64?
I just want to do the test
Hi,
many thanks for the replies! I actually think most of the time is used
by clang for assembling. If I can find out more precise details, I will
let you know. And it is already a little bit faster on M1 than on my Intel.
Kind Regards,
Tobias Giesen
Super Flexible Software GmbH & Co
Hello,
first and foremost, many thanks to the creators and contributors of FPC
and Lazarus, who enabled me to release my product natively for Apple
Silicon only one day after receiving an M1 Mac. Fantastic work! FPC and
Lazarus both run natively and work very well.
According to Geekbench, the sin
Hello Jonas,
many thanks for the information, that’s very interesting and helpful.
Cheers,
Tobias
> Am 01.08.2020 um 23:58 schrieb Jonas Maebe :
>
> On 01/08/2020 23:42, Tobias Klaus Giesen via fpc-pascal wrote:
>> I am mainly working on MacOS 10.10 (Yosemite).
>>
>> After updating from FP
Hello again,
here's a quick update, I decided to make a DLL instead. Much easier and
cleaner. Making good progress. Will publish when done.
Cheers,
Tobias
On Tue, Oct 8, 2019 at 6:50 PM wrote:
> Hello,
> I am trying to make an SFTP client class based on putty. It will be open
> source and I th
s;
>
> var t1,t2,t3:dword;
> begin
>t1:=$fffe;
>t2:=2;
>t3:=t2-t1;
>writeln(t3);
>writeln(t2-t1);
> end.
>
>
> --
> Luca
> ___
> fpc-pascal maillist - fpc-pascal@lists.free
Many thanks! That's great. The completeness of FPC units and packages is really
astonishing.
Cheers,
Tobias
On Wed, 3 Jan 2018 06:36:32 +
Graeme Geldenhuys wrote:
> On 2018-01-03 00:12, Tobias Giesen wrote:
> > Unfortunately Libc and UnixUtils don't seem to be avai
Hello,
I would like to get the user ID for a Linux user name.
Unfortunately Libc and UnixUtils don't seem to be available in 64-bit, so I
can't call the
functions getpwnam or GetUserId. Is there a replacement? Or could I define and
import the function myself?
Thanks for any help!
Cheers,
Tob
will send more information later.
Cheers,
Tobias Giesen
> Am 05.12.2017 um 19:20 schrieb Karoly Balogh (Charlie/SGR)
> :
>
> Hi,
>
>> On Tue, 5 Dec 2017, tobiasgie...@gmail.com wrote:
>>
>> I think the only problem is with fpmake, which doesn't incl
Hello,
I just filed a bug report about FpFtruncate passing the parameters incorrectly
to the
system. For example, setting a file size to $D would cause the file to have the
size
$D 000D. Apparently the conditional define FPC_ABI_EABI would fix it, but
what
other impact does it have?
I won
Hello,
I wonder what the minimum Linux version is ... I have made NAS versions of my
app,
and it runs fine on an older Synology NAS with this uname info:
Linux DS-212j 2.6.32.12
armv5tel GNU/Linux synology_88f6281_212j
But it crashes with access violations, and EThread exceptions on this old QNA
_
> fpc-pascal maillist - fpc-pascal@lists.freepascal.org
> http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Kind Regards,
Tobias Giesen
Super Flexible Software Ltd. & Co. KG
Buddenstr. 29-31
48143 Münster, Germany
www.superflexible.com
www.tgtools.co
,
Tobias Giesen
> Am 05.05.2017 um 03:09 schrieb John van der Linden :
>
> Hi,
>
> When I download the Free Pascal I get a file called i386-win32-ppc386.zip
> which contains 1 file called ppc386.exe which does not contain the Setup
> system for the Free Pascal IDE that I was ex
Wow, fantastic, many thanks! Will try to build it :=)
-
Please excuse the shortness of this mail which was sent from my mobile phone.
If necessary, I will send more information later.
Cheers,
Tobias Giesen
> Am 18.04.2017 um 23:34 schrieb Jonas Maebe :
>
>
> Tobias Giesen
Hello,
me again trying new platforms :=)
I now have two machines running Linux on 64-bit ARM. So I wonder, what's the
best
way to get FPC 3.0.2 running natively on AArch64 and producing AArch64 programs?
Thanks for any tips.
Cheers,
Tobias
___
fpc-
Hello,
I have a few questions about run-time checks.
Is it possible to check class typecasts such as
TMyIniFile(AnIniFile) ?
Or only "AnIniFile as TMyIniFile"?
If only the second, it would be cool if it were possible to disallow the first
kind of
typecast.
Cheers,
Tobias
_
Hello,
my application uses the AnsiString type to store UTF-8 data. That was
totally fine. Now in FPC 3, automatic conversions cause data loss. I
get question marks replacing Chinese characters, for example.
I do not fully understand at which points these conversions are done.
The FPC 3 Unicode d
Hello,
I am interested in this problem too. My app is highly multithreaded,
working mostly with TObject descendants such as TStringList and
TCollections. I am ensuring thread safety thru CriticalSections. In fact
I have made my own TThreadSafeStringList.
I have been distributing the app with opti
Yes it will terminate and free (if FreeOnTerminate is true).
-
Please excuse the shortness of this mail which was sent from my mobile phone.
If necessary, I will send more information later.
Cheers,
Tobias Giesen
> On 01.11.2015, at 15:25, Bo Berglund wrote:
>
> I have seen
Hello,
many thanks for all the insight! I will be able to complete it now. A
separate DLL should be easy enough, too.
Cheers,
Tobias
> Am 21.08.2015 08:40 schrieb "Tobias Giesen" :
> >
> > Hello,
> >
> > I have to compile a few Pascal units with FPC and
> The particular symbol should be defined in libimpsystem.a
Fantastic! After adding some more libraries, the only remaining missing
symbol is FPC_WIDEINITTABLES. I can probably just create a dummy for
that in a Pascal unit, as the code does not need widestrings.
Cheers,
Tobias
Hello,
yes, to interface between Pascal and C I use 'extern "C"'. I do not have
any problems linking between my C code and the Pascal code.
The only problem is that the Pascal RTL uses DLL imports, which the
Microsoft linker cannot resolve, for example:
unresolved external symbol _$dll$kernel3
recognize the FPC way of
mangling the DLL dependencies? Is there a way to compile the RTL in a
way that Microsoft can link? Or anything else I can do?
Thanks.
Tobias Giesen
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org
> Hoping is not enough when changing random values.
> See http://bugs.freepascal.org/view.php?id=9401
> for more info.
Wow. Many thanks!
I read that MSG_NOSIGNAL is now supported by MacOS, too, but I don't
really know.
So now I am calling fpsetsockopt with SO_NOSIGPIPE as the first thing
after
Hi,
I think the biggest issue is that MSG_NOSIGNAL is not defined on MAC OS,
even though it was added a few years (?) ago. When I ported Synapse,
unfortunately I defined it as 0. Now I changed that to $2 and I'm
hoping for the best ...
I also added this to my program, is that correct?
var Ne
Hello,
my app does http transfers using the Synapse library on Windows and
Mac OS X. The transfers happen in separate threads. On Mac OS X only,
the app is occasionally stopped due to a SIGPIPE.
How can I avoid or handle a SIGPIPE?
Cheers,
Tobias
___
Hello,
my app uses the built-in Inc function to add Int64 variables.
Unfortunately, they are treated as UInt32, so the values are
truncated as 32 bit values.
Wow! That is an impressive bug. I assume it is known? What's the
recommendation, which FPC version should I use? Could it be an
incompatib
Jonas wrote:
> export MallocStackLogging=1
> Then, once the program is running and has leaked memory, run
> leaks nameofyourprogram
Thanks for this tip! It is very interesting, however in this situation
it does not detect the lost memory.
At this point I have to give up on GetTextWidth - I will
Hi Jonas,
thanks very much!!!
I am sorry for the wrong things that I wrote. Now I can clearly see that
the memory is not lost on the FPC heap. The total heap size doesn't even
change at all. So there's no difference with CMem either.
More work to do ...
Cheers,
Tobias
Hello,
I have been making tests all day long and I do not have any conclusive
results. I fixed a small memory leak in my code too. This leak may have
misled me to believe that the compiler has a leak. However after all the
efforts, the application still uses more and more memory while it is
doing
Hi,
I was wrong, UniqueString does not help after all. I am now using an
extended version of the heaptrc unit to show the reference count (and
string value) for unfreed WideStrings and they usually have 1 as a
reference count.
Will keep you posted.
Cheers,
Tobias
d Regards,
Tobias Giesen
"To avoid a reboot, make sure that no SuperFlexible or ExtremeSync
processes are running in Task Manager before installing an update."
Super Flexible Software Ltd. & Co. KG
Lessingstr. 42
48485 Neuenkirchen, Germany
www.superflexi
Hi,
I think the problem might be that Widestring reference counting is not
thread safe. But it worked fine in FPC 2.2.
I will add some UniqueString calls and also try to isolate the issue.
Cheers,
Tobias
___
fpc-pascal maillist - fpc-pascal@lists.
Hi,
is it possible to turn off reference counting, for a test?
Is there a difference between UnicodeString and WideString on the
Mac version (i386) of FPC 2.4 / 2.5?
Cheers,
Tobias
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://li
Hi,
the latest 2.5.1 SVN leaks too (on Mac i386). Will try to isolate it.
Cheers,
Tobias
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
> Then you'll have to provide a compilable example that demonstrates
> the problem so we can fix it.
I will try!
Cheers,
Tobias
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
> Unless heaptrc shows leaks when the program exits, no memory leaks
> happen.
It's a leak. The program loses hundreds of MBs of memory just by
working with WideStrings. I compared it against FPC 2.2.4 - no leak.
An SVN snapshot of 2.5.1 from around 3 months ago also leaks.
Will update from SV
Hi,
I am doing a regular heaptrc.DumpHeap now and I see that WideString
memory blocks are still allocated for string values which are no
longer in use. Is the memory freed in some lazy way? Or should a
value that is no longer assigned to any WideString be freed
immediately?
Cheers,
Tobias
__
Hello,
I'm using FPC 2.4.0 on Mac and I have a problem with WideString memory
leaks. Is there any known issue, such that temporary WideStrings are
not always freed, or any bug in reference counting?
Cheers,
Tobias
___
fpc-pascal maillist - fpc-pasc
Hello,
I'm trying to find a memory leak but I am unable to get a symbolic
stack trace from the heaptrc dump. Also the option -Xm does not
generate a map file on Mac OS X. Or at least I don't see it.
If I could get a detailed map file with line numbers and offsets,
I would probably be happy.
Any
Hello,
I am still struggling with the Segmentation Fault that gdb produces
when loading my app's symbols on Mac OS X.
I inserted $D- at the top of a few hundred units, but the app still
has the exact same file size. Is the $D- compiler directive ignored?
Shouldn't the symbols shrink?
Cheers,
Tob
Hello,
thanks to Jonas for this tip in April!
This command line switch can really solve some recompiling problems:
-Ur (= "create release units")
I had the problem "Recompiling XYZ, checksum changed for ZZZ" when
recompiling Lazarus with my component package. It's now solved.
For the benefit of
> > const Vec:AnsiString=#$094#$06D;
> > This should just be 8-bit data with no conversion.
>
> try const Vec:AnsiString=#$94#$6D;
Works! Thanks Dmitry!
Cheers,
Tobias
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepasca
er to interpret all string constants as
Ansi rather than Unicode?
I read the FPC UNICODE SUPPORT wiki page but it doesn't go into
such detail.
Kind Regards,
Tobias Giesen
Super Flexible Software Ltd. & Co. KG
Lessingstr. 42
48485 Neuenkirchen, Germany
www.superflex
> On the website on the right is a link "Documentation".
>
> http://freepascal.org/docs.var
OK after some more searching I found the Building faq (PDF) on
http://freepascal.org/moreinfo.var
Cheers,
Tobias
___
fpc-pascal maillist - fpc-pascal@list
Hi,
I have the sources from SVN now, do I just cd into the folder and
type make?
I couldn't find any documentation on making FPC anywhere on
freepascal.org. Maybe I missed something?
Cheers,
Tobias
___
fpc-pascal maillist - fpc-pascal@lists.freepasc
> Then please file a bug report with source code to reproduce the crash.
I'd love to but probably it only happens in my project with close to 500
units, it can be really hard to strip such things down. There is
unfortunately a lot of closed source code in it.
I will try installing FPC 2.5. Prob
could -Cs2000 do any harm? Maybe one 0 too many?
I saw 2.4.3 for Windows on the snapshots page, is there any such
update for Mac?
Kind Regards,
Tobias Giesen
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/ma
> Stabs or DWARF (-g or -gw)?
I think Stabs, but apparently it worked with Dwarf in one particular
installation. I will need to look into it more. Lazarus still says
"Oops, debugger error" so I need to find out how to look at the
communication between Lazarus and gbd to see the actual error.
Wit
Hello,
I am back developing for Mac!
My compiled application with symbold is 93.5 MB in size and gdb cannot
load it, so the debugger in Lazarus fails too.
This happens on both Leopard and Snow with FPC 2.2.x and 2.4.0 and
Lazarus 0.9.28 and 0.9.29.
Only the 2 year old installation on Tiger stil
> Another, more seldom reason for recompilation problems is that you
> happen to name one of your own units the same as a rtl/fcl/lcl library
> unit. In that case the compiler thinks that your file is the new source
> and it wants to recompile the library units
Wow, that is very useful informat
Hello,
thanks very much, Jonas and Mattias! I think your tips will help me a
lot. I will go back to Macintosh development in about a month. If you
don't hear from me, I'm fine!
Cheers,
Tobias
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
> This usually means that they were compiled by a previous compiler, or
> that they use units which have been changed and recompiled since the
> previous compilation. In that case, the compiler will ignore the
> precompiled unit and try to recompile it. If it then doesn't find the
> sources
> Which bugs?
I'm sorry but it was a few months ago. Before trying again I wanted to
make sure I had the best version of FPC available. I had problems with
units not being found although they were on the search path allright.
Also installing packages into Lazarus caused all kinds of unit conflicts
Hello,
I'm having serious problems with bugs in FPC 2.4.0 on Intel Mac OS X.
Would it be possible to post snapshots with 2.4.1?
Cheers,
Tobias
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fp
Hello,
I'm using FPC 2.2.4 (ppcppc) to create a PowerPC app with Lazarus. It's
running under Rosetta on an Intel Mac.
Simple floating point operations like this result in wrong code that
creates wrong results:
---
var it:Int64;
dt:TDateTime
begin
it:=ANumber;
dt:Trunc(it/
> But how can I prevent race conditions? If threads X and Y happen to
> call the task assignment function at the same time, it seems to me
> that they could both be assigned to the same task.
Use for example the cross-platform implementations of
Enter/LeaveCriticalSection. Like this:
EnterCri
Hello,
I wasn't able to find information on this on the web - apparently it has
been implemented for Mac OS X but how can I use it? Is there a special
keyword for it?
Thanks.
Cheers,
Tobias
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
Hi,
thanks very much, it works now!
I created a new unit for my declarations and just copied the whole
compiler instructions block from FPMacOSAll.pas:
{$mode macpas}
{$packenum 1}
{$macro on}
{$inline on}
{$calling mwpascal}
So now I have access to a whole range of super advanced additional
st
Hello,
frequently I need to use a function that is missing in FPCMacOSAll.pas.
Trying to declare it myself usually results in successful compilation
and linking, but most of the time the functions crash at run time. So
I wonder if these are not implemented or if I declare them wrong.
Today I need
Hi,
I think that thread variables are automatically initialized to zero. So
you just need to use them in such a way that zero is the desired start
value.
Cheers,
Tobias
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepasca
d to worry about libraries at all.
Synapse is much more compact and less bloated than Indy, for example.
If you have any problems or need any customization, you will be able to
work with the Synapse source code much better than with Indy.
Kind Regards,
Tobias Giesen
Super Flexible Software Lt
Hello,
Synapse works extremely well with maybe only 1 change due to an
undefined symbol at compile time, which can be defined as 0.
http://synapse.ararat.cz/doku.php
Cheers,
Tobias
http://www.superflexible.com
___
fpc-pascal maillist - fpc-pascal@
Hi,
correction! Adding FpChown to oscdeclh.inc works fine. This line needs
to be added:
Function FpChown (path : pChar; owner : TUid; group : TGid): cInt; cdecl;
external clib name 'chown';
to oscdeclh.inc in the rtl/unix folder.
Cheers,
Tobias
___
Hi,
OK I added this as a bug:
http://mantis.freepascal.org/view.php?id=11705
This is caused by FpChown missing from oscdeclh.inc in the rtl/unix
folder. I tried adding it but it causes an exception. But chown is
present in the libc. Why can't it be called?
I can't believe that nobody uses chown
Hello,
I am trying to call fpchown but it causes an infinite recursion.
fpchmod works fine. This happens in all FPC 2.x versions.
Any ideas?
How can I recompile the FCL with debugging information, so I can trace
into these problems with Lazarus?
Cheers,
Tobias
Hello,
now that the Lazarus snapshots are including FPC 2.2.1 for OS X (i386),
I am using this version. I had to add the -Cg- option because my old
assembly code is not compatible with PIC.
Unfortunately the debugger crashes with the following crash report. Is
there anything I can do to make it w
> As I noted in your bug report, this has been fixed in 2.2.1 for
> several months already.
But the fix must be copied to 2.2.0 too, because the Lazarus team is
still spreading this crash on their daily snapshots. I don't know who
is responsible for that. Can you tell me?
Cheers,
Tobias
___
;
if Size+Index>LS then
Size:=LS-Index+1;
if Index+Size<=LS then begin
Dec(Index);
System.Move(PWideChar(S)[Index+Size],PWideChar(S)[Index],
(LS-Index-Size+1)*sizeof(WideChar));
end;
Setlength(s,LS-Size);
end;
end;
Kind Regards
l.org/OS_X_Programming_Tips
And the discussion list is here:
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Kind Regards,
Tobias Giesen
Super Flexible Software Ltd. & Co. KG
Lessingstr. 42
48485 Neuenkirchen, Germany
www.superflexible.com
www.tg
> Yes, add the -CX- -X- command line options.
> Or better: turn off all smart linking related options in Lazarus.
Thanks!
I did both, but somehow the error is still there. All the units compile
fine, only the last step where the .dpr file is compiled fails. The
.s file of the main program remain
Hello,
thanks for the new Makefiles! I am now at SVN rev. 8988 and when I
enter
cd fpc/compiler
make cycle CPU_TARGET=powerpc
I get:
Makefile:125: *** Compiler ppcrossppc not found. Stop.
I don't know what's happening. In this step, I do not want to
crosscompile. I want to _make_ the cross-c
Hello,
I am now trying the latest Lazarus snapshots on OS X 10.3 on a powerpc
Mac. The application compiles 99% fine but at the end it fails with the
following errors (from the assembler, I assume):
unknown section attribute: no_dead_strip
[...]
Error while assembling Exit Code 1
Is there a solu
this error compiling
pkgwget.pp:
Fatal: Can't find unit process used by pkgglobals
How can I fix this?
Thanks.
Tobias Giesen
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Hello,
I cleaned up some folders, deleting files from previous compilations
and updating to the latest SVN and now it's working.
FPC 2.3.1 finds my files much better than 2.2.
Maybe the improvements in fppu.pas (tppumodule.search_unit) could be
ported back to version 2.2 so that other developer
the 2.2 sources?
Thanks.
Kind Regards,
Tobias Giesen
www.superflexible.com
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Hello,
I would like to compile FPC. Do I need a special make tool? When I
type make all, I get many error messages, apparently because the
make tool from Apple is not the right one.
Thanks for any tips!
Cheers,
Tobias
http://www.superflexible.com
___
Hello,
apparently the WideUpperCase function does not work, what can I do?
I get a runtime error 215 when I call it.
I am using fpc-2.2.0 with Lazarus.
Kind Regards,
Tobias Giesen
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http
81 matches
Mail list logo