Hi Khem, On Dec 9, 2012, at 10:58 PM, Elvis Dowson <elvis.dow...@gmail.com> wrote:
> I get the following error while attempting to backport support for the older > eglibc-2.13 recipe and gcc-4.5.4, to make it work with the latest poky master. > > I got the image to build and execute correctly, temporarily by commenting out > the parts relating to sotruss, and it worked on my powerpc 440 target with > softfloat. > > Now, I just want to update the eglibc-2.13 recipe, so that it works correctly > with poky master. I patched the eglibc-2.13 sources and it builds the > required files. > > However, during the installation phase, I get a problem, in that the scripts > attempt to install libsotruss.so to the root folder on my host machine, > instead of the yocto build folder: > > /usr/bin/install -c > /tool/yocto/poky/build/tmp/work/ppc405-poky-linux/eglibc/2.13-r32/build-powerpc-poky-linux/elf/sotruss-lib.so > /sotruss-lib.so.new > /usr/bin/install -c > /tool/yocto/poky/build/tmp/work/ppc405-poky-linux/eglibc/2.13-r32/build-powerpc-poky-linux/elf/sprof > > /tool/yocto/poky/build/tmp/work/ppc405-poky-linux/eglibc/2.13-r32/image/usr/bin/sprof.new > > (cd > /tool/yocto/poky/build/tmp/work/ppc405-poky-linux/eglibc/2.13-r32/build-powerpc-poky-linux/elf/.; > > /tool/yocto/poky/build/tmp/sysroots/x86_64-linux/usr/libexec/ppc405-poky-linux.gcc-cross-initial/gcc/powerpc-poky-linux/4.5.4/objdump > -h dl-load.o dl-cache.o dl-lookup.o dl-object.o dl-reloc.o dl-deps.o > dl-runtime.o dl-error.o dl-init.o dl-fini.o dl-debug.o dl-misc.o dl-version.o > dl-profile.o dl-conflict.o dl-tls.o dl-origin.o dl-scope.o dl-execstack.o > dl-open.o dl-close.o dl-trampoline.o dl-support.o dl-iteratephdr.o dl-addr.o > enbl-secure.o dl-profstub.o dl-libc.o dl-sym.o dl-tsd.o dl-sysdep.o dl-vdso.o > dl-machine.o dl-iteratephdr.os dl-addr.os dl-profstub.os dl-libc.os dl-sym.os > dl-tsd.os unwind-dw2-fde-glibc.os dl-vdso.os framestate.os unwind-pe.os > rtld.os dl-load.os dl-cache.os dl-lookup.os dl-object.os dl-reloc.os > dl-deps.os dl-runtime.os dl-error.os dl-init.os dl-fini.os dl-debug.os > dl-misc.os dl-version.os dl-profile.os dl-conflict.os dl-tls.os dl-origin.os > dl-scope.os dl-execstack.os dl-caller.os dl-open.os dl-close.os > dl-trampoline.os dl-sysdep.os dl-environ.os dl-minimal.os dl-brk.os > dl-sbrk.os dl-start.os dl-machine.os soinit.os sofini.os interp.os > static-stubs.o cache.o readlib.o xmalloc.o xstrdup.o chroot_canon.o > sotruss-lib.os sotruss-lib.so) | \ > gawk '/\.gnu\.glibc-stub\./ { \ > sub(/\.gnu\.glibc-stub\./, "", $2); \ > stubs[$2] = 1; } \ > END { for (s in stubs) print "#define __stub_" s }' > > /tool/yocto/poky/build/tmp/work/ppc405-poky-linux/eglibc/2.13-r32/build-powerpc-poky-linux/elf/stubsT > /usr/bin/install: cannot create regular file `/sotruss-lib.so.new': > Permission denied > > How can I get past this error? > I got solved this error. Apparently, I needed to ensure that the eglibc-2.13 libc/Makeconfig file had a definition for auditdir . Since that was missing, the expression ${auditor}/libsotruss.so ended up evaluating to /libsotruss.so, which cause the build error, with bitbake trying to install it to the host root directory. Best regards, Elvis Dowson
_______________________________________________ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto