From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ed1-x52b.google.com (mail-ed1-x52b.google.com [IPv6:2a00:1450:4864:20::52b]) by sourceware.org (Postfix) with ESMTPS id 287593858C50 for ; Sun, 15 May 2022 23:37:20 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 287593858C50 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ed1-x52b.google.com with SMTP id c12so2497621eds.10 for ; Sun, 15 May 2022 16:37:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :content-transfer-encoding; bh=mHqLp2nQka6m8orxiTbwfmmx/Ah8n/ul0+Yr0GAQK7o=; b=B49HzgxQv65IISZizXMLJziSl6NLCrqxblk2RH735hLS5AxMEnY6wL8njvD0qshtT0 xiXa9b5423QWJ3uJivKhHXS32gWAw8tAPDIw7/MyMuCsWSwVpP477yLfyfrxyxS9C/M2 pFI8i5JCzQKZOhj5YY3+sa51oNEhrLtwUawFqqC4i2VCl3+hWMwTKGbhP0rjTWhdo6Wf YQTlOGuFKiPeSZDA5z0jqQmMdKlUz7Ay7U96NgYycmsKTJZ+WyTLaI7EMPCkxIJ26AjH b/SBarizOdL7cqzN1DfhS1oNkbWm9tOqqjpesM3Yibl4366bY8EwAAXlgZiiNfgpMZlc u1Cg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:content-transfer-encoding; bh=mHqLp2nQka6m8orxiTbwfmmx/Ah8n/ul0+Yr0GAQK7o=; b=RCsuAjYyeZLohlelyWD98gY7+qZ7ireR7WCDuJEDBPYG8VDxj881031U8h2sEgTQTY dfUUOrXlEgmo0dZxv602VcJh3HpHm5wRwkQikZJrLlLDW+4UfTzglroWQQarElD/+zC8 Bv/y2ajqC/ySax1eMEhc5WvA6msN9OrtMKC61pOD5RQ/yuJ4R3WJK8kYHTkDUy6KJomf 1RpNKAqL9NjDPq/ynNd40JwT1A901MbqDVzJONP6B4m2L53mhzHc4r0TS0CtPzkt17kr pkO7rA6EAhWb2GzmyoembPcU2K7g9eyhHhG9qmphYnOXOXPrMcnAwkr3s8xGAS9k0lrV rgqw== X-Gm-Message-State: AOAM533VL3kXmn3gCnGV+ihY76lzSX5sJuUsmTok0m1/ABoPe1Uvryrb 34ElZ1FiCRqyvHyPMUWCj/P2s0B1LhvnKqaH+1axdTnPcl8= X-Google-Smtp-Source: ABdhPJzX8uX8qGZP3s0GErF+Dl+a1j3NfjoqIz/yCocgPRwCj5G6tBUex/br6qadGcckJVhgWkY34PjlLYkm48mbMhU= X-Received: by 2002:a05:6402:1a26:b0:425:d3cf:d7f0 with SMTP id be6-20020a0564021a2600b00425d3cfd7f0mr10511813edb.251.1652657838502; Sun, 15 May 2022 16:37:18 -0700 (PDT) MIME-Version: 1.0 References: <5bd6ca93-298f-c7a8-224a-78655b111c70@SystematicSw.ab.ca> In-Reply-To: <5bd6ca93-298f-c7a8-224a-78655b111c70@SystematicSw.ab.ca> From: Doug Henderson Date: Sun, 15 May 2022 17:37:06 -0600 Message-ID: Subject: Re: scons v4.3.0-1 outputs nothing on cygwin v2. 3.1 To: cygwin Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=1.4 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, FROM_LOCAL_NOVOWEL, HK_RANDOM_ENVFROM, HK_RANDOM_FROM, KAM_NUMSUBJECT, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Level: * X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: cygwin@cygwin.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 15 May 2022 23:37:22 -0000 Please show us the results of the following two commands: $ which -a alternatives $ ls -glo $( which -a alternatives ) Please note that /usr/sbin/alternatives must be executed in an elevated shell. The folder containing it is not normally included in the path for a non-elevated shell. It is considered to be a command used by the administrator rather than the user. The easiest way to do this is to right click on the "Cygwin Terminal" icon on the desktop or a shortcut to it in the start menu and click on Run as administrator. Then execute $ /usr/sbin/alternatives --verbose --auto python If you see this message "failed to replace /var/lib/alternatives/python with /var/lib/alternatives/python.new: Permission denied", you are not running in an elevated shell. If you see this message "link points to no alternative -- setting mode to manual", please run this command $ /usr/sbin/alternatives --test --auto python which will show which link is missing, as there will be a blank line after the link name instead of a priority. This may not be a serious problem, but I am investigating why it occurs. BTW, this is the output on my system: $ /usr/sbin/alternatives --display python python - status is manual. link currently points to /usr/bin/python3.9.exe /usr/bin/python2.7 - priority 27 /usr/bin/python3.8 - priority 38 /usr/bin/python3.6 - priority 36 /usr/bin/python3.7 - priority 37 /usr/bin/python3.9 - priority 39 Current `best' version is /usr/bin/python3.9. With this setup, using "python" runs "version 3.9", "python2" runs "version 2.7", "python3.x" runs the corresponding "version 3.x". "python3" gives "-bash: python3: command not found". HTH Doug (alternatives maintainer) On Sun, May 15, 2022 at 2:44 PM Brian Inglis wrote: > > On 2022-05-15 11:10, Martin Ortuno wrote: > > Here the information you requested: > > $ ls -glo /usr/bin/python > > lrwxrwxrwx 1 13 Jun 3 2015 /usr/bin/python -> python2.7.exe > > $ alternatives --display python > > python - status is auto. > > link currently points to /usr/bin/python3.9 > > /usr/bin/python3.9 - priority 39 > > Current `best' version is /usr/bin/python3.9. This is the expected display when you have only python3.9 installed. - Doug > > That makes no sense, your system is messed up: > > "link currently points to /usr/bin/python3.9" > > implies "/usr/bin/python -> python3.9" > > but you have "/usr/bin/python -> python2.7.exe"! > > To try to fix that, please try running: > > $ alternatives --verbose --auto python > > and please report the output and where the links now go. > > > > El vie., 13 de mayo de 2022 5:47 p. m., Brian Inglis < > > Brian.Inglis@systematicsw.ab.ca> escribi=C3=B3: > > > >> On 2022-05-13 16:16, Martin Ortuno wrote: > >>> El vie., 13 de mayo de 2022 5:12 p. m., William Deegan escribi=C3=B3: > >>>> On Fri, May 13, 2022 at 1:41 PM Martin Ortuno wrote: > >>>>> El vie., 13 de mayo de 2022 3:30 p. m., Martin Ortuno escribi=C3=B3= : > >>>>>> El vie., 13 de mayo de 2022 11:51 a. m., William Deegan escribi=C3= =B3: > >> >>>>> On Fri, May 13, 2022 at 8:46 AM Martin Ortuno wrote:>>>>>> On = one > >> project we are using cygwin v2.3.1 for 32 bits as a > >> >>>>>> building environment... We are integrating a library that > >> >>>>>> is built scons, I tried to run scons v4.3.0-1 but when I > >> >>>>>> prompt scons on the command line. > >> >>>>>> Scons -v outputs nothing... > >> >>>>>> I would appreciate your support in this matters... > >> > >>>>>>> Are you sure you're running scons from cygwin? > >>>>>>> Which version of python do you have installed? > >> > >>>>>> On the cygwin envuronment i have both python 2.7.10 and python 3.4= .3, > >>>>>> the one which is by default is python 2... > >>>>>> Pretty sure that's the reason why is not working, i think we need > >> python > >>>>>> 3.9 for scons... > >>>>>> The problem now is that i cannot install successfully python 3.9. = I > >>>>>> tried with the setup-x86, just updating python3... However after t= hat > >>>>>> python3 stops working... > >>>>>> I'd appreciate any advice or support... > >> > >>>>> Actually i tried to open python3.9 from windows directly and then = the > >>>>> application crashes saying: > >>>>> "The procedure entry point __locale_ctype_ptr could not be located = in > >> the > >>>>> dynamic link library > >>>>> C:\Path\toCygwin\bin\libpython3.9.dll" > >> > >>>> vi `which scons` > >>>> and see which python it's trying to use. > >>>> (from within your cygwin shell) > >>>> Very surprised you get no output. > >> > >> > I am prompting which scons: > >> > Output: > >> > /bin/scons/ > >> > >> That output makes no sense! > >> Please paste actual commands and outputs from terminal. > >> > >> Might be more useful running: > >> > >> $ ls -glo /usr/bin/python > >> lrwxrwxrwx 1 24 Feb 17 2021 /usr/bin/python -> > >> /etc/alternatives/python > >> $ alternatives --display python > >> python - status is auto. > >> link currently points to /usr/bin/python3.9 > >> /usr/bin/python2.7 - priority 27 > >> /usr/bin/python3.8 - priority 38 > >> /usr/bin/python3.7 - priority 37 > >> /usr/bin/python3.6 - priority 36 > >> /usr/bin/python3.9 - priority 39 > >> Current `best' version is /usr/bin/python3.9. > >> $ cygcheck -c scons > >> Cygwin Package Information > >> Package Version Status > >> scons ... OK > >> $ head -n1 /usr/bin/scons > >> #!/usr/bin/python... > > -- > Problem reports: https://cygwin.com/problems.html > FAQ: https://cygwin.com/faq/ > Documentation: https://cygwin.com/docs.html > Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple --=20 Doug Henderson, Calgary, Alberta, Canada - from gmail.com