[oe] problems building openldap and libtool

J. L. vwyodapink at gmail.com
Thu Nov 4 07:39:47 UTC 2010


On Thu, Nov 4, 2010 at 12:27 AM, J. L. <vwyodapink at gmail.com> wrote:
> On Wed, Nov 3, 2010 at 6:37 PM, Khem Raj <raj.khem at gmail.com> wrote:
>> On Wed, Nov 3, 2010 at 5:46 PM, J. L. <vwyodapink at gmail.com> wrote:
>>> On Wed, Nov 3, 2010 at 4:48 PM, Khem Raj <raj.khem at gmail.com> wrote:
>>>> On Wed, Nov 3, 2010 at 4:36 PM, J. L. <vwyodapink at gmail.com> wrote:
>>>>> On Wed, Nov 3, 2010 at 4:24 PM, Khem Raj <raj.khem at gmail.com> wrote:
>>>>>> On Wed, Nov 3, 2010 at 3:55 PM, J. L. <vwyodapink at gmail.com> wrote:
>>>>>>> I am having an issue of how libtool is building on my machine. I am
>>>>>>> running Ubuntu 10.10 64bit Kernel 2.6.35-23-generic bitbake 1.10.1
>>>>>>> overo branch. Here is what happens when building:
>>>>>>>
>>>>>>> Error for openldap
>>>>>>> NOTE: package openldap-2.4.23-r2: task do_configure: Started
>>>>>>> ERROR: Function do_configure failed
>>>>>>> NOTE: Task failed: ('function do_configure failed',
>>>>>>> '/home/vdubhack/overo-oe/tmp/work/armv7a-angstrom-linux-gnueabi/openldap-2.4.23-r2/temp/log.do_configure.12815')
>>>>>>> ERROR: Logfile of failure stored in:
>>>>>>> /home/vdubhack/overo-oe/tmp/work/armv7a-angstrom-linux-gnueabi/openldap-2.4.23-r2/temp/log.do_configure.12815
>>>>>>> Log data follows:
>>>>>>> | cp: cannot stat
>>>>>>> `/home/vdubhack/overo-oe/tmp/sysroots/armv7a-angstrom-linux-gnueabi/usr/share/libtool/ltmain.sh':
>>>>>>> No such file or directory
>>>>>>
>>>>>> can you add DEPENDS += "libtool" to openldap_2.4.23.bb and retry ?
>>>>>
>>>>> Still getting this error and I cleaned and rebuilt both recipes
>>>>
>>>> try this patch and remove that DEPENDS
>>>>
>>>> diff --git a/recipes/openldap/openldap_2.4.23.bb
>>>> b/recipes/openldap/openldap_2.4.23.bb
>>>> index 3ac15f6..8afd951 100644
>>>> --- a/recipes/openldap/openldap_2.4.23.bb
>>>> +++ b/recipes/openldap/openldap_2.4.23.bb
>>>> @@ -188,7 +188,7 @@ DEPENDS      += "${OPENLDAP_DEPENDS}"
>>>>  CPPFLAGS_append = " -D_GNU_SOURCE"
>>>>
>>>>  do_configure() {
>>>> -       cp ${STAGING_DATADIR}/libtool/config/ltmain.sh ${S}/build
>>>> +       cp ${STAGING_ETCDIR_NATIVE}/libtool/config/ltmain.sh ${S}/build
>>>>        rm -f ${S}/libtool
>>>>        aclocal
>>>>        libtoolize --force --copy
>>>>
>>>>
>>>>>
>>>>> ERROR: Logfile of failure stored in:
>>>>> /home/vdubhack/overo-oe/tmp/work/armv7a-angstrom-linux-gnueabi/openldap-2.4.23-r2/temp/log.do_configure.2783
>>>>> Log data follows:
>>>>> | cp: cannot stat
>>>>> `/home/vdubhack/overo-oe/tmp/sysroots/armv7a-angstrom-linux-gnueabi/usr/share/libtool/ltmain.sh':
>>>>> No such file or directory
>>>>> | ERROR: Function do_configure failed
>>>>> NOTE: package openldap-2.4.23-r2: task do_configure: Failed
>>>>>
>>>>>
>>>>> libtool does not build to this location
>>>>> /home/vdubhack/overo-oe/tmp/sysroots/armv7a-angstrom-linux-gnueabi/usr/share/libtool/
>>>>> it builds to here
>>>>> tmp/sysroots/armv7a-angstrom-linux-gnueabi/home/vdubhack/overo-oe/tmp/sysroots/x86_64-linux/usr/share/libtool/
>>>>>
>>>>> It seems to put home/vdubhack/overo-oe/tmp the incorrect way. instead
>>>>> of being in front of the tmp/sysroot like most things
>>>>>
>>>>> same with aclocal and aclocal-1.11
>>>>>
>>>>> Thanks
>>>>>
>>>>> JL
>>>>>>
>>>>>>
>>>>>> -khem
>>>>>>
>>>>>> _______________________________________________
>>>>>> Openembedded-devel mailing list
>>>>>> Openembedded-devel at lists.openembedded.org
>>>>>> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
>>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> Openembedded-devel mailing list
>>>>> Openembedded-devel at lists.openembedded.org
>>>>> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
>>>>>
>>>>
>>>> _______________________________________________
>>>> Openembedded-devel mailing list
>>>> Openembedded-devel at lists.openembedded.org
>>>> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
>>>>
>>>
>>> Did as you asked and also deleted the tmp/ dir to just make sure was
>>> nothing in there and rebuilt. And must not have done something right
>>> as the patch failed with this:
>>> ERROR: Logfile of failure stored in:
>>> /home/vdubhack/overo-oe/tmp/work/armv7a-angstrom-linux-gnueabi/openldap-2.4.23-r2/temp/log.patch_do_patch.22762
>>> Log data follows:
>>> | ERROR: Error in executing python function in:
>>> /home/vdubhack/overo-oe/org.openembedded.dev/recipes/openldap/openldap_2.4.23.bb
>>> | ERROR: Exception:<class 'oe.patch.CmdError'> Message:Command Error:
>>> exit status: 1  Output:
>>> | Applying patch test-fix.patch
>>> | patching file recipes/openldap/openldap_2.4.23.bb
>>> | Hunk #1 FAILED at 188.
>>> | 1 out of 1 hunk FAILED -- rejects in file recipes/openldap/openldap_2.4.23.bb
>>> | Patch test-fix.patch does not apply (enforce with -f)
>>> | ERROR: Printing the environment of the function
>>> | ERROR: Function patch_do_patch failed
>>> NOTE: package openldap-2.4.23-r2: task do_patch: Failed
>>>  I have attached the patch and the .bb so you can see what and how I did it.
>>>
>>
>> crap.
>> dude you make that one line change in the recipe .bb file *by hand*
>> its not a patch for the sources
>> but for the recipe.
>>
>>
>>> Thanks for the help so far.
>>>
>>> JL
>>>
>>> _______________________________________________
>>> Openembedded-devel mailing list
>>> Openembedded-devel at lists.openembedded.org
>>> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
>>>
>>>
>>
>> _______________________________________________
>> Openembedded-devel mailing list
>> Openembedded-devel at lists.openembedded.org
>> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
>>
>
> Sorry didnt catch it was for the recipe my bad. I changed the line and
> still a no go, it's still looking where libtool does not build to.
>
> ERROR: Build of
> /home/vdubhack/overo-oe/org.openembedded.dev/recipes/openldap/openldap_2.4.23.bb
> do_configure failed
> NOTE: Running task 4058 of 9443 (ID: 6423,
> /home/vdubhack/overo-oe/org.openembedded.dev/recipes/openldap/openldap_2.4.23.bb,
> do_configure)
> ERROR: Task 6423
> (/home/vdubhack/overo-oe/org.openembedded.dev/recipes/openldap/openldap_2.4.23.bb,
> do_configure) failed with 256
> NOTE: package openldap-2.4.23-r2: task do_configure: Started
> ERROR: Function do_configure failed
> NOTE: Task failed: ('function do_configure failed',
> '/home/vdubhack/overo-oe/tmp/work/armv7a-angstrom-linux-gnueabi/openldap-2.4.23-r2/temp/log.do_configure.14912')
> ERROR: Logfile of failure stored in:
> /home/vdubhack/overo-oe/tmp/work/armv7a-angstrom-linux-gnueabi/openldap-2.4.23-r2/temp/log.do_configure.14912
> Log data follows:
> | cp: cannot stat
> `/home/vdubhack/overo-oe/tmp/sysroots/x86_64-linux/etc/libtool/config/ltmain.sh':
> No such file or directory
> | ERROR: Function do_configure failed
> NOTE: package openldap-2.4.23-r2: task do_configure: Failed
>
> Thanks for the help suggestions so far. I think for some reason
> libtool does not build properly from how I read as to how its shows
> its installed on the system
>  tmp/sysroots/armv7a-angstrom-linux-gnueabi/home/vdubhack/overo-oe/tmp/sysroots/x86_64-linux/usr/share/libtool/
>



Sorry but just noticed in the libtool recipe this line
FILES_${PN} += "${datadir}/aclocal*"
My aclocal and aclocal-1.11 dont appear to be building to the proper
location either for some reason they build to here

find tmp/sysroots -name "aclocal"
tmp/sysroots/armv7a-angstrom-linux-gnueabi/home/vdubhack/overo-oe/tmp/sysroots/x86_64-linux/usr/share/aclocal
 -- this one is the same place libtool goes to as you can see for some
reason my home and username /home/vdubhack/overo-oe gets thrown in for
some reason in the middle of it.

Here is the rest of the places it goes to.
tmp/sysroots/armv7a-angstrom-linux-gnueabi/usr/share/aclocal
tmp/sysroots/x86_64-linux/usr/share/aclocal
tmp/sysroots/x86_64-linux/usr/armv7a/share/aclocal
tmp/sysroots/x86_64-linux/usr/bin/aclocal

aclocal-1.11 does the same
find tmp/sysroots -name "aclocal-1.11"
tmp/sysroots/armv7a-angstrom-linux-gnueabi/home/vdubhack/overo-oe/tmp/sysroots/x86_64-linux/usr/share/aclocal-1.11
 -- /home/vdubhack/overo-oe gets thrown in the wrong place here as
well

And the rest of the aclocal-1.11 places it gets installed to.
tmp/sysroots/armv7a-angstrom-linux-gnueabi/usr/share/aclocal-1.11
tmp/sysroots/x86_64-linux/usr/share/aclocal-1.11
tmp/sysroots/x86_64-linux/usr/armv7a/share/aclocal-1.11
tmp/sysroots/x86_64-linux/usr/bin/aclocal-1.11


Hope this might help more. Thanks again.
JL




More information about the Openembedded-devel mailing list