Re: libquadmath

Konrad Weihmann <kweihmann@...>

I think the reason of that is that fortran support isn't enabled in default gcc-runtime recipe.


RUNTIMETARGET = "${RUNTIMELIBSSP} libstdc++-v3 libgomp libatomic ${RUNTIMELIBITM} \
${@bb.utils.contains_any('FORTRAN', [',fortran',',f77'], 'libquadmath', '', d)} \

activates the configuration of libquadmath if either ',fortran' or ',f77' is set in 'FORTRAN' variable.
Unfortunately this variable seems to be set to "" since gcc version 9 update

By just adding

FORTRAN = ",fortran"

to a gcc-runtime_%.bbappend I could create the needed files in the sysroot-components directory

->> gcc-runtime/usr/lib/

now as you already have set `DEPENDS = "virtual/arm-oe-linux-gnueabi-compilerlibs"` it should automatically make the lib available to your recipe workspace.

On 02.01.22 18:31, staticd wrote:
I think to clarify...what I need are these files:
--- snipped from ---
FILES_libquadmath = "${libdir}/libquadmath*.so.*"
SUMMARY_libquadmath = "GNU quad-precision math library"
FILES_libquadmath-dev = "\
    ${libdir}/${TARGET_SYS}/${BINV}/include/quadmath* \
    ${libdir}/libquadmath*.so \
    ${libdir}/ <> \
to be in my $STAGING_LIBDIR
So far, I have been unable to figure out how to do that, unfortunately.
On Sun, Jan 2, 2022 at 12:23 PM staticd <staticd@... <mailto:staticd@...>> wrote:
Thank you, Michael.
I have `DEPENDS = "virtual/arm-oe-linux-gnueabi-compilerlibs"`
and `do_compile[depends] +=
However, is still not present in `recipe-sysroot/lib`
I used the `do_check` task from gcc_runtime but that still isn't
providing `` in my $STAGING_LIBDIR, which is where I
need it.
Many thanks.
On Sun, Jan 2, 2022 at 12:17 PM Michael Ho <michael.ho@...
<mailto:michael.ho@...>> wrote:
Not familiar with Fortran but maybe it helps to know that this
is normally handled with the DEPENDS mechanism. When you add
other recipes as dependencies to your recipe, the task
do_prepare_recipe_sysroot (run before do_compile) will make hard
links to the files from those dependency recipes into that
recipe-sysroot directory.
Kind regards,
On Sun, 2 Jan 2022, 6:06 pm staticd, <staticd@...
<mailto:staticd@...>> wrote:
okay...I think I have a more interesting question now...
In the package I am building I have some Fortran code that
requires `libquadmath`
I see that `gcc-runtime` provides the library but I need the
library present in `recipe-sysroot/lib` when my `do_compile`
Is there a way for me to do that?
My current approach is to build my image, copy the
libraries/includes to my recipe and `install` them in
`recipe-sysroot` before `do_compile`
This doesn't seem like the correct approach but I am not
sure how else to do it at this point
Any help would be greatly appreciated.

Join to automatically receive all group messages.