On 2024-09-26 18:41, Andrew Pinski wrote:
On Thu, Sep 26, 2024 at 10:28 AM Andrew Pinski <pins...@gmail.com> wrote:

On Thu, Sep 26, 2024 at 10:15 AM Matthieu Longo <matthieu.lo...@arm.com> wrote:

A previous patch ([1]) introduced a build regression on aarch64-none-elf
target. The changes were primarilly tested on aarch64-unknown-linux-gnu,
so the issue was missed during development.
The includes are slighly different between the two targets, and due to some
include rules ([2]), "aarch64-unwind-def.h" was not found.

[1]: 
https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=bdf41d627c13bc5f0dc676991f4513daa9d9ae36

[2]: https://gcc.gnu.org/onlinedocs/cpp/Include-Syntax.html
include "file"
...  It searches for a file named file first in the directory
containing the current file, ...

Can you provide more information on this because I am not sure this is
the right fix.
aarch64-unwind.h and aarch64-unwind-def.h are in the same directory so
an include from aarch64-unwind.h should find aarch64-unwind-def.h that
is in the same directory.
Maybe post what strace shows to see what files are being looked for.

Oh looking into the issue some more, aarch64-unwind.h gets linked to
md-unwind-support.h in the build directory and that is used.
I see there was a new makefile target added for md-unwind-def.h. Maybe
this should be including md-unwind-def.h instead of
aarch64-unwind-def.h.

Thanks,
Andrew Pinski


I attached the trace logs for the failure case (aarch64-none-elf).

In my understanding, what happens here is the following:

1. Symbolic links in <build-dir>/<target>/libgcc:

 a. for aarch64-none-elf:

md-unwind-def.h -> <src-dir>/libgcc/config/aarch64/aarch64-unwind-def.h
md-unwind-support.h -> <src-dir>/libgcc/config/aarch64/aarch64-unwind.h

 b. for aarch64-unknown-linux-gnu:

md-unwind-def.h -> <src-dir>/libgcc/config/aarch64/aarch64-unwind-def.h
md-unwind-support.h -> <src-dir>/libgcc/config/aarch64/linux-unwind.h

2. Includes sequence

Note: "->" means "#include "the_file""

 a. for aarch64-none-elf:

unwind-dw2.c
* -> unwind-dw2.h -> md-unwind-def.h => symbolic link to config/aarch64/aarch64-unwind-def.h * -> md-unwind-support.h => symbolic link to config/aarch64/aarch-unwind.h -> aarch64-unwind-def.h

 b. for aarch64-unknown-linux-gnu:

unwind-dw2.c
* -> unwind-dw2.h -> md-unwind-def.h => symbolic link to config/aarch64/aarch64-unwind-def.h * -> md-unwind-support.h => symbolic link to config/aarch64/linux-unwind.h -> config/aarch64/aarch64-unwind.h -> aarch64-unwind-def.h

3. My understanding

In the case 2.b, md-unwind-support.h points to config/aarch64/linux-unwind.h, which then includes config/aarch64/aarch64-unwind.h
According to [1]
> include "file"
> ...  It searches for a file named file first in the directory
> containing the current file, ...
This means that once config/aarch64/aarch64-unwind.h is found, the compiler searches for aarch64-unwind-def.h in the same directory as aarch64-unwind.h (i.e. config/aarch64/), hence it finds the file.

In the case 2.a, md-unwind-support.h points to config/aarch64/aarch64-unwind.h, which then includes aarch64-unwind-def.h. However, in this case, the current file directory is not config/aarch64/, but <build-dir>/<target>/libgcc (the directory of the symlink). That's why aarch64-unwind-def.h cannot be found.

4. The fix

The fix I proposed provides the full path to aarch64-unwind-def.h, as it is done in config/aarch64/linux-unwind.h for config/aarch64/aarch64-unwind.h. Including md-unwind-def.h instead of aarch64-unwind-def.h in config/aarch64/aarch64-unwind.h should work, but it makes more sense from my point of view to include the target file instead.

Thanks,
Matthieu.

[1]: https://gcc.gnu.org/onlinedocs/cpp/Include-Syntax.html


libgcc/ChangeLog:

     * config/aarch64/aarch64-unwind.h: fix header path.
---
  libgcc/config/aarch64/aarch64-unwind.h | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libgcc/config/aarch64/aarch64-unwind.h 
b/libgcc/config/aarch64/aarch64-unwind.h
index 2b774eb263c..4d36f0b26f7 100644
--- a/libgcc/config/aarch64/aarch64-unwind.h
+++ b/libgcc/config/aarch64/aarch64-unwind.h
@@ -25,7 +25,7 @@ see the files COPYING3 and COPYING.RUNTIME respectively.  If 
not, see
  #if !defined (AARCH64_UNWIND_H) && !defined (__ILP32__)
  #define AARCH64_UNWIND_H

-#include "aarch64-unwind-def.h"
+#include "config/aarch64/aarch64-unwind-def.h"

  #include "ansidecl.h"
  #include <stdbool.h>
--
2.46.1

