Opened 6 years ago

Closed 6 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: normal Keywords:
Cc:

Description

http://releases.llvm.org/download.html

Currency script is broken

Change History (6)

comment:1 by bdubbs@…, 6 years ago

Owner: changed from blfs-book@… to blfs-book

comment:2 by thomas, 6 years ago

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 1

The 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.

comment:3 by Pierre Labastie, 6 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 Bruce Dubbs, 6 years ago

Owner: changed from blfs-book to Bruce Dubbs
Status: newassigned

comment:6 by Bruce Dubbs, 6 years ago

Resolution: fixed
Status: assignedclosed

Fixed at revision 20007.

Note: See TracTickets for help on using tickets.