[Scons-users] error 127
Pawel Tomulik
ptomulik at meil.pw.edu.pl
Wed Jun 4 15:49:46 EDT 2014
W dniu 04.06.2014 21:18, Peter Kerpedjiev pisze:
>
> On 6/4/14, 9:27 AM, Pawel Tomulik wrote:
>> W dniu 02.06.2014 06:55, Peter Kerpedjiev pisze:
>>> Hi,
>>>
>>> I'm getting an error 127 and have no idea why. It comes up after running
>>> a simple cat command. Here's the relevant sections of the SConstruct
>>> file:
>>>
>>> import os
>>>
>>> env = Environment(ENV=os.environ)
>>> consolidate_angles = Builder(action="cat $SOURCES > $TARGET")
>>> ...
>>> env.consolidate(output_angles, angles_files)
>>>
>>> Where output_angles = 'some_file.csv' and angles_files = ['file1.csv',
>>> 'file2.csv', ... ]. I've attached the output and the error I get. The
>>> array angles_files has about 5000 entries. If I reduce it to 3000,
>>> the build completes without errors. If I take entries 3000 - 5000,
>>> I also don't get any errors, leading me to believe that it's the length
>>> of the argument list that's problematic. If I run the corresponding
>>> command with all 5000 arguments on the command line, it works fine.
>>>
>>> Any ideas about why this happens and/or how to fix it? Like I said, if I
>>> copy and paste the command into bash, it works just fine. It's also the
>>> last command in the SConstruct file, if that makes any difference.
>>>
>>
>>
>> Maybe SCons uses different shell? Maybe it spawns the command in
>> completely different manner (not using a shell?). You may try to
>> implement and run simple 'echo $SHELL' command from SCons to see what
>> you deal with.
>>
> The output is 'sh'. Is there a way to force it to use bash? I'm calling
> scons from a bash shell.
env['SHELL'] = 'bash' ?
--
Paweł Tomulik
More information about the Scons-users
mailing list