<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>5667</bug_id>
          
          <creation_ts>2013-12-15 01:08:11 +0000</creation_ts>
          <short_desc>Custom toolchain enabling Fortran and Java support incomplete</short_desc>
          <delta_ts>2014-01-28 12:01:56 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>devtools / tool chain</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc>https://github.com/sarnold/meta-raspberrypi</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.6</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Steve Arnold">stephen.arnold42</reporter>
          <assigned_to name="Richard Purdie">richard.purdie</assigned_to>
          <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>sgw</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>39406</commentid>
    <comment_count>0</comment_count>
    <who name="Steve Arnold">stephen.arnold42</who>
    <bug_when>2013-12-15 01:08:11 +0000</bug_when>
    <thetext>Enabling the above seems does not seem to work yet.  The only confguration change from &quot;normal&quot; was adding the following config options to local.conf and rebuilding a fresh tmp/ tree and rpi image:

JAVA = &quot;,java&quot;
JAVA_arm = &quot;,java&quot;
FORTRAN = &quot;,fortran&quot;

The poky listing below shows gfortran (and a broken g77 symlink) but no gcj, so at this point I&apos;m not sure if I&apos;m missing some additional config settings for poky master, or if the additional language support is incomplete, or something else?  So this is mostly informational(?) right now; today I&apos;ll try pulling on master again and rebuilding just to be sure.

My current build config:

Build Configuration:
BB_VERSION        = &quot;1.21.0&quot;
BUILD_SYS         = &quot;x86_64-linux&quot;
NATIVELSBSTRING   = &quot;Ubuntu-12.04&quot;
TARGET_SYS        = &quot;arm-poky-linux-gnueabi&quot;
MACHINE           = &quot;raspberrypi&quot;
DISTRO            = &quot;poky&quot;
DISTRO_VERSION    = &quot;1.5+snapshot-20131213&quot;
TUNE_FEATURES     = &quot;armv6 vfp callconvention-hard arm1176jzfs no-thumb-interwork&quot;
TARGET_FPU        = &quot;vfp&quot;
meta
meta-yocto
meta-yocto-bsp    = &quot;master:257f83968caae834c03bc412eaf5afeadee6880e&quot;
meta-raspberrypi  = &quot;master:bcf257fd036890e5b26fa4f4874c4f072e9ec0a8&quot;
meta-erlang       = &quot;master:ca7c12f3427280a3800f78fa511637de3925d056&quot;
meta-oe
meta-gnome
meta-networking
meta-filesystems
meta-multimedia
meta-efl
meta-xfce         = &quot;master:20f352810d46daea9a20989b77f347fb8564ebf0&quot;


Poky toolchain:

poky (master) $ find build-rpihf/tmp/sysroots/ -name libgfortran\*
build-rpihf/tmp/sysroots/raspberrypi/pkgdata/runtime/libgfortran
build-rpihf/tmp/sysroots/raspberrypi/pkgdata/runtime/libgfortran-dev
build-rpihf/tmp/sysroots/raspberrypi/pkgdata/runtime/libgfortran-staticdev
build-rpihf/tmp/sysroots/raspberrypi/pkgdata/runtime-reverse/libgfortran-staticdev
build-rpihf/tmp/sysroots/raspberrypi/pkgdata/runtime-reverse/libgfortran-dev
build-rpihf/tmp/sysroots/raspberrypi/pkgdata/runtime-reverse/libgfortran

The Gentoo crossdev tool also can&apos;t build gcj support, at least not as part of the basic toolchain (didn&apos;t try the extra target).  That said, it does build the full gfortran stuff, including libgfortran, which this one appears to be missing.

gentoox86vm ~ # find /usr/lib/gcc/armv7a-hardfloat-linux-gnueabi -name libgfortran\*
/usr/lib/gcc/armv7a-hardfloat-linux-gnueabi/4.6.4/libgfortranbegin.la
/usr/lib/gcc/armv7a-hardfloat-linux-gnueabi/4.6.4/libgfortran.spec
/usr/lib/gcc/armv7a-hardfloat-linux-gnueabi/4.6.4/libgfortran.la
/usr/lib/gcc/armv7a-hardfloat-linux-gnueabi/4.6.4/libgfortran.a
/usr/lib/gcc/armv7a-hardfloat-linux-gnueabi/4.6.4/libgfortran.so
/usr/lib/gcc/armv7a-hardfloat-linux-gnueabi/4.6.4/libgfortran.so.3.0.0
/usr/lib/gcc/armv7a-hardfloat-linux-gnueabi/4.6.4/libgfortranbegin.a
/usr/lib/gcc/armv7a-hardfloat-linux-gnueabi/4.6.4/libgfortran.so.3
/usr/lib/gcc/armv7a-hardfloat-linux-gnueabi/4.5.4/libgfortranbegin.la
/usr/lib/gcc/armv7a-hardfloat-linux-gnueabi/4.5.4/libgfortran.la
/usr/lib/gcc/armv7a-hardfloat-linux-gnueabi/4.5.4/libgfortran.a
/usr/lib/gcc/armv7a-hardfloat-linux-gnueabi/4.5.4/libgfortran.so
/usr/lib/gcc/armv7a-hardfloat-linux-gnueabi/4.5.4/libgfortran.so.3.0.0
/usr/lib/gcc/armv7a-hardfloat-linux-gnueabi/4.5.4/libgfortranbegin.a
/usr/lib/gcc/armv7a-hardfloat-linux-gnueabi/4.5.4/libgfortran.so.3</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>39486</commentid>
    <comment_count>1</comment_count>
    <who name="Steve Arnold">stephen.arnold42</who>
    <bug_when>2013-12-19 04:48:46 +0000</bug_when>
    <thetext>The clean rebuild seems to have done it, although my local.conf now looks like this:

