automation: Fix the Alpine clang builds to use clang
PATCH 1/1 automation: Fix the Alpine clang builds to use clang
Looks like a copy&paste error.
---
CC: Doug Goldstein <[email protected]>
CC: Ian Jackson <[email protected]>
CC: Stefano Stabellini <[email protected]>
--- automation/gitlab-ci/build.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
automation/gitlab-ci/build.yaml +2 -2
@@ -443,13 +443,13 @@ alpine-3.12-gcc-debug: allow_failure: true alpine-3.12-clang: - extends: .gcc-x86-64-build + extends: .clang-x86-64-build variables: CONTAINER: alpine:3.12 allow_failure: true alpine-3.12-clang-debug: - extends: .gcc-x86-64-build-debug + extends: .clang-x86-64-build-debug variables: CONTAINER: alpine:3.12 allow_failure: true
Signature · 1 line
2.11.0
Quoted 4 lines · Andrew Cooper
Looks like a copy&paste error.
Fixes f6e1d8515d7 ("automation: add alpine linux x86 build jobs")Signed-off-by Andrew Cooper <[email protected]>
Thanks for the patch and of course it is correct
However unfortunately it breaks the Alpine Linux gitlab-ci again :-( I created a branch with Roger's patches plus this patch. The two clang Alpine Linux build jobs fail:
https://gitlab.com/xen-project/people/sstabellini/xen/-/jobs/1059686530
https://gitlab.com/xen-project/people/sstabellini/xen/-/jobs/1059686532
The error is the following:
<built-in>:3:10: fatal error: 'cstring' file not found
#include "cstring"
^~~~~~~~~1 error generated.
make[10]: *** [Makefile:120: headers++.chk] Error 1 make[10]: *** Waiting for unfinished jobs....
Quoted 31 lines
---
CC: Doug Goldstein <[email protected]>
CC: Ian Jackson <[email protected]>
CC: Stefano Stabellini <[email protected]>--- automation/gitlab-ci/build.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)automation/gitlab-ci/build.yaml +2
-2@@ -443,13 +443,13 @@ alpine-3.12-gcc-debug: allow_failure: true alpine-3.12-clang: - extends: .gcc-x86-64-build + extends: .clang-x86-64-build variables: CONTAINER: alpine:3.12 allow_failure: true alpine-3.12-clang-debug: - extends: .gcc-x86-64-build-debug + extends: .clang-x86-64-build-debug variables: CONTAINER: alpine:3.12 allow_failure: trueSignature · 1 line
2.11.0
Quoted 19 lines · Stefano Stabellini
Quoted 4 lines · Andrew Cooper
Looks like a copy&paste error.
Fixes f6e1d8515d7 ("automation: add alpine linux x86 build jobs")Signed-off-by Andrew Cooper <[email protected]>Thanks for the patch and of course it is correct
However unfortunately it breaks the Alpine Linux gitlab-ci again :-( I created a branch with Roger's patches plus this patch. The two clang Alpine Linux build jobs fail:
https://gitlab.com/xen-project/people/sstabellini/xen/-/jobs/1059686530
https://gitlab.com/xen-project/people/sstabellini/xen/-/jobs/1059686532
Quoted 8 lines
The error is the following:
<built-in>:3:10: fatal error: 'cstring' file not found
#include "cstring" ^~~~~~~~~1 error generated.
make[10]: *** [Makefile:120: headers++.chk] Error 1 make[10]: *** Waiting for unfinished jobs....
Doesn't this suggest there's a C++ compiler installed without the headers also being available? The headers++.chk rule requires neither or both to be present.
Jan
Quoted 29 lines · Jan Beulich
Quoted 19 lines · Stefano Stabellini
Quoted 4 lines · Andrew Cooper
Looks like a copy&paste error.
Fixes f6e1d8515d7 ("automation: add alpine linux x86 build jobs")Signed-off-by Andrew Cooper <[email protected]>Thanks for the patch and of course it is correct
However unfortunately it breaks the Alpine Linux gitlab-ci again :-( I created a branch with Roger's patches plus this patch. The two clang Alpine Linux build jobs fail:
https://gitlab.com/xen-project/people/sstabellini/xen/-/jobs/1059686530
https://gitlab.com/xen-project/people/sstabellini/xen/-/jobs/1059686532Quoted 8 lines
The error is the following:
<built-in>:3:10: fatal error: 'cstring' file not found
#include "cstring" ^~~~~~~~~1 error generated.
make[10]: *** [Makefile:120: headers++.chk] Error 1 make[10]: *** Waiting for unfinished jobs....
Quoted 3 lines
Doesn't this suggest there's a C++ compiler installed without the headers also being available? The headers++.chk rule requires neither or both to be present.
Right, that's because the include path for clang++ seems to rely on the gcc c++ headers:
#include <...> search starts here:
/usr/bin/../lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../include/c++/10.2.1 /usr/bin/../lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../include/c++/10.2.1/x86_64-alpine-linux-musl /usr/bin/../lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../include/c++/10.2.1/backward /usr/include
/usr/lib/clang/10.0.1/include
It's solved by installing g++, I will prepare a patch against the docker file. I've got no idea why clang doesn't install the required c++ headers (or simply pull in g++ if that's required).
It's unrelated to the -ffreestanding issue.
Roger.
Quoted 4 lines · Andrew Cooper
Looks like a copy&paste error.
Fixes f6e1d8515d7 ("automation: add alpine linux x86 build jobs")Signed-off-by Andrew Cooper <[email protected]>
Thanks, Roger.