2013-12-07 00:14, Ash Charles skrev:
On Dec 6, 2013 11:53 PM, "Ulf Samuelsson" <openembed...@emagii.com
<mailto:openembed...@emagii.com>> wrote:
>
> Running Angstrom Master (Yocto-1.3) and building for beaglebone.
>
> Have been using Ubuntu 12-04 LTS (i686) without problems.
> Then I reinstalled the machine with Ubuntu 12-04 LTS (x64)
> and then the build fails due to xfconf-4.10.0.bb
<http://xfconf-4.10.0.bb>
>
> Have googled around without finding a solution, only a workaround,
>
> This happens when "making" <xfconf>/xfconf-perl/Makefile.perl
>
> In the linker phase, the linker does not find
> libxconf-gvaluefuncs.a and libxfconf-0
> /usr/bin/ld: cannot find -lxfconf-0
> /usr/bin/ld: cannot find -l-ldbus-glib-1.
> /usr/bin/ld: cannot find -l-ldbus-1
>
> They find such libraries but they are skipped, due to incompatibility.
>
> "/usr/bin/ld: skipping incompatible
<....>xfconf-perl/../xfconf/.libs/libxfconf-gvaluefuncs.a"
>
> same for -lxfconf
>
> I think the error is because the build uses the native (x64) linker
instead of the ARM linker,
> The libraries found are of course built for 32 bit ARM, thus not
useable and the linker
> looks for something else.
>
> This was interesting, since I have another machine which also
> runs Ubuntu-12.04 LTS (x64) and on that machine,
> the build completes without problem.
>
> It turns out, that xfconf configure does not find any perl in the
> openembedded sysroot, but finds /usr/bin/perl, the native perl.
> I think that based on that, it decides to use the native linker.
>
> In the first machine (failing), it continues and looks for some
perl modules.
>
> checking for perl modules: ExtUtils::Depends, ExtUtils::PkgConfig,
Glib... yes,
>
>
> On the second machine, this check fails.
>
> checking for perl modules: ExtUtils::Depends, ExtUtils::PkgConfig,
Glib... no
>
> *** Required perl modules not found to build perl bindings.
Requirements are:
> ***
> *** ExtUtils::Depends 0.300
> *** ExtUtils::PkgConfig 1.000
> *** Glib 1.020
> ***
>
> Therefore configure decides to build xfconf without perl support,
and thus
> xfconf-perl/Makefile.perl does not get generated, removing the cause
> of the failing build.
>
> Googling for the problem, I found a guy on the gumstix mailing list
> (Charles Ash <ashchar...@gmail.com <mailto:ashchar...@gmail.com>>)
which has a workaroung.
>
> recipes-xfce/xfconf/xfconf_4.10.0.bbappend:
>
> FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
> EXTRA_OECONF = "--disable-perl-bindings"
>
> This also results in xfconf-perl/Makefile.perl not beeing run,
> and then the build completes.
>
> I am going to try to make xfconf depend on "perl" instead.
> Then hopefully, "configure" should find the perl for ARM
> instead of the native perl.
That makes more sense than my little hack disabling perl bindings.
I'll give this approach a try.
-- Ash
I tried it, but it didnt work.
configure.ac contains
AC_PATH_PROGS([PERL], [perl5.8 perl5.6 perl5 perl])
which is looking for
perl5.8
perl5.6
perl5
perl
Angstrom-1.3 build perl-5.14.2 so only the last check have a chance.
AC_PATH_PROGS searches for the first in the argument 2 list, which
can be found in the current PATH.
When I look at the "run.do_configure.*" of xfconf, the PATH contains
"<build>/sysroots/x86_64/usr/..." and
"/usr/bin"
but it does not contain
"<build>/sysroots/beaglebone/usr/bin"
which is needed to find the ARM perl.
Have no clue why.
There is already a dependency on "perl-native" in the recipe.
I tried replaced it with dependency on "perl",
but I still get the host PATH and not the target PATH.
I noticed that xfconf configure does not understand
"--with-libtool-sysroot="
added
EXTRA_OECONF += "--with-sysroot=${STAGING_DIR_TARGET}"
to no avail.
The tree in question was initially located in /home/X/Angstrom on i686
and moved to /home/Y/Angstrom on x86_64, and I manually
changed the environment file and conf files using
sed -i 's/X/Y/'
Maybe I screwed something up.
I am going to run ./oebb config beaglebone and rerun the build.
/Ulf
>
> --
> Best Regards
> Ulf Samuelsson
> u...@emagii.com <mailto:u...@emagii.com>
> +46 722 427437
>
--
Best Regards
Ulf Samuelsson
u...@emagii.com
+46 722 427437
_______________________________________________
Angstrom-distro-devel mailing list
Angstrom-distro-devel@linuxtogo.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/angstrom-distro-devel