Skip to contentSkip to conversation

automation: fix builds with clang

PATCH In review Doug Goldstein 2 participants 3 messages Jul 10, 2018 – Jul 11, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 automation: fix builds with clang

a75703b2f0f585a2fc6a7bcdb7d16a61bcf5e6b0 unconditionally enabled building of rombios and stubdoms but unfortunately these two pieces do not build successfully with clang. rombios unconditionally depends on the build of iPXE and upstream iPXE does not support building with clang. Similiarly the build of the stubdoms depends on the build of newlib which does not support being built with clang.

---
 automation/scripts/build | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
automation/scripts/build +5 -1
index b9e4c1e329..8bbca15a51 100755
@@ -13,9 +13,13 @@ fi
 cfgargs=()
 cfgargs+=("--enable-docs")
 
-# SeaBIOS cannot be built with clang
 if [[ "${CC}" == "clang" ]]; then
+    # SeaBIOS cannot be built with clang
     cfgargs+=("--with-system-seabios=/usr/share/seabios/bios.bin")
+    # iPXE cannot be built with clang so we cannot build rombios
+    cfgargs+=("--disable-rombios")
+    # newlib cannot be built with clang so we cannot build stubdoms
+    cfgargs+=("--disable-stubdom")
 fi
 
 if [[ "${XEN_TARGET_ARCH}" == "arm64" || "${XEN_TARGET_ARCH}" == "arm32" ]]; then
Signature · 7 lines
2.16.1


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Acked-by on v1 1/1
#2 lore raw
In reply to Doug Goldstein
Quoted 4 lines · Doug Goldstein

a75703b2f0f585a2fc6a7bcdb7d16a61bcf5e6b0 unconditionally enabled building of rombios and stubdoms but unfortunately these two pieces do not build successfully with clang. rombios unconditionally depends on the build of iPXE and upstream iPXE does not support building with

The dependency of rombios for ipxe will soon change -- I wrote a patch series to provide --with-system-ipxe. Does rombios build with clang? If so I will submit a patch to enable rombios in the future.

Quoted 4 lines

clang. Similiarly the build of the stubdoms depends on the build of newlib which does not support being built with clang.

For now:

Thanks for fixing this.

Wei.

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel