[Scons-users] Want to Make SCons builder thread-safe
Hill, Steve (FP COM)
Steve.Hill at cobham.com
Thu Mar 15 05:10:46 EDT 2018
Hi Vishal,
It sounds as though your issue could be with having multiple instances of the compiler running at the same time. The build system that I maintain has multiple tool chains and we have come across this with a couple of them. We have used two different solutions:
1) Where the tool (a linker in this case) was not invoked a large number of times, we added a SideEffect to the invocation so that SCons will not run multiple instance in parallel but will find other jobs to run instead
2) Where the tool (this time a compiler) was invoked a lot, we had to investigate the root cause and we discovered that the issue was actually with some temporary files created and used by the compiler. These were written to a default directory, so multiple invocations running at the same time would trample on each other. We found the command-line options to explicitly set the directory to use for these files and set that to a different directory for each invocation. This worked around the problem and parallel builds then worked reliably.
HTH,
Steve.
From: Scons-users [mailto:scons-users-bounces at scons.org] On Behalf Of Vishal.Singh at continental-corporation.com
Sent: 15 March 2018 06:35
To: scons-users at scons.org
Subject: [Scons-users] Want to Make SCons builder thread-safe
Hi,
I am having problem with my builder, it call some cross compiler. When I am calling SCons with single thread thing work fine, but if I open multi-thread I am getting internal compiler error.
I have multi job(cross compiler) do with SCons, how can I make a builder thread safe but not the other.
Thanks & Best Regards,
Vishal
Vishal Kumar Singh
Architecture and Integration,
BU Advanced Driver Assistance Systems,
Technical Centre India,
Continental Automotive Components(India) Pvt Ltd.,
9th Floor, Gold Hill Supreme Software Park,
Plot No 21,22,27 & 28, Shantipura Road,
Electronic City, Phase 2, Hosur Road,
Bangalore-560100, INDIA
Office: +91-80-6679-1326
Mobile : +91-9611374420
E-Mail: Vishal.Singh at continental-corporation.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist4.pair.net/pipermail/scons-users/attachments/20180315/6ff31536/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 526 bytes
Desc: not available
URL: <https://pairlist4.pair.net/pipermail/scons-users/attachments/20180315/6ff31536/attachment.sig>
More information about the Scons-users
mailing list