Sign in Join

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

Mailing lists / fpc-pascal / 2020-04

Question about compiling FPC trunk after revision 44849

6 messages · 5 people · –

Reply by email Subscribe to this list Your subscription

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

Victor Campillo

Hi,

For years I have been using the same script to compile FPC, in this script I use the next command:

make -j 9 clean all install

After the revision 44849 the use of the jobs option does not work anymore, it fails to compile, reviewing the changes in revision 44849 shows that was removed the option ".NOTPARALLEL" in the Makefile, and this option as far as I know leave without any effect specifying the option --jobs, so my using over the years of the option "-j 9" was actually useless.

Probably I am doing something wrong, but to be sure, ¿it is supported to use the jobs option of make?

Best Regards.

Victor Campillo

Reply by email

Jonas Maebe
to Victor Campillo
Victor Campillo wrote 14 lines
For years I have been using the same script to compile FPC, in this script I use the next command: make -j 9 clean all install After the revision 44849 the use of the jobs option does not work anymore, it fails to compile, reviewing the changes in revision 44849 shows that was removed the option ".NOTPARALLEL" in the Makefile, and this option as far as I know leave without any effect specifying the option --jobs, so my using over the years of the option "-j 9" was actually useless. Probably I am doing something wrong, but to be sure, ¿it is supported to use the jobs option of make?

Yes, but you cannot use "clean" and "all" in the same make invocation. This was in fact never supported, and did not work on all platforms either.

So simply split it:

make -j 9 clean
make -j 9 all install

Jonas

Reply by email

Sven Barth
to Jonas Maebe

Jonas Maebe schrieb am Mi., 29. Apr. 2020, 19:50:

Show quoted text 24 lines
On 29/04/2020 19:39, Victor Campillo via fpc-pascal wrote: > For years I have been using the same script to compile FPC, in this > script I use the next command: > > make -j 9 clean all install > > After the revision 44849 the use of the jobs option does not work > anymore, it fails to compile, reviewing the changes in revision 44849 > shows that was removed the option ".NOTPARALLEL" in the Makefile, and > this option as far as I know leave without any effect specifying the > option --jobs, so my using over the years of the option "-j 9" was > actually useless. > > Probably I am doing something wrong, but to be sure, ¿it is supported to > use the jobs option of make? Yes, but you cannot use "clean" and "all" in the same make invocation. This was in fact never supported, and did not work on all platforms either. So simply split it: make -j 9 clean make -j 9 all install

Also you should specify FPMAKEOPT="-T 9" in addition to -j.

Regards,
Sven

Reply by email

Victor Campillo
to Sven Barth
Sven Barth wrote 16 lines
Jonas Maebe < > schrieb am Mi., 29. Apr. 2020, 19:50: So simply split it: make -j 9 clean make -j 9 all install Also you should specify FPMAKEOPT="-T 9" in addition to -j. Regards, Sven

Ok, thank you Jonas and Sven.

Splitting the command and adding FPMAKEOPT="-T 9" works perfect, and I see a great compile time improvement.

Regards

Victor Campillo

Reply by email

Marco van de Voort
to Jonas Maebe: Yes, but you cannot use "clean" and "all" in the same make invocation. This was in fact…

Op 2020-04-29 om 19:50 schreef Jonas Maebe:

Show quoted text 8 lines
Yes, but you cannot use "clean" and "all" in the same make invocation. This was in fact never supported, and did not work on all platforms either. So simply split it: make -j 9 clean make -j 9 all install

Does "clean" have a valid return value of make, or is it better ignored?

Reply by email

Florian Klämpfl
to Marco van de Voort
Marco van de Voort wrote 12 lines
Op 2020-04-29 om 19:50 schreef Jonas Maebe: > > Yes, but you cannot use "clean" and "all" in the same make invocation. > This was in fact never supported, and did not work on all platforms > either. > > So simply split it: > > make -j 9 clean > make -j 9 all install Does "clean" have a valid return value of make, or is it better ignored?

I run all of my scripts with set -e, so it should work.

Reply by email