public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* backtrace-supported.h not found during build
@ 2022-01-17 18:54 SAIFI
  2022-01-17 21:09 ` Jonathan Wakely
  0 siblings, 1 reply; 4+ messages in thread
From: SAIFI @ 2022-01-17 18:54 UTC (permalink / raw)
  To: gcc-help

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 ?


warm regards
Saifi.


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-01-19 15:01 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-17 18:54 backtrace-supported.h not found during build SAIFI
2022-01-17 21:09 ` Jonathan Wakely
2022-01-17 21:41   ` Jonathan Wakely
2022-01-19 15:01     ` Jonathan Wakely

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).