[oe] Problems building a working gfortran compiler

Julian Pietron julian at whisper-net.de
Tue Jan 1 17:05:37 UTC 2013


Hallo,

as my project needs liblapack I'm currently trying to build gcc with
fortran support. I did so by editing the gcc-4.7.inc file to use
FORTRAN = ",fortran" instead of ="". While building gcc-cross works
without problems, there seems to be something missing, as the consequent
build of liblapack terminates with this error message by CMake:

|   The Fortran compiler
|  
"/home/xoe/sysroots/x86_64-linux/usr/bin/i686generic-oe-linux/i586-oe-linux-gfortran"
|   is not able to compile a simple test program.
|
|   It fails with the following output:
|
|    Change Dir:
/home/xoe/work/i686generic-oe-linux/liblapack-3.4.0-r1.0/lapack-3.4.0/CMakeFiles/CMakeTmp
|
|
|
|   Run Build Command:/usr/bin/gmake "cmTryCompileExec/fast"
|
|   make -f CMakeFiles/cmTryCompileExec.dir/build.make
|   CMakeFiles/cmTryCompileExec.dir/build
|
|   make[1]: Entering directory
|  
`/home/xoe/work/i686generic-oe-linux/liblapack-3.4.0-r1.0/lapack-3.4.0/CMakeFiles/CMakeTmp'
|
|
|
|   /home/xoe/sysroots/x86_64-linux/usr/bin/cmake
|   -E cmake_progress_report
|  
/home/xoe/work/i686generic-oe-linux/liblapack-3.4.0-r1.0/lapack-3.4.0/CMakeFiles/CMakeTmp/CMakeFiles
|   1
|
|   Building Fortran object
|   CMakeFiles/cmTryCompileExec.dir/testFortranCompiler.f.o
|
|
|  
/home/xoe/sysroots/x86_64-linux/usr/bin/i686generic-oe-linux/i586-oe-linux-gfortran
|   -c
|  
/home/xoe/work/i686generic-oe-linux/liblapack-3.4.0-r1.0/lapack-3.4.0/CMakeFiles/CMakeTmp/testFortranCompiler.f
|   -o CMakeFiles/cmTryCompileExec.dir/testFortranCompiler.f.o
|
|   Linking Fortran executable cmTryCompileExec
|
|
|   /home/xoe/sysroots/x86_64-linux/usr/bin/cmake
|   -E cmake_link_script CMakeFiles/cmTryCompileExec.dir/link.txt
--verbose=1
|
|
|  
/home/xoe/sysroots/x86_64-linux/usr/bin/i686generic-oe-linux/i586-oe-linux-gfortran
|   -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -Wl,--as-needed
|   CMakeFiles/cmTryCompileExec.dir/testFortranCompiler.f.o -o
cmTryCompileExec
|   -rdynamic
|
|   i586-oe-linux-gfortran: error: libgfortran.spec: No such file or
directory
|
|   make[1]: *** [cmTryCompileExec] Error 1
|
|   make[1]: Leaving directory
|  
`/home/xoe/work/i686generic-oe-linux/liblapack-3.4.0-r1.0/lapack-3.4.0/CMakeFiles/CMakeTmp'
|
|
|   gmake: *** [cmTryCompileExec/fast] Error 2


I have a setup in OE-classic that generates a working fortran compiler
(with gcc 4.5) by using the same modifications as I stated above and is
able to compile liblapack, but I want to port my project over to OE-core
now. I also tested with gcc 4.6 and got the same error from CMake upon
trying to compile liblapack.
Perhaps someone could point me to what I'm missing out here. I already
found, that gcc-runtime should generate a package libgfortran and
libgfortran-dev which might help here, but somehow the bitbaking of
gcc-runtime doesn't lead to the generation of a libgfortran.so or .a at all.

Thanks for your help,
Julian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0x766B590E.asc
Type: application/pgp-keys
Size: 7390 bytes
Desc: not available
URL: <http://lists.openembedded.org/pipermail/openembedded-devel/attachments/20130101/479180de/attachment-0002.bin>


More information about the Openembedded-devel mailing list