From patchwork Fri Nov 17 14:42:27 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 119151 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp603895qgn; Fri, 17 Nov 2017 06:42:44 -0800 (PST) X-Google-Smtp-Source: AGs4zMZwSz3D6ag2WU5F3DCSV6euCGCwAOYruNwT2tNbHo0v4Hm2XU72ciOTgLEJOiUfIReWjknl X-Received: by 10.98.149.72 with SMTP id p69mr2332205pfd.76.1510929763921; Fri, 17 Nov 2017 06:42:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510929763; cv=none; d=google.com; s=arc-20160816; b=W+1FN+YqRtzkeHOl36ZotiTKHRP28pKumTGHhkzYiP40D+BFLDivKhNIDEStbzl+pw jacSmbdnbxkEhY7Z3EZJAg0Dy3M1Lct6yMVJQp3b7H+zCqWcQiIbcBZd4nwtZOxNE/Fo e5EzRfgovWDqwztBngTpgjVL4hfpzEBmJNU3oagLCOnL8GGMre/CNneG//z+McvifhZd /i5xJO9vGq0AgKYYDtoMNISKgANghAhGutVCSYmtMFsajvz+BXGK7t837c1ceIbk10u9 3DmYnm8RLJINWGiTdsgYXh9Xe5MYM2mUm/cq3o8BccBDL+eqc1ufNLaBCflLHtlFbdsW 59SQ== 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=6N583qPbNotLrDPxZiXFOWylvGEmDnbHiA5qnYnvwyo=; b=rht1BjBhTAlEKZD/vmS2SS5CoaBjhkWOsVf5xwa6q9PAR8nehb+/gwjdu7e2weS3HL tz1mm81L/6L6Li+AGTloWVZjjyKsoGuSac7As4JjTLUmYNSxjpTQ2LTWgv3MjwQnbiEW gQFkuxz4cqYgB5NM9r3ejeLzjpVusCOfbEEqPkxI3MrAhZH10IxVjXsc9Excj4NBa+tV bzagVQgpNkr75MqekbefPOH0ZK69tERs6cThncX4ITx5ZtMi61YpsUUqhwPpuFti3vrj 3WdPqtdsgR6N9kDQq4H5mQ9RuCRJksVZtkEvFfRUAiR8N0J52HG7kus++ojSLR/zTQ6V /myg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=IHZyQjnF; 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 60si2914853plc.264.2017.11.17.06.42.43; Fri, 17 Nov 2017 06:42:43 -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=IHZyQjnF; 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 662E378842; Fri, 17 Nov 2017 14:42:41 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-qt0-f195.google.com (mail-qt0-f195.google.com [209.85.216.195]) by mail.openembedded.org (Postfix) with ESMTP id 648E47884D for ; Fri, 17 Nov 2017 14:42:38 +0000 (UTC) Received: by mail-qt0-f195.google.com with SMTP id 8so6571494qtv.1 for ; Fri, 17 Nov 2017 06:42:40 -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=6KuFSkpMInaiWsOxFDjjA1VMLiTieRcOOCkAXCCK71s=; b=IHZyQjnF59k3Rm4mbX5CUWpZnY7y2PyTmjxFdch1fr9u+8NMN3q+lSwWHgl8hyb0q4 y7SQLDiapMOPGxxORiwvsTtSBzlMj7A2pDMCGyQ1TGKN4fkXw1DeS+255zrHXaDyZTUx DiTSoK/uQ/+ErETLAQ3+P8AkU1uaZeQdwrIOD7gfh6lRZUeheBFZNUjXlZdYMbYHiwEF rzVuyQznWYqIMHYu9XWwxO3h/Qgu0svIfM56kTVa0J4X5c/h5+LCUlGU5oYNhc4Qp/vF LBKaacYKFTY0kLD26ACu93yMpW3Cj4qiW4ZMODn0FykCy861LE+W7NrYZpEcAr5+uIwN qTbQ== 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=6KuFSkpMInaiWsOxFDjjA1VMLiTieRcOOCkAXCCK71s=; b=D8CHvZvIeGjXjOwCMEAlYhR+19ASJOkjYPhYaDcds/7GefKcql+RfKiSXF2/ss8Q1U zqTbFAsmr2mc5l6tg+6Gqjuo6KAAfnAkosJx3MNFYd2CtABXxzGQNe7TgS0unaeGQ/qB eWf+7q2mGXqFhGco6f0rYGpYDHaJHm9B9rb/UoMjhA9SUSpjFHz7XxId8Tnpb9E04w5s 68IToH5uLNKuXhSgKjo67nRFmrxaU2mjL10UbJVosuSp/yGSUM1uPcxPeOsDwfYJG1Xh AaT9xrbXD3CcTlVT2BXLqwhPBQm9DtNo91F1rjWHLIEIANdKlbY+TITQInpruTA5A4yX lUEQ== X-Gm-Message-State: AJaThX7r2LEkUNSXaen3OublmvWjEQ6MBltgpK58OMttwIcae7QN6RFJ dAFkQjbP6jlInRN1kYaokPYo/Q== X-Received: by 10.55.15.18 with SMTP id z18mr8636995qkg.200.1510929760033; Fri, 17 Nov 2017 06:42:40 -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.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 17 Nov 2017 06:42:39 -0800 (PST) From: Khem Raj To: openembedded-core@lists.openembedded.org Date: Fri, 17 Nov 2017 06:42:27 -0800 Message-Id: <7a5b0244a949459aa948359412369900394a8ddc.1510807196.git.raj.khem@gmail.com> X-Mailer: git-send-email 2.15.0 In-Reply-To: References: Subject: [OE-core] [PATCH 1/2] gcc-6.4: 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-6.4.inc | 1 + .../gcc/gcc-6.4/0057-Fix-gfortran-build.patch | 53 ++++++++++++++++++++++ 2 files changed, 54 insertions(+) create mode 100644 meta/recipes-devtools/gcc/gcc-6.4/0057-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-6.4.inc b/meta/recipes-devtools/gcc/gcc-6.4.inc index 37e996afb7..f2b01699f1 100644 --- a/meta/recipes-devtools/gcc/gcc-6.4.inc +++ b/meta/recipes-devtools/gcc/gcc-6.4.inc @@ -76,6 +76,7 @@ SRC_URI = "\ file://0054_all_nopie-all-flags.patch \ file://0055-unwind_h-glibc26.patch \ file://0056-LRA-PR70904-relax-the-restriction-on-subreg-reload-f.patch \ + file://0057-Fix-gfortran-build.patch \ ${BACKPORTS} \ " BACKPORTS = "\ diff --git a/meta/recipes-devtools/gcc/gcc-6.4/0057-Fix-gfortran-build.patch b/meta/recipes-devtools/gcc/gcc-6.4/0057-Fix-gfortran-build.patch new file mode 100644 index 0000000000..30b135b978 --- /dev/null +++ b/meta/recipes-devtools/gcc/gcc-6.4/0057-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 39d3e11d223c..b5efe6dfe195 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 \ + -lm $(extra_ldflags_libgfortran) \ + $(version_arg) -Wc,-shared-libgcc + libgfortran_la_DEPENDENCIES = $(version_dep) libgfortran.spec $(LIBQUADLIB_DEP) +@@ -63,7 +63,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 7ed080cf7b0d..d197fbd6b683 100644 +--- a/libgfortran/Makefile.in ++++ b/libgfortran/Makefile.in +@@ -598,7 +598,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 \ + -lm $(extra_ldflags_libgfortran) \ + $(version_arg) -Wc,-shared-libgcc + +@@ -618,7 +618,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 = \