Bug 14836

Summary: aufs-util build not working
Product: buildroot Reporter: Blob <me>
Component: OtherAssignee: unassigned
Status: RESOLVED MOVED    
Severity: normal CC: buildroot, me, yann.morin.1998
Priority: P5    
Version: 2022.02.2   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Host: Target:
Build:

Description Blob 2022-06-05 14:07:17 UTC
Hello

We have observed a build failure related to aufs-util (version aufs5.8) on buildroot 2022.02.2 and 2022.05-rc2. Attempts at fixing the problem ourselves were unsuccessful, since the errors just kept on coming. You fix one, another pops up. The first error:

```
In file included from /root/test2/buildroot-2022.02.2/output/build/linux-5.15.18/include/uapi/linux/posix_types.h:5,
                 from /root/test2/buildroot-2022.02.2/output/build/linux-5.15.18/include/uapi/linux/types.h:14,
                 from /root/test2/buildroot-2022.02.2/output/build/linux-5.15.18/include/uapi/linux/stat.h:5,
                 from /usr/include/x86_64-linux-gnu/bits/statx.h:31,
                 from /usr/include/x86_64-linux-gnu/sys/stat.h:446,
                 from /usr/include/ftw.h:28,
                 from au_util.h:23,
                 from ver.c:25:
/root/test2/buildroot-2022.02.2/output/build/linux-5.15.18/include/uapi/linux/stddef.h:2:10: fatal error: linux/compiler_types.h: No such file or directory
    2 | #include <linux/compiler_types.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
```

We fixed this by modifying the include paths, but then the second error came:

```
gcc: error: pre: No such file or directory
make[1]: *** [<builtin>: c2sh] Error 1
```

This was fixed by creating an empty file called pre in the aufs-util build directory, but then, we got this error instead:

```
make[2]: *** No rule to make target '../extlib/glibc/error_at_line.h', needed by 'libau.o'.  Stop.
make[2]: Leaving directory '/root/test/buildroot-2022.05-rc2/output/build/aufs-util-aufs5.8/libau'
make[1]: *** [Makefile:106: all] Error 2
```

At this point we gave up trying to fix this ourselves.

Regards
Comment 1 Yann E. MORIN 2024-06-15 15:03:18 UTC
Thank you for your report.

The issue tracker for the Buildroot project has been moved to
the Gitlab.com issue tracker:
    https://gitlab.com/buildroot.org/buildroot/-/issues

We are taking this opportunity to close old issues in this old
tracker. If you believe your issue is still relevant, please
open one in the new issue tracker.

Thank you!