Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH 1/2] gfortran: update runtime dependencies
@ 2024-06-13 11:51 kai.kang
  2024-06-13 11:51 ` [PATCH 2/2] gcc: remove g77/f77 kai.kang
  2024-06-13 21:56 ` [OE-core] [PATCH 1/2] gfortran: update runtime dependencies Richard Purdie
  0 siblings, 2 replies; 6+ messages in thread
From: kai.kang @ 2024-06-13 11:51 UTC (permalink / raw)
  To: openembedded-core

From: Kai Kang <kai.kang@windriver.com>

It fails to run both `gcc` and `gfortran` with errors:

| root@qemux86-64:~# x86_64-poky-linux-gcc a.c
| x86_64-poky-linux-gcc: fatal error: cannot execute 'as': posix_spawnp: No such file or directory

then add binutils which provides `as` to RDEPENDS of gcc.

libgfortran-dev provides libgfortran.spec which required by gfortran:

| root@qemux86-64:~# gfortran hello.f95
| gfortran: fatal error: cannot read spec file 'libgfortran.spec': No such file or directory

And gcc provides liblto_plugin.so:

| root@qemux86-64:~# gfortran hello.f95
| gfortran: fatal error: '-fuse-linker-plugin', but liblto_plugin.so not found

Signed-off-by: Kai Kang <kai.kang@windriver.com>
---
 meta/recipes-devtools/gcc/gcc-target.inc | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/meta/recipes-devtools/gcc/gcc-target.inc b/meta/recipes-devtools/gcc/gcc-target.inc
index 82da5ef82b..6ab83449ea 100644
--- a/meta/recipes-devtools/gcc/gcc-target.inc
+++ b/meta/recipes-devtools/gcc/gcc-target.inc
@@ -61,7 +61,7 @@ RRECOMMENDS:${PN} += "\
     libssp \
     libssp-dev \
 "
-RDEPENDS:${PN} += "cpp"
+RDEPENDS:${PN} += "binutils cpp"
 
 FILES:${PN}-dev = "\
     ${gcclibdir}/${TARGET_SYS}/${BINV}/lib*${SOLIBSDEV} \
@@ -94,10 +94,15 @@ RRECOMMENDS:g77 = "\
     libg2c-dev \
 "
 
+INSANE_SKIP:gfortran += "dev-deps"
 FILES:gfortran = "\
     ${bindir}/${TARGET_PREFIX}gfortran \
     ${libexecdir}/gcc/${TARGET_SYS}/${BINV}/f951 \
 "
+RDEPENDS:gfortran = "\
+    gcc \
+    libgfortran-dev \
+"
 RRECOMMENDS:gfortran = "\
     libquadmath \
     libquadmath-dev \
-- 
2.34.1



^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-06-14  2:36 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-13 11:51 [PATCH 1/2] gfortran: update runtime dependencies kai.kang
2024-06-13 11:51 ` [PATCH 2/2] gcc: remove g77/f77 kai.kang
2024-06-13 16:58   ` [OE-core] " Khem Raj
2024-06-13 20:22     ` Richard Purdie
2024-06-13 21:56 ` [OE-core] [PATCH 1/2] gfortran: update runtime dependencies Richard Purdie
2024-06-14  2:36   ` Kai

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox