[yocto] libgfortran or cross compiling a fortran application

Matthias Schöpfer matthias.schoepfer at identpro.de
Thu Dec 21 09:09:40 PST 2017


Hi!

Just in case, someone (else) stumbles across this:

https://bugzilla.yoctoproject.org/show_bug.cgi?id=12394
http://cgit.openembedded.org/openembedded-core/commit/?id=2c2f20a9756eccafac776e45e319af7666e6da96

fixes the issue on rocko for me.

Regards,

	Matthias

On 12/20/2017 11:30 AM, Matthias Schöpfer wrote:
> Hi there,
> 
> I am trying to cross compile a fortran library (lapack), which fails
> because it cannot find libgfortran.
> 
> So I am trying to build libgfortran. I added:
> 
> FORTRAN_forcevariable = ",fortran"
> 
> to enable support for fortran cross compile in local conf. Anyhow,
> bitbake libgfortran still fails:
> 
> | /bin/sh ./libtool  --tag=CC   --mode=compile x86_64-idp-linux-gcc
> -m64 -march=core2 -mtune=core2 -msse3 -mfpmath=sse
> --sysroot=/home/mschoepf/identpro/yocto/ros-devel/tmp/work/core2-64-idp-linux/libgfortran/7.2.0-r0/recipe-sysroot
> -DHAVE_CONFIG_H -I.
> -I../../../../../../../../work-shared/gcc-7.2.0-r0/gcc-7.2.0/libgfortran
>  -iquote../../../../../../../../work-shared/gcc-7.2.0-r0/gcc-7.2.0/libgfortran/io -I../../../../../../../../work-shared/gcc-7.2.0-r0/gcc-7.2.0/libgfortran/../gcc -I../../../../../../../../work-shared/gcc-7.2.0-r0/gcc-7.2.0/libgfortran/../gcc/config  -I/home/mschoepf/identpro/yocto/ros-devel/tmp/work/core2-64-idp-linux/libgfortran/7.2.0-r0/gcc-7.2.0/build.x86_64-idp-linux.x86_64-idp-linux/x86_64-idp-linux/libgfortran/../.././gcc -I../../../../../../../../work-shared/gcc-7.2.0-r0/gcc-7.2.0/libgfortran/../libgcc -I/home/mschoepf/identpro/yocto/ros-devel/tmp/work/core2-64-idp-linux/libgfortran/7.2.0-r0/gcc-7.2.0/build.x86_64-idp-linux.x86_64-idp-linux/x86_64-idp-linux/libgfortran/../libgcc -I../../../../../../../../work-shared/gcc-7.2.0-r0/gcc-7.2.0/libgfortran/../libbacktrace -I/home/mschoepf/identpro/yocto/ros-devel/tmp/work/core2-64-idp-linux/libgfortran/7.2.0-r0/gcc-7.2.0/build.x86_64-idp-linux.x86_64-idp-linux/x86_64-idp-linux/libgfortran/../libbacktrace -I../libbacktrace  -std=gnu11 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wextra -Wwrite-strings -Werror=implicit-function-declaration -Werror=vla -fcx-fortran-rules -ffunction-sections -fdata-sections   -std=gnu11  -O2 -pipe -g -feliminate-unused-debug-types -fdebug-prefix-map=/home/mschoepf/identpro/yocto/ros-devel/tmp/work/core2-64-idp-linux/libgfortran/7.2.0-r0=/usr/src/debug/libgfortran/7.2.0-r0 -fdebug-prefix-map=/home/mschoepf/identpro/yocto/ros-devel/tmp/work/core2-64-idp-linux/libgfortran/7.2.0-r0/recipe-sysroot-native= -fdebug-prefix-map=/home/mschoepf/identpro/yocto/ros-devel/tmp/work/core2-64-idp-linux/libgfortran/7.2.0-r0/recipe-sysroot=  -Wunknown-pragmas -c -o main.lo `test -f 'runtime/main.c' || echo '../../../../../../../../work-shared/gcc-7.2.0-r0/gcc-7.2.0/libgfortran/'`runtime/main.c
> |
> ../../../../../../../../work-shared/gcc-7.2.0-r0/gcc-7.2.0/libgfortran/runtime/backtrace.c:36:10:
> fatal error: backtrace-supported.h: No such file or directory
> |  #include "backtrace-supported.h"
> |           ^~~~~~~~~~~~~~~~~~~~~~~
> | compilation terminated.
> 
> Any help, hints and wild guesses are welcome.
> 
> Regards,
> 
> 	Matthias
> 


-- 
Dr.-Ing. Matthias Schöpfer

Softwareentwicklung

____________________________________

IdentPro GmbH
Camp-Spich-Str. 4
53842 Troisdorf

Tel:   +49 (0)2241 / 866 392 46
Fax:   +49 (0)2241 / 866 392 99
eMail: matthias.schoepfer at identpro.de

http://www.identpro.de

identplus® – Das 3D Staplerleitsystem mit enormen Sparpotenzial: z. B.
über 67.000 EUR pro Jahr bei 500 Transporten täglich! Berechnen Sie das
Einsparpotenzial für Ihr Lager mit dem identplus® Potenzialrechner.

identplus® live erleben: Vereinbaren Sie jetzt einen Termin!

---------------------------------
IdentPro GmbH
Member of Dr. Wack Holding GmbH & Co.KG
Sitz und Registergericht: St. Augustin, HRB 9770 Siegburg
Geschäftsführer: Michael Wack
Umsatzsteuer-ID-Nr.: DE 254 824 945
WEEE-Reg.-Nr. DE 79026890



More information about the yocto mailing list