Re: [fpc-pascal] bug in make install ?

2019-03-24 Thread Bart
On Sun, Mar 24, 2019 at 6:36 PM Bart  wrote:

> Sorry, I just never use that stuff in my programs.

It seems that when you try to execute a program that writes to console
and you specify [poNoconsole] then the program will exit with:
Proc.ExitCode=C005, Proc.ExitStatus=C005

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

Re: [fpc-pascal] bug in make install ?

2019-03-24 Thread Bart
On Sun, Mar 24, 2019 at 6:10 PM Joost van der Sluis  wrote:

> > Note: I see several times a window (console?) flash when starting up
> > Lazarus now.
> > Maybe add poNoConsole to ProcessOptions ?
> > It's a bit annoying now.
>
> Can you test if this actually works on Windows (on Linux this is not an
> issue)

I added poNoConsole to the 2 occasions of TProcessUtf8 I could fine in
InitialSetupDlg, but I still see 2 console windows flashing by.

Adding [poNoconsole] may also prevent the program in question to write
output to StdOut?
But since we're using pipes, that should not matter?

Sorry, I just never use that stuff in my programs.

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

Re: [fpc-pascal] bug in make install ?

2019-03-24 Thread Joost van der Sluis

Op 24-03-19 om 11:48 schreef Bart:

On Sun, Mar 24, 2019 at 1:30 AM Bart  wrote:

Now I get the rather ludicrous error message: "Warning: The fpcmkcfg
configuration tool it too old [3.3.1]."

In function TInitialSetupDialog.CheckFpcmkcfgQuality(out Note:
string): TSDFilenameQuality;


else if not ((Ver.Major = 0) or (Ver.Major > 3) or (((Ver.Major = 3))
and (Ver.Minor>3))) then  <<=
 begin
 // fpcmkcfg's version must be > 3.1.
I think the above code checks for 0.x, 4.x and > 3.3.x, which is not
what the comment says.


Sorry. I had to test the message, so adapted the check so that it needs 
at least 3.4.0. And accidentally comitted that.



I changed that to
else if not ((Ver.Major = 0) or (Ver.Major > 3) or (((Ver.Major = 3))
and (Ver.Minor>1))) then

Now it lets me create a new Fppkg configuration.


Good to hear.


Note: I see several times a window (console?) flash when starting up
Lazarus now.
Maybe add poNoConsole to ProcessOptions ?
It's a bit annoying now.


Can you test if this actually works on Windows (on Linux this is not an 
issue)


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

Re: [fpc-pascal] bug in make install ?

2019-03-24 Thread Bart
On Sun, Mar 24, 2019 at 1:30 AM Bart  wrote:

> fpcmkcfg.exe does not support -V parameter

Never mind that: it helps if you actually rebuild fpc, not just update
the sources ;-)

fpcmkcfg -h however does not list the "-V" option.

Now I get the rather ludicrous error message: "Warning: The fpcmkcfg
configuration tool it too old [3.3.1]."

In function TInitialSetupDialog.CheckFpcmkcfgQuality(out Note:
string): TSDFilenameQuality;


else if not ((Ver.Major = 0) or (Ver.Major > 3) or (((Ver.Major = 3))
and (Ver.Minor>3))) then  <<=
begin
// fpcmkcfg's version must be > 3.1.
I think the above code checks for 0.x, 4.x and > 3.3.x, which is not
what the comment says.

I changed that to
else if not ((Ver.Major = 0) or (Ver.Major > 3) or (((Ver.Major = 3))
and (Ver.Minor>1))) then

Now it lets me create a new Fppkg configuration.

Note: I see several times a window (console?) flash when starting up
Lazarus now.
Maybe add poNoConsole to ProcessOptions ?
It's a bit annoying now.

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

Re: [fpc-pascal] bug in make install ?

2019-03-24 Thread Joost van der Sluis

Op 24-03-19 om 01:33 schreef Bart:

Notice also that when you cancel the InitialSetupDialog, the IDE
raises an exception when closing down:

LAZARUS END - cleaning up ...
[FORMS.PP] ExceptionOccurred
   Sender=EAccessViolation
   Exception=Access violation
   Stack trace:
   $0056EB8A  TWINCONTROL__HANDLEALLOCATED,  line 7442 of
./include/wincontrol.inc
   $0045493A  TMAINIDE__SETTOOLSTATUS,  line 3611 of main.pp
   $0044CF1C  TMAINIDE__DESTROY,  line 1648 of main.pp
   $0040FDA2  TOBJECT__FREE,  line 336 of C:/devel/fpc/trunk/rtl/inc/objpas.inc
TApplication.HandleException: EAccessViolation
Access violation
   Stack trace:
   $0056EB8A  TWINCONTROL__HANDLEALLOCATED,  line 7442 of
./include/wincontrol.inc
   $0045493A  TMAINIDE__SETTOOLSTATUS,  line 3611 of main.pp
   $0044CF1C  TMAINIDE__DESTROY,  line 1648 of main.pp
   $0040FDA2  TOBJECT__FREE,  line 336 of C:/devel/fpc/trunk/rtl/inc/objpas.inc
TApplication.HandleException: Strange Exception
Exception at 0056EB8A: EAccessViolation:
Access violation.
   Stack trace:
   $0056EB8A  TWINCONTROL__HANDLEALLOCATED,  line 7442 of
./include/wincontrol.inc
   $0045493A  TMAINIDE__SETTOOLSTATUS,  line 3611 of main.pp
   $0044CF1C  TMAINIDE__DESTROY,  line 1648 of main.pp
   $0040FDA2  TOBJECT__FREE,  line 336 of C:/devel/fpc/trunk/rtl/inc/objpas.inc
Hint: (lazarus) [TMainIDE.Destroy] B  -> inherited Destroy... TMainIDE
Hint: (lazarus) [TMainIDE.Destroy] END



I noticed this also, tried to fix it, but did not succeed so far. (I 
don't think it has anything to do with my changes, the problem was 
already there)


Regards,

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

Re: [fpc-pascal] bug in make install ?

2019-03-24 Thread Joost van der Sluis

Op 24-03-19 om 01:30 schreef Bart:

On Sat, Mar 23, 2019 at 7:56 PM Bart  wrote:


"Warning: Failed to retrieve the version of the fpcmkcfg configuration
tool. It is probably too old to create the configuration files. Make
sure a recent version is installed and available in the path or
alongside the compiler-executable."



Then later in TInitialSetupDialog.CheckFpcmkcfgQuality
TInitialSetupDialog.CheckFpcmkcfgQuality A
   FpcmkcfgExecutable=C:\pp\bin\i386-win32\fpcmkcfg.exe
   FileExistsUtf8(FpcmkcfgExecutable)=True

   Proc.Options := proc.Options + [poWaitOnExit,poUsePipes];
   // Write fppkg.cfg
   Proc.Executable := FpcmkcfgExecutable;
   proc.Parameters.Add('-V');
   proc.Execute;

   Error: proc.ExitStatus=1



C:\pp\bin\i386-win32>fpcmkcfg -h
Usage: fpcmkcfg.exe [options]
Where options is one or more of
   -t filename   Template file name. Default is built-in
   -o filename   Set output file. Default is standard output.
   -d name=value define name=value pair.
   -hshow this help and exit.
   -u name   remove name from list of name/value pairs.
   -mshow builtin macros and exit.
   -bshow builtin template and exit.
   -sskip the creation of a backup-file.
   -pforce directory creation.
   -vbe verbose.
   -0use built in fpc.cfg template (default)
   -1use built in fp.cfg template
   -2use built in fp.ini template
   -3use built in fppkg.cfg template
   -4use built in fppkg default compiler template

fpcmkcfg.exe does not support -V parameter

fppkg.exe does support -V parameter and shows:
Warning: The directory
"C:\Users\Bart\AppData\Local\FreePascal\fppkg\config/conf.d\" of the
include-mask "C:\Users\Bart\AppData\Local\FreePascal\fppkg\config/conf.d/*.conf"
does not exist
Version: 3.3.1


The -V option has been added in r41742, but it has only been added to 
the help-screen in r41771. You have a version which is in between those two.


So can you test 'fpcmkcfg -V'. Seems like this does not work, as in 
Lazarus it gives a problem. But given your fpc-revision, it should work?


Regards,

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

Re: [fpc-pascal] fpdoc: what does the --marco parameter do?

2019-03-24 Thread Michael Van Canneyt



On Sat, 23 Mar 2019, Graeme Geldenhuys wrote:


The FPDoc PDF documentation for 3.0.4 doesn't mention it at all. So
maybe it is something for 3.2.0 and later only?


Yes.

The XML project file needs some parametrization - for example the location of the sources. 
So it contains macros.


The --macro option (the name is maybe a little obtuse) is used to replace the 
parameter name
with a parameter value.

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