[yocto] do_compile fails in Jethro

Khem Raj raj.khem at gmail.com
Wed Jan 27 11:17:52 PST 2016


On Wed, Jan 27, 2016 at 11:11 AM, Alexandre Freire da Silva Osorio
<alexandre.osorio at eldorado.org.br> wrote:
> Hi!
>
> The first time I tried to upgrade my build to Jethro I received the following error message while do_compiling krb5:
>
> (...)
> | .build/tmp/sysroots/x86_64-linux/usr/libexec/x86_64-poky-linux/gcc/x86_64-poky-linux/5.2.0/ld: plugins.so: relocation R_X86_64_PC32 against symbol `krb5int_open_plugin' can not be used when making a shared object; recompile with -fPIC
> | .build/tmp/sysroots/x86_64-linux/usr/libexec/x86_64-poky-linux/gcc/x86_64-poky-linux/5.2.0/ld: final link failed: Bad value
> | collect2: error: ld returned 1 exit status
> | make[2]: *** [libkrb5support.so.0.1] Error 1
> | make[2]: Leaving directory `.build/tmp/work/core2-64-poky-linux/krb5/1.13.2-r0/krb5-1.13.2/src/util/support'
> | make[1]: *** [all-recurse] Error 1
> | make[1]: Leaving directory `.build/tmp/work/core2-64-poky-linux/krb5/1.13.2-r0/krb5-1.13.2/src/util'
> | make: *** [all-recurse] Error 1
> | ERROR: oe_runmake failed
> | ERROR: Function failed: do_compile (log file is located at .build/tmp/work/core2-64-poky-linux/krb5/1.13.2-r0/temp/log.do_compile.9043)
> ERROR: Task 1764 (.meta-openembedded/meta-oe/recipes-connectivity/krb5/krb5_1.13.2.bb, do_compile) failed with exit code '1'
>
>
> This error doesn't occur when I was using Fido. Please, could anyone give me a help?

what happens if you add

CFLAGS += "-fPIC -DPIC" to concerned .bb file.

>
> Thanks in advance.
>
> Regards,
> Alexandre
> --
> _______________________________________________
> yocto mailing list
> yocto at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto



More information about the yocto mailing list