JAVA = &quot;,java&quot;
JAVA_arm = &quot;,java&quot;
FORTRAN = &quot;,fortran&quot;
FORTRAN_forcevariable = &quot;,fortran&quot;
RUNTIMETARGET_append_pn-gcc-runtime = &quot; libquadmath&quot;

After that I was able to build the libgfortran package; prior to the above I got the error about gcc needing to be built with fortran support.  There were also some warnings about collisions with gcc-runtime:

Poky [&quot;raspberrypi&quot;] &gt;&gt;&gt; bitbake libgfortran
Loading cache: 100% |###############################################################################################################################################################################################| ETA:  00:00:00
Loaded 2086 entries from dependency cache.
Parsing recipes: 100% |#############################################################################################################################################################################################| Time: 00:00:00
Parsing of 1653 .bb files complete (1652 cached, 1 parsed). 2086 targets, 45 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION        = &quot;1.21.0&quot;
BUILD_SYS         = &quot;x86_64-linux&quot;
NATIVELSBSTRING   = &quot;Ubuntu-12.04&quot;
TARGET_SYS        = &quot;arm-poky-linux-gnueabi&quot;
MACHINE           = &quot;raspberrypi&quot;
DISTRO            = &quot;poky&quot;
DISTRO_VERSION    = &quot;1.5+snapshot-20131217&quot;
TUNE_FEATURES     = &quot;armv6 vfp callconvention-hard arm1176jzfs no-thumb-interwork&quot;
TARGET_FPU        = &quot;vfp&quot;
meta
meta-yocto
meta-yocto-bsp    = &quot;master:dd1dbaaddc33a001d7f3b3c2151224a9f9cd7856&quot;
meta-raspberrypi  = &quot;master:6b0f84865634022fd5081162a5686bea16c2056f&quot;
meta-erlang       = &quot;master:ca7c12f3427280a3800f78fa511637de3925d056&quot;
meta-oe
meta-gnome
meta-networking
meta-filesystems
meta-multimedia
meta-efl
meta-xfce         = &quot;master:4d843338866dff4ed028b73278b22a5ad7dc35a2&quot;

NOTE: Preparing runqueue
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
WARNING: The recipe libgfortran is trying to install files into a shared area when those files already exist. Those files and their manifest location are:
   /home/sarnold/poky/build-rpihf/tmp/sysroots/raspberrypi/pkgdata/runtime/libgfortran-staticdev
   Matched in manifest-raspberrypi-gcc-runtime.packagedata
   /home/sarnold/poky/build-rpihf/tmp/sysroots/raspberrypi/pkgdata/runtime/libgfortran-dev
   Matched in manifest-raspberrypi-gcc-runtime.packagedata
   /home/sarnold/poky/build-rpihf/tmp/sysroots/raspberrypi/pkgdata/runtime/libgfortran
   Matched in manifest-raspberrypi-gcc-runtime.packagedata
   /home/sarnold/poky/build-rpihf/tmp/sysroots/raspberrypi/pkgdata/runtime-reverse/libgfortran-staticdev
   Matched in manifest-raspberrypi-gcc-runtime.packagedata
   /home/sarnold/poky/build-rpihf/tmp/sysroots/raspberrypi/pkgdata/runtime-reverse/libgfortran-dev
   Matched in manifest-raspberrypi-gcc-runtime.packagedata
Please verify which package should provide the above files.
NOTE: Tasks Summary: Attempted 684 tasks of which 672 didn&apos;t need to be rerun and all succeeded.

Summary: There was 1 WARNING message shown.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>39515</commentid>
    <comment_count>2</comment_count>
    <who name="Steve Arnold">stephen.arnold42</who>
    <bug_when>2013-12-20 03:53:58 +0000</bug_when>
    <thetext>Added the rpi layer I&apos;m building in to the URL field.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>39537</commentid>
    <comment_count>3</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2013-12-20 17:30:21 +0000</bug_when>
    <thetext>Firstly, with master you should just need:
&quot;&quot;&quot;
FORTRAN_forcevariable = &quot;,fortran&quot;
RUNTIMETARGET_append_pn-gcc-runtime = &quot; libquadmath&quot;
&quot;&quot;&quot;
as documented in local.conf.sample.extended.

As it mentioned there it is there as &quot;best effort&quot; and not an officially supported/tested code path. As such, bug reports like this aren&apos;t going to get much attention, we simply don&apos;t have the resources to cover fortran or java.

For java you probably need to do something like:

JAVA_forcevariable = &quot;,java&quot;

but again, its not a tested codepath so who knows what may happen from there.

Finally, the raspberrypi isn&apos;t an official Yocto Project BSP so as such a bug report for unsupported hardware and an unsupported toolchain components here in the bugzilla is really out of scope.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>40058</commentid>
    <comment_count>4</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2014-01-28 12:01:56 +0000</bug_when>
    <thetext>No feedback on the bug. Fortran should work as indicated, java simply isn&apos;t supported.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>