[Mesa-dev] [PATCH WIP 1/1] configure: include llvm systemlibs when using static llvm

Kai Wasserbäch kai at dev.carbon-project.org
Fri Oct 24 14:48:08 PDT 2014


Hi Jan,
Jan Vesely wrote on 24.10.2014 23:30:
> On Fri, 2014-10-24 at 22:42 +0200, Kai Wasserbäch wrote:
>> Jan Vesely wrote on 24.10.2014 19:03:
>>> -Wl,--exclude-libs prevents automatic export of symbols
>>>
>>>
>>> CC: Kai Wasserbach <kai at dev.carbon-project.org>
>>> CC: Emil Velikov <emil.l.velikov at gmail.com>
>>> Signed-off-by: Jan Vesely <jan.vesely at rutgers.edu>
>>> ---
>>>
>>> Kai,
>>> can you try this patch with your setup, and check whether LLVM symbols are
>>> exported from mesa library? (and it's still working)
>>
>> with this patch applied on top of attachment 108315, I get the following build
> 
> yeah, that's because the correct form should be "-Wl,--exclude-libs
> ALL",
> sorry about that

this still fails with (though I might have done something wrong in changing the
patch):
> //usrusr//binbin//ld:ld :cannot  cannotfind  findrelro : relro:No  Nosuch  suchfile  fileor  ordirectory 
> directory
> /usr/bin/ld: cannot find relro: No such file or directory
> /usr/bin/ld: cannot find relro: No such file or directory
> /usr/bin/ld: cannot find relro: No such file or directory
> /usr/bin/ld: cannot find relro: No such file or directory
> collect2: error: ld returned 1 exit status
> collect2: error: ld returned 1 exit status
> collect2: error: ld returned 1 exit status
> collect2: error: ld returned 1 exit status
> collect2: error: ld returned 1 exit status
> collect2: error: ld returned 1 exit status
> Makefile:900: recipe for target 'pipe_swrast.la' failed
> make[4]: *** [pipe_swrast.la] Error 1
> make[4]: *** Waiting for unfinished jobs....
> Makefile:888: recipe for target 'pipe_nouveau.la' failed
> make[4]: *** [pipe_nouveau.la] Error 1
> Makefile:903: recipe for target 'pipe_vmwgfx.la' failed
> make[4]: *** [pipe_vmwgfx.la] Error 1
> Makefile:897: recipe for target 'pipe_radeonsi.la' failed
> make[4]: *** [pipe_radeonsi.la] Error 1
> Makefile:891: recipe for target 'pipe_r300.la' failed
> make[4]: *** [pipe_r300.la] Error 1
> Makefile:894: recipe for target 'pipe_r600.la' failed
> make[4]: *** [pipe_r600.la] Error 1
> make[4]: Leaving directory '/tmp/buildd/mesa-10.4~20141024.1.git5fc0e11053/build/dri/src/gallium/targets/pipe-loader'
> Makefile:558: recipe for target 'all-recursive' failed
> make[3]: *** [all-recursive] Error 1
> make[3]: Leaving directory '/tmp/buildd/mesa-10.4~20141024.1.git5fc0e11053/build/dri/src/gallium'
> Makefile:521: recipe for target 'all-recursive' failed
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory '/tmp/buildd/mesa-10.4~20141024.1.git5fc0e11053/build/dri/src'
> Makefile:589: recipe for target 'all-recursive' failed
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory '/tmp/buildd/mesa-10.4~20141024.1.git5fc0e11053/build/dri'
> debian/rules:204: recipe for target 'debian/stamp/x86_64-linux-gnu-build-dri' failed
> make: *** [debian/stamp/x86_64-linux-gnu-build-dri] Error 2
> dpkg-buildpackage: error: debian/rules build gave error exit status 2
> E: Failed autobuilding of package

I've attached the full build log and the updated patch.

Cheers,
Kai
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mesa.amd64.priv.log.xz
Type: application/x-xz
Size: 91796 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20141024/ba70dc44/attachment-0002.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix_static_builds_llvm.patch
Type: text/x-patch
Size: 4105 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20141024/ba70dc44/attachment-0003.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 648 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20141024/ba70dc44/attachment-0001.sig>


More information about the mesa-dev mailing list