From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lf1-x144.google.com (mail-lf1-x144.google.com [IPv6:2a00:1450:4864:20::144]) by sourceware.org (Postfix) with ESMTPS id E0AF3386F830 for ; Thu, 7 May 2020 19:37:28 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org E0AF3386F830 Received: by mail-lf1-x144.google.com with SMTP id a9so5497409lfb.8 for ; Thu, 07 May 2020 12:37:28 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=Zef8pLBFE1Acdaspw9H+o5dfslIH1l4JXUR39HUpMJk=; b=TrwzXSWnjStWiXVYrDhS9JMAhcVcm7TtYUXxmefEgrW7xd9A15SS1ctrAo6G3Py9O2 5qc2SjBCre55/ks154/258KbNnCzUdJuQNgyMqaXANRZiCiLUmPMEcO3Mm+YLgqMOS+e LF3ArGEfKg3ZFeBi/Yjl33niB3OMFCefIqOnizx6VXptC1Ap2fpctA+yG4K3XJfOXvrP CwVJOB04TAQwyJM1tzBOI2t0U6s60Gmh396fimCW8J3nyro/tSHNuTpHw/CJCTKv0InH OMUG9ILpfjpNzFs6gkADXplqBJsudwRASAY8UqvuWQkZmBdJ+ZuXxy7xFrQ8sACYzpJW lY1Q== X-Gm-Message-State: AGi0PubCIaMXAtGqxDcLeDomKOtbT2RBPGvZdfsdsnu7Fzzz7BZFrKLw qYPuDhQLle+vFL3XGNvTwer7uTENU5EaRaGpW3c= X-Google-Smtp-Source: APiQypJqUFHfx7sv2CCsqZ5BA53t2O+ApDNIrZwnoanhBHlX/af6a4L6nRxp3lL7uoqDFEKrH1QbgyYcGwBcLZhafus= X-Received: by 2002:a05:6512:202:: with SMTP id a2mr9817165lfo.42.1588880247382; Thu, 07 May 2020 12:37:27 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a19:4cc6:0:0:0:0:0 with HTTP; Thu, 7 May 2020 12:37:26 -0700 (PDT) In-Reply-To: References: From: xaxazak xak Date: Fri, 8 May 2020 07:37:26 +1200 Message-ID: Subject: Re: Building a compiler that honors symbolic links. To: Jonathan Wakely Cc: gcc-help Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.0 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, KAM_ASCII_DIVIDERS, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=no autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: gcc-help@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-help mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 May 2020 19:37:30 -0000 Here's the requested and useful info - full commands and outputs below in case the quick info misses anything. The setup is a bit convoluted sorry, it's a cheap initial attempt at a script to build multiple versions of gcc and llvm. I'm using GIT instead of SVN now, but the issue is the same. QUICK INFO =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D build CWD: "/make/tool/gcc/build/gcc-unk-2020-05-08-06-10-20" build configuration: "/make/tool/gcc/git/gcc-unk-2020-05-08-06-10-20/configure --disable-bootstrap --disable-multilib --enable-languages=3Dc++ --prefix=3D/make/tool/gcc/use/unk-2020-05-08-06-10-20 --program-suffix=3D-unk" -v (full output below) has one line showing the issue: "COLLECT_LTO_WRAPPER=3D/home/xaxazak/Fast/make/tool/gcc/use/unk-2020-05-08-= 06-10-20 bin/../libexec/gcc/x86_64-pc-linux-gnu/11.0.0/lto-wrapper" NOTE: "/make" is the symlink for to "/home/xaxazak/Fast/make" that I don't want expanded output of "g++-unk -E -x c++ - -v < /dev/null" contains many lines using expanded path, eg: " #include <...> search starts here: /home/xaxazak/Fast/make/tool/gcc/use/unk-2020-05-08-06-10-20/bin/../lib/gc= c/x86_64-pc-linux-gnu/11.0.0/../../../../include/c++/11.0.0 " =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D I note that the output from make ends with lines like: "make[4]: Leaving directory '/home/xaxazak/Fast/make/tool/gcc/build/gcc-unk-2020-05-08-06-10-20/x86_64-= pc-linux-gnu/libatomic" So perhaps the issue is that the symlinks are being expanded within make? FULL INSTALL & COMMAND DETAILS BELOW SETUP =3D=3D=3D=3D=3D git clone git://gcc.gnu.org/git/gcc.git /make/tool/gcc/git/gcc mv /make/tool/gcc/git/gcc /make/tool/gcc/git/gcc-unk-2020-05-08-06-10-20 mkdir /make/tool/gcc/build/gcc-unk-2020-05-08-06-10-20 =3D=3D=3D=3D=3D BUILD =3D=3D=3D=3D=3D cd /make/tool/gcc/build/gcc-unk-2020-05-08-06-10-20 /make/tool/gcc/git/gcc-unk-2020-05-08-06-10-20/configure --disable-bootstrap --disable-multilib --enable-languages=3Dc++ --prefix=3D/make/tool/gcc/use/unk-2020-05-08-06-10-20 --program-suffix=3D-unk make =3D=3D=3D=3D=3D /make/tool/gcc/use/unk-2020-05-08-06-10-20/bin/g++-unk -v =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D Using built-in specs. COLLECT_GCC=3D/make/tool/gcc/use/unk-2020-05-08-06-10-20/bin/g++-unk COLLECT_LTO_WRAPPER=3D/home/xaxazak/Fast/make/tool/gcc/use/unk-2020-05-08-0= 6-10-20/bin/../libexec/gcc/x86_64-pc-linux-gnu/11.0.0/lto-wrapper Target: x86_64-pc-linux-gnu Configured with: /make/tool/base/gcc/git/gcc-unk-2020-05-08-06-10-20/configure --disable-bootstrap --disable-multilib --enable-languages=3Dc++ --prefix=3D/make/tool/gcc/use/unk-2020-05-08-06-10-20 --program-suffix=3D-unk Thread model: posix Supported LTO compression algorithms: zlib gcc version 11.0.0 20200507 (experimental) (GCC) =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D /make/tool/gcc/use/unk-2020-05-08-06-10-20/bin/g++-unk -E -x c++ - -v < /dev/null =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D Using built-in specs. COLLECT_GCC=3D/make/tool/gcc/use/unk-2020-05-08-06-10-20/bin/g++-unk Target: x86_64-pc-linux-gnu Configured with: /make/tool/base/gcc/git/gcc-unk-2020-05-08-06-10-20/configure --disable-bootstrap --disable-multilib --enable-languages=3Dc++ --prefix=3D/make/tool/gcc/use/unk-2020-05-08-06-10-20 --program-suffix=3D-unk Thread model: posix Supported LTO compression algorithms: zlib gcc version 11.0.0 20200507 (experimental) (GCC) COLLECT_GCC_OPTIONS=3D'-E' '-v' '-shared-libgcc' '-mtune=3Dgeneric' '-march= =3Dx86-64' /home/xaxazak/Fast/make/tool/gcc/use/unk-2020-05-08-06-10-20/bin/../libexe= c/gcc/x86_64-pc-linux-gnu/11.0.0/cc1plus -E -quiet -v -imultiarch x86_64-linux-gnu -iprefix /home/xaxazak/Fast/make/tool/gcc/use/unk-2020-05-08-06-10-20/bin/../lib/gcc= /x86_64-pc-linux-gnu/11.0.0/ -D_GNU_SOURCE - -mtune=3Dgeneric -march=3Dx86-64 ignoring nonexistent directory "/home/xaxazak/Fast/make/tool/gcc/use/unk-2020-05-08-06-10-20/bin/../lib/gc= c/x86_64-pc-linux-gnu/11.0.0/../../../../x86_64-pc-linux-gnu/include" ignoring duplicate directory "/home/xaxazak/Fast/make/tool/gcc/use/unk-2020-05-08-06-10-20/bin/../lib/gc= c/../../lib/gcc/x86_64-pc-linux-gnu/11.0.0/../../../../include/c++/11.0.0" ignoring duplicate directory "/home/xaxazak/Fast/make/tool/gcc/use/unk-2020-05-08-06-10-20/bin/../lib/gc= c/../../lib/gcc/x86_64-pc-linux-gnu/11.0.0/../../../../include/c++/11.0.0/x= 86_64-pc-linux-gnu" ignoring duplicate directory "/home/xaxazak/Fast/make/tool/gcc/use/unk-2020-05-08-06-10-20/bin/../lib/gc= c/../../lib/gcc/x86_64-pc-linux-gnu/11.0.0/../../../../include/c++/11.0.0/b= ackward" ignoring duplicate directory "/home/xaxazak/Fast/make/tool/gcc/use/unk-2020-05-08-06-10-20/bin/../lib/gc= c/../../lib/gcc/x86_64-pc-linux-gnu/11.0.0/include" ignoring nonexistent directory "/usr/local/include/x86_64-linux-gnu" ignoring duplicate directory "/home/xaxazak/Fast/make/tool/gcc/use/unk-2020-05-08-06-10-20/bin/../lib/gc= c/../../lib/gcc/x86_64-pc-linux-gnu/11.0.0/include-fixed" ignoring nonexistent directory "/home/xaxazak/Fast/make/tool/gcc/use/unk-2020-05-08-06-10-20/bin/../lib/gc= c/../../lib/gcc/x86_64-pc-linux-gnu/11.0.0/../../../../x86_64-pc-linux-gnu/= include" #include "..." search starts here: #include <...> search starts here: /home/xaxazak/Fast/make/tool/gcc/use/unk-2020-05-08-06-10-20/bin/../lib/gc= c/x86_64-pc-linux-gnu/11.0.0/../../../../include/c++/11.0.0 /home/xaxazak/Fast/make/tool/gcc/use/unk-2020-05-08-06-10-20/bin/../lib/gc= c/x86_64-pc-linux-gnu/11.0.0/../../../../include/c++/11.0.0/x86_64-pc-linux= -gnu /home/xaxazak/Fast/make/tool/gcc/use/unk-2020-05-08-06-10-20/bin/../lib/gc= c/x86_64-pc-linux-gnu/11.0.0/../../../../include/c++/11.0.0/backward /home/xaxazak/Fast/make/tool/gcc/use/unk-2020-05-08-06-10-20/bin/../lib/gc= c/x86_64-pc-linux-gnu/11.0.0/include /home/xaxazak/Fast/make/tool/gcc/use/unk-2020-05-08-06-10-20/bin/../lib/gc= c/x86_64-pc-linux-gnu/11.0.0/include-fixed /usr/local/include /home/xaxazak/Fast/make/tool/gcc/use/unk-2020-05-08-06-10-20/bin/../lib/gc= c/../../include /usr/include/x86_64-linux-gnu /usr/include End of search list. # 1 "" # 1 "" # 1 "" # 1 "/usr/include/stdc-predef.h" 1 3 4 # 1 "" 2 # 1 "" COMPILER_PATH=3D/home/xaxazak/Fast/make/tool/gcc/use/unk-2020-05-08-06-10-2= 0/bin/../libexec/gcc/x86_64-pc-linux-gnu/11.0.0/:/home/xaxazak/Fast/make/to= ol/gcc/use/unk-2020-05-08-06-10-20/bin/../libexec/gcc/ LIBRARY_PATH=3D/home/xaxazak/Fast/make/tool/gcc/use/unk-2020-05-08-06-10-20= /bin/../lib/gcc/x86_64-pc-linux-gnu/11.0.0/:/home/xaxazak/Fast/make/tool/gc= c/use/unk-2020-05-08-06-10-20/bin/../lib/gcc/:/home/xaxazak/Fast/make/tool/= gcc/use/unk-2020-05-08-06-10-20/bin/../lib/gcc/x86_64-pc-linux-gnu/11.0.0/.= ./../../../lib64/:/lib/x86_64-linux-gnu/:/lib/../lib64/:/usr/lib/x86_64-lin= ux-gnu/:/usr/lib/../lib64/:/home/xaxazak/Fast/make/tool/gcc/use/unk-2020-05= -08-06-10-20/bin/../lib/gcc/x86_64-pc-linux-gnu/11.0.0/../../../:/lib/:/usr= /lib/ COLLECT_GCC_OPTIONS=3D'-E' '-v' '-shared-libgcc' '-mtune=3Dgeneric' '-march= =3Dx86-64' =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D