Opened 9 years ago
Closed 9 years ago
#10503 closed enhancement (fixed)
llvm-6.0.0
| Reported by: | Armin K | Owned by: | Bruce Dubbs |
|---|---|---|---|
| Priority: | normal | Milestone: | 8.3 |
| Component: | BOOK | Version: | SVN |
| Severity: | medium | Keywords: | |
| Cc: |
Description
http://releases.llvm.org/download.html
Currency script is broken
Change History (6)
comment:1 by , 9 years ago
| Owner: | changed from to |
|---|
comment:2 by , 9 years ago
comment:3 by , 9 years ago
Should be fixed with mesa-17.3.7. Also, llvm-6.0.0 is the version used in upcoming rust-1.25. It would be good if we could use system llvm with rust!
comment:4 by , 9 years ago
| Owner: | changed from to |
|---|---|
| Status: | new → assigned |
comment:5 by , 9 years ago
Release notes are at http://releases.llvm.org/6.0.0/docs/ReleaseNotes.html
Note:
See TracTickets
for help on using tickets.

https://lists.freedesktop.org/archives/mesa-dev/2017-November/175944.html
looks like 6.0 causes trouble in mesa (at least in 17.3.5):
CC gallivm/lp_bld_gather.lo CC gallivm/lp_bld_init.lo CC gallivm/lp_bld_intr.lo CC gallivm/lp_bld_logic.lo CXX gallivm/lp_bld_misc.lo gallivm/lp_bld_misc.cpp: In Funktion »LLVMOpaqueBuilder* lp_create_builder(LLVMContextRef, lp_float_mode)«: gallivm/lp_bld_misc.cpp:833:13: Fehler: »class llvm::FastMathFlags« hat kein Element namens »setUnsafeAlgebra« flags.setUnsafeAlgebra(); ^~~~~~~~~~~~~~~~ make[4]: *** [Makefile:2355: gallivm/lp_bld_misc.lo] Fehler 1 make[4]: Verzeichnis „/tmp/MesaLib/build/mesa-17.3.5/src/gallium/auxiliary“ wird verlassen make[3]: *** [Makefile:610: all-recursive] Fehler 1 make[3]: Verzeichnis „/tmp/MesaLib/build/mesa-17.3.5/src/gallium“ wird verlassen make[2]: *** [Makefile:861: all-recursive] Fehler 1 make[2]: Verzeichnis „/tmp/MesaLib/build/mesa-17.3.5/src“ wird verlassen make[1]: *** [Makefile:652: all] Fehler 2 make[1]: Verzeichnis „/tmp/MesaLib/build/mesa-17.3.5/src“ wird verlassen make: *** [Makefile:659: all-recursive] Fehler 1The mentioned modification
diff --git a/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp b/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp --- a/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp +++ b/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp @@ -830,7 +830,11 @@ lp_create_builder(LLVMContextRef ctx, enum lp_float_mode float_mode) llvm::unwrap(builder)->setFastMathFlags(flags); break; case LP_FLOAT_MODE_UNSAFE_FP_MATH: +#if HAVE_LLVM >= 0x0600 + flags.setFast(); +#else flags.setUnsafeAlgebra(); +#endif llvm::unwrap(builder)->setFastMathFlags(flags); break;makes it compilable.