Skip to contentSkip to conversation

libgfortran.spec not found

DISCUSSION Tomas Veiga 1 participant 1 message Feb 13, 2025 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

Hello,

I'm trying to build the gcc toolchain with Yocto.

I'm currently building it with bitbake meta-toolchain -c populate_sdk and then running the installer tmp/deploy/sdk/poky-glibc-x86_64-core-image-sato-core2-64-toolchain-ext-5.2.999.sh.

gcc and g++ work fine, but gfortran doesn't, getting the error:
x86_64-poky-linux-gfortran: fatal error: cannot read spec file ‘libgfortran.spec’: No such file or directory compilation terminated.

I've tried copying the libgfortran.spec file from ./build/tmp/sysroots-components/core2-64/libgfortran/usr/lib/libgfortran.spec to sysroots/x86_64-pokysdk-linux/usr/lib/x86_64-poky-linux/gcc/x86_64-poky-linux/14.2.0/libgfortran.spec but then I get several no such file or directory errors for Scrt1.o, crti.o, crtbegins.o, etc....

I've also tried these suggestions but made no difference. https://low-level.wiki/yocto/yocto-insectarium.html

Hoping anyone has got any insight?