From: "Philippe Mathieu-Daudé" <philmd@redhat.com>
To: qemu-devel@nongnu.org
Cc: "Thomas Huth" <thuth@redhat.com>,
"Philippe Mathieu-Daudé" <philmd@redhat.com>,
"Cornelia Huck" <cohuck@redhat.com>,
"Philippe Mathieu-Daudé" <f4bug@amsat.org>,
"Wainer dos Santos Moschetta" <wainersm@redhat.com>,
"Willian Rampazzo" <willianr@redhat.com>,
"Christian Borntraeger" <borntraeger@de.ibm.com>,
qemu-s390x@nongnu.org, "Alex Bennée" <alex.bennee@linaro.org>
Subject: [PATCH] travis-ci: Use clang-10 for the [s390x] Clang (disable-tcg) job
Date: Wed, 12 May 2021 17:22:31 +0200 [thread overview]
Message-ID: <20210512152231.3423265-1-philmd@redhat.com> (raw)
On Ubuntu Bionic 18.04 LTS clang binary points to the 6.0 version:
$ clang --version
clang version 6.0.0-1ubuntu2 (tags/RELEASE_600/final)
However we can install clang-10 from the bionic-updates stream [*]
and use it, to silent the following warnings:
CC pc-bios/s390-ccw/main.o
clang: warning: optimization flag '-fno-delete-null-pointer-checks' is not supported [-Wignored-optimization-argument]
clang: warning: argument unused during compilation: '-msoft-float' [-Wunused-command-line-argument]
/home/travis/build/qemu/qemu/pc-bios/s390-ccw/main.c:284:5: warning: no previous prototype for function 'main' [-Wmissing-prototypes]
int main(void)
^
1 warning generated.
clang: warning: optimization flag '-fno-delete-null-pointer-checks' is not supported [-Wignored-optimization-argument]
[*] https://packages.ubuntu.com/bionic-updates/clang-10
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
---
However this doesn't resolve:
/home/travis/build/philmd/qemu/pc-bios/s390-ccw/jump2ipl.c:67:18: error: invalid operand for instruction
asm volatile("lghi 1,1\n\t"
^
<inline asm>:1:7: note: instantiated into assembly here
lghi 1,1
^
/home/travis/build/philmd/qemu/pc-bios/s390-ccw/jump2ipl.c:67:29: error: invalid operand for instruction
asm volatile("lghi 1,1\n\t"
^
<inline asm>:2:7: note: instantiated into assembly here
diag 1,1,0x308
^
2 errors generated.
Makefile:20: recipe for target 'jump2ipl.o' failed
make[1]: *** [jump2ipl.o] Error 1
(see https://travis-ci.org/github/philmd/qemu/jobs/770920106#L1803,
https://travis-ci.org/github/philmd/qemu/jobs/770920522#L1818 for
more errors).
---
.travis.yml | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/.travis.yml b/.travis.yml
index 4609240b5aa..9c0deea9a06 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -278,6 +278,7 @@ jobs:
compiler: clang
addons:
apt_packages:
+ - clang-10
- libaio-dev
- libattr1-dev
- libbrlapi-dev
@@ -303,7 +304,7 @@ jobs:
env:
- TEST_CMD="make check-unit"
- CONFIG="--disable-containers --disable-tcg --enable-kvm
- --disable-tools --host-cc=clang --cxx=clang++"
+ --disable-tools --host-cc=clang-10 --cc=clang-10 --cxx=clang++-10"
- UNRELIABLE=true
# Release builds
--
2.26.3
next reply other threads:[~2021-05-12 15:25 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-05-12 15:22 Philippe Mathieu-Daudé [this message]
2021-05-12 15:26 ` [PATCH] travis-ci: Use clang-10 for the [s390x] Clang (disable-tcg) job Philippe Mathieu-Daudé
2021-05-12 15:44 ` Thomas Huth
2021-05-12 15:55 ` Daniel P. Berrangé
2021-05-12 16:05 ` Daniel P. Berrangé
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=20210512152231.3423265-1-philmd@redhat.com \
--to=philmd@redhat.com \
--cc=alex.bennee@linaro.org \
--cc=borntraeger@de.ibm.com \
--cc=cohuck@redhat.com \
--cc=f4bug@amsat.org \
--cc=qemu-devel@nongnu.org \
--cc=qemu-s390x@nongnu.org \
--cc=thuth@redhat.com \
--cc=wainersm@redhat.com \
--cc=willianr@redhat.com \
/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: link
Be 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 NNTP newsgroup(s).