[yocto] meta-mono core-image-mono failing

Chris Morgan chmorgan at gmail.com
Wed May 21 12:07:04 PDT 2014


On Wed, May 21, 2014 at 2:57 PM, Gary Thomas <gary at mlbassoc.com> wrote:
> On 2014-05-21 12:25, Chris Morgan wrote:
>>
>> Hello.
>>
>> I'm trying to build core-image-mono for the bbb. Layers configuration:
>>
>> Build Configuration:
>> BB_VERSION        = "1.23.1"
>> BUILD_SYS         = "x86_64-linux"
>> NATIVELSBSTRING   = "Fedora-20"
>> TARGET_SYS        = "arm-poky-linux-gnueabi"
>> MACHINE           = "beaglebone"
>> DISTRO            = "poky"
>> DISTRO_VERSION    = "1.6+snapshot-20140521"
>> TUNE_FEATURES     = "arm armv7a vfp neon"
>> TARGET_FPU        = "vfp-neon"
>> meta              = "master:8293f564685d0f587ab63a107285625dc4f98f1c"
>> meta-bbb          = "master:8318556523a747b7e9c97326bef14922a154e8a2"
>> common-bsp        =
>> "(detachedfrome7dc54e):e7dc54e66f4b5c2982a30bef5c67d734e9c759f5"
>> meta-yocto
>> meta-yocto-bsp    = "master:8293f564685d0f587ab63a107285625dc4f98f1c"
>> meta-mono         = "master:e2d2b8a518403a255822022c9e15f116c91b5dd1"
>>
>> This is basically master of Poky and meta-mono.
>>
>>
>> | DEBUG: Executing shell function do_configure
>> | grep: configure.in: No such file or directory
>> |
>> /home/cmorgan/projects/yocto_poky/build/tmp/work/x86_64-linux/mono-native/3.4.0-r0/mono-3.4.0/autogen.sh:
>> line 125: mono/mini/Makefile.am: No such file or directory
>> |
>> /home/cmorgan/projects/yocto_poky/build/tmp/work/x86_64-linux/mono-native/3.4.0-r0/mono-3.4.0/autogen.sh:
>> line 126: mono/metadata/Makefile.am: No such file or directory
>> | Running aclocal -I m4 -I .  ...
>> | aclocal: error: 'configure.ac' is required
>> |
>> | **Error**: aclocal failed. This may mean that you have not
>> | installed all of the packages you need, or you may need to
>> | set ACLOCAL_FLAGS to include "-I $prefix/share/aclocal"
>> | for the prefix where you installed the packages whose
>> | macros were not found
>> | NOTE: mono-native failed to autogen.sh
>> | sed: can't read acinclude.m4: No such file or directory
>> | WARNING:
>> /home/cmorgan/projects/yocto_poky/build/tmp/work/x86_64-linux/mono-native/3.4.0-r0/temp/run.do_configure.24402:1
>> exit 2 from
>> |   sed -e "s|slash\}libtool|slash\}x86_64-linux-libtool|" -i acinclude.m4
>> | ERROR: Function failed: do_configure (log file is located at
>>
>> /home/cmorgan/projects/yocto_poky/build/tmp/work/x86_64-linux/mono-native/3.4.0-r0/temp/log.do_configure.24402)
>> ERROR: Task 687
>>
>> (/home/cmorgan/projects/yocto_poky/meta-mono/recipes-mono/mono/mono-native_3.4.0.bb,
>> do_configure) failed with exit code '1'
>>
>>
>> It looks like the issue is due to autogen.sh assuming several files
>> are located in the current working directory, for instance on lines
>> 102, 129 and 130 of autogen.sh there is no use of the $srcdir variable
>> before files like configure.in or mono/metadata/Makefile.am.in etc.
>>
>> Not sure if something has changed on the yocto side to change this
>> assumption about where autogen.sh is being run from.
>
>
> Look at your recipe(s).  The simple way to fix this is to change
> 'inherit autotools' to 'inherit autotools-brokensep'
>
> You could also look at the recipe more deeply and figure out
> where it assumes that ${S} == ${B} because of a recent change
> in OE-core, this is no longer true when you inherit autotools.
>

Testing now with autotools-brokensep in mono-3.4.0.inc.

I did look a bit and it looked like there were several places where
source and build were assumed but I'm not confident that it would be
easy to figure out what to fix and then create a patch for it but I
could look at that and feeding it back to the mono guys. Let me do
that and see how I make out.

Chris



More information about the yocto mailing list