From patchwork Thu Mar 24 10:44:45 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sedat Dilek X-Patchwork-Id: 8659611 Return-Path: X-Original-To: patchwork-intel-gfx@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 105EB9F44D for ; Thu, 24 Mar 2016 10:44:56 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id DF32A2038A for ; Thu, 24 Mar 2016 10:44:54 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id D750720381 for ; Thu, 24 Mar 2016 10:44:53 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id B73976E5E8; Thu, 24 Mar 2016 10:44:50 +0000 (UTC) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mail-vk0-x235.google.com (mail-vk0-x235.google.com [IPv6:2607:f8b0:400c:c05::235]) by gabe.freedesktop.org (Postfix) with ESMTPS id 8962F6E5E8 for ; Thu, 24 Mar 2016 10:44:47 +0000 (UTC) Received: by mail-vk0-x235.google.com with SMTP id z68so53001760vkg.3 for ; Thu, 24 Mar 2016 03:44:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:date:message-id:subject:from:to:cc; bh=8MCfmzBDmab9/gPC0lqhUKk1cq7rNoUHXrQbM8JaUB4=; b=PrCuQEjKSuNv0hz/A4A+ab+uK9lPDXz+6LN33pN09vqRxNsynyA5O9SK3fwGkZPdBL LY/Pg5YzNdnn8sz9cgcp3kCM2Hc4RoyynP86M02ZZ8bz3/P4MTDGIFLC0/BLmDwqdt+e 0rDW90sjV8bZwq7XZGby9xO+Dwb9gD730BcMQk+cUUM6XAGbYO6szj7Y8P0riPkIJPOw bf1v82GJP8ZDIY84ufzQk/nomjJm1YaWH3i6py4NmQh9hxGmtZ61gvTwXu8kDEpcEHaK 9MkOoOi6JdrfQDuz+JfO0+4dFg1Ia/xboZ1Ixlp3Y8Uco3qYy3lmSEhj7WzfuMbDhcOh 5ESQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:reply-to:date:message-id:subject :from:to:cc; bh=8MCfmzBDmab9/gPC0lqhUKk1cq7rNoUHXrQbM8JaUB4=; b=XDqj6dTR+0MWrRGcgDMbQHEdNqF+VTcnVwPOIcbH2rCiIhe8weBJaOfAirnVACf1gH XPzf4Wme0nMAlK8/G1Kx/Ucz67oJd4KHBSaVrVMm1eXnIpIM3P94TFSdx9XA2WhsuLxu rvM5nbODNx/GM6WQBSRlHxbxU3uFwnbNUyIronOlZntR0Y/kMuTQWR9PHfk9XFFn+uI3 prQWkj+P+jv2Vn1c/gR6lnfk2D++syw1YDHnEa32olm3Ons6iYlFOVbF7Y8GO8Bj7Ism unsb9jeds1X6+2NrT86HirdWccnUe0n6Mbud0WCQO9ChpujL0mCapEt3rmhGm7bmrUNw rY/Q== X-Gm-Message-State: AD7BkJIAb1iH8+UrnD4BWzSvuH9OcOvBVPSOAQHmXg4EK1amLt6lwbb5XgbarPoX1f92+vYs9LxYk4qVkBzU2g== MIME-Version: 1.0 X-Received: by 10.176.2.239 with SMTP id 102mr3994700uah.152.1458816285648; Thu, 24 Mar 2016 03:44:45 -0700 (PDT) Received: by 10.103.112.68 with HTTP; Thu, 24 Mar 2016 03:44:45 -0700 (PDT) Date: Thu, 24 Mar 2016 11:44:45 +0100 Message-ID: From: Sedat Dilek To: Chris Wilson Cc: intel-gfx Subject: [Intel-gfx] [intelddx][strlcpy | strlcat | clock_gettime] clang-3.8: error: linker command failed with exit code 1 X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: sedat.dilek@gmail.com Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP [ Please see attached files (build-script, full logs etc.) ] With my selfmade llvm-toolchain v3.8.0 I see these errors/warnings... $ egrep -B2 -i 'linker command failed|undefined reference to' config.log "/usr/bin/ld" -z relro --hash-style=gnu --build-id --eh-frame-hdr -m elf_x86_64 -dynamic-linker /lib64/ld-linux-x86-64.so.2 -o conftest /usr/lib/gcc/x86_64-linux-gnu/4.9/../../../x86_64-linux-gnu/crt1.o /usr/lib/gcc/x86_64-linux-gnu/4.9/../../../x86_64-linux-gnu/crti.o /usr/lib/gcc/x86_64-linux-gnu/4.9/crtbegin.o -L/usr/lib/gcc/x86_64-linux-gnu/4.9 -L/usr/lib/gcc/x86_64-linux-gnu/4.9/../../../x86_64-linux-gnu -L/lib/x86_64-linux-gnu -L/lib/../lib64 -L/usr/lib/x86_64-linux-gnu -L/usr/lib/gcc/x86_64-linux-gnu/4.9/../../.. -L/opt/llvm-toolchain-3.8.0/bin/../lib -L/lib -L/usr/lib /tmp/conftest-467d35.o -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed /usr/lib/gcc/x86_64-linux-gnu/4.9/crtend.o /usr/lib/gcc/x86_64-linux-gnu/4.9/../../../x86_64-linux-gnu/crtn.o /tmp/conftest-467d35.o: In function `main': conftest.c:(.text+0x12): undefined reference to `strlcpy' clang-3.8: error: linker command failed with exit code 1 (use -v to see invocation) --- "/usr/bin/ld" -z relro --hash-style=gnu --build-id --eh-frame-hdr -m elf_x86_64 -dynamic-linker /lib64/ld-linux-x86-64.so.2 -o conftest /usr/lib/gcc/x86_64-linux-gnu/4.9/../../../x86_64-linux-gnu/crt1.o /usr/lib/gcc/x86_64-linux-gnu/4.9/../../../x86_64-linux-gnu/crti.o /usr/lib/gcc/x86_64-linux-gnu/4.9/crtbegin.o -L/usr/lib/gcc/x86_64-linux-gnu/4.9 -L/usr/lib/gcc/x86_64-linux-gnu/4.9/../../../x86_64-linux-gnu -L/lib/x86_64-linux-gnu -L/lib/../lib64 -L/usr/lib/x86_64-linux-gnu -L/usr/lib/gcc/x86_64-linux-gnu/4.9/../../.. -L/opt/llvm-toolchain-3.8.0/bin/../lib -L/lib -L/usr/lib /tmp/conftest-934a03.o -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed /usr/lib/gcc/x86_64-linux-gnu/4.9/crtend.o /usr/lib/gcc/x86_64-linux-gnu/4.9/../../../x86_64-linux-gnu/crtn.o /tmp/conftest-934a03.o: In function `main': conftest.c:(.text+0x12): undefined reference to `strlcat' clang-3.8: error: linker command failed with exit code 1 (use -v to see invocation) -- "/usr/bin/ld" -z relro --hash-style=gnu --build-id --eh-frame-hdr -m elf_x86_64 -dynamic-linker /lib64/ld-linux-x86-64.so.2 -o conftest /usr/lib/gcc/x86_64-linux-gnu/4.9/../../../x86_64-linux-gnu/crt1.o /usr/lib/gcc/x86_64-linux-gnu/4.9/../../../x86_64-linux-gnu/crti.o /usr/lib/gcc/x86_64-linux-gnu/4.9/crtbegin.o -L/usr/lib/gcc/x86_64-linux-gnu/4.9 -L/usr/lib/gcc/x86_64-linux-gnu/4.9/../../../x86_64-linux-gnu -L/lib/x86_64-linux-gnu -L/lib/../lib64 -L/usr/lib/x86_64-linux-gnu -L/usr/lib/gcc/x86_64-linux-gnu/4.9/../../.. -L/opt/llvm-toolchain-3.8.0/bin/../lib -L/lib -L/usr/lib /tmp/conftest-36ad4e.o -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed /usr/lib/gcc/x86_64-linux-gnu/4.9/crtend.o /usr/lib/gcc/x86_64-linux-gnu/4.9/../../../x86_64-linux-gnu/crtn.o /tmp/conftest-36ad4e.o: In function `main': conftest.c:(.text+0x12): undefined reference to `clock_gettime' clang-3.8: error: linker command failed with exit code 1 (use -v to see invocation) Furthermore, my 'clang -v' output... $ clang -v clang version 3.8.0 (tags/RELEASE_380/final) Target: x86_64-unknown-linux-gnu Thread model: posix InstalledDir: /opt/llvm/bin Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.6 Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.6.4 Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.9 Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.9.2 Selected GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.9 Candidate multilib: .;@m64 Candidate multilib: 32;@m32 Selected multilib: .;@m64 If you need more inputs/informations, please let me know. Hope this helps. - Sedat - diff --git a/Makefile.am b/Makefile.am index c60e8a729271..396f41fdc4df 100644 --- a/Makefile.am +++ b/Makefile.am @@ -18,7 +18,7 @@ # IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN # CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -ACLOCAL_AMFLAGS = $(ACLOCAL_FLAGS) -I m4 +ACLOCAL_AMFLAGS = -I m4 SUBDIRS = man libobj xvmc src tools