public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "aldyh at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/103226] [12 Regression] Recent change to copy-headers causes execution failure for gcc.dg/torture/pr80974 Date: Wed, 17 Nov 2021 11:14:36 +0000 [thread overview] Message-ID: <bug-103226-4-TkffBRaI10@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-103226-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103226 --- Comment #4 from Aldy Hernandez <aldyh at gcc dot gnu.org> --- It's been a LONG time since I had to do a sim build, so please bear with me. I have combined tree with gcc, binutils-gdb, dejagnu, newlib-cygwin: ~/src/combined/configure --target=bfin-elf --enable-languages=c,c++ --with-newlib --prefix=`pwd`/install C++ won't build: In file included from /home/aldyh/bld/bfin-elf/bfin-elf/libstdc++-v3/include/bits/locale_facets.h:41, from /home/aldyh/bld/bfin-elf/bfin-elf/libstdc++-v3/include/bits/basic_ios.h:37, from /home/aldyh/bld/bfin-elf/bfin-elf/libstdc++-v3/include/ios:44, from /home/aldyh/bld/bfin-elf/bfin-elf/libstdc++-v3/include/istream:38, from /home/aldyh/bld/bfin-elf/bfin-elf/libstdc++-v3/include/sstream:38, from /home/aldyh/bld/bfin-elf/bfin-elf/libstdc++-v3/include/complex:45, from /home/aldyh/bld/bfin-elf/bfin-elf/libstdc++-v3/include/ccomplex:39, from /home/aldyh/src/combined/libstdc++-v3/include/precompiled/stdc++.h:54: /home/aldyh/bld/bfin-elf/bfin-elf/libstdc++-v3/include/bfin-elf/bits/ctype_base.h:44:35: error: ‘_U’ was not declared in this scope 44 | static const mask upper = _U; | ^~ ... ... So I tried --enable-languages=c which builds, but in-tree testing doesn't work: (DEJAGNU is set to the provided baseboard file.) make check-gcc RUNTESTFLAGS="--target_board=basic-sim dg.exp=pr80974.c" bf532-none/mid-shared-library/mleaf-id-shared-library;@mcpu=bf532-none@mid-shared-library@mleaf-id-shared-library Executing on host: /opt/notnfs/aldyh/bld/bfin-elf/gcc/xgcc -B/opt/notnfs/aldyh/bld/bfin-elf/gcc/ -fdiagnostics-plain-output -flto -c -o lto3625067.o lto3625067.c (timeout = 300) spawn -ignore SIGHUP /opt/notnfs/aldyh/bld/bfin-elf/gcc/xgcc -B/opt/notnfs/aldyh/bld/bfin-elf/gcc/ -fdiagnostics-plain-output -flto -c -o lto3625067.o lto3625067.c Executing on host: /opt/notnfs/aldyh/bld/bfin-elf/gcc/xgcc -B/opt/notnfs/aldyh/bld/bfin-elf/gcc/ linker_plugin3625067.c -fdiagnostics-plain-output -flto -fuse-linker-plugin -lm -o linker_plugin3625067.exe (timeout = 300) spawn -ignore SIGHUP /opt/notnfs/aldyh/bld/bfin-elf/gcc/xgcc -B/opt/notnfs/aldyh/bld/bfin-elf/gcc/ linker_plugin3625067.c -fdiagnostics-plain-output -flto -fuse-linker-plugin -lm -o linker_plugin3625067.exe xgcc: error: no processor type specified for linking xgcc: fatal error: error in arguments to spec function 'pass-through-libs' compilation terminated. compiler exited with status 1 Executing on host: /opt/notnfs/aldyh/bld/bfin-elf/gcc/xgcc -B/opt/notnfs/aldyh/bld/bfin-elf/gcc/ offload_gcn3625067.c -fdiagnostics-plain-output -foffload=amdgcn-amdhsa -S -o offload_gcn3625067.s (timeout = 300) spawn -ignore SIGHUP /opt/notnfs/aldyh/bld/bfin-elf/gcc/xgcc -B/opt/notnfs/aldyh/bld/bfin-elf/gcc/ offload_gcn3625067.c -fdiagnostics-plain-output -foffload=amdgcn-amdhsa -S -o offload_gcn3625067.s xgcc: error: GCC is not configured to support 'amdgcn-amdhsa' as offload target xgcc: note: no offloading targets configured compiler exited with status 1 I also tried --target_board=[bfin,bfin-elf,sim,bfin-sim], but those give: ERROR: couldn't load description file for bfin-sim With an installed toolchain, I get a similar linking problem: $ ./bfin-elf-gcc hello.c -w bfin-elf-gcc: error: no processor type specified for linking bfin-elf-gcc: fatal error: error in arguments to spec function ‘pass-through-libs’ compilation terminated. I tried a few random cpu's from config/bfin/elf.h: ./bfin-elf-gcc -mcpu=bf549 hello.c -w /opt/notnfs/aldyh/bld/bfin-elf/install/bin/../lib/gcc/bfin-elf/12.0.0/../../../../bfin-elf/bin/ld: /opt/notnfs/aldyh/bld/bfin-elf/install/bin/../lib/gcc/bfin-elf/12.0.0/../../../../bfin-elf/ lib/libc.a(lib_a-closer.o): in function `close_r': /home/aldyh/src/combined/newlib/libc/reent/closer.c:47: warning: _close is not implemented and will always fail /opt/notnfs/aldyh/bld/bfin-elf/install/bin/../lib/gcc/bfin-elf/12.0.0/../../../../bfin-elf/bin/ld: /opt/notnfs/aldyh/bld/bfin-elf/install/bin/../lib/gcc/bfin-elf/12.0.0/../../../../bfin-elf/ lib/libc.a(lib_a-fstatr.o): in function `fstat_r': etc etc. Hmmm, maybe I should just look at the *.optimized dump and see what's up ;-).
next prev parent reply other threads:[~2021-11-17 11:14 UTC|newest] Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-11-13 20:39 [Bug tree-optimization/103226] New: " law at gcc dot gnu.org 2021-11-14 10:59 ` [Bug tree-optimization/103226] " aldyh at gcc dot gnu.org 2021-11-15 9:03 ` rguenth at gcc dot gnu.org 2021-11-16 2:30 ` law at gcc dot gnu.org 2021-11-17 11:14 ` aldyh at gcc dot gnu.org [this message] 2021-11-17 11:32 ` aldyh at gcc dot gnu.org 2021-11-17 15:00 ` tnfchris at gcc dot gnu.org 2021-11-17 15:02 ` tnfchris at gcc dot gnu.org 2021-11-17 15:53 ` aldyh at gcc dot gnu.org 2021-11-17 16:09 ` tnfchris at gcc dot gnu.org 2021-11-17 16:28 ` law at gcc dot gnu.org 2021-11-17 16:29 ` law at gcc dot gnu.org 2021-11-17 16:31 ` aldyh at gcc dot gnu.org 2021-11-17 17:18 ` aldyh at gcc dot gnu.org 2021-11-17 17:54 ` tnfchris at gcc dot gnu.org 2021-11-17 18:31 ` law at gcc dot gnu.org 2021-11-17 18:43 ` aldyh at gcc dot gnu.org 2021-11-17 19:26 ` aldyh at gcc dot gnu.org 2021-11-17 20:02 ` aldyh at gcc dot gnu.org 2021-11-18 13:28 ` aldyh at gcc dot gnu.org 2021-11-20 7:10 ` law at gcc dot gnu.org 2021-11-20 7:23 ` aldyh at gcc dot gnu.org 2021-11-20 16:30 ` cvs-commit at gcc dot gnu.org 2021-11-20 16:31 ` law at gcc dot gnu.org 2021-12-02 14:55 ` hp at gcc dot gnu.org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-103226-4-TkffBRaI10@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).