diff options
| author | Kai Kang <kai.kang@windriver.com> | 2024-06-16 23:31:35 +0800 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-06-18 08:44:41 +0100 |
| commit | da616e302e66c97e1870fdd19476dacbb88a9380 (patch) | |
| tree | 6728fd8688287922ce2d28cad97b0f518219278b | |
| parent | e288d1b223d600344678f985ffe4382fa486cbf5 (diff) | |
| download | poky-da616e302e66c97e1870fdd19476dacbb88a9380.tar.gz | |
gfortran: update runtime dependencies
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
(From OE-Core rev: 44fc7aa1468ff042739cc5a91c84ef5c2a09e0a3)
Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
| -rw-r--r-- | meta/recipes-devtools/gcc/gcc-target.inc | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-target.inc b/meta/recipes-devtools/gcc/gcc-target.inc index 8e9693b4cb..e9187fc444 100644 --- a/meta/recipes-devtools/gcc/gcc-target.inc +++ b/meta/recipes-devtools/gcc/gcc-target.inc | |||
| @@ -33,7 +33,7 @@ PACKAGES = "\ | |||
| 33 | ${PN} ${PN}-plugins ${PN}-symlinks \ | 33 | ${PN} ${PN}-plugins ${PN}-symlinks \ |
| 34 | g++ g++-symlinks \ | 34 | g++ g++-symlinks \ |
| 35 | cpp cpp-symlinks \ | 35 | cpp cpp-symlinks \ |
| 36 | gfortran gfortran-symlinks \ | 36 | ${@bb.utils.contains('FORTRAN', ',fortran', 'gfortran gfortran-symlinks', '', d)} \ |
| 37 | gcov gcov-symlinks \ | 37 | gcov gcov-symlinks \ |
| 38 | ${PN}-doc \ | 38 | ${PN}-doc \ |
| 39 | ${PN}-dev \ | 39 | ${PN}-dev \ |
| @@ -60,7 +60,7 @@ RRECOMMENDS:${PN} += "\ | |||
| 60 | libssp \ | 60 | libssp \ |
| 61 | libssp-dev \ | 61 | libssp-dev \ |
| 62 | " | 62 | " |
| 63 | RDEPENDS:${PN} += "cpp" | 63 | RDEPENDS:${PN} += "binutils cpp" |
| 64 | 64 | ||
| 65 | FILES:${PN}-dev = "\ | 65 | FILES:${PN}-dev = "\ |
| 66 | ${gcclibdir}/${TARGET_SYS}/${BINV}/lib*${SOLIBSDEV} \ | 66 | ${gcclibdir}/${TARGET_SYS}/${BINV}/lib*${SOLIBSDEV} \ |
| @@ -80,10 +80,15 @@ FILES:${PN}-plugins = "\ | |||
| 80 | " | 80 | " |
| 81 | ALLOW_EMPTY:${PN}-plugins = "1" | 81 | ALLOW_EMPTY:${PN}-plugins = "1" |
| 82 | 82 | ||
| 83 | INSANE_SKIP:${MLPREFIX}gfortran += "dev-deps" | ||
| 83 | FILES:gfortran = "\ | 84 | FILES:gfortran = "\ |
| 84 | ${bindir}/${TARGET_PREFIX}gfortran \ | 85 | ${bindir}/${TARGET_PREFIX}gfortran \ |
| 85 | ${libexecdir}/gcc/${TARGET_SYS}/${BINV}/f951 \ | 86 | ${libexecdir}/gcc/${TARGET_SYS}/${BINV}/f951 \ |
| 86 | " | 87 | " |
| 88 | RDEPENDS:gfortran = "\ | ||
| 89 | gcc \ | ||
| 90 | libgfortran-dev \ | ||
| 91 | " | ||
| 87 | RRECOMMENDS:gfortran = "\ | 92 | RRECOMMENDS:gfortran = "\ |
| 88 | libquadmath \ | 93 | libquadmath \ |
| 89 | libquadmath-dev \ | 94 | libquadmath-dev \ |
