Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2010-11

Less comprehensive progress output for fpmake

7 messages · 4 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Darius Blaszyk

I have created a patch for fpmake that hides some of the raw compiler output. The new output looks more like scons and is actually more clear imho. You can however still get full output by passing the -v option to fpmake.

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

Output with patch applied will be:

./fpmake

Compiling test.pp
Linking test
[ 50%] Built target target1
Compiling test.pp
Linking test
[100%] Built target target2
Done

instead of:

./fpmake

Free Pascal Compiler version 2.4.0-2 [2010/03/06] for i386 Copyright (c) 1993-2009 by Florian Klaempfl
Target OS: Linux for i386
Compiling test.pp
Linking test
/usr/bin/ld: warning: link.res contains output sections; did you forget -T?
9 lines compiled, 0.2 sec
Free Pascal Compiler version 2.4.0-2 [2010/03/06] for i386 Copyright (c) 1993-2009 by Florian Klaempfl
Target OS: Linux for i386
Compiling test.pp
Linking test
/usr/bin/ld: warning: link.res contains output sections; did you forget -T?
9 lines compiled, 0.2 sec

Darius

Reply by email

Joost van der Sluis
to Darius Blaszyk
Darius Blaszyk wrote 18 lines
I have created a patch for fpmake that hides some of the raw compiler output. The new output looks more like scons and is actually more clear imho. You can however still get full output by passing the -v option to fpmake. http://bugs.freepascal.org/view.php?id=18051 Output with patch applied will be: >./fpmake Compiling test.pp Linking test [ 50%] Built target target1 Compiling test.pp Linking test [100%] Built target target2 Done

Nice, this was on my todo-list. Can you now make it so that when an error occurs, the compiler-command and output are shown by default. (Also without -v?)

Joost.

Reply by email

Darius Blaszyk
to Joost van der Sluis
Joost van der Sluis wrote 23 lines
On Thu, 2010-11-25 at 18:05 +0100, Darius Blaszyk wrote: > I have created a patch for fpmake that hides some of the raw compiler > output. The new output looks more like scons and is actually more clear > imho. You can however still get full output by passing the -v option to > fpmake. > > http://bugs.freepascal.org/view.php?id=18051 > > > Output with patch applied will be: > > >./fpmake > Compiling test.pp > Linking test > [ 50%] Built target target1 > Compiling test.pp > Linking test > [100%] Built target target2 > Done Nice, this was on my todo-list. Can you now make it so that when an error occurs, the compiler-command and output are shown by default. (Also without -v?)

Joost,

The major "problem" we will have to solve is localization. Now the code depends on the words "Compiling" and "linking". Is there a way to circumvent this?
I could for instance only strip the header information and show that (properly indented). What do the other say?

Darius

Reply by email

Jonas Maebe
to Darius Blaszyk
Darius Blaszyk wrote
The major "problem" we will have to solve is localization. Now the code depends on the words "Compiling" and "linking". Is there a way to circumvent this?

If you pass -vq to the compiler, it will prepend the message numbers to the output messages. Then you can filter on these numbers (they should not change with new compiler versions).

Jonas

Reply by email

Darius Blaszyk
to Jonas Maebe
Jonas Maebe wrote 7 lines
On 29 Nov 2010, at 18:45, Darius Blaszyk wrote: > The major "problem" we will have to solve is localization. Now the code > depends on the words "Compiling" and "linking". Is there a way to > circumvent this? If you pass -vq to the compiler, it will prepend the message numbers to the output messages. Then you can filter on these numbers (they should not change with new compiler versions).

Thanks Jonas, very useful indeed.

Darius

Reply by email

Darius Blaszyk
to Darius Blaszyk
Darius Blaszyk wrote 10 lines
On Mon, 2010-11-29 at 19:31 +0100, Jonas Maebe wrote: > On 29 Nov 2010, at 18:45, Darius Blaszyk wrote: > > > The major "problem" we will have to solve is localization. Now the code > > depends on the words "Compiling" and "linking". Is there a way to > > circumvent this? > > If you pass -vq to the compiler, it will prepend the message numbers to the output messages. Then you can filter on these numbers (they should not change with new compiler versions). Thanks Jonas, very useful indeed.

New patch is uploaded.

Reply by email

Unknown author
to Darius Blaszyk
Darius Blaszyk wrote 13 lines
On Mon, 2010-11-29 at 20:00 +0100, Darius Blaszyk wrote: > On Mon, 2010-11-29 at 19:31 +0100, Jonas Maebe wrote: >> On 29 Nov 2010, at 18:45, Darius Blaszyk wrote: >> >>> The major "problem" we will have to solve is localization. Now the code >>> depends on the words "Compiling" and "linking". Is there a way to >>> circumvent this? >> >> If you pass -vq to the compiler, it will prepend the message numbers to the output messages. Then you can filter on these numbers (they should not change with new compiler versions). > > Thanks Jonas, very useful indeed. New patch is uploaded.

I will .

Reply by email