[Scons-users] Re-2: Re-2: GCC not found Error SCONS 3.1.2
Paul Rötzer
Paul.Roetzer at ifta.com
Mon Mar 16 03:46:13 EDT 2020
Hi,
I want to add to my last mail that if I install mingw32-make via MinGW-get it works.
-------- Original Message --------
Betreff: [Scons-users] Re-2: Re-2: GCC not found Error SCONS 3.1.2 (16. März 2020, 08:31)
Von: Paul Rötzer <Paul.Roetzer at ifta.com>
An: scons-users at scons.org <scons-users at scons.org>
>
> Hi,
>
> What I found out so far with Scons 3.1.2:
> - In mingw.py generate(env) the variable mingw_paths contains 'c:\\MinGW\\
> bin'
> - C:\MinGW\bin contains "mingw32-gcc.exe" but not "mingw32-make.exe"
> - SCons.Tool.find_program_path(env, key_program, default_paths=mingw_paths)
> returns None
>
> - if I change the key_program variabel in mingw.py to key_program = 'gcc'
> it works.
>
> Hopefully this helps
>
> Paul
>
>
> -------- Original Message --------
> Betreff: Re: [Scons-users] Re-2: GCC not found Error SCONS 3.1.2 (13. März
> 2020, 18:18)
> Von: Mats Wichmann <mats at wichmann.us>
> An: scons-users at scons.org <scons-users at scons.org>
>
> > On 3/12/20 8:50 AM, Paul Rötzer wrote:
> > 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.
>
>
> > well, obviously that "shouldn't fail" since the same pathname component
> is
> > present in both versions.
>
> There's now a mingw platform module - don't know
> > if that existed in
> 3.0.0, would have to do some prospecting. It defines
>
> > MINGW_DEFAULT_PATHS, which is a lot shorter than mingw_paths in the tool
>
> > module. I wonder if that's in play somehow?
>
> if sys.platform == 'win32':
>
> > MINGW_DEFAULT_PATHS = [
> r'C:\msys64',
> r'C:\msys'
> ]
>
>
>
>
> > _______________________________________________
> 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
More information about the Scons-users
mailing list