Skip to contentSkip to conversation

gcc-6.3: Fix libgfortran build

PATCH Superseded Ricardo Ribalda Delgado 3 participants 6 messages Jun 30, 2017 – Jul 3, 2017

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/3 gcc-6.3: Fix libgfortran build

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'

---
 meta/recipes-devtools/gcc/gcc-6.3.inc              |  1 +
 .../gcc/gcc-6.3/0099-Fix-gfortran-build.patch      | 53 ++++++++++++++++++++++
 2 files changed, 54 insertions(+)
 create mode 100644 meta/recipes-devtools/gcc/gcc-6.3/0099-Fix-gfortran-build.patch
meta/recipes-devtools/gcc/gcc-6.3.inc +1 -0
index 86b3e9ff19a4..36a116d48fb4 100644
@@ -74,6 +74,7 @@ SRC_URI = "\
            file://0047-libgcc_s-Use-alias-for-__cpu_indicator_init-instead-.patch \
            file://0048-sync-gcc-stddef.h-with-musl.patch \
            file://0054_all_nopie-all-flags.patch \
+           file://0099-Fix-gfortran-build.patch \
            ${BACKPORTS} \
 "
 BACKPORTS = "\
meta/recipes-devtools/gcc/gcc-6.3/0099-Fix-gfortran-build.patch new file +53 -0

53 lines not on this page · raw message

Signature · 1 line
2.11.0
#1 lore raw

PATCH v2 2/3 libgfortran: Add missing dependency gcc-cross

Due to the fact that the recipe uses INHIBIT_DEFAULT_DEPS, we need to manually add the cross compiler as a dependency.

---
 meta/recipes-devtools/gcc/libgfortran.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-devtools/gcc/libgfortran.inc +1 -1
index 4846decbb834..3b94c1b85b70 100644
@@ -37,7 +37,7 @@ do_install () {
 }
 
 INHIBIT_DEFAULT_DEPS = "1"
-DEPENDS = "gcc-runtime"
+DEPENDS = "gcc-runtime gcc-cross-${TARGET_ARCH}"
 
 BBCLASSEXTEND = "nativesdk"
 
Signature · 1 line
2.11.0
#2 lore raw

PATCH v2 3/3 libgfortran: Add missing fincludes

In reply to Ricardo Ribalda Delgado

ERROR: libgfortran-6.3.0-r0 do_package: QA Issue: libgfortran:
Files/directories were installed but not shipped in any package:
/usr/lib/gcc/x86_64-poky-linux/6.3.0/finclude /usr/lib/gcc/x86_64-poky-linux/6.3.0/finclude/ieee_features.mod /usr/lib/gcc/x86_64-poky-linux/6.3.0/finclude/ieee_arithmetic.mod /usr/lib/gcc/x86_64-poky-linux/6.3.0/finclude/ieee_exceptions.mod

---
 meta/recipes-devtools/gcc/libgfortran.inc | 1 +
 1 file changed, 1 insertion(+)
meta/recipes-devtools/gcc/libgfortran.inc +1 -0
index 3b94c1b85b70..5f5d4af7589d 100644
@@ -54,6 +54,7 @@ FILES_${PN}-dev = "\
     ${libdir}/libgfortran.la \
     ${libdir}/gcc/${TARGET_SYS}/${BINV}/libgfortranbegin.* \
     ${libdir}/gcc/${TARGET_SYS}/${BINV}/libcaf_single* \
+    ${libdir}/gcc/${TARGET_SYS}/${BINV}/finclude/ \
 "
 FILES_${PN}-staticdev = "${libdir}/libgfortran.a"
 
Signature · 1 line
2.11.0
#4 lore raw

Hi Ross

Quoted 11 lines · Ross

meta/recipes-devtools/gcc/gcc-6.3.inc

Quoted 3 lines · Ricardo Ribalda Delgado
meta/recipes-devtools/gcc/gcc-6.3.inc +0 -0

Is this fixed in gcc 7 (in which case the upstream-status is backport), or is gcc 7.1 still broken?

I do not know, at qtec we are following yocto, and currently it is at version 6.3.

I could try to build it with gcc7 during this week. and send another patch
if needed.

Regards!

Quoted 3 lines

Ross

#5 lore raw
In reply to Burton, Ross
Quoted 10 lines · Ross

meta/recipes-devtools/gcc/gcc-6.3.inc

Quoted 3 lines · Ricardo Ribalda Delgado
meta/recipes-devtools/gcc/gcc-6.3.inc +0 -0

Is this fixed in gcc 7 (in which case the upstream-status is backport), or is gcc 7.1 still broken?

this in needed on gcc 7.1 as well.

Quoted 9 lines

Ross

--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core