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 <k...@dev.carbon-project.org> >>> CC: Emil Velikov <emil.l.veli...@gmail.com> >>> Signed-off-by: Jan Vesely <jan.ves...@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
mesa.amd64.priv.log.xz
Description: application/xz
From - Fri Oct 24 22:18:06 2014 X-Mozilla-Keys: nonjunk $label1 Return-Path: <jv...@scarletmail.rutgers.edu> Delivered-To: k...@dev.carbon-project.org Received: from localhost (localhost [127.0.0.1]) by blackmesa.kw-serverwartung.de (Postfix) with ESMTP id DB9237B8125 for <k...@dev.carbon-project.org>; Fri, 24 Oct 2014 17:04:19 +0000 (UTC) X-Spam-Flag: NO X-Spam-Score: 0.8 X-Spam-Level: X-Spam-Status: No, score=0.8 required=6.31 tests=[BAYES_50=0.8] autolearn=disabled Received: from blackmesa.kw-serverwartung.de ([127.0.0.1]) by localhost (blackmesa.kw-serverwartung.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ekSZzeX1iK0v for <k...@dev.carbon-project.org>; Fri, 24 Oct 2014 17:03:36 +0000 (UTC) Received: from mail-qg0-f45.google.com (mail-qg0-f45.google.com [209.85.192.45]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by blackmesa.kw-serverwartung.de (Postfix) with ESMTPS id DBA2B7B8123 for <k...@dev.carbon-project.org>; Fri, 24 Oct 2014 17:03:15 +0000 (UTC) Received: by mail-qg0-f45.google.com with SMTP id q107so1304450qgd.4 for <k...@dev.carbon-project.org>; Fri, 24 Oct 2014 10:03:04 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id; bh=rp7WBeN8JtJiQAtYFq+yuZpe2gtCDSJ4n+5pk9pchxo=; b=EpTog9PGhLxsepsEWpx9Ln+sNL6e42C3oKMsDQ5sqKt27x28sS90TguaOh1ggQlRz1 fukEXmvq26L4x1+4LKRbNBkDFAEMbRx8QWbwzti6e01JcPfSuk5HoDAcKqqWaHRRkBqg 6hGjVrFRJGJ6jHhpsN1mTIsfNPVtciYBuIpAdj6FKeCGoTAkAkNnN4gJeu3cyJDJs02u Oj83ttbyXf0x0Tvyzgo6g/nqJbWUQPn7/6PvqIHRhyXylxigUEXu+8q1aoJ3VsWI1Db2 e4vOkQjbXp5GtbVxExaE+zkZnLmc/0+n5A+BeRDJ7T9Da44RKrW+QqOaQUGQdaDKRAWj Z83g== X-Gm-Message-State: ALoCoQmssjbT76QLQMYDrFPuhC0x4bT5YnzP053cLgEO5n5almn40uxwu5GLY1Jm/+vZrJxBnB9H X-Received: by 10.140.106.138 with SMTP id e10mr7423483qgf.71.1414170184055; Fri, 24 Oct 2014 10:03:04 -0700 (PDT) Received: from adriatix.rutgers.edu ([198.151.130.146]) by mx.google.com with ESMTPSA id m13sm4595462qav.40.2014.10.24.10.03.03 for <multiple recipients> (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 24 Oct 2014 10:03:03 -0700 (PDT) Sender: Jan Vesely <jv...@scarletmail.rutgers.edu> From: Jan Vesely <jan.ves...@rutgers.edu> To: mesa-dev@lists.freedesktop.org Cc: Kai Wasserbach <k...@dev.carbon-project.org>, Emil Velikov <emil.l.veli...@gmail.com> Subject: [Mesa-dev][PATCH WIP 1/1] configure: include llvm systemlibs when using static llvm Date: Fri, 24 Oct 2014 13:03:02 -0400 Message-Id: <1414170182-17303-1-git-send-email-jan.ves...@rutgers.edu> X-Mailer: git-send-email 1.9.3 -Wl,--exclude-libs prevents automatic export of symbols CC: Kai Wasserbach <k...@dev.carbon-project.org> CC: Emil Velikov <emil.l.veli...@gmail.com> Signed-off-by: Jan Vesely <jan.ves...@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) Emil, would it help to have --exclude-libs ALL enabled globally? jan configure.ac | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) --- a/configure.ac +++ b/configure.ac @@ -2007,7 +2007,15 @@ if test "x$MESA_LLVM" != x0; then dnl already added all of these objects to LLVM_LIBS. fi else - AC_MSG_WARN([Building mesa with staticly linked LLVM may cause compilation issues]) + AC_MSG_WARN([Building mesa with statically linked LLVM may cause compilation issues]) + dnl Don't export symbols automatically + dnl TODO: Do we want to list llvm libs explicitly here? + LLVM_LDFLAGS+=" -Wl,--exclude-libs ALL" + dnl We need to link to llvm system libs when using static libs + dnl However, only llvm 3.5+ provides --system-libs + if test $LLVM_VERSION_MAJOR -eq 3 -a $LLVM_VERSION_MINOR -ge 5; then + LLVM_LIBS+=" `$LLVM_CONFIG --system-libs`" + fi fi fi
signature.asc
Description: OpenPGP digital signature
_______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev