Files
poky/meta/recipes-devtools
Alexey Brodkin 8f0c68a7a6 gcc: Apply multilib fix to ARC as well
W/o that hack target GCC assume existence of per-mcpu folders,
which are missing.

In particular G++ failed to find "bits/c++config.h":
------------------>8------------------
 root@hsdk:~# cat test.cc
 #include <cstdlib>

 int myfunc(void)
 {
 }

 root@hsdk:~# g++ -c test.cc -v
 Using built-in specs.
 COLLECT_GCC=g++
 Target: arc-oe-linux
 Configured with: ../../../../../../work-shared/gcc-11.1.0-r0/gcc-11.1.0/configure --build=x86_64-linux --host=arc-oe-linux --target=arc-oe-linux --prefix=/usr --exec_prefix=/usr -x
 Thread model: posix
 Supported LTO compression algorithms: zlib
 gcc version 11.1.1 20210523 (GCC)
 COLLECT_GCC_OPTIONS='-c' '-v' '-shared-libgcc' '-mcpu=hs38_linux'
  /usr/libexec/gcc/arc-oe-linux/11.1.1/cc1plus -quiet -v -imultilib hs38_linux -D_GNU_SOURCE test.cc -quiet -dumpbase test.cc -dumpbase-ext .cc -mcpu=hs38_linux -version -o /tmp/ccs
 GNU C++17 (GCC) version 11.1.1 20210523 (arc-oe-linux)
         compiled by GNU C version 11.1.1 20210523, GMP version 6.2.1, MPFR version 4.1.0, MPC version 1.2.1, isl version none
 GGC heuristics: --param ggc-min-expand=99 --param ggc-min-heapsize=129242
 ignoring nonexistent directory "/usr/lib/gcc/arc-oe-linux/11.1.1/../../../../include/c++/11.1.1/arc-oe-linux/hs38_linux"
 ignoring nonexistent directory "/usr/lib/arc-oe-linux/11.1.1/include"
 ignoring nonexistent directory "/usr/local/include"
 ignoring nonexistent directory "/usr/lib/gcc/arc-oe-linux/11.1.1/../../../../arc-oe-linux/include"
 #include "..." search starts here:
 #include <...> search starts here:
  /usr/lib/gcc/arc-oe-linux/11.1.1/../../../../include/c++/11.1.1
  /usr/lib/gcc/arc-oe-linux/11.1.1/../../../../include/c++/11.1.1/backward
  /usr/lib/gcc/arc-oe-linux/11.1.1/include
  /usr/lib/gcc/arc-oe-linux/11.1.1/include-fixed
  /usr/include
 End of search list.
 GNU C++17 (GCC) version 11.1.1 20210523 (arc-oe-linux)
         compiled by GNU C version 11.1.1 20210523, GMP version 6.2.1, MPFR version 4.1.0, MPC version 1.2.1, isl version none
 GGC heuristics: --param ggc-min-expand=99 --param ggc-min-heapsize=129242
 Compiler executable checksum: 6df2f07a822bfbbb80a61414b712b75d
 In file included from test.cc:1:
 /usr/include/c++/11.1.1/cstdlib:41:10: fatal error: bits/c++config.h: No such file or directory
    41 | #include <bits/c++config.h>
       |          ^~~~~~~~~~~~~~~~~~
 compilation terminated.
------------------>8------------------

Note "ignoring nonexistent directory "/usr/lib/gcc/arc-oe-linux/11.1.1/../../../../include/c++/11.1.1/arc-oe-linux/hs38_linux"
message which is being used by GCC due to the fact of implicit "-mcpu=hs38_linux".

In fact this header "bits/c++config.h" is located in "/usr/lib/gcc/arc-oe-linux/11.1.1/../../../../include/c++/11.1.1/arc-oe-linux"
on target.

(From OE-Core rev: fbdc4422361a520af458468d836a8e4159dc22d6)

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-06-22 15:18:11 +01:00
..
2021-06-17 00:07:05 +01:00
2021-05-11 11:54:26 +01:00
2021-06-06 23:16:51 +01:00
2021-05-09 23:30:16 +01:00
2021-01-20 22:46:18 +00:00
2021-05-21 15:18:23 +01:00
2021-05-09 23:30:15 +01:00
2021-05-09 23:30:15 +01:00
2021-06-06 23:16:51 +01:00
2021-06-17 00:07:05 +01:00
2021-04-18 11:37:25 +01:00
2021-05-28 06:41:03 +01:00
2021-06-17 13:42:31 +01:00
2021-06-12 22:54:14 +01:00
2021-06-12 22:54:14 +01:00
2020-07-27 19:58:09 +01:00
2021-06-17 22:20:44 +01:00
2021-04-23 10:12:10 +01:00
2021-06-17 00:07:05 +01:00
2020-03-08 08:21:11 +00:00
2021-06-17 00:07:05 +01:00
2021-05-25 22:36:08 +01:00
2021-06-06 23:16:51 +01:00
2021-01-01 23:15:13 +00:00
2021-05-02 23:20:12 +01:00
2021-06-06 23:16:51 +01:00
2021-06-06 23:16:51 +01:00
2021-05-09 23:30:16 +01:00
2021-05-31 14:31:01 +01:00
2021-04-26 14:14:42 +01:00
2021-04-18 11:37:25 +01:00
2021-05-06 08:41:26 +01:00
2021-05-11 11:54:26 +01:00
2021-05-25 22:36:08 +01:00
2021-06-11 23:50:59 +01:00