bug-autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[sr #110359] PATH ignored searching for g++


From: anonymous
Subject: [sr #110359] PATH ignored searching for g++
Date: Mon, 2 Nov 2020 08:24:24 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:76.0) Gecko/20100101 Firefox/76.0

URL:
  <https://savannah.gnu.org/support/?110359>

                 Summary: PATH ignored searching for g++
                 Project: Autoconf
            Submitted by: None
            Submitted on: Mon 02 Nov 2020 01:24:22 PM UTC
                Category: None
                Priority: 5 - Normal
                Severity: 3 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: nathan@acm.org
             Open/Closed: Open
         Discussion Lock: Any
        Operating System: GNU/Linux

    _______________________________________________________

Details:

I have built and installed an uptodate g++ in a local directory, and pointed
my PATH at that set of tools.  The system g++ is too old (and no, I can;t
update it).

the autoconf 2.69c beta seems to ignore that and finds the g++ in /bin.

here's the PATH as printed in the config.log


PATH: /data/users/nathans/tools/bin/
PATH: /home/nathans/my/bin/
PATH: /data/users/nathans/tools/bin/
PATH: /usr/local/bin/
PATH: /bin/
PATH: /usr/bin/
PATH: /usr/local/sbin/
PATH: /usr/sbin/
PATH: /usr/facebook/ops/scripts/
PATH: /usr/facebook/scripts/
PATH: /usr/facebook/scripts/db/

Notice that has /data/users/nathans/tools/bin in there twice.  the second one
is from the shell's PATH var:

devvm293:368>echo $PATH
/home/nathans/my/bin:/data/users/nathans/tools/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/usr/facebook/ops/scripts:/usr/facebook/scripts:/usr/facebook/scripts/db

the first is because the configure script is explicitly putting it there (via
a --with-tools= option)


here's what it says of g++

configure:2348: checking for g++
configure:2369: found /bin/g++
configure:2380: result: g++
configure:2407: checking for C++ compiler version
configure:2416: g++ --version >&5
g++ (GCC) 8.3.1 20191121 (Red Hat 8.3.1-5)

Here's my actual g++

devvm293:362>whence -p g++
/data/users/nathans/tools/bin/g++

devvm293:371>g++ --version
g++ (GCC) 10.1.1 20200604


I've not dug further into this.  The project containing all this is
gihub.com/urnathan/joust, I attach the configure.ac and config.m4, shout if
you need more.




    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Mon 02 Nov 2020 01:24:22 PM UTC  Name: configure.ac  Size: 1KiB   By:
None
configure scripts
<http://savannah.gnu.org/support/download.php?file_id=50190>
-------------------------------------------------------
Date: Mon 02 Nov 2020 01:24:22 PM UTC  Name: config.m4  Size: 8KiB   By: None
configure scripts
<http://savannah.gnu.org/support/download.php?file_id=50191>
-------------------------------------------------------
Date: Mon 02 Nov 2020 01:24:22 PM UTC  Name: configure  Size: 139KiB   By:
None
configure scripts
<http://savannah.gnu.org/support/download.php?file_id=50192>

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/support/?110359>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]