From: Kai Kang <kai.k...@windriver.com> Tested for qemuarm64 with multilib enabled:
1. set machine and enable multilib require conf/multilib.conf MULTILIBS = "multilib:lib32" MACHINE = "qemuarm64" DEFAULTTUNE:virtclass-multilib-lib32 = "armv7vethf-neon" 2. enable fortran and install to image FORTRAN:forcevariable = ",fortran" IMAGE_INSTALL:append = " gfortran lib32-gfortran" 3. build image and boot, run gfortran with option '-v' to verify math-vector-fortran.h has been pre-included for aarch64: /usr/libexec/gcc/aarch64-poky-linux/14.1.0/f951 hello.f95 -quiet -dumpdir a- -dumpbase hello.f95 -dumpbase-ext .f95 -mlittle-endian -mabi=lp64 -version -fintrinsic-modules-path /usr/lib/gcc/aarch64-poky-linux/14.1.0/finclude -fpre-include=/usr/lib/gcc/aarch64-poky-linux/14.1.0/finclude/math-vector-fortran.h -o /tmp/ccuPIzQY.s for arm: /usr/libexec/gcc/arm-pokymllib32-linux-gnueabi/14.1.0/f951 hello.f95 -quiet -dumpdir a- -dumpbase hello.f95 -dumpbase-ext .f95 -mfloat-abi=hard -mtls-dialect=gnu -marm -mlibarch=armv7ve+fp -march=armv7ve+fp -version -fintrinsic-modules-path /usr/lib/gcc/arm-pokymllib32-linux-gnueabi/14.1.0/finclude -fpre-include=/usr/lib/gcc/arm-pokymllib32-linux-gnueabi/14.1.0/finclude/math-vector-fortran.h -o /tmp/cc5pikK8.s Kai Kang (1): glibc: fix fortran header file conflict for arm meta/recipes-core/glibc/glibc-package.inc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) -- 2.34.1
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#201117): https://lists.openembedded.org/g/openembedded-core/message/201117 Mute This Topic: https://lists.openembedded.org/mt/106862948/21656 Group Owner: openembedded-core+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-