Update for gfortran
v3 cover Update for gfortran
From: Kai Kang <[email protected]>
v3:
* update INSANE_SKIP for ${MLPREFIX}gfortran
v2:
* add sub-package gfortran conditionally
Kai Kang (1):
gfortran: update runtime dependencies
meta/recipes-devtools/gcc/gcc-target.inc | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-)
Signature · 1 line
2.34.1
PATCH v3 1/1 gfortran: update runtime dependencies
From: Kai Kang <[email protected]>
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
--- meta/recipes-devtools/gcc/gcc-target.inc | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-)
meta/recipes-devtools/gcc/gcc-target.inc +7 -2
@@ -33,7 +33,7 @@ PACKAGES = "\ ${PN} ${PN}-plugins ${PN}-symlinks \ g++ g++-symlinks \ cpp cpp-symlinks \ - gfortran gfortran-symlinks \ + ${@bb.utils.contains('FORTRAN', ',fortran', 'gfortran gfortran-symlinks', '', d)} \ gcov gcov-symlinks \ ${PN}-doc \ ${PN}-dev \
@@ -60,7 +60,7 @@ RRECOMMENDS:${PN} += "\ libssp \ libssp-dev \ " -RDEPENDS:${PN} += "cpp" +RDEPENDS:${PN} += "binutils cpp" FILES:${PN}-dev = "\ ${gcclibdir}/${TARGET_SYS}/${BINV}/lib*${SOLIBSDEV} \
@@ -80,10 +80,15 @@ FILES:${PN}-plugins = "\ " ALLOW_EMPTY:${PN}-plugins = "1" +INSANE_SKIP:${MLPREFIX}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 \
Signature · 1 line
2.34.1
Re: [OE-core] [PATCH v3 1/1] gfortran: update runtime dependencies
Something seems wrong with this change which was merged today, now with:
MACHINE=qemuarm64
FORTRAN:forcevariable = ",fortran"
I'm seeing:
build/oe-core $ bitbake -g nativesdk-libgfortran
NOTE: Resolving any missing task queue dependencies
ERROR: Nothing PROVIDES 'gcc-cross-x86_64' (but virtual:nativesdk:/OE/build/oe-core/openembedded-core/meta/recipes-devtools/gcc/libgfortran_14.1.bb DEPENDS on or otherwise requires it). Close matches:
gcc-cross-aarch64
...
This might have been broken even before this change, but now it got included in dependency tree of nativesdk-gcc (as shown in bitbake -g nativesdk-gcc now failing when host and target arch don't match):
"nativesdk-gcc.do_package_qa" -> "nativesdk-libgfortran.do_packagedata" nativesdk-gcc.do_package_write_ipk" -> "nativesdk-libgfortran.do_packagedata"
Missing or unbuildable dependency chain was: ['image', 'nativesdk-packagegroup-sdk-host', 'nativesdk-lcov', 'nativesdk-gcov-symlinks', 'nativesdk-libgfortran-dev', 'gcc-cross-x86_64']
I guess the easiest fix would be in:
meta/recipes-devtools/gcc/libgfortran.inc:DEPENDS = "gcc-runtime gcc-cross-${TARGET_ARCH}"
but I'm not very familiar with fortran (we've enabled it long time ago to build lapack(blas) for snowboy, but wasn't actively used for couple years).
Regards,
Quoted 75 lines · Kai Kang via lists.openembedded.org
From: Kai Kang <[email protected]>
It fails to run both
gccandgfortranwith 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 directorythen add binutils which provides
asto 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 directoryAnd gcc provides liblto_plugin.so:
| root@qemux86-64:~# gfortran hello.f95
| gfortran: fatal error: '-fuse-linker-plugin', but liblto_plugin.so not foundSigned-off-by Kai Kang <[email protected]>--- meta/recipes-devtools/gcc/gcc-target.inc | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-)meta/recipes-devtools/gcc/gcc-target.inc +7
-3@@ -33,7 +33,7 @@ PACKAGES = "\ ${PN} ${PN}-plugins ${PN}-symlinks \ g++ g++-symlinks \ cpp cpp-symlinks \ - gfortran gfortran-symlinks \ + ${@bb.utils.contains('FORTRAN', ',fortran', 'gfortran gfortran-symlinks', '', d)} \ gcov gcov-symlinks \ ${PN}-doc \ ${PN}-dev \@@ -60,7 +60,7 @@ RRECOMMENDS:${PN} += "\ libssp \ libssp-dev \ " -RDEPENDS:${PN} += "cpp" +RDEPENDS:${PN} += "binutils cpp" FILES:${PN}-dev = "\ ${gcclibdir}/${TARGET_SYS}/${BINV}/lib*${SOLIBSDEV} \@@ -80,10 +80,15 @@ FILES:${PN}-plugins = "\ " ALLOW_EMPTY:${PN}-plugins = "1" +INSANE_SKIP:${MLPREFIX}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
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#200780): https://lists.openembedded.org/g/openembedded-core/message/200780
Mute This Topic: https://lists.openembedded.org/mt/106704990/3617156
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
A message that is not in the archive (sent off-list or not yet received): [email protected]
Re: [OE-core] [PATCH v3 1/1] gfortran: update runtime dependencies
See https://lists.openembedded.org/g/openembedded-core/message/200915
which allows to me to build nativesdk-gcc again.
I've built nativesdk-libgfortran and libgfortran with the patch, but haven't used fortran in runtime at all, that's why it's an RFC, there were also 2 warnings:
WARNING: nativesdk-libgfortran-14.1.0-r0 do_package_qa: QA Issue: File /opt/.../usr/lib/.debug/libgfortran.so.5.0.0 in package nativesdk-libgfortran-dbg contains reference to TMPDIR [buildpaths]
WARNING: libgfortran-14.1.0-r0 do_package_qa: QA Issue: File /usr/lib/.debug/libgfortran.so.5.0.0 in package libgfortran-dbg contains reference to TMPDIR [buildpaths]
which I guess were already there.
Quoted 117 lines · Martin Jansa via lists.openembedded.org
Something seems wrong with this change which was merged today, now with:
MACHINE=qemuarm64
FORTRAN:forcevariable = ",fortran"I'm seeing:
build/oe-core $ bitbake -g nativesdk-libgfortran
NOTE: Resolving any missing task queue dependencies
ERROR: Nothing PROVIDES 'gcc-cross-x86_64' (but virtual:nativesdk:/OE/build/oe-core/openembedded-core/meta/recipes-devtools/gcc/libgfortran_14.1.bb DEPENDS on or otherwise requires it). Close matches:
gcc-cross-aarch64
...This might have been broken even before this change, but now it got included in dependency tree of nativesdk-gcc (as shown in bitbake -g nativesdk-gcc now failing when host and target arch don't match):
"nativesdk-gcc.do_package_qa" -> "nativesdk-libgfortran.do_packagedata" nativesdk-gcc.do_package_write_ipk" -> "nativesdk-libgfortran.do_packagedata"
Missing or unbuildable dependency chain was: ['image', 'nativesdk-packagegroup-sdk-host', 'nativesdk-lcov', 'nativesdk-gcov-symlinks', 'nativesdk-libgfortran-dev', 'gcc-cross-x86_64']
I guess the easiest fix would be in:
meta/recipes-devtools/gcc/libgfortran.inc:DEPENDS = "gcc-runtime gcc-cross-${TARGET_ARCH}"
but I'm not very familiar with fortran (we've enabled it long time ago to build lapack(blas) for snowboy, but wasn't actively used for couple years).Regards,
Quoted 64 lines · Kai Kang via lists.openembedded.org
From: Kai Kang <[email protected]>
It fails to run both
gccandgfortranwith 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 directorythen add binutils which provides
asto 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 directoryAnd gcc provides liblto_plugin.so:
| root@qemux86-64:~# gfortran hello.f95
| gfortran: fatal error: '-fuse-linker-plugin', but liblto_plugin.so not foundSigned-off-by Kai Kang <[email protected]>--- meta/recipes-devtools/gcc/gcc-target.inc | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-)meta/recipes-devtools/gcc/gcc-target.inc +7
-3@@ -33,7 +33,7 @@ PACKAGES = "\ ${PN} ${PN}-plugins ${PN}-symlinks \ g++ g++-symlinks \ cpp cpp-symlinks \ - gfortran gfortran-symlinks \ + ${@bb.utils.contains('FORTRAN', ',fortran', 'gfortran gfortran-symlinks', '', d)} \ gcov gcov-symlinks \ ${PN}-doc \ ${PN}-dev \@@ -60,7 +60,7 @@ RRECOMMENDS:${PN} += "\ libssp \ libssp-dev \ " -RDEPENDS:${PN} += "cpp" +RDEPENDS:${PN} += "binutils cpp" FILES:${PN}-dev = "\ ${gcclibdir}/${TARGET_SYS}/${BINV}/lib*${SOLIBSDEV} \@@ -80,10 +80,15 @@ FILES:${PN}-plugins = "\ " ALLOW_EMPTY:${PN}-plugins = "1" +INSANE_SKIP:${MLPREFIX}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 \ --Quoted 5 lines
2.34.1
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#200913): https://lists.openembedded.org/g/openembedded-core/message/200913
Mute This Topic: https://lists.openembedded.org/mt/106704990/3617156
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Re: [OE-core] [PATCH v3 1/1] gfortran: update runtime dependencies
Quoted 2 lines · Martin Jansa
See https://lists.openembedded.org/g/openembedded-core/message/200915
which allows to me to build nativesdk-gcc again.
Thanks for your fix.
Regards,
Kai
Quoted 129 lines
I've built nativesdk-libgfortran and libgfortran with the patch, but haven't used fortran in runtime at all, that's why it's an RFC, there were also 2 warnings:
WARNING: nativesdk-libgfortran-14.1.0-r0do_package_qa: QA Issue: File/opt/.../usr/lib/.debug/libgfortran.so.5.0.0in package nativesdk-libgfortran-dbg contains reference to TMPDIR [buildpaths]
WARNING: libgfortran-14.1.0-r0do_package_qa: QA Issue: File/usr/lib/.debug/libgfortran.so.5.0.0in package libgfortran-dbg contains reference to TMPDIR [buildpaths]
which I guess were already there.Quoted 114 lines · Martin Jansa via lists.openembedded.org
Something seems wrong with this change which was merged today, now with:
MACHINE=qemuarm64
FORTRAN:forcevariable = ",fortran"I'm seeing:
build/oe-core $ bitbake -g nativesdk-libgfortran
NOTE: Resolving any missing task queue dependencies
ERROR: Nothing PROVIDES 'gcc-cross-x86_64' (but virtual:nativesdk:/OE/build/oe-core/openembedded-core/meta/recipes-devtools/gcc/libgfortran_14.1.bb DEPENDS on or otherwise requires it). Close matches:
gcc-cross-aarch64
...This might have been broken even before this change, but now it got included in dependency tree of nativesdk-gcc (as shown in bitbake -g nativesdk-gcc now failing when host and target arch don't match):
"nativesdk-gcc.do_package_qa" -> "nativesdk-libgfortran.do_packagedata" nativesdk-gcc.do_package_write_ipk" -> "nativesdk-libgfortran.do_packagedata"
Missing or unbuildable dependency chain was: ['image', 'nativesdk-packagegroup-sdk-host', 'nativesdk-lcov', 'nativesdk-gcov-symlinks', 'nativesdk-libgfortran-dev', 'gcc-cross-x86_64']
I guess the easiest fix would be in:
meta/recipes-devtools/gcc/libgfortran.inc:DEPENDS = "gcc-runtime gcc-cross-${TARGET_ARCH}"
but I'm not very familiar with fortran (we've enabled it long time ago to build lapack(blas) for snowboy, but wasn't actively used for couple years).Regards,
Quoted 63 lines · Kai Kang via lists.openembedded.org
From: Kai Kang <[email protected]>
It fails to run both
gccandgfortranwith 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 directorythen add binutils which provides
asto 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 directoryAnd gcc provides liblto_plugin.so:
| root@qemux86-64:~# gfortran hello.f95
| gfortran: fatal error: '-fuse-linker-plugin', but liblto_plugin.so not foundSigned-off-by Kai Kang <[email protected]>--- meta/recipes-devtools/gcc/gcc-target.inc | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-)meta/recipes-devtools/gcc/gcc-target.inc +7
-3@@ -33,7 +33,7 @@ PACKAGES = "\ ${PN} ${PN}-plugins ${PN}-symlinks \ g++ g++-symlinks \ cpp cpp-symlinks \ - gfortran gfortran-symlinks \ + ${@bb.utils.contains('FORTRAN', ',fortran', 'gfortran gfortran-symlinks', '', d)} \ gcov gcov-symlinks \ ${PN}-doc \ ${PN}-dev \@@ -60,7 +60,7 @@ RRECOMMENDS:${PN} += "\ libssp \ libssp-dev \ " -RDEPENDS:${PN} += "cpp" +RDEPENDS:${PN} += "binutils cpp" FILES:${PN}-dev = "\ ${gcclibdir}/${TARGET_SYS}/${BINV}/lib*${SOLIBSDEV} \@@ -80,10 +80,15 @@ FILES:${PN}-plugins = "\ " ALLOW_EMPTY:${PN}-plugins = "1" +INSANE_SKIP:${MLPREFIX}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 \ --Quoted 5 lines
2.34.1
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#200913): https://lists.openembedded.org/g/openembedded-core/message/200913
Mute This Topic: https://lists.openembedded.org/mt/106704990/3617156
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Signature · 2 lines
Kai Kang Wind River Linux
Re: [OE-core] [PATCH v3 1/1] gfortran: update runtime dependencies
Hi Kai,
are you also seeing these buildpaths warnings from libgfortran? These will be fatal since ERROR_QA update from yesterday:
https://git.openembedded.org/openembedded-core/commit/?id=b79b191cc43a45dde2adb61ea349b426cb2461d1
and it probably wasn't detected in AB builds which might not enable fortran.
Regards,
Quoted 144 lines · Kai
Quoted 2 lines · Martin Jansa
See https://lists.openembedded.org/g/openembedded-core/message/200915
which allows to me to build nativesdk-gcc again.Thanks for your fix.
Regards,
KaiQuoted 12 lines
I've built nativesdk-libgfortran and libgfortran with the patch, but haven't used fortran in runtime at all, that's why it's an RFC, there were also 2 warnings:
WARNING: nativesdk-libgfortran-14.1.0-r0do_package_qa: QA Issue: File/opt/.../usr/lib/.debug/libgfortran.so.5.0.0in package nativesdk-libgfortran-dbg contains reference to TMPDIR [buildpaths]
WARNING: libgfortran-14.1.0-r0do_package_qa: QA Issue: File/usr/lib/.debug/libgfortran.so.5.0.0in package libgfortran-dbg contains reference to TMPDIR [buildpaths]
which I guess were already there.Quoted 117 lines
Quoted 114 lines · Martin Jansa via lists.openembedded.org
Something seems wrong with this change which was merged today, now with:
MACHINE=qemuarm64
FORTRAN:forcevariable = ",fortran"I'm seeing:
build/oe-core $ bitbake -g nativesdk-libgfortran
NOTE: Resolving any missing task queue dependencies
ERROR: Nothing PROVIDES 'gcc-cross-x86_64' (but virtual:nativesdk:/OE/build/oe-core/openembedded-core/meta/recipes-devtools/gcc/libgfortran_14.1.bb DEPENDS on or otherwise requires it). Close matches:
gcc-cross-aarch64
...This might have been broken even before this change, but now it got included in dependency tree of nativesdk-gcc (as shown in bitbake -g nativesdk-gcc now failing when host and target arch don't match):
"nativesdk-gcc.do_package_qa" -> "nativesdk-libgfortran.do_packagedata" nativesdk-gcc.do_package_write_ipk" -> "nativesdk-libgfortran.do_packagedata"
Missing or unbuildable dependency chain was: ['image', 'nativesdk-packagegroup-sdk-host', 'nativesdk-lcov', 'nativesdk-gcov-symlinks', 'nativesdk-libgfortran-dev', 'gcc-cross-x86_64']
I guess the easiest fix would be in:
meta/recipes-devtools/gcc/libgfortran.inc:DEPENDS = "gcc-runtime gcc-cross-${TARGET_ARCH}"
but I'm not very familiar with fortran (we've enabled it long time ago to build lapack(blas) for snowboy, but wasn't actively used for couple years).Regards,
Quoted 63 lines · Kai Kang via lists.openembedded.org
From: Kai Kang <[email protected]>
It fails to run both
gccandgfortranwith 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 directorythen add binutils which provides
asto 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 directoryAnd gcc provides liblto_plugin.so:
| root@qemux86-64:~# gfortran hello.f95
| gfortran: fatal error: '-fuse-linker-plugin', but liblto_plugin.so not foundSigned-off-by Kai Kang <[email protected]>--- meta/recipes-devtools/gcc/gcc-target.inc | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-)meta/recipes-devtools/gcc/gcc-target.inc +7
-3@@ -33,7 +33,7 @@ PACKAGES = "\ ${PN} ${PN}-plugins ${PN}-symlinks \ g++ g++-symlinks \ cpp cpp-symlinks \ - gfortran gfortran-symlinks \ + ${@bb.utils.contains('FORTRAN', ',fortran', 'gfortran gfortran-symlinks', '', d)} \ gcov gcov-symlinks \ ${PN}-doc \ ${PN}-dev \@@ -60,7 +60,7 @@ RRECOMMENDS:${PN} += "\ libssp \ libssp-dev \ " -RDEPENDS:${PN} += "cpp" +RDEPENDS:${PN} += "binutils cpp" FILES:${PN}-dev = "\ ${gcclibdir}/${TARGET_SYS}/${BINV}/lib*${SOLIBSDEV} \@@ -80,10 +80,15 @@ FILES:${PN}-plugins = "\ " ALLOW_EMPTY:${PN}-plugins = "1" +INSANE_SKIP:${MLPREFIX}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 \ --Quoted 5 lines
2.34.1
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#200913): https://lists.openembedded.org/g/openembedded-core/message/200913
Mute This Topic: https://lists.openembedded.org/mt/106704990/3617156
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=---
Kai Kang
Wind River Linux
Re: [OE-core] [PATCH v3 1/1] gfortran: update runtime dependencies
Quoted 6 lines · Martin Jansa
Hi Kai,
are you also seeing these buildpaths warnings from libgfortran? These will be fatal since
ERROR_QAupdate from yesterday:
https://git.openembedded.org/openembedded-core/commit/?id=b79b191cc43a45dde2adb61ea349b426cb2461d1
and it probably wasn't detected in AB builds which might not enable fortran.
Yes, it seems exists for long time. My colleague worked on it for several days. But it seems hard to resolve that
host path are somehow set to the intrinsic path.
I'll discuss with him tomorrow and check if we can fix it.
Regards,
Kai
Quoted 144 lines
Regards,
Quoted 140 lines · Kai
Quoted 2 lines · Martin Jansa
See https://lists.openembedded.org/g/openembedded-core/message/200915
which allows to me to build nativesdk-gcc again.Thanks for your fix.
Regards,
KaiQuoted 11 lines
I've built nativesdk-libgfortran and libgfortran with the patch, but haven't used fortran in runtime at all, that's why it's an RFC, there were also 2 warnings:
WARNING: nativesdk-libgfortran-14.1.0-r0do_package_qa: QA Issue: File/opt/.../usr/lib/.debug/libgfortran.so.5.0.0in package nativesdk-libgfortran-dbg contains reference to TMPDIR [buildpaths]
WARNING: libgfortran-14.1.0-r0do_package_qa: QA Issue: File/usr/lib/.debug/libgfortran.so.5.0.0in package libgfortran-dbg contains reference to TMPDIR [buildpaths]
which I guess were already there.Quoted 117 lines
Quoted 114 lines · Martin Jansa via lists.openembedded.org
Something seems wrong with this change which was merged today, now with:
MACHINE=qemuarm64
FORTRAN:forcevariable = ",fortran"I'm seeing:
build/oe-core $ bitbake -g nativesdk-libgfortran
NOTE: Resolving any missing task queue dependencies
ERROR: Nothing PROVIDES 'gcc-cross-x86_64' (but virtual:nativesdk:/OE/build/oe-core/openembedded-core/meta/recipes-devtools/gcc/libgfortran_14.1.bb DEPENDS on or otherwise requires it). Close matches:
gcc-cross-aarch64
...This might have been broken even before this change, but now it got included in dependency tree of nativesdk-gcc (as shown in bitbake -g nativesdk-gcc now failing when host and target arch don't match):
"nativesdk-gcc.do_package_qa" -> "nativesdk-libgfortran.do_packagedata" nativesdk-gcc.do_package_write_ipk" -> "nativesdk-libgfortran.do_packagedata"
Missing or unbuildable dependency chain was: ['image', 'nativesdk-packagegroup-sdk-host', 'nativesdk-lcov', 'nativesdk-gcov-symlinks', 'nativesdk-libgfortran-dev', 'gcc-cross-x86_64']
I guess the easiest fix would be in:
meta/recipes-devtools/gcc/libgfortran.inc:DEPENDS = "gcc-runtime gcc-cross-${TARGET_ARCH}"
but I'm not very familiar with fortran (we've enabled it long time ago to build lapack(blas) for snowboy, but wasn't actively used for couple years).Regards,
Quoted 63 lines · Kai Kang via lists.openembedded.org
From: Kai Kang <[email protected]>
It fails to run both
gccandgfortranwith 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 directorythen add binutils which provides
asto 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 directoryAnd gcc provides liblto_plugin.so:
| root@qemux86-64:~# gfortran hello.f95
| gfortran: fatal error: '-fuse-linker-plugin', but liblto_plugin.so not foundSigned-off-by Kai Kang <[email protected]>--- meta/recipes-devtools/gcc/gcc-target.inc | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-)meta/recipes-devtools/gcc/gcc-target.inc +7
-3@@ -33,7 +33,7 @@ PACKAGES = "\ ${PN} ${PN}-plugins ${PN}-symlinks \ g++ g++-symlinks \ cpp cpp-symlinks \ - gfortran gfortran-symlinks \ + ${@bb.utils.contains('FORTRAN', ',fortran', 'gfortran gfortran-symlinks', '', d)} \ gcov gcov-symlinks \ ${PN}-doc \ ${PN}-dev \@@ -60,7 +60,7 @@ RRECOMMENDS:${PN} += "\ libssp \ libssp-dev \ " -RDEPENDS:${PN} += "cpp" +RDEPENDS:${PN} += "binutils cpp" FILES:${PN}-dev = "\ ${gcclibdir}/${TARGET_SYS}/${BINV}/lib*${SOLIBSDEV} \@@ -80,10 +80,15 @@ FILES:${PN}-plugins = "\ " ALLOW_EMPTY:${PN}-plugins = "1" +INSANE_SKIP:${MLPREFIX}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 \ --Quoted 5 lines
2.34.1
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#200913): https://lists.openembedded.org/g/openembedded-core/message/200913
Mute This Topic: https://lists.openembedded.org/mt/106704990/3617156
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=---
Kai Kang
Wind River Linux
Signature · 2 lines
Kai Kang Wind River Linux
Re: [OE-core] [PATCH v3 1/1] gfortran: update runtime dependencies
Quoted 9 lines · Kai
Quoted 8 lines · Martin Jansa
Hi Kai,
are you also seeing these buildpaths warnings from libgfortran? These
will be fatal sinceERROR_QAupdate from yesterday:
https://git.openembedded.org/openembedded-core/commit/?id=b79b191cc43a45dde2adb61ea349b426cb2461d1
and it probably wasn't detected in AB builds which might not enable fortran.
Quoted 6 lines
Yes, it seems exists for long time. My colleague worked on it for several days. But it seems hard to resolve that
host path are somehow set to the intrinsic path.
I'll discuss with him tomorrow and check if we can fix it.
We're seeing these in automated testing now too.
I'm wondering if adding -ffile-prefix-map might avoid them. Sadly there are tools which don't support that option so it isn't an easy thing to add/test.
Cheers,
Richard
A message that is not in the archive (sent off-list or not yet received): [email protected]
Re: [OE-core] [PATCH v3 1/1] gfortran: update runtime dependencies
Quoted 15 lines · Richard Purdie via lists.openembedded.org
Quoted 14 lines · Kai
Quoted 8 lines · Martin Jansa
Hi Kai,
are you also seeing these buildpaths warnings from libgfortran? These
will be fatal sinceERROR_QAupdate from yesterday:
https://git.openembedded.org/openembedded-core/commit/?id=b79b191cc43a45dde2adb61ea349b426cb2461d1
and it probably wasn't detected in AB builds which might not enable fortran.Yes, it seems exists for long time. My colleague worked on it for several days. But it seems hard to resolve that
host path are somehow set to the intrinsic path.
Quoted 7 lines
Quoted 1 line
I'll discuss with him tomorrow and check if we can fix it.
We're seeing these in automated testing now too.
I'm wondering if adding -ffile-prefix-map might avoid them. Sadly there are tools which don't support that option so it isn't an easy thing to add/test.
To be clear, we saw failures in the fortran selftest however I tracked those down to the way we were calling the compiler and fixed it that way.
I did try adding file-prefix-map to the compiler commandline but it didn't help. I'm not sure of the status of prefix remapping in the fortran compiler but it doesn't seem to be quite working properly.
Cheers,
Richard
You must always resend the whole series, else ths patch is not applicable as-is. The work must be on your side, not on the maintainer's side.
Quoted 28 lines · Kai Kang via lists.openembedded.org
From: Kai Kang <[email protected]>
v3:
* updateINSANE_SKIPfor ${MLPREFIX}gfortranv2:
* add sub-package gfortran conditionallyKai Kang (1):
gfortran: update runtime dependenciesmeta/recipes-devtools/gcc/gcc-target.inc | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-)Signature · 11 lines
2.34.1 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#200779): https://lists.openembedded.org/g/openembedded-core/message/200779 Mute This Topic: https://lists.openembedded.org/mt/106704989/3617179 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
Signature · 3 lines
Alexandre Belloni, co-owner and COO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com
Also, this is not based on master and doesn't apply, I'm dropping the whole series.
Quoted 39 lines · Alexandre Belloni
You must always resend the whole series, else ths patch is not applicable as-is. The work must be on your side, not on the maintainer's side.
Quoted 28 lines · Kai Kang via lists.openembedded.org
From: Kai Kang <[email protected]>
v3:
* updateINSANE_SKIPfor ${MLPREFIX}gfortranv2:
* add sub-package gfortran conditionallyKai Kang (1):
gfortran: update runtime dependenciesmeta/recipes-devtools/gcc/gcc-target.inc | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-)Signature · 11 lines
2.34.1 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#200779): https://lists.openembedded.org/g/openembedded-core/message/200779 Mute This Topic: https://lists.openembedded.org/mt/106704989/3617179 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-Signature · 3 lines
Alexandre Belloni, co-owner and COO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com
Signature · 3 lines
Alexandre Belloni, co-owner and COO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com
Quoted 3 lines · Alexandre Belloni
You must always resend the whole series, else ths patch is not applicable as-is. The work must be on your side, not on the maintainer's side.
Because the first patch has been staged in master-next, then I just send the other one which
rebased on master-next.
Regards,
Kai
Quoted 29 lines · Kai Kang via lists.openembedded.org
Quoted 26 lines
From: Kai Kang <[email protected]>
v3:
* updateINSANE_SKIPfor ${MLPREFIX}gfortranv2:
* add sub-package gfortran conditionallyKai Kang (1):
gfortran: update runtime dependenciesmeta/recipes-devtools/gcc/gcc-target.inc | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-)Signature · 9 lines
2.34.1 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#200779): https://lists.openembedded.org/g/openembedded-core/message/200779 Mute This Topic: https://lists.openembedded.org/mt/106704989/3617179 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
Signature · 2 lines
Kai Kang Wind River Linux
Quoted 8 lines · Kai
Quoted 3 lines · Alexandre Belloni
You must always resend the whole series, else ths patch is not applicable as-is. The work must be on your side, not on the maintainer's side.
Because the first patch has been staged in master-next, then I just send the other one which
rebased on master-next.
master-next can be rebased, please base your patches on top of master unless instructed to do differently.
Quoted 38 lines
Regards,
KaiQuoted 29 lines · Kai Kang via lists.openembedded.org
Quoted 26 lines
From: Kai Kang <[email protected]>
v3:
* updateINSANE_SKIPfor ${MLPREFIX}gfortranv2:
* add sub-package gfortran conditionallyKai Kang (1):
gfortran: update runtime dependenciesmeta/recipes-devtools/gcc/gcc-target.inc | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-)Signature · 9 lines
2.34.1 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#200779): https://lists.openembedded.org/g/openembedded-core/message/200779 Mute This Topic: https://lists.openembedded.org/mt/106704989/3617179 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-Signature · 2 lines
Kai Kang Wind River Linux
Signature · 3 lines
Alexandre Belloni, co-owner and COO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com
Quoted 5 lines · Alexandre Belloni
Quoted 4 lines · Kai
Quoted 3 lines · Alexandre Belloni
You must always resend the whole series, else ths patch is not applicable as-is. The work must be on your side, not on the maintainer's side.
Quoted 7 lines
Quoted 4 lines
Because the first patch has been staged in master-next, then I just send the other one which
rebased on master-next.
master-next can be rebased, please base your patches on top of master unless instructed to do differently.
OK. Will do next time.
Quoted 35 lines
Quoted 35 lines
Regards,
KaiQuoted 27 lines · Kai Kang via lists.openembedded.org
Quoted 26 lines
From: Kai Kang <[email protected]>
v3:
* updateINSANE_SKIPfor ${MLPREFIX}gfortranv2:
* add sub-package gfortran conditionallyKai Kang (1):
gfortran: update runtime dependenciesmeta/recipes-devtools/gcc/gcc-target.inc | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-)Signature · 9 lines
2.34.1 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#200779): https://lists.openembedded.org/g/openembedded-core/message/200779 Mute This Topic: https://lists.openembedded.org/mt/106704989/3617179 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-Signature · 2 lines
Kai Kang Wind River Linux
Signature · 2 lines
Kai Kang Wind River Linux