pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

MesaLib + llvm + ubuntu



According to graphics/MesaLib/options.mk:

----------------------------
revision 1.54
date: 2017-03-20 23:59:01 +0000;  author: gdt;  state: Exp;  lines: +2 -2;  comm
itid: DHsahsE8gDYyDlKz;
Do not suggest llvm option on Darwin

With llvm, the build fails, as apparently llvm turns on including
multiple libraries that do not build.  (Until recently, this option
was not enabled by default, so this change is essentially omitting
Darwin from the change to default to llvm in i386/x86_64.)

Thanks to maya@ for explaining/suggesting.
----------------------------

I think I see the same on Ubuntu 16.04.2 LTS:

In file included from draw/draw_llvm.c:45:0:
./gallivm/lp_bld_intr.h:63:20: error: unknown type name 'LLVMAttribute'
                    LLVMAttribute attr);
                    ^

Add Linux to the
        ${OPSYS} != "SunOS" && ${OPSYS} != "Darwin"
list?


Cheers,

Patrick
? work
Index: options.mk
===================================================================
RCS file: /cvsroot/pkgsrc/graphics/MesaLib/options.mk,v
retrieving revision 1.54
diff -u -r1.54 options.mk
--- options.mk	20 Mar 2017 23:59:01 -0000	1.54
+++ options.mk	21 Mar 2017 13:57:47 -0000
@@ -8,7 +8,7 @@
 # is also required to support the latest RADEON GPUs, so enable it
 # by default on platforms where such GPUs might be encountered.
 .if (${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64") && \
-	${OPSYS} != "SunOS" && ${OPSYS} != "Darwin"
+	${OPSYS} != "SunOS" && ${OPSYS} != "Darwin" && ${OPSYS} != "Linux"
 PKG_SUGGESTED_OPTIONS+=		llvm
 .endif
 


Home | Main Index | Thread Index | Old Index