From patchwork Fri Nov 17 14:42:28 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 119152 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp603985qgn; Fri, 17 Nov 2017 06:42:49 -0800 (PST) X-Google-Smtp-Source: AGs4zMYn77zWb4y+jadcZaaYkJKIQYJxhbPZvlL7T+IG0vkXAmIRf69vx372y5WQ8Rm8lN5+T9GH X-Received: by 10.98.166.148 with SMTP id r20mr2285991pfl.80.1510929769680; Fri, 17 Nov 2017 06:42:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510929769; cv=none; d=google.com; s=arc-20160816; b=Kiy4jk3DbwhVUwpCHQMfOHkhabGz+XY57/jhggwZIVzDCWgcyet+VWS9/NYK3V+h0H I7tSnB7V+68siYhoFhmn4cl6cpepTVGv7RRo213IqhiU1ykVNhVdyPcKOPBiFeq/bml8 fNbOv1hS8Ks34qgS2Tj+doa7Dx73ldVVw6zPoYKv8I20Ppi5JdX0TKhSK9vKLeBzGgPt ZWUcoevxrtfw9NF2LGEqz+SU5Fa3piyeNgZU5lWM9is99PZ6bu/pS4t7RhbZNg8hiRdY l9tlkC/BQFwWMToORsyyWPtn0bvvygU3KRfkmWhCicKhUVsylxCV4LBg5DvJUApfjgCw UnOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:references:in-reply-to:message-id:date :to:from:dkim-signature:delivered-to:arc-authentication-results; bh=sZPKQ73EAFkGumtgGAu47g9VzVCLHUixQewlOu0b4jg=; b=u1YLoCdnh61h7KyxPdfYCvk/KfSKbEQatu7din7drtfZL5o8Lc0EOfLwDbTg6dEw6K hVneikeqP/r+VSsMdaFBX9Gt2zdwoWTcgM0iAr1gxtfnJGfVUDbFSYGnifC0o2MoNYHg cJnmyFlTghB85QuoVcv/10dXu1YrpQquX0lcT7xF4zZjH68dv/PXNiNAKYaZmWrumXVY +t7HdI7pR/IEvIkWIS+sxTQLoMLNSpphM8UGQJEllu0IdKLB7goWRElPdFnJgg4U3d7+ Hne59FfcJol8OUu4OxUmN8xLMcag1QA9D2gEEoDxvMlg1TpYrkrOMSFSxBgzkJecUlAe s5Tw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=ftDURL1j; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmail.com Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id d16si3084621pls.21.2017.11.17.06.42.49; Fri, 17 Nov 2017 06:42:49 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) client-ip=140.211.169.62; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=ftDURL1j; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmail.com Received: from review.yoctoproject.org (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 0F72778852; Fri, 17 Nov 2017 14:42:46 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-qt0-f193.google.com (mail-qt0-f193.google.com [209.85.216.193]) by mail.openembedded.org (Postfix) with ESMTP id B382F78844 for ; Fri, 17 Nov 2017 14:42:40 +0000 (UTC) Received: by mail-qt0-f193.google.com with SMTP id u42so6529485qte.7 for ; Fri, 17 Nov 2017 06:42:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Xsb9FhVpw+Z6P+42fZFS+qp4cH56gFnEk0YLSSx2mSw=; b=ftDURL1j654oHj4O06wWAbF7Ye+v+j/PD2/St8AgpGxC1VGPWurBGmbhnOhiDn0TVl 1rRDfKysROye/A9g51ucDp95euSYT6freAVMeJL/CP5FJLclFE2C9VbbnxISnHRgK+0X lXZWiTiv84JqnUUvsm9noX8NtTSd8AtfZiCWKJYFjx/jMFJSjqEetkDu2Qxx9/H/xpAt YuHJMrtgRjIetx04VseVNKjZOZLlI8MU4Wa6f1cq+hPHlwS015m6nXCWZxpnFttNZe9/ ExVYoWqhoBX28FFJYtOt7KHF84ip6JjrX5tI9YX3Ys9vLPc0FmN7Clb+EtIIROoQsrSy h2MQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=Xsb9FhVpw+Z6P+42fZFS+qp4cH56gFnEk0YLSSx2mSw=; b=cl7ltexwhSu4mNSmOejinITbHX5vG/obqNsvq5gor2bKmQ4WXm6Oa9nsqMEp8j7MKf nuwDlRl/SCTP3rB70DjiVFTywHlni5bgnwYU5LRoEUEz5huck6Die2P4EKE1o9Sro0U5 GDXEJkPtUZsWkhEqCDHRS9/T4BBMGZP09dHcGTP4etLxZFq1/YS03ENPLKA2q2bxadFc EmtmqYC02rS5u9mUlY6AbSspYSnhaw5XrLga5xaUtgIR9kwL+e++DHmWjjaGEWbrlC3I l1Sh4xKTFhb3/EMkAP4cyt5VFGVWY9gzhoSbCika/xu6ScKmdErh+REtM9DIR2lPnTAr Y2ug== X-Gm-Message-State: AJaThX5cO/zM8hDmr4r5WHJFSPMwKNO7CBtFJi+VPdoFOvy9Kppybmsg cz0qDiVAgudNYWYwoNNzIoY0Ig== X-Received: by 10.55.217.85 with SMTP id u82mr8116665qki.257.1510929761419; Fri, 17 Nov 2017 06:42:41 -0800 (PST) Received: from localhost.localdomain ([2601:646:8882:b8c::a4a]) by smtp.gmail.com with ESMTPSA id 13sm2604199qtv.67.2017.11.17.06.42.40 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 17 Nov 2017 06:42:40 -0800 (PST) From: Khem Raj To: openembedded-core@lists.openembedded.org Date: Fri, 17 Nov 2017 06:42:28 -0800 Message-Id: <54828c1c50a8caea8725aba3ea59bd8589a4e4ff.1510807196.git.raj.khem@gmail.com> X-Mailer: git-send-email 2.15.0 In-Reply-To: References: Subject: [OE-core] [PATCH 2/2] gcc-7.2: Fix libgfortran build X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: openembedded-core-bounces@lists.openembedded.org Errors-To: openembedded-core-bounces@lists.openembedded.org From: Ricardo Ribalda Delgado Without this patch libbacktrace cannot be included/link during libgfortran build. libbtool: link: cannot find the library `../libbacktrace/libbacktrace.la' or unhandled argument `../libbacktrace/libbacktrace.la Signed-off-by: Ricardo Ribalda Delgado Signed-off-by: Khem Raj --- meta/recipes-devtools/gcc/gcc-7.2.inc | 1 + .../gcc/gcc-7.2/0051-Fix-gfortran-build.patch | 53 ++++++++++++++++++++++ 2 files changed, 54 insertions(+) create mode 100644 meta/recipes-devtools/gcc/gcc-7.2/0051-Fix-gfortran-build.patch -- 2.15.0 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core diff --git a/meta/recipes-devtools/gcc/gcc-7.2.inc b/meta/recipes-devtools/gcc/gcc-7.2.inc index 1d40cba731..baf98aeba8 100644 --- a/meta/recipes-devtools/gcc/gcc-7.2.inc +++ b/meta/recipes-devtools/gcc/gcc-7.2.inc @@ -75,6 +75,7 @@ SRC_URI = "\ file://0048-gcc-Enable-static-PIE.patch \ file://fix-segmentation-fault-precompiled-hdr.patch \ file://0050-RISC-V-Handle-non-legitimate-address-in-riscv_legiti.patch \ + file://0051-Fix-gfortran-build.patch \ ${BACKPORTS} \ " BACKPORTS = "\ diff --git a/meta/recipes-devtools/gcc/gcc-7.2/0051-Fix-gfortran-build.patch b/meta/recipes-devtools/gcc/gcc-7.2/0051-Fix-gfortran-build.patch new file mode 100644 index 0000000000..a71b6b0bee --- /dev/null +++ b/meta/recipes-devtools/gcc/gcc-7.2/0051-Fix-gfortran-build.patch @@ -0,0 +1,53 @@ +Without this patch libbacktrace cannot be included/link during +libgfortran build. + +libbtool: link: cannot find the library `../libbacktrace/libbacktrace.la' +or unhandled argument `../libbacktrace/libbacktrace.la' + +Upstream-Status: Inappropriate [OE specific] +Signed-off-by: Ricardo Ribalda Delgado + +diff --git a/libgfortran/Makefile.am b/libgfortran/Makefile.am +index 2857af5943f9..e07760069a3c 100644 +--- a/libgfortran/Makefile.am ++++ b/libgfortran/Makefile.am +@@ -37,7 +37,7 @@ toolexeclib_LTLIBRARIES = libgfortran.la + toolexeclib_DATA = libgfortran.spec + libgfortran_la_LINK = $(LINK) $(libgfortran_la_LDFLAGS) + libgfortran_la_LDFLAGS = -version-info `grep -v '^\#' $(srcdir)/libtool-version` \ +- $(LTLDFLAGS) $(LIBQUADLIB) ../libbacktrace/libbacktrace.la \ ++ $(LTLDFLAGS) $(LIBQUADLIB) ../../libbacktrace/libbacktrace.la \ + $(HWCAP_LDFLAGS) \ + -lm $(extra_ldflags_libgfortran) \ + $(version_arg) -Wc,-shared-libgcc +@@ -64,7 +64,7 @@ AM_CPPFLAGS = -iquote$(srcdir)/io -I$(srcdir)/$(MULTISRCTOP)../gcc \ + -I$(MULTIBUILDTOP)../libgcc \ + -I$(srcdir)/$(MULTISRCTOP)../libbacktrace \ + -I$(MULTIBUILDTOP)../libbacktrace \ +- -I../libbacktrace ++ -I../../libbacktrace + + # Fortran rules for complex multiplication and division + AM_CFLAGS += -fcx-fortran-rules +diff --git a/libgfortran/Makefile.in b/libgfortran/Makefile.in +index 05b183dcadb0..c9e0280e412c 100644 +--- a/libgfortran/Makefile.in ++++ b/libgfortran/Makefile.in +@@ -581,7 +581,7 @@ toolexeclib_LTLIBRARIES = libgfortran.la + toolexeclib_DATA = libgfortran.spec + libgfortran_la_LINK = $(LINK) $(libgfortran_la_LDFLAGS) + libgfortran_la_LDFLAGS = -version-info `grep -v '^\#' $(srcdir)/libtool-version` \ +- $(LTLDFLAGS) $(LIBQUADLIB) ../libbacktrace/libbacktrace.la \ ++ $(LTLDFLAGS) $(LIBQUADLIB) ../../libbacktrace/libbacktrace.la \ + $(HWCAP_LDFLAGS) \ + -lm $(extra_ldflags_libgfortran) \ + $(version_arg) -Wc,-shared-libgcc +@@ -602,7 +602,7 @@ AM_CPPFLAGS = -iquote$(srcdir)/io -I$(srcdir)/$(MULTISRCTOP)../gcc \ + -I$(MULTIBUILDTOP)../libgcc \ + -I$(srcdir)/$(MULTISRCTOP)../libbacktrace \ + -I$(MULTIBUILDTOP)../libbacktrace \ +- -I../libbacktrace ++ -I../../libbacktrace + + gfor_io_src = io/size_from_kind.c $(am__append_2) + gfor_io_headers = \