2025-03-11 6:07 AM
I want to enable libgfortran on OpenSTLinux distribution package. Based on the information that i found on the internet I added the following lines to the local.conf
IMAGE_FEATURES += "tools-sdk" FORTRAN = ",fortran" FORTRAN_forcevariable = ",fortran" RUNTIMETARGET += " libquadmath libgfortran" IMAGE_INSTALL += " gfortran gfortran-symlinks libgfortran libgfortran-dev"
But i am getting the following error
bitbake st-image-weston NOTE: Started PRServer with DBfile: /home/user/Desktop/Testing/Ashish/02_STM32MCU/OpenSTLinux2/build-openstlinuxweston-stm32mp1/cache/prserv.sqlite3, Address: 127.0.0.1:44813, PID: 2068707 Loading cache: 100% |##########################################################################################################| Time: 0:00:01 Loaded 4984 entries from dependency cache. Parsing recipes: 100% |########################################################################################################| Time: 0:00:00 Parsing of 3033 .bb files complete (3024 cached, 9 parsed). 4984 targets, 635 skipped, 0 masked, 0 errors. NOTE: Resolving any missing task queue dependencies ERROR: Nothing RPROVIDES 'libgfortran' (but /home/user/Desktop/Testing/Ashish/02_STM32MCU/OpenSTLinux2/layers/meta-st/meta-st-openstlinux/recipes-st/images/st-image-weston.bb RDEPENDS on or otherwise requires it) nativesdk-libgfortran RPROVIDES libgfortran but was skipped: libgfortran needs fortran support to be enabled in the compiler libgfortran was skipped: libgfortran needs fortran support to be enabled in the compiler NOTE: Runtime target 'libgfortran' is unbuildable, removing... Missing or unbuildable dependency chain was: ['libgfortran'] ERROR: Required build target 'st-image-weston' has no buildable providers. Missing or unbuildable dependency chain was: ['st-image-weston', 'libgfortran']
2025-03-11 6:23 AM
Your error message indicates that libgfortran was skipped because "Fortran support needs to be enabled in the compiler." This suggests that the GCC toolchain used by OpenSTLinux is missing Fortran support.
Check if gcc-fortran is available:
bitbake -s | grep gcc
If gcc-fortran is not listed, you need to include it in your toolchain.
2025-03-11 6:28 AM
gcc-fortran isn't listed here. Could let me know to include it ? I am new to building images using yocto.
bitbake -s | grep gcc
gcc :13.3.0-r0
gcc-arm-none-eabi-native :11.3-r0
gcc-cross-arm :13.3.0-r0
gcc-cross-canadian-arm :13.3.0-r0
gcc-crosssdk-x86_64-ostl_sdk-linux :13.3.0-r0
gcc-runtime :13.3.0-r0
gcc-sanitizers :13.3.0-r0
gcc-source-13.3.0 :13.3.0-r0
libgcc :13.3.0-r0
libgcc-initial :13.3.0-r0
nativesdk-gcc :13.3.0-r0
nativesdk-gcc-arm-none-eabi :11.3-r0
nativesdk-gcc-runtime :13.3.0-r0
nativesdk-gcc-sanitizers :13.3.0-r0
nativesdk-libgcc :13.3.0-r0
nativesdk-libgcc-initial :13.3.0-r0