mesa: update --with-llvm-shared-libs configure option
PATCH 1/1 mesa: update --with-llvm-shared-libs configure option
From: Andre McCurdy <[email protected]>
As per the Mesa 10.2 release notes, "--with-llvm-shared-libs" has been renamed to "--enable-llvm-shared-libs".
http://www.mesa3d.org/relnotes/10.2.html
--- meta/recipes-graphics/mesa/mesa.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-graphics/mesa/mesa.inc +1 -1
@@ -62,7 +62,7 @@ PACKAGECONFIG[gallium] = "--with-gallium-drivers=${GALLIUMDRIVERS}, --witho PACKAGECONFIG[gallium-egl] = "--enable-gallium-egl, --disable-gallium-egl" PACKAGECONFIG[gallium-gbm] = "--enable-gallium-gbm, --disable-gallium-gbm" MESA_LLVM_RELEASE ?= "3.3" -PACKAGECONFIG[gallium-llvm] = "--enable-gallium-llvm --with-llvm-shared-libs, --disable-gallium-llvm, llvm${MESA_LLVM_RELEASE} \ +PACKAGECONFIG[gallium-llvm] = "--enable-gallium-llvm --enable-llvm-shared-libs, --disable-gallium-llvm, llvm${MESA_LLVM_RELEASE} \ ${@'elfutils' if ${GALLIUMDRIVERS_LLVM33_ENABLED} else ''}" export WANT_LLVM_RELEASE = "${MESA_LLVM_RELEASE}"
Signature · 1 line
2.3.5
akuster808
Appliedmerged to staging.
- armin
Quoted 27 lines · Martin Jansa
From: Andre McCurdy <[email protected]>
As per the Mesa 10.2 release notes, "--with-llvm-shared-libs" has been renamed to "--enable-llvm-shared-libs".
http://www.mesa3d.org/relnotes/10.2.htmlSigned-off-by Andre McCurdy <[email protected]>Signed-off-by Ross Burton <[email protected]>--- meta/recipes-graphics/mesa/mesa.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)meta/recipes-graphics/mesa/mesa.inc +1
-1@@ -62,7 +62,7 @@ PACKAGECONFIG[gallium] = "--with-gallium-drivers=${GALLIUMDRIVERS}, --witho PACKAGECONFIG[gallium-egl] = "--enable-gallium-egl, --disable-gallium-egl" PACKAGECONFIG[gallium-gbm] = "--enable-gallium-gbm, --disable-gallium-gbm" MESA_LLVM_RELEASE ?= "3.3" -PACKAGECONFIG[gallium-llvm] = "--enable-gallium-llvm --with-llvm-shared-libs, --disable-gallium-llvm, llvm${MESA_LLVM_RELEASE} \ +PACKAGECONFIG[gallium-llvm] = "--enable-gallium-llvm --enable-llvm-shared-libs, --disable-gallium-llvm, llvm${MESA_LLVM_RELEASE} \ ${@'elfutils' if ${GALLIUMDRIVERS_LLVM33_ENABLED} else ''}" export WANT_LLVM_RELEASE = "${MESA_LLVM_RELEASE}"
Quoted 2 lines · On Mon, May 04, 2015 at 04:07:07PM -0700, akuster808 wrote:
merged to staging.
- armin
Ping for merging staging to dizzy branch
Quoted 33 lines · Martin Jansa
Quoted 27 lines
From: Andre McCurdy <[email protected]>
As per the Mesa 10.2 release notes, "--with-llvm-shared-libs" has been renamed to "--enable-llvm-shared-libs".
http://www.mesa3d.org/relnotes/10.2.htmlSigned-off-by Andre McCurdy <[email protected]>Signed-off-by Ross Burton <[email protected]>--- meta/recipes-graphics/mesa/mesa.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)meta/recipes-graphics/mesa/mesa.inc +1
-1@@ -62,7 +62,7 @@ PACKAGECONFIG[gallium] = "--with-gallium-drivers=${GALLIUMDRIVERS}, --witho PACKAGECONFIG[gallium-egl] = "--enable-gallium-egl, --disable-gallium-egl" PACKAGECONFIG[gallium-gbm] = "--enable-gallium-gbm, --disable-gallium-gbm" MESA_LLVM_RELEASE ?= "3.3" -PACKAGECONFIG[gallium-llvm] = "--enable-gallium-llvm --with-llvm-shared-libs, --disable-gallium-llvm, llvm${MESA_LLVM_RELEASE} \ +PACKAGECONFIG[gallium-llvm] = "--enable-gallium-llvm --enable-llvm-shared-libs, --disable-gallium-llvm, llvm${MESA_LLVM_RELEASE} \ ${@'elfutils' if ${GALLIUMDRIVERS_LLVM33_ENABLED} else ''}" export WANT_LLVM_RELEASE = "${MESA_LLVM_RELEASE}"Signature · 4 lines
_______________________________________________ Openembedded-core mailing list [email protected] http://lists.openembedded.org/mailman/listinfo/openembedded-core
Signature · 1 line
Martin 'JaMa' Jansa jabber: [email protected]
done
Quoted 40 lines · Martin Jansa
Quoted 2 lines · On Mon, May 04, 2015 at 04:07:07PM -0700, akuster808 wrote:
merged to staging.
- arminPing for merging staging to dizzy branch
Quoted 33 lines · Martin Jansa
Quoted 19 lines
From: Andre McCurdy <[email protected]>
As per the Mesa 10.2 release notes, "--with-llvm-shared-libs" has been renamed to "--enable-llvm-shared-libs".
http://www.mesa3d.org/relnotes/10.2.htmlSigned-off-by Andre McCurdy <[email protected]>Signed-off-by Ross Burton <[email protected]>--- meta/recipes-graphics/mesa/mesa.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)meta/recipes-graphics/mesa/mesa.inc +0
-0meta/recipes-graphics/mesa/mesa.inc PACKAGECONFIG[gallium] = "--with-gallium-drivers=${GALLIUMDRIVERS}, --witho · line 68
Quoted 8 lines
meta/recipes-graphics/mesa/mesa.inc +1
-1@@ -62,7 +62,7 @@ PACKAGECONFIG[gallium] = "--with-gallium-drivers=${GALLIUMDRIVERS}, --witho PACKAGECONFIG[gallium-egl] = "--enable-gallium-egl, --disable-gallium-egl" PACKAGECONFIG[gallium-gbm] = "--enable-gallium-gbm, --disable-gallium-gbm" MESA_LLVM_RELEASE ?= "3.3" -PACKAGECONFIG[gallium-llvm] = "--enable-gallium-llvm --with-llvm-shared-libs, --disable-gallium-llvm, llvm${MESA_LLVM_RELEASE} \ +PACKAGECONFIG[gallium-llvm] = "--enable-gallium-llvm --enable-llvm-shared-libs, --disable-gallium-llvm, llvm${MESA_LLVM_RELEASE} \ ${@'elfutils' if ${GALLIUMDRIVERS_LLVM33_ENABLED} else ''}" export WANT_LLVM_RELEASE = "${MESA_LLVM_RELEASE}"--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core
Quoted 6 lines · Martin Jansa
From: Andre McCurdy <[email protected]>
As per the Mesa 10.2 release notes, "--with-llvm-shared-libs" has been renamed to "--enable-llvm-shared-libs".
Be aware that this correctly enables gallium-llvm, but then gbm_gallium_drm can fail to find LLVM libs:
ld: cannot find -lLLVMMCJIT
| collect2: error: ld returned 1 exit status
| make[3]: *** [gbm_gallium_drm.la] Error 1
at least in some configurations, I'm looking what's the difference in builds I'm seeing failing.
Quoted 23 lines
Signed-off-by Andre McCurdy <[email protected]>Signed-off-by Ross Burton <[email protected]>--- meta/recipes-graphics/mesa/mesa.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)meta/recipes-graphics/mesa/mesa.inc +1
-1@@ -62,7 +62,7 @@ PACKAGECONFIG[gallium] = "--with-gallium-drivers=${GALLIUMDRIVERS}, --witho PACKAGECONFIG[gallium-egl] = "--enable-gallium-egl, --disable-gallium-egl" PACKAGECONFIG[gallium-gbm] = "--enable-gallium-gbm, --disable-gallium-gbm" MESA_LLVM_RELEASE ?= "3.3" -PACKAGECONFIG[gallium-llvm] = "--enable-gallium-llvm --with-llvm-shared-libs, --disable-gallium-llvm, llvm${MESA_LLVM_RELEASE} \ +PACKAGECONFIG[gallium-llvm] = "--enable-gallium-llvm --enable-llvm-shared-libs, --disable-gallium-llvm, llvm${MESA_LLVM_RELEASE} \ ${@'elfutils' if ${GALLIUMDRIVERS_LLVM33_ENABLED} else ''}" export WANT_LLVM_RELEASE = "${MESA_LLVM_RELEASE}"Signature · 1 line
2.3.5
Signature · 1 line
Martin 'JaMa' Jansa jabber: [email protected]
Quoted 14 lines · Martin Jansa
Quoted 6 lines · Martin Jansa
From: Andre McCurdy <[email protected]>
As per the Mesa 10.2 release notes, "--with-llvm-shared-libs" has been renamed to "--enable-llvm-shared-libs".
Be aware that this correctly enables gallium-llvm, but then
gbm_gallium_drmcan fail to find LLVM libs:
Quoted 6 lines
ld: cannot find -lLLVMMCJIT
| collect2: error: ld returned 1 exit status
| make[3]: *** [gbm_gallium_drm.la] Error 1at least in some configurations, I'm looking what's the difference in builds I'm seeing failing.
is LLVM_CONFIG set to point to valid llvm-config ?
Quoted 14 lines · Khem Raj
Quoted 14 lines · Martin Jansa
Quoted 6 lines · Martin Jansa
From: Andre McCurdy <[email protected]>
As per the Mesa 10.2 release notes, "--with-llvm-shared-libs" has been renamed to "--enable-llvm-shared-libs".
Be aware that this correctly enables gallium-llvm, but then
gbm_gallium_drmcan fail to find LLVM libs:
Quoted 8 lines
Quoted 6 lines
ld: cannot find -lLLVMMCJIT
| collect2: error: ld returned 1 exit status
| make[3]: *** [gbm_gallium_drm.la] Error 1at least in some configurations, I'm looking what's the difference in builds I'm seeing failing.
is
LLVM_CONFIGset to point to valid llvm-config ?
Yes, but the libraries weren't staged by llvm3.3
sysroots/qemux86/usr/bin/crossscripts/llvm-config --libs -lLLVMTableGen -lLLVMDebugInfo -lLLVMOption -lLLVMX86Disassembler -lLLVMX86AsmParser -lLLVMX86CodeGen -lLLVMSelectionDAG -lLLVMAsmPrinter -lLLVMX86Desc -lLLVMX86Info -lLLVMX86AsmPrinter -lLLVMX86Utils -lLLVMIRReader -lLLVMAsmParser -lLLVMMCDisassembler -lLLVMMCParser -lLLVMInstrumentation -lLLVMArchive -lLLVMBitReader -lLLVMInterpreter -lLLVMipo -lLLVMVectorize -lLLVMLinker -lLLVMBitWriter -lLLVMMCJIT -lLLVMJIT -lLLVMCodeGen -lLLVMObjCARCOpts -lLLVMScalarOpts -lLLVMInstCombine -lLLVMTransformUtils -lLLVMipa -lLLVMAnalysis -lLLVMRuntimeDyld -lLLVMExecutionEngine -lLLVMTarget -lLLVMMC -lLLVMObject -lLLVMCore -lLLVMSupport
Maybe the LLVM_COMPONENTS passed from mesa configure are a bit wider now:
sysroots/qemux86/usr/bin/crossscripts/llvm-config --libs engine bitwriter
-lLLVMBitWriter -lLLVMX86Disassembler -lLLVMX86AsmParser -lLLVMX86CodeGen -lLLVMSelectionDAG -lLLVMAsmPrinter -lLLVMMCParser -lLLVMX86Desc -lLLVMX86Info -lLLVMX86AsmPrinter -lLLVMX86Utils -lLLVMJIT -lLLVMRuntimeDyld -lLLVMExecutionEngine -lLLVMCodeGen -lLLVMObjCARCOpts -lLLVMScalarOpts -lLLVMInstCombine -lLLVMTransformUtils -lLLVMipa -lLLVMAnalysis -lLLVMTarget -lLLVMMC -lLLVMObject -lLLVMCore -lLLVMSupport
sysroots/qemux86/usr/bin/crossscripts/llvm-config --libs engine bitwriter
-lLLVMBitWriter -lLLVMX86Disassembler -lLLVMX86AsmParser -lLLVMX86CodeGen -lLLVMSelectionDAG -lLLVMAsmPrinter -lLLVMMCParser -lLLVMX86Desc -lLLVMX86Info -lLLVMX86AsmPrinter -lLLVMX86Utils -lLLVMJIT -lLLVMRuntimeDyld -lLLVMExecutionEngine -lLLVMCodeGen -lLLVMObjCARCOpts -lLLVMScalarOpts -lLLVMInstCombine -lLLVMTransformUtils -lLLVMipa -lLLVMAnalysis -lLLVMTarget -lLLVMMC -lLLVMObject -lLLVMCore -lLLVMSupport
sysroots/qemux86/usr/bin/crossscripts/llvm-config --ldflags -L<myprefix>/sysroots/qemux86/usr/lib/llvm3.3
-lz -lpthread -lrt -ldl -lm
sysroot only has these:
/sysroots/qemux86/usr/lib/libLLVM-3.3.so /sysroots/qemux86/usr/lib/llvm3.3/libLTO.so /sysroots/qemux86/usr/lib/llvm3.3/LLVMHello.so /sysroots/qemux86/usr/lib/llvm3.3/BugpointPasses.so /sysroots/qemux86/usr/lib/llvm3.3/libprofile_rt.so /sysroots/qemux86/usr/lib/llvm3.3/libLLVM-3.3.so /sysroots/qemux86/usr/lib/llvm3.3/ /sysroots/qemux86/usr/lib/
static libs were built:
../../../llvm3.3/3.3-r0/llvm-3.3.build/Release/lib/libLLVMJIT.a ../../../llvm3.3/3.3-r0/image/usr/lib/llvm3.3/libLLVMJIT.a ../../../llvm3.3/3.3-r0/package/usr/lib/llvm3.3/libLLVMJIT.a but not staged.
I don't see anything obvious in log.do_configure, most suspicious part is:
llvm3.3/3.3-r0/llvm-3.3.src/configure: line 1990: -O2: command not found llvm3.3/3.3-r0/llvm-3.3.src/configure: line 1991: -O2: command not found
caused by:
${CFLAGS=}
${CXXFLAGS=}
in configure script
I'll try to downgrade mesa to see what was different there.
Regards,
Quoted 75 lines · On Wed, May 13, 2015 at 06:29:26PM +0200, [email protected] wrote:
Quoted 14 lines · Khem Raj
Quoted 14 lines · Martin Jansa
Quoted 6 lines · Martin Jansa
From: Andre McCurdy <[email protected]>
As per the Mesa 10.2 release notes, "--with-llvm-shared-libs" has been renamed to "--enable-llvm-shared-libs".
Be aware that this correctly enables gallium-llvm, but then
gbm_gallium_drmcan fail to find LLVM libs:Quoted 8 lines
Quoted 6 lines
ld: cannot find -lLLVMMCJIT
| collect2: error: ld returned 1 exit status
| make[3]: *** [gbm_gallium_drm.la] Error 1at least in some configurations, I'm looking what's the difference in builds I'm seeing failing.
is
LLVM_CONFIGset to point to valid llvm-config ?Yes, but the libraries weren't staged by llvm3.3
sysroots/qemux86/usr/bin/crossscripts/llvm-config --libs
(quoted diff) +0
-10-lLLVMTableGen -lLLVMDebugInfo -lLLVMOption -lLLVMX86Disassembler -lLLVMX86AsmParser -lLLVMX86CodeGen -lLLVMSelectionDAG -lLLVMAsmPrinter -lLLVMX86Desc -lLLVMX86Info -lLLVMX86AsmPrinter -lLLVMX86Utils -lLLVMIRReader -lLLVMAsmParser -lLLVMMCDisassembler -lLLVMMCParser -lLLVMInstrumentation -lLLVMArchive -lLLVMBitReader -lLLVMInterpreter -lLLVMipo -lLLVMVectorize -lLLVMLinker -lLLVMBitWriter -lLLVMMCJIT -lLLVMJIT -lLLVMCodeGen -lLLVMObjCARCOpts -lLLVMScalarOpts -lLLVMInstCombine -lLLVMTransformUtils -lLLVMipa -lLLVMAnalysis -lLLVMRuntimeDyld -lLLVMExecutionEngine -lLLVMTarget -lLLVMMC -lLLVMObject -lLLVMCore -lLLVMSupportMaybe the
LLVM_COMPONENTSpassed from mesa configure are a bit wider now:sysroots/qemux86/usr/bin/crossscripts/llvm-config --libs engine bitwriter
(quoted diff) +0
-7-lLLVMBitWriter -lLLVMX86Disassembler -lLLVMX86AsmParser -lLLVMX86CodeGen -lLLVMSelectionDAG -lLLVMAsmPrinter -lLLVMMCParser -lLLVMX86Desc -lLLVMX86Info -lLLVMX86AsmPrinter -lLLVMX86Utils -lLLVMJIT -lLLVMRuntimeDyld -lLLVMExecutionEngine -lLLVMCodeGen -lLLVMObjCARCOpts -lLLVMScalarOpts -lLLVMInstCombine -lLLVMTransformUtils -lLLVMipa -lLLVMAnalysis -lLLVMTarget -lLLVMMC -lLLVMObject -lLLVMCore -lLLVMSupportsysroots/qemux86/usr/bin/crossscripts/llvm-config --libs engine bitwriter
(quoted diff) +0
-7-lLLVMBitWriter -lLLVMX86Disassembler -lLLVMX86AsmParser -lLLVMX86CodeGen -lLLVMSelectionDAG -lLLVMAsmPrinter -lLLVMMCParser -lLLVMX86Desc -lLLVMX86Info -lLLVMX86AsmPrinter -lLLVMX86Utils -lLLVMJIT -lLLVMRuntimeDyld -lLLVMExecutionEngine -lLLVMCodeGen -lLLVMObjCARCOpts -lLLVMScalarOpts -lLLVMInstCombine -lLLVMTransformUtils -lLLVMipa -lLLVMAnalysis -lLLVMTarget -lLLVMMC -lLLVMObject -lLLVMCore -lLLVMSupportsysroots/qemux86/usr/bin/crossscripts/llvm-config --ldflags
(quoted diff) +0
-2-L<myprefix>/sysroots/qemux86/usr/lib/llvm3.3 -lz -lpthread -lrt -ldl -lmsysroot only has these:
/sysroots/qemux86/usr/lib/libLLVM-3.3.so /sysroots/qemux86/usr/lib/llvm3.3/libLTO.so /sysroots/qemux86/usr/lib/llvm3.3/LLVMHello.so /sysroots/qemux86/usr/lib/llvm3.3/BugpointPasses.so /sysroots/qemux86/usr/lib/llvm3.3/libprofile_rt.so /sysroots/qemux86/usr/lib/llvm3.3/libLLVM-3.3.so /sysroots/qemux86/usr/lib/llvm3.3/ /sysroots/qemux86/usr/lib/
Quoted 5 lines
static libs were built:
../../../llvm3.3/3.3-r0/llvm-3.3.build/Release/lib/libLLVMJIT.a ../../../llvm3.3/3.3-r0/image/usr/lib/llvm3.3/libLLVMJIT.a ../../../llvm3.3/3.3-r0/package/usr/lib/llvm3.3/libLLVMJIT.a but not staged.
I'm sorry for false alarm, the last sentence is the key. In webOS builds we have filter for staging static libraries (to prevent accidental usage of static library with unwanted license in our components) and of course I forgot to whitelist these llvm libraries used by mesa.
Once staged in sysroot mesa builds with gallium-llvm again OK, so this change is good to go.
Thanks
Quoted 15 lines
I don't see anything obvious in log.do_configure, most suspicious part is:
llvm3.3/3.3-r0/llvm-3.3.src/configure: line 1990: -O2: command not found llvm3.3/3.3-r0/llvm-3.3.src/configure: line 1991: -O2: command not found
caused by:
${CFLAGS=}
${CXXFLAGS=}in configure script
I'll try to downgrade mesa to see what was different there.
Regards,
Signature · 1 line
Martin 'JaMa' Jansa jabber: [email protected]