From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm1-x332.google.com (mail-wm1-x332.google.com [IPv6:2a00:1450:4864:20::332]) by sourceware.org (Postfix) with ESMTPS id 8D9D93858035 for ; Mon, 17 Jan 2022 21:41:40 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 8D9D93858035 Received: by mail-wm1-x332.google.com with SMTP id q9-20020a7bce89000000b00349e697f2fbso1103029wmj.0 for ; Mon, 17 Jan 2022 13:41:40 -0800 (PST) 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:cc; bh=M0tERMaklRvUgZ1XRVpQleTuwboUtL7NULVMgVfG9Wg=; b=V3wZ5HMbYOTDeKV4A088R10BKGXeietOtPLoPQxU3MJsx/fY0cJTRiJ32dGHYGRcj+ 1KErUa+mepQ4M7zxy+e9zTx1WOyF1doYE1Xv7V2e9ztn4A1YVHVBr1RkAg3OHL7BGvFv Wugbtw/A2NFbbvG4J1htWmizpI9IQD0Jsv/QNxnPv0LX6NN/1RXocdgpKxRwRhEhNLlg kK/SwiZE0/7f3H33kxSMnSwh0JuM7AhMYXNeUQ7wC3DJNs3KXYVzPXXrII57hM3xe91W M7HbTzEBsFGFxPuWH2HMJITRwdoxeXP3Vv5FR5Z4G2h0j+iHUi7RUPDJzVG9sSkC+DAb 8ffg== X-Gm-Message-State: AOAM532yh2oWG3nc+kcGpa03AR4z+IT91EygnCF91Xc4iUfmi2mGGDnA ocIRo3TWYqaT28QmTWT5zpTr2vp2w6zWSjVXPCU= X-Google-Smtp-Source: ABdhPJytvQIorDC78shdhFjY52lyb+4TMBibPEmua/ZNLTYvQW+SFnWz8V4QYwx/2KEQ+dZiZh13pkKnDyOzVPiSSZM= X-Received: by 2002:a1c:a786:: with SMTP id q128mr451585wme.176.1642455699593; Mon, 17 Jan 2022 13:41:39 -0800 (PST) MIME-Version: 1.0 References: <82b5f2b1-69fd-c010-e282-7524e8e9c378@strikr.io> In-Reply-To: From: Jonathan Wakely Date: Mon, 17 Jan 2022 21:41:28 +0000 Message-ID: Subject: Re: backtrace-supported.h not found during build To: SAIFI Cc: gcc-help Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-0.8 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) 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: Mon, 17 Jan 2022 21:41:42 -0000 On Mon, 17 Jan 2022 at 21:09, Jonathan Wakely wrote: > > On Mon, 17 Jan 2022 at 18:54, SAIFI wrote: > > > > Hi: > > > > an out-of-tree build of gcc (git:main) was configured with the following option. > > > > --enable-libstdcxx-backtrace=yes > > > > the source tree build went fine, however when it came to building 'libbacktrace' the compilation error'd out as seen below. > > > > Making all in libbacktrace > > make[6]: Entering directory '/strikr/infra/build/gcc/x86_64-pc-linux-gnu/libstdc++-v3/src/debug/libbacktrace' > > /bin/sh ../../../libtool --tag=CC --mode=compile /strikr/infra/build/gcc/./gcc/xgcc -B/strikr/infra/build/gcc/./gcc/ -B/opt/gcc/x86_\ > > 64-pc-linux-gnu/bin/ -B/opt/gcc/x86_64-pc-linux-gnu/lib/ -isystem /opt/gcc/x86_64-pc-linux-gnu/include -isystem /opt/gcc/x86_64-pc-linu\ > > x-gnu/sys-include -fchecking=1 -DHAVE_CONFIG_H -I. -I/strikr/src/gcc/libstdc++-v3/src/libbacktrace -I../../.. -I /strikr/src/gcc/lib\ > > stdc++-v3/../include -I /strikr/src/gcc/libstdc++-v3/../libgcc -I ../../../libgcc -I .. -I /strikr/src/gcc/libstdc++-v3 -I /strikr/src/\ > > gcc/libstdc++-v3/../libbacktrace -include /strikr/src/gcc/libstdc++-v3/src/libbacktrace/backtrace-rename.h -DHAVE_ATOMIC_FUNCTIONS=1 -D\ > > HAVE_SYNC_FUNCTIONS=1 -DHAVE_FCNTL=1 -DBACKTRACE_ELF_SIZE=64 -W -Wall -Wwrite-strings -Wmissing-format-attribute -Wcast-qual -Werror -\ > > Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wno-unused-but-set-variable -fcf-protection -mshstk -g -O2 -c -o atomic\ > > .lo `test -f '../../../libbacktrace/atomic.c' || echo '/strikr/src/gcc/libstdc++-v3/src/libbacktrace/'`../../../libbacktrace/atomic.c > > libtool: compile: /strikr/infra/build/gcc/./gcc/xgcc -B/strikr/infra/build/gcc/./gcc/ -B/opt/gcc/x86_64-pc-linux-gnu/bin/ -B/opt/gcc/x\ > > 86_64-pc-linux-gnu/lib/ -isystem /opt/gcc/x86_64-pc-linux-gnu/include -isystem /opt/gcc/x86_64-pc-linux-gnu/sys-include -fchecking=1 -D\ > > HAVE_CONFIG_H -I. -I/strikr/src/gcc/libstdc++-v3/src/libbacktrace -I../../.. -I /strikr/src/gcc/libstdc++-v3/../include -I /strikr/src/\ > > gcc/libstdc++-v3/../libgcc -I ../../../libgcc -I .. -I /strikr/src/gcc/libstdc++-v3 -I /strikr/src/gcc/libstdc++-v3/../libbacktrace -in\ > > clude /strikr/src/gcc/libstdc++-v3/src/libbacktrace/backtrace-rename.h -DHAVE_ATOMIC_FUNCTIONS=1 -DHAVE_SYNC_FUNCTIONS=1 -DHAVE_FCNTL=1\ > > -DBACKTRACE_ELF_SIZE=64 -W -Wall -Wwrite-strings -Wmissing-format-attribute -Wcast-qual -Werror -Wstrict-prototypes -Wmissing-prototyp\ > > es -Wold-style-definition -Wno-unused-but-set-variable -fcf-protection -mshstk -g -O2 -c /strikr/src/gcc/libstdc++-v3/src/libbacktrace/\ > > ../../../libbacktrace/atomic.c -fPIC -DPIC -o .libs/atomic.o > > /strikr/src/gcc/libstdc++-v3/src/libbacktrace/../../../libbacktrace/atomic.c:38:10: fatal error: backtrace-supported.h: No such file or\ > > directory > > 38 | #include "backtrace-supported.h" > > | ^~~~~~~~~~~~~~~~~~~~~~~ > > compilation terminated. > > > > However, in the build directory, the header file is seen > > > > f$ find . -iname "backtrace-supported.h" > > ./stage1-libbacktrace/backtrace-supported.h > > ./x86_64-pc-linux-gnu/libstdc++-v3/src/libbacktrace/backtrace-supported.h > > ./prev-libbacktrace/backtrace-supported.h > > ./stage1-x86_64-pc-linux-gnu/libstdc++-v3/src/libbacktrace/backtrace-supported.h > > ./libbacktrace/backtrace-supported.h > > ./prev-x86_64-pc-linux-gnu/libstdc++-v3/src/libbacktrace/backtrace-supported.h > > > > Am I missing something here ? Any pointers ? > > The build output says: > make[6]: Entering directory > '/strikr/infra/build/gcc/x86_64-pc-linux-gnu/libstdc++-v3/src/debug/libbacktrace' > > And the header is not present in that directory. > > It looks like I didn't test the combination of > --enable-libstdcxx-debug and --enable-libstdcxx-backtrace I can reproduce the build failure with this combination. I'll look into it ASAP.