#10503: llvm-6.0.0
-------------------------+------------------------
 Reporter:  Krejzi       |       Owner:  blfs-book
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  8.3
Component:  BOOK         |     Version:  SVN
 Severity:  normal       |  Resolution:
 Keywords:               |
-------------------------+------------------------

Comment (by thomas):

 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.

--
Ticket URL: <http://wiki.linuxfromscratch.org/blfs/ticket/10503#comment:2>
BLFS Trac <http://wiki.linuxfromscratch.org/blfs>
Beyond Linux From Scratch
-- 
http://lists.linuxfromscratch.org/listinfo/blfs-book
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to