5170  execve("/data/build-dir/gcc-aarch64-none-elf/./gcc/xgcc", 
["/data/build-dir/gcc-aarch64-none"..., "-B/data/build-dir/gcc-aarch64-no"..., 
"-B/data/common-sysroot/aarch64-n"..., "-B/data/common-sysroot/aarch64-n"..., 
"-isystem", "/data/common-sysroot/aarch64-non"..., "-isystem", 
"/data/common-sysroot/aarch64-non"..., "-g", "-O2", "-O2", "-g", "-O2", 
"-DIN_GCC", "-DCROSS_DIRECTORY_STRUCTURE", "-W", "-Wall", 
"-Wno-error=narrowing", "-Wwrite-strings", "-Wcast-qual", 
"-Wstrict-prototypes", "-Wmissing-prototypes", "-Wold-style-definition", 
"-isystem", "./include", "-g", "-DIN_LIBGCC2", "-fbuilding-libgcc", 
"-fno-stack-protector", "-Dinhibit_libc", "-I.", "-I.", ...], 0xffffde5bcd20 /* 
14 vars */) = 0
5170  faccessat(AT_FDCWD, "/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file 
or directory)
5170  openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
5170  newfstatat(3, "", {st_mode=S_IFREG|0644, st_size=21755, ...}, 
AT_EMPTY_PATH) = 0
5170  openat(AT_FDCWD, "/lib/aarch64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) 
= 3
5170  newfstatat(3, "", {st_mode=S_IFREG|0755, st_size=1637400, ...}, 
AT_EMPTY_PATH) = 0
5170  openat(AT_FDCWD, "/usr/lib/locale/locale-archive", O_RDONLY|O_CLOEXEC) = 3
5170  newfstatat(3, "", {st_mode=S_IFREG|0644, st_size=3048928, ...}, 
AT_EMPTY_PATH) = 0
5170  openat(AT_FDCWD, "/usr/share/locale/locale.alias", O_RDONLY|O_CLOEXEC) = 3
5170  newfstatat(3, "", {st_mode=S_IFREG|0644, st_size=2996, ...}, 
AT_EMPTY_PATH) = 0
5170  openat(AT_FDCWD, 
"/data/common-sysroot/aarch64-none-elf/share/locale/en_US.UTF-8/LC_MESSAGES/gcc.mo",
 O_RDONLY) = -1 ENOENT (No such file or directory)
5170  openat(AT_FDCWD, 
"/data/common-sysroot/aarch64-none-elf/share/locale/en_US.utf8/LC_MESSAGES/gcc.mo",
 O_RDONLY) = -1 ENOENT (No such file or directory)
5170  openat(AT_FDCWD, 
"/data/common-sysroot/aarch64-none-elf/share/locale/en_US/LC_MESSAGES/gcc.mo", 
O_RDONLY) = -1 ENOENT (No such file or directory)
5170  openat(AT_FDCWD, 
"/data/common-sysroot/aarch64-none-elf/share/locale/en.UTF-8/LC_MESSAGES/gcc.mo",
 O_RDONLY) = -1 ENOENT (No such file or directory)
5170  openat(AT_FDCWD, 
"/data/common-sysroot/aarch64-none-elf/share/locale/en.utf8/LC_MESSAGES/gcc.mo",
 O_RDONLY) = -1 ENOENT (No such file or directory)
5170  openat(AT_FDCWD, 
"/data/common-sysroot/aarch64-none-elf/share/locale/en/LC_MESSAGES/gcc.mo", 
O_RDONLY) = -1 ENOENT (No such file or directory)
5170  openat(AT_FDCWD, 
"/usr/share/locale-langpack/en_US.UTF-8/LC_MESSAGES/gcc.mo", O_RDONLY) = -1 
ENOENT (No such file or directory)
5170  openat(AT_FDCWD, 
"/usr/share/locale-langpack/en_US.utf8/LC_MESSAGES/gcc.mo", O_RDONLY) = -1 
ENOENT (No such file or directory)
5170  openat(AT_FDCWD, "/usr/share/locale-langpack/en_US/LC_MESSAGES/gcc.mo", 
O_RDONLY) = -1 ENOENT (No such file or directory)
5170  openat(AT_FDCWD, 
"/usr/share/locale-langpack/en.UTF-8/LC_MESSAGES/gcc.mo", O_RDONLY) = -1 ENOENT 
(No such file or directory)
5170  openat(AT_FDCWD, "/usr/share/locale-langpack/en.utf8/LC_MESSAGES/gcc.mo", 
O_RDONLY) = -1 ENOENT (No such file or directory)
5170  openat(AT_FDCWD, "/usr/share/locale-langpack/en/LC_MESSAGES/gcc.mo", 
O_RDONLY) = -1 ENOENT (No such file or directory)
5170  readlinkat(AT_FDCWD, "/data", 0xfffff6fb2540, 1023) = -1 EINVAL (Invalid 
argument)
5170  readlinkat(AT_FDCWD, "/data/build-dir", 0xfffff6fb2540, 1023) = -1 EINVAL 
(Invalid argument)
5170  readlinkat(AT_FDCWD, "/data/build-dir/gcc-aarch64-none-elf", 
0xfffff6fb2540, 1023) = -1 EINVAL (Invalid argument)
5170  readlinkat(AT_FDCWD, "/data/build-dir/gcc-aarch64-none-elf/gcc", 
0xfffff6fb2540, 1023) = -1 EINVAL (Invalid argument)
5170  readlinkat(AT_FDCWD, "/data/build-dir/gcc-aarch64-none-elf/gcc/xgcc", 
0xfffff6fb2540, 1023) = -1 EINVAL (Invalid argument)
5170  readlinkat(AT_FDCWD, "/data", 0xfffff6fb2540, 1023) = -1 EINVAL (Invalid 
argument)
5170  readlinkat(AT_FDCWD, "/data/build-dir", 0xfffff6fb2540, 1023) = -1 EINVAL 
(Invalid argument)
5170  readlinkat(AT_FDCWD, "/data/build-dir/gcc-aarch64-none-elf", 
0xfffff6fb2540, 1023) = -1 EINVAL (Invalid argument)
5170  readlinkat(AT_FDCWD, "/data/build-dir/gcc-aarch64-none-elf/gcc", 
0xfffff6fb2540, 1023) = -1 EINVAL (Invalid argument)
5170  readlinkat(AT_FDCWD, "/data/build-dir/gcc-aarch64-none-elf/gcc/xgcc", 
0xfffff6fb2540, 1023) = -1 EINVAL (Invalid argument)
5170  faccessat(AT_FDCWD, "/data/build-dir/gcc-aarch64-none-elf/gcc/", X_OK) = 0
5170  faccessat(AT_FDCWD, "/data/build-dir/gcc-aarch64-none-elf/gcc/", X_OK) = 0
5170  getcwd("/data/build-dir/gcc-aarch64-none-elf/aarch64-none-elf/libgcc", 
1024) = 61
5170  readlinkat(AT_FDCWD, "/data/src", 0xfffff6fb2640, 1023) = -1 EINVAL 
(Invalid argument)
5170  readlinkat(AT_FDCWD, "/data/src/gcc", 0xfffff6fb2640, 1023) = -1 EINVAL 
(Invalid argument)
5170  readlinkat(AT_FDCWD, "/data/src/gcc/libgcc", 0xfffff6fb2640, 1023) = -1 
EINVAL (Invalid argument)
5170  readlinkat(AT_FDCWD, "/data/src/gcc/libgcc/unwind-dw2.c", 0xfffff6fb2640, 
1023) = -1 EINVAL (Invalid argument)
5170  getcwd("/data/build-dir/gcc-aarch64-none-elf/aarch64-none-elf/libgcc", 
1024) = 61
5170  readlinkat(AT_FDCWD, 
"/data/build-dir/gcc-aarch64-none-elf/aarch64-none-elf/libgcc/unwind-dw2.o", 
0xfffff6fb2640, 1023) = -1 EINVAL (Invalid argument)
5170  faccessat(AT_FDCWD, "/data/build-dir/gcc-aarch64-none-elf/gcc/", X_OK) = 0
5170  faccessat(AT_FDCWD, "/data/build-dir/gcc-aarch64-none-elf/gcc/", X_OK) = 0
5170  faccessat(AT_FDCWD, 
"/data/build-dir/gcc-aarch64-none-elf/./gcc/aarch64-none-elf/15.0.0/specs", 
R_OK) = -1 ENOENT (No such file or directory)
5170  faccessat(AT_FDCWD, "/data/build-dir/gcc-aarch64-none-elf/./gcc/specs", 
R_OK) = 0
5170  openat(AT_FDCWD, "/data/build-dir/gcc-aarch64-none-elf/./gcc/specs", 
O_RDONLY) = 3
5170  newfstatat(AT_FDCWD, "/data/build-dir/gcc-aarch64-none-elf/./gcc/specs", 
{st_mode=S_IFREG|0644, st_size=6584, ...}, 0) = 0
5170  faccessat(AT_FDCWD, 
"/data/common-sysroot/aarch64-none-elf/lib/gcc/aarch64-none-elf/specs", R_OK) = 
-1 ENOENT (No such file or directory)
5170  newfstatat(AT_FDCWD, 
"/data/build-dir/gcc-aarch64-none-elf/./gcc/aarch64-none-elf/15.0.0/include/.", 
0xfffff6fb2d08, 0) = -1 ENOENT (No such file or directory)
5170  newfstatat(AT_FDCWD, 
"/data/build-dir/gcc-aarch64-none-elf/./gcc/include/.", {st_mode=S_IFDIR|0755, 
st_size=4096, ...}, 0) = 0
5170  newfstatat(AT_FDCWD, 
"/data/common-sysroot/aarch64-none-elf/aarch64-none-elf/bin/aarch64-none-elf/15.0.0/include/.",
 0xfffff6fb2d08, 0) = -1 ENOENT (No such file or directory)
5170  newfstatat(AT_FDCWD, 
"/data/common-sysroot/aarch64-none-elf/aarch64-none-elf/bin/include/.", 
0xfffff6fb2d08, 0) = -1 ENOENT (No such file or directory)
5170  newfstatat(AT_FDCWD, 
"/data/common-sysroot/aarch64-none-elf/aarch64-none-elf/lib/aarch64-none-elf/15.0.0/include/.",
 0xfffff6fb2d08, 0) = -1 ENOENT (No such file or directory)
5170  newfstatat(AT_FDCWD, 
"/data/common-sysroot/aarch64-none-elf/aarch64-none-elf/lib/include/.", 
0xfffff6fb2d08, 0) = -1 ENOENT (No such file or directory)
5170  newfstatat(AT_FDCWD, 
"/data/build-dir/gcc-aarch64-none-elf/./gcc/aarch64-none-elf/15.0.0/include-fixed/.",
 0xfffff6fb2d08, 0) = -1 ENOENT (No such file or directory)
5170  newfstatat(AT_FDCWD, 
"/data/build-dir/gcc-aarch64-none-elf/./gcc/include-fixed/.", 
{st_mode=S_IFDIR|0755, st_size=4096, ...}, 0) = 0
5170  newfstatat(AT_FDCWD, 
"/data/common-sysroot/aarch64-none-elf/aarch64-none-elf/bin/aarch64-none-elf/15.0.0/include-fixed/.",
 0xfffff6fb2d08, 0) = -1 ENOENT (No such file or directory)
5170  newfstatat(AT_FDCWD, 
"/data/common-sysroot/aarch64-none-elf/aarch64-none-elf/bin/include-fixed/.", 
0xfffff6fb2d08, 0) = -1 ENOENT (No such file or directory)
5170  newfstatat(AT_FDCWD, 
"/data/common-sysroot/aarch64-none-elf/aarch64-none-elf/lib/aarch64-none-elf/15.0.0/include-fixed/.",
 0xfffff6fb2d08, 0) = -1 ENOENT (No such file or directory)
5170  newfstatat(AT_FDCWD, 
"/data/common-sysroot/aarch64-none-elf/aarch64-none-elf/lib/include-fixed/.", 
0xfffff6fb2d08, 0) = -1 ENOENT (No such file or directory)
5170  faccessat(AT_FDCWD, "/tmp", R_OK|W_OK|X_OK) = 0
5170  newfstatat(AT_FDCWD, "/tmp", {st_mode=S_IFDIR|S_ISVTX|0777, st_size=4096, 
...}, 0) = 0
5170  openat(AT_FDCWD, "/tmp/cctkV6Ap.s", O_RDWR|O_CREAT|O_EXCL, 0600) = 3
5170  newfstatat(AT_FDCWD, 
"/data/build-dir/gcc-aarch64-none-elf/./gcc/aarch64-none-elf/15.0.0/cc1", 
0xfffff6fb2c08, 0) = -1 ENOENT (No such file or directory)
5170  newfstatat(AT_FDCWD, "/data/build-dir/gcc-aarch64-none-elf/./gcc/cc1", 
{st_mode=S_IFREG|0755, st_size=432574816, ...}, 0) = 0
5170  faccessat(AT_FDCWD, "/data/build-dir/gcc-aarch64-none-elf/./gcc/cc1", 
X_OK) = 0
5171  execve("/data/build-dir/gcc-aarch64-none-elf/./gcc/cc1", 
["/data/build-dir/gcc-aarch64-none"..., "-quiet", "-I", ".", "-I", ".", "-I", 
"../.././gcc", "-I", "../../../../src/gcc/libgcc", "-I", 
"../../../../src/gcc/libgcc/.", "-I", "../../../../src/gcc/libgcc/../gc"..., 
"-I", "../../../../src/gcc/libgcc/../in"..., "-iprefix", 
"/data/build-dir/gcc-aarch64-none"..., "-isystem", 
"/data/build-dir/gcc-aarch64-none"..., "-isystem", 
"/data/build-dir/gcc-aarch64-none"..., "-MD", "unwind-dw2.d", "-MF", 
"unwind-dw2.dep", "-MP", "-MT", "unwind-dw2.o", "-D", "IN_GCC", "-D", ...], 
0x1331b4f0 /* 17 vars */) = 0
5171  faccessat(AT_FDCWD, "/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file 
or directory)
5171  openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
5171  newfstatat(3, "", {st_mode=S_IFREG|0644, st_size=21755, ...}, 
AT_EMPTY_PATH) = 0
5171  openat(AT_FDCWD, "/lib/aarch64-linux-gnu/libisl.so.23", 
O_RDONLY|O_CLOEXEC) = 3
5171  newfstatat(3, "", {st_mode=S_IFREG|0644, st_size=1945168, ...}, 
AT_EMPTY_PATH) = 0
5171  openat(AT_FDCWD, "/lib/aarch64-linux-gnu/libmpc.so.3", 
O_RDONLY|O_CLOEXEC) = 3
5171  newfstatat(3, "", {st_mode=S_IFREG|0644, st_size=105520, ...}, 
AT_EMPTY_PATH) = 0
5171  openat(AT_FDCWD, "/lib/aarch64-linux-gnu/libmpfr.so.6", 
O_RDONLY|O_CLOEXEC) = 3
5171  newfstatat(3, "", {st_mode=S_IFREG|0644, st_size=486496, ...}, 
AT_EMPTY_PATH) = 0
5171  openat(AT_FDCWD, "/lib/aarch64-linux-gnu/libgmp.so.10", 
O_RDONLY|O_CLOEXEC) = 3
5171  newfstatat(3, "", {st_mode=S_IFREG|0644, st_size=485688, ...}, 
AT_EMPTY_PATH) = 0
5171  openat(AT_FDCWD, "/lib/aarch64-linux-gnu/libm.so.6", O_RDONLY|O_CLOEXEC) 
= 3
5171  newfstatat(3, "", {st_mode=S_IFREG|0644, st_size=551064, ...}, 
AT_EMPTY_PATH) = 0
5171  openat(AT_FDCWD, "/lib/aarch64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) 
= 3
5171  newfstatat(3, "", {st_mode=S_IFREG|0755, st_size=1637400, ...}, 
AT_EMPTY_PATH) = 0
5171  openat(AT_FDCWD, "/usr/lib/locale/locale-archive", O_RDONLY|O_CLOEXEC) = 3
5171  newfstatat(3, "", {st_mode=S_IFREG|0644, st_size=3048928, ...}, 
AT_EMPTY_PATH) = 0
5171  openat(AT_FDCWD, "/usr/share/locale/locale.alias", O_RDONLY|O_CLOEXEC) = 3
5171  newfstatat(3, "", {st_mode=S_IFREG|0644, st_size=2996, ...}, 
AT_EMPTY_PATH) = 0
5171  openat(AT_FDCWD, 
"/data/common-sysroot/aarch64-none-elf/share/locale/en_US.UTF-8/LC_MESSAGES/gcc.mo",
 O_RDONLY) = -1 ENOENT (No such file or directory)
5171  openat(AT_FDCWD, 
"/data/common-sysroot/aarch64-none-elf/share/locale/en_US.utf8/LC_MESSAGES/gcc.mo",
 O_RDONLY) = -1 ENOENT (No such file or directory)
5171  openat(AT_FDCWD, 
"/data/common-sysroot/aarch64-none-elf/share/locale/en_US/LC_MESSAGES/gcc.mo", 
O_RDONLY) = -1 ENOENT (No such file or directory)
5171  openat(AT_FDCWD, 
"/data/common-sysroot/aarch64-none-elf/share/locale/en.UTF-8/LC_MESSAGES/gcc.mo",
 O_RDONLY) = -1 ENOENT (No such file or directory)
5171  openat(AT_FDCWD, 
"/data/common-sysroot/aarch64-none-elf/share/locale/en.utf8/LC_MESSAGES/gcc.mo",
 O_RDONLY) = -1 ENOENT (No such file or directory)
5171  openat(AT_FDCWD, 
"/data/common-sysroot/aarch64-none-elf/share/locale/en/LC_MESSAGES/gcc.mo", 
O_RDONLY) = -1 ENOENT (No such file or directory)
5171  openat(AT_FDCWD, 
"/usr/share/locale-langpack/en_US.UTF-8/LC_MESSAGES/gcc.mo", O_RDONLY) = -1 
ENOENT (No such file or directory)
5171  openat(AT_FDCWD, 
"/usr/share/locale-langpack/en_US.utf8/LC_MESSAGES/gcc.mo", O_RDONLY) = -1 
ENOENT (No such file or directory)
5171  openat(AT_FDCWD, "/usr/share/locale-langpack/en_US/LC_MESSAGES/gcc.mo", 
O_RDONLY) = -1 ENOENT (No such file or directory)
5171  openat(AT_FDCWD, 
"/usr/share/locale-langpack/en.UTF-8/LC_MESSAGES/gcc.mo", O_RDONLY) = -1 ENOENT 
(No such file or directory)
5171  openat(AT_FDCWD, "/usr/share/locale-langpack/en.utf8/LC_MESSAGES/gcc.mo", 
O_RDONLY) = -1 ENOENT (No such file or directory)
5171  openat(AT_FDCWD, "/usr/share/locale-langpack/en/LC_MESSAGES/gcc.mo", 
O_RDONLY) = -1 ENOENT (No such file or directory)
5171  readlinkat(AT_FDCWD, "/data", 0xffffec124ee0, 1023) = -1 EINVAL (Invalid 
argument)
5171  readlinkat(AT_FDCWD, "/data/build-dir", 0xffffec124ee0, 1023) = -1 EINVAL 
(Invalid argument)
5171  readlinkat(AT_FDCWD, "/data/build-dir/gcc-aarch64-none-elf", 
0xffffec124ee0, 1023) = -1 EINVAL (Invalid argument)
5171  readlinkat(AT_FDCWD, "/data/build-dir/gcc-aarch64-none-elf/gcc", 
0xffffec124ee0, 1023) = -1 EINVAL (Invalid argument)
5171  faccessat2(AT_FDCWD, "/data/build-dir/gcc-aarch64-none-elf/gcc/", F_OK, 
AT_EACCESS) = -1 ENOSYS (Function not implemented)
5171  faccessat(AT_FDCWD, "/data/build-dir/gcc-aarch64-none-elf/gcc/", F_OK) = 0
5171  readlinkat(AT_FDCWD, "/data/build-dir/gcc-aarch64-none-elf/lib", 
0xffffec124ee0, 1023) = -1 ENOENT (No such file or directory)
5171  faccessat(AT_FDCWD, "/data/build-dir/gcc-aarch64-none-elf/gcc/", X_OK) = 0
5171  faccessat(AT_FDCWD, "/data/build-dir/gcc-aarch64-none-elf/gcc/", X_OK) = 0
5171  faccessat(AT_FDCWD, "/data/build-dir/gcc-aarch64-none-elf/gcc/", X_OK) = 0
5171  faccessat(AT_FDCWD, "/data/build-dir/gcc-aarch64-none-elf/gcc/", X_OK) = 0
5171  faccessat(AT_FDCWD, "/data/build-dir/gcc-aarch64-none-elf/gcc/", X_OK) = 0
5171  newfstatat(AT_FDCWD, 
"/data/build-dir/gcc-aarch64-none-elf/./gcc/include", {st_mode=S_IFDIR|0755, 
st_size=4096, ...}, 0) = 0
5171  newfstatat(AT_FDCWD, 
"/data/build-dir/gcc-aarch64-none-elf/./gcc/include-fixed", 
{st_mode=S_IFDIR|0755, st_size=4096, ...}, 0) = 0
5171  newfstatat(AT_FDCWD, 
"/data/common-sysroot/aarch64-none-elf/aarch64-none-elf/include", 
0xffffec1267e8, 0) = -1 ENOENT (No such file or directory)
5171  newfstatat(AT_FDCWD, 
"/data/common-sysroot/aarch64-none-elf/aarch64-none-elf/sys-include", 
0xffffec1267e8, 0) = -1 ENOENT (No such file or directory)
5171  newfstatat(AT_FDCWD, "./include", 0xffffec1267e8, 0) = -1 ENOENT (No such 
file or directory)
5171  newfstatat(AT_FDCWD, 
"/data/build-dir/gcc-aarch64-none-elf/gcc/../lib/gcc/aarch64-none-elf/15.0.0/include",
 0xffffec1267e8, 0) = -1 ENOENT (No such file or directory)
5171  newfstatat(AT_FDCWD, 
"/data/build-dir/gcc-aarch64-none-elf/gcc/../lib/gcc/aarch64-none-elf/15.0.0/include-fixed",
 0xffffec1267e8, 0) = -1 ENOENT (No such file or directory)
5171  newfstatat(AT_FDCWD, 
"/data/build-dir/gcc-aarch64-none-elf/gcc/../lib/gcc/aarch64-none-elf/15.0.0/../../../../aarch64-none-elf/sys-include",
 0xffffec1267e8, 0) = -1 ENOENT (No such file or directory)
5171  newfstatat(AT_FDCWD, 
"/data/build-dir/gcc-aarch64-none-elf/gcc/../lib/gcc/aarch64-none-elf/15.0.0/../../../../aarch64-none-elf/include",
 0xffffec1267e8, 0) = -1 ENOENT (No such file or directory)
5171  newfstatat(AT_FDCWD, 
"/data/build-dir/gcc-aarch64-none-elf/gcc/../lib/gcc/../../lib/gcc/aarch64-none-elf/15.0.0/include",
 0xffffec1267e8, 0) = -1 ENOENT (No such file or directory)
5171  newfstatat(AT_FDCWD, 
"/data/build-dir/gcc-aarch64-none-elf/gcc/../lib/gcc/../../lib/gcc/aarch64-none-elf/15.0.0/include-fixed",
 0xffffec1267e8, 0) = -1 ENOENT (No such file or directory)
5171  newfstatat(AT_FDCWD, 
"/data/build-dir/gcc-aarch64-none-elf/gcc/../lib/gcc/../../lib/gcc/aarch64-none-elf/15.0.0/../../../../aarch64-none-elf/sys-include",
 0xffffec1267e8, 0) = -1 ENOENT (No such file or directory)
5171  newfstatat(AT_FDCWD, 
"/data/build-dir/gcc-aarch64-none-elf/gcc/../lib/gcc/../../lib/gcc/aarch64-none-elf/15.0.0/../../../../aarch64-none-elf/include",
 0xffffec1267e8, 0) = -1 ENOENT (No such file or directory)
5171  newfstatat(AT_FDCWD, ".", {st_mode=S_IFDIR|0755, st_size=20480, ...}, 0) 
= 0
5171  newfstatat(AT_FDCWD, ".", {st_mode=S_IFDIR|0755, st_size=20480, ...}, 0) 
= 0
5171  newfstatat(AT_FDCWD, "../.././gcc", {st_mode=S_IFDIR|0755, st_size=36864, 
...}, 0) = 0
5171  newfstatat(AT_FDCWD, "../../../../src/gcc/libgcc", {st_mode=S_IFDIR|0755, 
st_size=4096, ...}, 0) = 0
5171  newfstatat(AT_FDCWD, "../../../../src/gcc/libgcc/.", 
{st_mode=S_IFDIR|0755, st_size=4096, ...}, 0) = 0
5171  newfstatat(AT_FDCWD, "../../../../src/gcc/libgcc/../gcc", 
{st_mode=S_IFDIR|0755, st_size=36864, ...}, 0) = 0
5171  newfstatat(AT_FDCWD, "../../../../src/gcc/libgcc/../include", 
{st_mode=S_IFDIR|0755, st_size=4096, ...}, 0) = 0
5171  newfstatat(AT_FDCWD, "../../../../src/gcc/libgcc/unwind-dw2.c.gch", 
0xffffec126858, 0) = -1 ENOENT (No such file or directory)
5171  openat(AT_FDCWD, "../../../../src/gcc/libgcc/unwind-dw2.c", 
O_RDONLY|O_NOCTTY) = 3
5171  newfstatat(3, "", {st_mode=S_IFREG|0644, st_size=40897, ...}, 
AT_EMPTY_PATH) = 0
5171  readlinkat(AT_FDCWD, "/tmp", 0xffffec1250f0, 1023) = -1 EINVAL (Invalid 
argument)
5171  readlinkat(AT_FDCWD, "/tmp/cctkV6Ap.s", 0xffffec1250f0, 1023) = -1 EINVAL 
(Invalid argument)
5171  getcwd("/data/build-dir/gcc-aarch64-none-elf/aarch64-none-elf/libgcc", 
1024) = 61
5171  readlinkat(AT_FDCWD, "/data/src", 0xffffec1250f0, 1023) = -1 EINVAL 
(Invalid argument)
5171  readlinkat(AT_FDCWD, "/data/src/gcc", 0xffffec1250f0, 1023) = -1 EINVAL 
(Invalid argument)
5171  readlinkat(AT_FDCWD, "/data/src/gcc/libgcc", 0xffffec1250f0, 1023) = -1 
EINVAL (Invalid argument)
5171  readlinkat(AT_FDCWD, "/data/src/gcc/libgcc/unwind-dw2.c", 0xffffec1250f0, 
1023) = -1 EINVAL (Invalid argument)
5171  openat(AT_FDCWD, "/tmp/cctkV6Ap.s", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 3
5171  newfstatat(3, "", {st_mode=S_IFREG|0600, st_size=0, ...}, AT_EMPTY_PATH) 
= 0
5171  newfstatat(AT_FDCWD, 
"/data/build-dir/gcc-aarch64-none-elf/aarch64-none-elf/libgcc", 
{st_mode=S_IFDIR|0755, st_size=20480, ...}, 0) = 0
5171  newfstatat(AT_FDCWD, ".", {st_mode=S_IFDIR|0755, st_size=20480, ...}, 0) 
= 0
5171  newfstatat(AT_FDCWD, "../../../../src/gcc/libgcc/tconfig.h.gch", 
0xffffec125f38, 0) = -1 ENOENT (No such file or directory)
5171  openat(AT_FDCWD, "../../../../src/gcc/libgcc/tconfig.h", 
O_RDONLY|O_NOCTTY) = -1 ENOENT (No such file or directory)
5171  newfstatat(AT_FDCWD, "./tconfig.h.gch", 0xffffec125f38, 0) = -1 ENOENT 
(No such file or directory)
5171  openat(AT_FDCWD, "./tconfig.h", O_RDONLY|O_NOCTTY) = -1 ENOENT (No such 
file or directory)
5171  newfstatat(AT_FDCWD, "../.././gcc/tconfig.h.gch", 0xffffec125f38, 0) = -1 
ENOENT (No such file or directory)
5171  openat(AT_FDCWD, "../.././gcc/tconfig.h", O_RDONLY|O_NOCTTY) = 4
5171  newfstatat(4, "", {st_mode=S_IFREG|0644, st_size=194, ...}, 
AT_EMPTY_PATH) = 0
5171  openat(AT_FDCWD, "../.././gcc/auto-host.h", O_RDONLY|O_NOCTTY) = 4
5171  newfstatat(4, "", {st_mode=S_IFREG|0644, st_size=61754, ...}, 
AT_EMPTY_PATH) = 0
5171  openat(AT_FDCWD, "../.././gcc/ansidecl.h", O_RDONLY|O_NOCTTY) = -1 ENOENT 
(No such file or directory)
5171  openat(AT_FDCWD, "./ansidecl.h", O_RDONLY|O_NOCTTY) = -1 ENOENT (No such 
file or directory)
5171  openat(AT_FDCWD, "../../../../src/gcc/libgcc/ansidecl.h", 
O_RDONLY|O_NOCTTY) = -1 ENOENT (No such file or directory)
5171  openat(AT_FDCWD, "../../../../src/gcc/libgcc/../gcc/ansidecl.h", 
O_RDONLY|O_NOCTTY) = -1 ENOENT (No such file or directory)
5171  openat(AT_FDCWD, "../../../../src/gcc/libgcc/../include/ansidecl.h", 
O_RDONLY|O_NOCTTY) = 4
5171  newfstatat(4, "", {st_mode=S_IFREG|0644, st_size=11777, ...}, 
AT_EMPTY_PATH) = 0
5171  openat(AT_FDCWD, "../../../../src/gcc/libgcc/tsystem.h", 
O_RDONLY|O_NOCTTY) = -1 ENOENT (No such file or directory)
5171  openat(AT_FDCWD, "./tsystem.h", O_RDONLY|O_NOCTTY) = -1 ENOENT (No such 
file or directory)
5171  openat(AT_FDCWD, "../.././gcc/tsystem.h", O_RDONLY|O_NOCTTY) = -1 ENOENT 
(No such file or directory)
5171  openat(AT_FDCWD, "../../../../src/gcc/libgcc/../gcc/tsystem.h", 
O_RDONLY|O_NOCTTY) = 4
5171  newfstatat(4, "", {st_mode=S_IFREG|0644, st_size=3980, ...}, 
AT_EMPTY_PATH) = 0
5171  openat(AT_FDCWD, "./stddef.h", O_RDONLY|O_NOCTTY) = -1 ENOENT (No such 
file or directory)
5171  openat(AT_FDCWD, "../.././gcc/stddef.h", O_RDONLY|O_NOCTTY) = -1 ENOENT 
(No such file or directory)
5171  openat(AT_FDCWD, "../../../../src/gcc/libgcc/stddef.h", 
O_RDONLY|O_NOCTTY) = -1 ENOENT (No such file or directory)
5171  openat(AT_FDCWD, "../../../../src/gcc/libgcc/../gcc/stddef.h", 
O_RDONLY|O_NOCTTY) = -1 ENOENT (No such file or directory)
5171  openat(AT_FDCWD, "../../../../src/gcc/libgcc/../include/stddef.h", 
O_RDONLY|O_NOCTTY) = -1 ENOENT (No such file or directory)
5171  readlinkat(AT_FDCWD, "/data", 0xffffec124610, 1023) = -1 EINVAL (Invalid 
argument)
5171  readlinkat(AT_FDCWD, "/data/build-dir", 0xffffec124610, 1023) = -1 EINVAL 
(Invalid argument)
5171  readlinkat(AT_FDCWD, "/data/build-dir/gcc-aarch64-none-elf", 
0xffffec124610, 1023) = -1 EINVAL (Invalid argument)
5171  readlinkat(AT_FDCWD, "/data/build-dir/gcc-aarch64-none-elf/gcc", 
0xffffec124610, 1023) = -1 EINVAL (Invalid argument)
5171  readlinkat(AT_FDCWD, "/data/build-dir/gcc-aarch64-none-elf/gcc/include", 
0xffffec124610, 1023) = -1 EINVAL (Invalid argument)
5171  readlinkat(AT_FDCWD, 
"/data/build-dir/gcc-aarch64-none-elf/gcc/include/stddef.h", 0xffffec124610, 
1023) = -1 EINVAL (Invalid argument)
5171  openat(AT_FDCWD, 
"/data/build-dir/gcc-aarch64-none-elf/gcc/include/stddef.h", O_RDONLY|O_NOCTTY) 
= 4
5171  newfstatat(4, "", {st_mode=S_IFREG|0644, st_size=13735, ...}, 
AT_EMPTY_PATH) = 0
5171  openat(AT_FDCWD, "./float.h", O_RDONLY|O_NOCTTY) = -1 ENOENT (No such 
file or directory)
5171  openat(AT_FDCWD, "../.././gcc/float.h", O_RDONLY|O_NOCTTY) = -1 ENOENT 
(No such file or directory)
5171  openat(AT_FDCWD, "../../../../src/gcc/libgcc/float.h", O_RDONLY|O_NOCTTY) 
= -1 ENOENT (No such file or directory)
5171  openat(AT_FDCWD, "../../../../src/gcc/libgcc/../gcc/float.h", 
O_RDONLY|O_NOCTTY) = -1 ENOENT (No such file or directory)
5171  openat(AT_FDCWD, "../../../../src/gcc/libgcc/../include/float.h", 
O_RDONLY|O_NOCTTY) = -1 ENOENT (No such file or directory)
5171  readlinkat(AT_FDCWD, "/data", 0xffffec124610, 1023) = -1 EINVAL (Invalid 
argument)
5171  readlinkat(AT_FDCWD, "/data/build-dir", 0xffffec124610, 1023) = -1 EINVAL 
(Invalid argument)
5171  readlinkat(AT_FDCWD, "/data/build-dir/gcc-aarch64-none-elf", 
0xffffec124610, 1023) = -1 EINVAL (Invalid argument)
5171  readlinkat(AT_FDCWD, "/data/build-dir/gcc-aarch64-none-elf/gcc", 
0xffffec124610, 1023) = -1 EINVAL (Invalid argument)
5171  readlinkat(AT_FDCWD, "/data/build-dir/gcc-aarch64-none-elf/gcc/include", 
0xffffec124610, 1023) = -1 EINVAL (Invalid argument)
5171  readlinkat(AT_FDCWD, 
"/data/build-dir/gcc-aarch64-none-elf/gcc/include/float.h", 0xffffec124610, 
1023) = -1 EINVAL (Invalid argument)
5171  openat(AT_FDCWD, 
"/data/build-dir/gcc-aarch64-none-elf/gcc/include/float.h", O_RDONLY|O_NOCTTY) 
= 4
5171  newfstatat(4, "", {st_mode=S_IFREG|0644, st_size=20749, ...}, 
AT_EMPTY_PATH) = 0
5171  openat(AT_FDCWD, "../../../../src/gcc/libgcc/../gcc/filenames.h", 
O_RDONLY|O_NOCTTY) = -1 ENOENT (No such file or directory)
5171  openat(AT_FDCWD, "./filenames.h", O_RDONLY|O_NOCTTY) = -1 ENOENT (No such 
file or directory)
5171  openat(AT_FDCWD, "../.././gcc/filenames.h", O_RDONLY|O_NOCTTY) = -1 
ENOENT (No such file or directory)
5171  openat(AT_FDCWD, "../../../../src/gcc/libgcc/filenames.h", 
O_RDONLY|O_NOCTTY) = -1 ENOENT (No such file or directory)
5171  openat(AT_FDCWD, "../../../../src/gcc/libgcc/../include/filenames.h", 
O_RDONLY|O_NOCTTY) = 4
5171  newfstatat(4, "", {st_mode=S_IFREG|0644, st_size=3524, ...}, 
AT_EMPTY_PATH) = 0
5171  openat(AT_FDCWD, "../../../../src/gcc/libgcc/../include/hashtab.h", 
O_RDONLY|O_NOCTTY) = 4
5171  newfstatat(4, "", {st_mode=S_IFREG|0644, st_size=7402, ...}, 
AT_EMPTY_PATH) = 0
5171  openat(AT_FDCWD, "../../../../src/gcc/libgcc/../include/ansidecl.h", 
O_RDONLY|O_NOCTTY) = 4
5171  newfstatat(4, "", {st_mode=S_IFREG|0644, st_size=11777, ...}, 
AT_EMPTY_PATH) = 0
5171  openat(AT_FDCWD, "../../../../src/gcc/libgcc/coretypes.h", 
O_RDONLY|O_NOCTTY) = -1 ENOENT (No such file or directory)
5171  openat(AT_FDCWD, "./coretypes.h", O_RDONLY|O_NOCTTY) = -1 ENOENT (No such 
file or directory)
5171  openat(AT_FDCWD, "../.././gcc/coretypes.h", O_RDONLY|O_NOCTTY) = -1 
ENOENT (No such file or directory)
5171  openat(AT_FDCWD, "../../../../src/gcc/libgcc/../gcc/coretypes.h", 
O_RDONLY|O_NOCTTY) = 4
5171  newfstatat(4, "", {st_mode=S_IFREG|0644, st_size=15811, ...}, 
AT_EMPTY_PATH) = 0
5171  openat(AT_FDCWD, "../../../../src/gcc/libgcc/tm.h", O_RDONLY|O_NOCTTY) = 
-1 ENOENT (No such file or directory)
5171  openat(AT_FDCWD, "./tm.h", O_RDONLY|O_NOCTTY) = -1 ENOENT (No such file 
or directory)
5171  openat(AT_FDCWD, "../.././gcc/tm.h", O_RDONLY|O_NOCTTY) = 4
5171  newfstatat(4, "", {st_mode=S_IFREG|0644, st_size=904, ...}, 
AT_EMPTY_PATH) = 0
5171  openat(AT_FDCWD, "../.././gcc/options.h", O_RDONLY|O_NOCTTY) = 4
5171  newfstatat(4, "", {st_mode=S_IFREG|0644, st_size=453558, ...}, 
AT_EMPTY_PATH) = 0
5171  openat(AT_FDCWD, "../.././gcc/flag-types.h", O_RDONLY|O_NOCTTY) = -1 
ENOENT (No such file or directory)
5171  openat(AT_FDCWD, "./flag-types.h", O_RDONLY|O_NOCTTY) = -1 ENOENT (No 
such file or directory)
5171  openat(AT_FDCWD, "../../../../src/gcc/libgcc/flag-types.h", 
O_RDONLY|O_NOCTTY) = -1 ENOENT (No such file or directory)
5171  openat(AT_FDCWD, "../../../../src/gcc/libgcc/../gcc/flag-types.h", 
O_RDONLY|O_NOCTTY) = 4
5171  newfstatat(4, "", {st_mode=S_IFREG|0644, st_size=17433, ...}, 
AT_EMPTY_PATH) = 0
5171  openat(AT_FDCWD, "../.././gcc/config/aarch64/aarch64-opts.h", 
O_RDONLY|O_NOCTTY) = -1 ENOENT (No such file or directory)
5171  openat(AT_FDCWD, "./config/aarch64/aarch64-opts.h", O_RDONLY|O_NOCTTY) = 
-1 ENOENT (No such file or directory)
5171  openat(AT_FDCWD, 
"../../../../src/gcc/libgcc/config/aarch64/aarch64-opts.h", O_RDONLY|O_NOCTTY) 
= -1 ENOENT (No such file or directory)
5171  openat(AT_FDCWD, 
"../../../../src/gcc/libgcc/../gcc/config/aarch64/aarch64-opts.h", 
O_RDONLY|O_NOCTTY) = 4
5171  newfstatat(4, "", {st_mode=S_IFREG|0644, st_size=4971, ...}, 
AT_EMPTY_PATH) = 0
5171  openat(AT_FDCWD, 
"../../../../src/gcc/libgcc/../gcc/config/aarch64/aarch64-cores.def", 
O_RDONLY|O_NOCTTY) = 4
5171  newfstatat(4, "", {st_mode=S_IFREG|0644, st_size=13282, ...}, 
AT_EMPTY_PATH) = 0
5171  openat(AT_FDCWD, 
"../../../../src/gcc/libgcc/../gcc/config/aarch64/aarch64-arches.def", 
O_RDONLY|O_NOCTTY) = 4
5171  newfstatat(4, "", {st_mode=S_IFREG|0644, st_size=2727, ...}, 
AT_EMPTY_PATH) = 0
5171  openat(AT_FDCWD, "../.././gcc/config/arm/aarch-common.h", 
O_RDONLY|O_NOCTTY) = -1 ENOENT (No such file or directory)
5171  openat(AT_FDCWD, "./config/arm/aarch-common.h", O_RDONLY|O_NOCTTY) = -1 
ENOENT (No such file or directory)
5171  openat(AT_FDCWD, "../../../../src/gcc/libgcc/config/arm/aarch-common.h", 
O_RDONLY|O_NOCTTY) = -1 ENOENT (No such file or directory)
5171  openat(AT_FDCWD, 
"../../../../src/gcc/libgcc/../gcc/config/arm/aarch-common.h", 
O_RDONLY|O_NOCTTY) = 4
5171  newfstatat(4, "", {st_mode=S_IFREG|0644, st_size=1647, ...}, 
AT_EMPTY_PATH) = 0
5171  openat(AT_FDCWD, "../.././gcc/insn-constants.h", O_RDONLY|O_NOCTTY) = 4
5171  newfstatat(4, "", {st_mode=S_IFREG|0644, st_size=19225, ...}, 
AT_EMPTY_PATH) = 0
5171  openat(AT_FDCWD, "../.././gcc/config/aarch64/biarchlp64.h", 
O_RDONLY|O_NOCTTY) = -1 ENOENT (No such file or directory)
5171  openat(AT_FDCWD, "./config/aarch64/biarchlp64.h", O_RDONLY|O_NOCTTY) = -1 
ENOENT (No such file or directory)
5171  openat(AT_FDCWD, 
"../../../../src/gcc/libgcc/config/aarch64/biarchlp64.h", O_RDONLY|O_NOCTTY) = 
-1 ENOENT (No such file or directory)
5171  openat(AT_FDCWD, 
"../../../../src/gcc/libgcc/../gcc/config/aarch64/biarchlp64.h", 
O_RDONLY|O_NOCTTY) = 4
5171  newfstatat(4, "", {st_mode=S_IFREG|0644, st_size=1249, ...}, 
AT_EMPTY_PATH) = 0
5171  openat(AT_FDCWD, "../.././gcc/config/aarch64/aarch64.h", 
O_RDONLY|O_NOCTTY) = -1 ENOENT (No such file or directory)
5171  openat(AT_FDCWD, "./config/aarch64/aarch64.h", O_RDONLY|O_NOCTTY) = -1 
ENOENT (No such file or directory)
5171  openat(AT_FDCWD, "../../../../src/gcc/libgcc/config/aarch64/aarch64.h", 
O_RDONLY|O_NOCTTY) = -1 ENOENT (No such file or directory)
5171  openat(AT_FDCWD, 
"../../../../src/gcc/libgcc/../gcc/config/aarch64/aarch64.h", 
O_RDONLY|O_NOCTTY) = 4
5171  newfstatat(4, "", {st_mode=S_IFREG|0644, st_size=58612, ...}, 
AT_EMPTY_PATH) = 0
5171  openat(AT_FDCWD, 
"../../../../src/gcc/libgcc/../gcc/config/aarch64/config/aarch64/aarch64-opts.h",
 O_RDONLY|O_NOCTTY) = -1 ENOENT (No such file or directory)
5171  openat(AT_FDCWD, 
"../../../../src/gcc/libgcc/../gcc/config/aarch64/aarch64-cores.def", 
O_RDONLY|O_NOCTTY) = 4
5171  newfstatat(4, "", {st_mode=S_IFREG|0644, st_size=13282, ...}, 
AT_EMPTY_PATH) = 0
5171  openat(AT_FDCWD, 
"../../../../src/gcc/libgcc/../gcc/config/aarch64/insn-modes.h", 
O_RDONLY|O_NOCTTY) = -1 ENOENT (No such file or directory)
5171  openat(AT_FDCWD, "./insn-modes.h", O_RDONLY|O_NOCTTY) = -1 ENOENT (No 
such file or directory)
5171  openat(AT_FDCWD, "../.././gcc/insn-modes.h", O_RDONLY|O_NOCTTY) = 4
5171  newfstatat(4, "", {st_mode=S_IFREG|0644, st_size=40715, ...}, 
AT_EMPTY_PATH) = 0
5171  openat(AT_FDCWD, "../.././gcc/config/elfos.h", O_RDONLY|O_NOCTTY) = -1 
ENOENT (No such file or directory)
5171  openat(AT_FDCWD, "./config/elfos.h", O_RDONLY|O_NOCTTY) = -1 ENOENT (No 
such file or directory)
5171  openat(AT_FDCWD, "../../../../src/gcc/libgcc/config/elfos.h", 
O_RDONLY|O_NOCTTY) = -1 ENOENT (No such file or directory)
5171  openat(AT_FDCWD, "../../../../src/gcc/libgcc/../gcc/config/elfos.h", 
O_RDONLY|O_NOCTTY) = 4
5171  newfstatat(4, "", {st_mode=S_IFREG|0644, st_size=18063, ...}, 
AT_EMPTY_PATH) = 0
5171  openat(AT_FDCWD, "../.././gcc/config/newlib-stdint.h", O_RDONLY|O_NOCTTY) 
= -1 ENOENT (No such file or directory)
5171  openat(AT_FDCWD, "./config/newlib-stdint.h", O_RDONLY|O_NOCTTY) = -1 
ENOENT (No such file or directory)
5171  openat(AT_FDCWD, "../../../../src/gcc/libgcc/config/newlib-stdint.h", 
O_RDONLY|O_NOCTTY) = -1 ENOENT (No such file or directory)
5171  openat(AT_FDCWD, 
"../../../../src/gcc/libgcc/../gcc/config/newlib-stdint.h", O_RDONLY|O_NOCTTY) 
= 4
5171  newfstatat(4, "", {st_mode=S_IFREG|0644, st_size=3960, ...}, 
AT_EMPTY_PATH) = 0
5171  openat(AT_FDCWD, "../.././gcc/config/aarch64/aarch64-elf.h", 
O_RDONLY|O_NOCTTY) = -1 ENOENT (No such file or directory)
5171  openat(AT_FDCWD, "./config/aarch64/aarch64-elf.h", O_RDONLY|O_NOCTTY) = 
-1 ENOENT (No such file or directory)
5171  openat(AT_FDCWD, 
"../../../../src/gcc/libgcc/config/aarch64/aarch64-elf.h", O_RDONLY|O_NOCTTY) = 
-1 ENOENT (No such file or directory)
5171  openat(AT_FDCWD, 
"../../../../src/gcc/libgcc/../gcc/config/aarch64/aarch64-elf.h", 
O_RDONLY|O_NOCTTY) = 4
5171  newfstatat(4, "", {st_mode=S_IFREG|0644, st_size=4377, ...}, 
AT_EMPTY_PATH) = 0
5171  openat(AT_FDCWD, "../.././gcc/config/aarch64/aarch64-errata.h", 
O_RDONLY|O_NOCTTY) = -1 ENOENT (No such file or directory)
5171  openat(AT_FDCWD, "./config/aarch64/aarch64-errata.h", O_RDONLY|O_NOCTTY) 
= -1 ENOENT (No such file or directory)
5171  openat(AT_FDCWD, 
"../../../../src/gcc/libgcc/config/aarch64/aarch64-errata.h", 
O_RDONLY|O_NOCTTY) = -1 ENOENT (No such file or directory)
5171  openat(AT_FDCWD, 
"../../../../src/gcc/libgcc/../gcc/config/aarch64/aarch64-errata.h", 
O_RDONLY|O_NOCTTY) = 4
5171  newfstatat(4, "", {st_mode=S_IFREG|0644, st_size=1433, ...}, 
AT_EMPTY_PATH) = 0
5171  openat(AT_FDCWD, "../.././gcc/config/aarch64/aarch64-elf-raw.h", 
O_RDONLY|O_NOCTTY) = -1 ENOENT (No such file or directory)
5171  openat(AT_FDCWD, "./config/aarch64/aarch64-elf-raw.h", O_RDONLY|O_NOCTTY) 
= -1 ENOENT (No such file or directory)
5171  openat(AT_FDCWD, 
"../../../../src/gcc/libgcc/config/aarch64/aarch64-elf-raw.h", 
O_RDONLY|O_NOCTTY) = -1 ENOENT (No such file or directory)
5171  openat(AT_FDCWD, 
"../../../../src/gcc/libgcc/../gcc/config/aarch64/aarch64-elf-raw.h", 
O_RDONLY|O_NOCTTY) = 4
5171  newfstatat(4, "", {st_mode=S_IFREG|0644, st_size=1425, ...}, 
AT_EMPTY_PATH) = 0
5171  openat(AT_FDCWD, "../.././gcc/config/initfini-array.h", 
O_RDONLY|O_NOCTTY) = -1 ENOENT (No such file or directory)
5171  openat(AT_FDCWD, "./config/initfini-array.h", O_RDONLY|O_NOCTTY) = -1 
ENOENT (No such file or directory)
5171  openat(AT_FDCWD, "../../../../src/gcc/libgcc/config/initfini-array.h", 
O_RDONLY|O_NOCTTY) = -1 ENOENT (No such file or directory)
5171  openat(AT_FDCWD, 
"../../../../src/gcc/libgcc/../gcc/config/initfini-array.h", O_RDONLY|O_NOCTTY) 
= 4
5171  newfstatat(4, "", {st_mode=S_IFREG|0644, st_size=1625, ...}, 
AT_EMPTY_PATH) = 0
5171  openat(AT_FDCWD, "../.././gcc/insn-modes.h", O_RDONLY|O_NOCTTY) = 4
5171  newfstatat(4, "", {st_mode=S_IFREG|0644, st_size=40715, ...}, 
AT_EMPTY_PATH) = 0
5171  openat(AT_FDCWD, "../.././gcc/defaults.h", O_RDONLY|O_NOCTTY) = -1 ENOENT 
(No such file or directory)
5171  openat(AT_FDCWD, "./defaults.h", O_RDONLY|O_NOCTTY) = -1 ENOENT (No such 
file or directory)
5171  openat(AT_FDCWD, "../../../../src/gcc/libgcc/defaults.h", 
O_RDONLY|O_NOCTTY) = -1 ENOENT (No such file or directory)
5171  openat(AT_FDCWD, "../../../../src/gcc/libgcc/../gcc/defaults.h", 
O_RDONLY|O_NOCTTY) = 4
5171  newfstatat(4, "", {st_mode=S_IFREG|0644, st_size=42315, ...}, 
AT_EMPTY_PATH) = 0
5171  openat(AT_FDCWD, "../../../../src/gcc/libgcc/libgcc_tm.h", 
O_RDONLY|O_NOCTTY) = -1 ENOENT (No such file or directory)
5171  openat(AT_FDCWD, "./libgcc_tm.h", O_RDONLY|O_NOCTTY) = 4
5171  newfstatat(4, "", {st_mode=S_IFREG|0644, st_size=180, ...}, 
AT_EMPTY_PATH) = 0
5171  openat(AT_FDCWD, 
"./../../../../src/gcc/libgcc/config/aarch64/value-unwind.h", 
O_RDONLY|O_NOCTTY) = 4
5171  newfstatat(4, "", {st_mode=S_IFREG|0644, st_size=1793, ...}, 
AT_EMPTY_PATH) = 0
5171  openat(AT_FDCWD, "../../../../src/gcc/libgcc/dwarf2.h", 
O_RDONLY|O_NOCTTY) = -1 ENOENT (No such file or directory)
5171  openat(AT_FDCWD, "./dwarf2.h", O_RDONLY|O_NOCTTY) = -1 ENOENT (No such 
file or directory)
5171  openat(AT_FDCWD, "../.././gcc/dwarf2.h", O_RDONLY|O_NOCTTY) = -1 ENOENT 
(No such file or directory)
5171  openat(AT_FDCWD, "../../../../src/gcc/libgcc/../gcc/dwarf2.h", 
O_RDONLY|O_NOCTTY) = -1 ENOENT (No such file or directory)
5171  openat(AT_FDCWD, "../../../../src/gcc/libgcc/../include/dwarf2.h", 
O_RDONLY|O_NOCTTY) = 4
5171  newfstatat(4, "", {st_mode=S_IFREG|0644, st_size=16306, ...}, 
AT_EMPTY_PATH) = 0
5171  openat(AT_FDCWD, "../../../../src/gcc/libgcc/../include/dwarf2.def", 
O_RDONLY|O_NOCTTY) = 4
5171  newfstatat(4, "", {st_mode=S_IFREG|0644, st_size=28693, ...}, 
AT_EMPTY_PATH) = 0
5171  openat(AT_FDCWD, "../../../../src/gcc/libgcc/unwind.h", 
O_RDONLY|O_NOCTTY) = -1 ENOENT (No such file or directory)
5171  openat(AT_FDCWD, "./unwind.h", O_RDONLY|O_NOCTTY) = 4
5171  newfstatat(4, "", {st_mode=S_IFREG|0644, st_size=10938, ...}, 
AT_EMPTY_PATH) = 0
5171  openat(AT_FDCWD, "../../../../src/gcc/libgcc/unwind-pe.h", 
O_RDONLY|O_NOCTTY) = 4
5171  newfstatat(4, "", {st_mode=S_IFREG|0644, st_size=8055, ...}, 
AT_EMPTY_PATH) = 0
5171  openat(AT_FDCWD, "../../../../src/gcc/libgcc/unwind-pe.h", O_RDONLY) = 4
5171  newfstatat(4, "", {st_mode=S_IFREG|0644, st_size=8055, ...}, 
AT_EMPTY_PATH) = 0
5171  openat(AT_FDCWD, "../../../../src/gcc/libgcc/unwind-dw2-fde.h", 
O_RDONLY|O_NOCTTY) = 5
5171  newfstatat(5, "", {st_mode=S_IFREG|0644, st_size=5333, ...}, 
AT_EMPTY_PATH) = 0
5171  openat(AT_FDCWD, "../../../../src/gcc/libgcc/gthr.h", O_RDONLY|O_NOCTTY) 
= 5
5171  newfstatat(5, "", {st_mode=S_IFREG|0644, st_size=5776, ...}, 
AT_EMPTY_PATH) = 0
5171  openat(AT_FDCWD, "../../../../src/gcc/libgcc/gthr-default.h", 
O_RDONLY|O_NOCTTY) = -1 ENOENT (No such file or directory)
5171  openat(AT_FDCWD, "./gthr-default.h", O_RDONLY|O_NOCTTY) = 5
5171  newfstatat(5, "", {st_mode=S_IFREG|0644, st_size=6520, ...}, 
AT_EMPTY_PATH) = 0
5171  openat(AT_FDCWD, "../../../../src/gcc/libgcc/unwind-dw2.h", 
O_RDONLY|O_NOCTTY) = 5
5171  newfstatat(5, "", {st_mode=S_IFREG|0644, st_size=2965, ...}, 
AT_EMPTY_PATH) = 0
5171  openat(AT_FDCWD, "../../../../src/gcc/libgcc/md-unwind-def.h", 
O_RDONLY|O_NOCTTY) = -1 ENOENT (No such file or directory)
5171  openat(AT_FDCWD, "./md-unwind-def.h", O_RDONLY|O_NOCTTY) = 5
5171  newfstatat(5, "", {st_mode=S_IFREG|0644, st_size=1454, ...}, 
AT_EMPTY_PATH) = 0
5171  openat(AT_FDCWD, 
"/data/build-dir/gcc-aarch64-none-elf/gcc/include/stddef.h", O_RDONLY|O_NOCTTY) 
= 5
5171  newfstatat(5, "", {st_mode=S_IFREG|0644, st_size=13735, ...}, 
AT_EMPTY_PATH) = 0
5171  openat(AT_FDCWD, "../../../../src/gcc/libgcc/unwind-dw2.c", O_RDONLY) = 5
5171  newfstatat(5, "", {st_mode=S_IFREG|0644, st_size=40897, ...}, 
AT_EMPTY_PATH) = 0
5171  openat(AT_FDCWD, "../../../../src/gcc/libgcc/md-unwind-support.h", 
O_RDONLY|O_NOCTTY) = -1 ENOENT (No such file or directory)
5171  openat(AT_FDCWD, "./md-unwind-support.h", O_RDONLY|O_NOCTTY) = 6
5171  newfstatat(6, "", {st_mode=S_IFREG|0644, st_size=7581, ...}, 
AT_EMPTY_PATH) = 0
5171  openat(AT_FDCWD, "./aarch64-unwind-def.h", O_RDONLY|O_NOCTTY) = -1 ENOENT 
(No such file or directory)
5171  openat(AT_FDCWD, "../.././gcc/aarch64-unwind-def.h", O_RDONLY|O_NOCTTY) = 
-1 ENOENT (No such file or directory)
5171  openat(AT_FDCWD, "../../../../src/gcc/libgcc/aarch64-unwind-def.h", 
O_RDONLY|O_NOCTTY) = -1 ENOENT (No such file or directory)
5171  openat(AT_FDCWD, 
"../../../../src/gcc/libgcc/../gcc/aarch64-unwind-def.h", O_RDONLY|O_NOCTTY) = 
-1 ENOENT (No such file or directory)
5171  openat(AT_FDCWD, 
"../../../../src/gcc/libgcc/../include/aarch64-unwind-def.h", 
O_RDONLY|O_NOCTTY) = -1 ENOENT (No such file or directory)
5171  readlinkat(AT_FDCWD, "/data", 0xffffec124610, 1023) = -1 EINVAL (Invalid 
argument)
5171  readlinkat(AT_FDCWD, "/data/build-dir", 0xffffec124610, 1023) = -1 EINVAL 
(Invalid argument)
5171  readlinkat(AT_FDCWD, "/data/build-dir/gcc-aarch64-none-elf", 
0xffffec124610, 1023) = -1 EINVAL (Invalid argument)
5171  readlinkat(AT_FDCWD, "/data/build-dir/gcc-aarch64-none-elf/gcc", 
0xffffec124610, 1023) = -1 EINVAL (Invalid argument)
5171  readlinkat(AT_FDCWD, "/data/build-dir/gcc-aarch64-none-elf/gcc/include", 
0xffffec124610, 1023) = -1 EINVAL (Invalid argument)
5171  readlinkat(AT_FDCWD, 
"/data/build-dir/gcc-aarch64-none-elf/gcc/include/aarch64-unwind-def.h", 
0xffffec124610, 1023) = -1 ENOENT (No such file or directory)
5171  openat(AT_FDCWD, 
"/data/build-dir/gcc-aarch64-none-elf/./gcc/include/aarch64-unwind-def.h", 
O_RDONLY|O_NOCTTY) = -1 ENOENT (No such file or directory)
5171  readlinkat(AT_FDCWD, "/data", 0xffffec124610, 1023) = -1 EINVAL (Invalid 
argument)
5171  readlinkat(AT_FDCWD, "/data/build-dir", 0xffffec124610, 1023) = -1 EINVAL 
(Invalid argument)
5171  readlinkat(AT_FDCWD, "/data/build-dir/gcc-aarch64-none-elf", 
0xffffec124610, 1023) = -1 EINVAL (Invalid argument)
5171  readlinkat(AT_FDCWD, "/data/build-dir/gcc-aarch64-none-elf/gcc", 
0xffffec124610, 1023) = -1 EINVAL (Invalid argument)
5171  readlinkat(AT_FDCWD, 
"/data/build-dir/gcc-aarch64-none-elf/gcc/include-fixed", 0xffffec124610, 1023) 
= -1 EINVAL (Invalid argument)
5171  readlinkat(AT_FDCWD, 
"/data/build-dir/gcc-aarch64-none-elf/gcc/include-fixed/aarch64-unwind-def.h", 
0xffffec124610, 1023) = -1 ENOENT (No such file or directory)
5171  openat(AT_FDCWD, 
"/data/build-dir/gcc-aarch64-none-elf/./gcc/include-fixed/aarch64-unwind-def.h",
 O_RDONLY|O_NOCTTY) = -1 ENOENT (No such file or directory)
5171  openat(AT_FDCWD, "/usr/share/locale/en_US.UTF-8/LC_MESSAGES/libc.mo", 
O_RDONLY) = -1 ENOENT (No such file or directory)
5171  openat(AT_FDCWD, "/usr/share/locale/en_US.utf8/LC_MESSAGES/libc.mo", 
O_RDONLY) = -1 ENOENT (No such file or directory)
5171  openat(AT_FDCWD, "/usr/share/locale/en_US/LC_MESSAGES/libc.mo", O_RDONLY) 
= -1 ENOENT (No such file or directory)
5171  openat(AT_FDCWD, "/usr/share/locale/en.UTF-8/LC_MESSAGES/libc.mo", 
O_RDONLY) = -1 ENOENT (No such file or directory)
5171  openat(AT_FDCWD, "/usr/share/locale/en.utf8/LC_MESSAGES/libc.mo", 
O_RDONLY) = -1 ENOENT (No such file or directory)
5171  openat(AT_FDCWD, "/usr/share/locale/en/LC_MESSAGES/libc.mo", O_RDONLY) = 
-1 ENOENT (No such file or directory)
5171  openat(AT_FDCWD, 
"/usr/share/locale-langpack/en_US.UTF-8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 
ENOENT (No such file or directory)
5171  openat(AT_FDCWD, 
"/usr/share/locale-langpack/en_US.utf8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 
ENOENT (No such file or directory)
5171  openat(AT_FDCWD, "/usr/share/locale-langpack/en_US/LC_MESSAGES/libc.mo", 
O_RDONLY) = -1 ENOENT (No such file or directory)
5171  openat(AT_FDCWD, 
"/usr/share/locale-langpack/en.UTF-8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 
ENOENT (No such file or directory)
5171  openat(AT_FDCWD, 
"/usr/share/locale-langpack/en.utf8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT 
(No such file or directory)
5171  openat(AT_FDCWD, "/usr/share/locale-langpack/en/LC_MESSAGES/libc.mo", 
O_RDONLY) = -1 ENOENT (No such file or directory)
5171  openat(AT_FDCWD, 
"/data/common-sysroot/aarch64-none-elf/share/locale/en_US.UTF-8/LC_MESSAGES/cpplib.mo",
 O_RDONLY) = -1 ENOENT (No such file or directory)
5171  openat(AT_FDCWD, 
"/data/common-sysroot/aarch64-none-elf/share/locale/en_US.utf8/LC_MESSAGES/cpplib.mo",
 O_RDONLY) = -1 ENOENT (No such file or directory)
5171  openat(AT_FDCWD, 
"/data/common-sysroot/aarch64-none-elf/share/locale/en_US/LC_MESSAGES/cpplib.mo",
 O_RDONLY) = -1 ENOENT (No such file or directory)
5171  openat(AT_FDCWD, 
"/data/common-sysroot/aarch64-none-elf/share/locale/en.UTF-8/LC_MESSAGES/cpplib.mo",
 O_RDONLY) = -1 ENOENT (No such file or directory)
5171  openat(AT_FDCWD, 
"/data/common-sysroot/aarch64-none-elf/share/locale/en.utf8/LC_MESSAGES/cpplib.mo",
 O_RDONLY) = -1 ENOENT (No such file or directory)
5171  openat(AT_FDCWD, 
"/data/common-sysroot/aarch64-none-elf/share/locale/en/LC_MESSAGES/cpplib.mo", 
O_RDONLY) = -1 ENOENT (No such file or directory)
5171  openat(AT_FDCWD, 
"/usr/share/locale-langpack/en_US.UTF-8/LC_MESSAGES/cpplib.mo", O_RDONLY) = -1 
ENOENT (No such file or directory)
5171  openat(AT_FDCWD, 
"/usr/share/locale-langpack/en_US.utf8/LC_MESSAGES/cpplib.mo", O_RDONLY) = -1 
ENOENT (No such file or directory)
5171  openat(AT_FDCWD, 
"/usr/share/locale-langpack/en_US/LC_MESSAGES/cpplib.mo", O_RDONLY) = -1 ENOENT 
(No such file or directory)
5171  openat(AT_FDCWD, 
"/usr/share/locale-langpack/en.UTF-8/LC_MESSAGES/cpplib.mo", O_RDONLY) = -1 
ENOENT (No such file or directory)
5171  openat(AT_FDCWD, 
"/usr/share/locale-langpack/en.utf8/LC_MESSAGES/cpplib.mo", O_RDONLY) = -1 
ENOENT (No such file or directory)
5171  openat(AT_FDCWD, "/usr/share/locale-langpack/en/LC_MESSAGES/cpplib.mo", 
O_RDONLY) = -1 ENOENT (No such file or directory)
5171  openat(AT_FDCWD, "./md-unwind-support.h", O_RDONLY) = 6
5171  newfstatat(6, "", {st_mode=S_IFREG|0644, st_size=7581, ...}, 
AT_EMPTY_PATH) = 0
5171  +++ exited with 1 +++
5170  --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5171, 
si_uid=58417, si_status=1, si_utime=9, si_stime=2} ---
5170  newfstatat(AT_FDCWD, "/tmp/cctkV6Ap.s", {st_mode=S_IFREG|0600, 
st_size=41, ...}, 0) = 0
5170  unlinkat(AT_FDCWD, "/tmp/cctkV6Ap.s", 0) = 0
5170  +++ exited with 1 +++

Reply via email to