[Scons-users] error 127

William Deegan bill at baddogconsulting.com
Wed Jun 4 11:58:59 EDT 2014


Try changing to:
> consolidate_angles = Builder(action=“echo $SOURCES ") 
and see if you get the same error. likely you will..



-Bill

On June 4, 2014 at 12:38:23 AM, Pawel Tomulik (ptomulik at meil.pw.edu.pl) 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.  


> -Peter  
>  
>  
>  
> _______________________________________________  
> Scons-users mailing list  
> Scons-users at scons.org  
> http://four.pairlist.net/mailman/listinfo/scons-users  
>  

Best regards,  
--  
Pawel Tomulik  
_______________________________________________  
Scons-users mailing list  
Scons-users at scons.org  
http://four.pairlist.net/mailman/listinfo/scons-users  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://four.pairlist.net/pipermail/scons-users/attachments/20140604/f3c01899/attachment.html>


More information about the Scons-users mailing list