[Scons-users] Re-2: GCC not found Error SCONS 3.1.2

Paul Rötzer Paul.Roetzer at ifta.com
Thu Mar 12 10:50:14 EDT 2020


Hi Bill, 


this is the function with scons 3.0.0:

def find(env):
    # First search in the SCons path
    path=env.WhereIs(key_program)
    if (path):
        return path
    # then the OS path:
    path=SCons.Util.WhereIs(key_program)
    if (path):
        return path

    # If that doesn't work try default location for mingw
    save_path=env['ENV']['PATH']
    env.AppendENVPath('PATH',r'c:\MinGW\bin')
    path =env.WhereIs(key_program)
    if not path:
        env['ENV']['PATH']=save_path
    return path




This find function does not exist in scons 3.1.2 anymore.
But there exists an array 


mingw_paths = [
    r'c:\MinGW\bin',
    r'C:\cygwin64\bin',
    r'C:\msys64',
    r'C:\cygwin\bin',
    r'C:\msys',
]


Still can't find gcc with the 3.1.2 version.


Thanks


Paul
Original Message processed by david® 
Re: [Scons-users] GCC not found Error SCONS 3.1.2 12. März 2020, 15:30 Uhr 
Von Bill Deegan 
An SCons users mailing list 


c:\MinGW\bin should be in the path as of at least 3.0.2
Can you check SCons\Tools\mingw.py line 47 ish?





On Thu, Mar 12, 2020 at 7:59 AM Paul Rötzer <Paul.Roetzer at ifta.com> wrote:


Hi there, 
I tried to build a simple c project with scons (just build one file with the gcc compiler) but unfortunately Scons 3.1.2 does not find the gcc command. 
I installed gcc with MingGW and it is located in C:/Mingw/bin. (Refering to the documentation, this should be a standard search path for gcc in scons)


Migrating scons to 3.0.0 solves this problem without further action. 


So there might be an error in the implementation in 3.1.2? 


Thanks for your help


Paul 





_______________________________________________
Scons-users mailing list
Scons-users at scons.org
https://pairlist4.pair.net/mailman/listinfo/scons-users





_______________________________________________
Scons-users mailing list
Scons-users at scons.org
https://pairlist4.pair.net/mailman/listinfo/scons-users 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist4.pair.net/pipermail/scons-users/attachments/20200312/d315b648/attachment-0001.html>


More information about the Scons-users mailing list