[OE-core] [Oe-Core][PATCH] perf: Fix to obey LD failure
From: Sujith HaridasanThis patch brings the last bit from meta-mentor for the perf to build successfully with minnowmax BSP. The meta-mentor commit for the same is: http://git.yoctoproject.org/cgit/cgit.cgi/meta-mentor/commit/meta-mentor-staging?id=a8db95c0d4081cf96915e0c3c4063a44f55e21cc The previous fix: http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/meta/recipes-kernel/perf?id=ef942d6025e1a339642b10ec1e29055f4ee6bd46 was incomplete and was not submitted upstream. And due to that this change is required. When built on minnowmax ( machine name: intel-corei7-64), an error is noticed during the do_compile: /home/sujith/codebench-linux-install-2015.12-133-i686-pc-linux-gnu/codebench/bin/i686-pc-linux-gnu-ld: Relocatable linking with relocations from format elf64-x86-64 (/home/sujith/MEL/dogwood/build-minnowmax/tmp/work/intel_corei7_64-mel-linux/perf/1.0-r9/perf-1.0/fd/array.o) to format elf32-i386 (/home/sujith/MEL/dogwood/build-minnowmax/tmp/work/intel_corei7_64-mel-linux/perf/1.0-r9/perf-1.0/fd/libapi-in.o) is not supported This change help fix the issue. Signed-off-by: Sujith Haridasan --- meta/recipes-kernel/perf/perf.bb | 1 + 1 file changed, 1 insertion(+) diff --git a/meta/recipes-kernel/perf/perf.bb b/meta/recipes-kernel/perf/perf.bb index 0d104d3..471023d 100644 --- a/meta/recipes-kernel/perf/perf.bb +++ b/meta/recipes-kernel/perf/perf.bb @@ -170,6 +170,7 @@ do_configure_prepend () { if [ -e "${S}/tools/perf/Makefile.perf" ]; then sed -i 's,CC = $(CROSS_COMPILE)gcc,#CC,' ${S}/tools/perf/Makefile.perf sed -i 's,AR = $(CROSS_COMPILE)ar,#AR,' ${S}/tools/perf/Makefile.perf +sed -i 's,LD = $(CROSS_COMPILE)ld,#LD,' ${S}/tools/perf/Makefile.perf fi if [ -e "${S}/tools/lib/api/Makefile" ]; then sed -i 's,CC = $(CROSS_COMPILE)gcc,#CC,' ${S}/tools/lib/api/Makefile -- 1.9.1 -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core
Re: [OE-core] [Oe-Core][PATCH] perf: Fix to obey LD failure
On Tue, Oct 4, 2016 at 7:59 PM, Christopher Larsonwrote: > > > On Tue, Oct 4, 2016 at 7:27 AM, Christopher Larson > wrote: > >> >> On Tue, Oct 4, 2016 at 2:41 AM, Sujith H wrote: >> >>> From: Sujith Haridasan >>> >>> When built on minnowmax ( machine name: intel-corei7-64), >>> an error is noticed during the do_compile: >>> >>> /home/sujith/codebench-linux-install-2015.12-133-i686-pc-li >>> nux-gnu/codebench/bin/i686-pc-linux-gnu-ld: >>> Relocatable linking with relocations from format elf64-x86-64 >>> (/home/sujith/MEL/dogwood/build-minnowmax/tmp/work/intel_cor >>> ei7_64-mel-linux/perf/1.0-r9/perf-1.0/fd/array.o) >>> to format elf32-i386 (/home/sujith/MEL/dogwood/buil >>> d-minnowmax/tmp/work/intel_corei7_64-mel-linux/perf/1.0-r9/p >>> erf-1.0/fd/libapi-in.o) >>> is not supported >>> >>> This change help fix the issue. >>> >>> Signed-off-by: Sujith Haridasan >>> --- >>> >> >> What’s with the redundant submission? You submitted the fix from >> meta-mentor for this last week, and it was merged. http://git.openembedde >> d.org/openembedded-core/commit/?id=0ce06611068e74e6ea2 >> e226e3f967aaa91fecd25 >> > > Ah, nevermind, this adds another sed to the other Makefile. Why does this > commit message say nothing about that? You should really indicate that the > previous fix was incomplete. This basically just pulls in the last bit from > meta-mentor we didn’t apply in the previous submission, correct? > Yes, that's correct. I will update the patch commit message. > -- > Christopher Larson > clarson at kergoth dot com > Founder - BitBake, OpenEmbedded, OpenZaurus > Maintainer - Tslib > Senior Software Engineer, Mentor Graphics > -- സുജിത് ഹരിദാസന് Bangalore Contributor to KDE project Contributor to Yocto project http://fci.wikia.com/wiki/Anti-DRM-Campaign http://sujithh.info C-x C-c -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core
Re: [OE-core] [Oe-Core][PATCH] perf: Fix to obey LD failure
On Tue, Oct 4, 2016 at 7:27 AM, Christopher Larsonwrote: > > On Tue, Oct 4, 2016 at 2:41 AM, Sujith H wrote: > >> From: Sujith Haridasan >> >> When built on minnowmax ( machine name: intel-corei7-64), >> an error is noticed during the do_compile: >> >> /home/sujith/codebench-linux-install-2015.12-133-i686-pc-li >> nux-gnu/codebench/bin/i686-pc-linux-gnu-ld: >> Relocatable linking with relocations from format elf64-x86-64 >> (/home/sujith/MEL/dogwood/build-minnowmax/tmp/work/intel_cor >> ei7_64-mel-linux/perf/1.0-r9/perf-1.0/fd/array.o) >> to format elf32-i386 (/home/sujith/MEL/dogwood/buil >> d-minnowmax/tmp/work/intel_corei7_64-mel-linux/perf/1.0-r9/ >> perf-1.0/fd/libapi-in.o) >> is not supported >> >> This change help fix the issue. >> >> Signed-off-by: Sujith Haridasan >> --- >> > > What’s with the redundant submission? You submitted the fix from > meta-mentor for this last week, and it was merged. http://git. > openembedded.org/openembedded-core/commit/?id= > 0ce06611068e74e6ea2e226e3f967aaa91fecd25 > Ah, nevermind, this adds another sed to the other Makefile. Why does this commit message say nothing about that? You should really indicate that the previous fix was incomplete. This basically just pulls in the last bit from meta-mentor we didn’t apply in the previous submission, correct? -- Christopher Larson clarson at kergoth dot com Founder - BitBake, OpenEmbedded, OpenZaurus Maintainer - Tslib Senior Software Engineer, Mentor Graphics -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core
Re: [OE-core] [Oe-Core][PATCH] perf: Fix to obey LD failure
On Tue, Oct 4, 2016 at 2:41 AM, Sujith Hwrote: > From: Sujith Haridasan > > When built on minnowmax ( machine name: intel-corei7-64), > an error is noticed during the do_compile: > > /home/sujith/codebench-linux-install-2015.12-133-i686-pc-li > nux-gnu/codebench/bin/i686-pc-linux-gnu-ld: > Relocatable linking with relocations from format elf64-x86-64 > (/home/sujith/MEL/dogwood/build-minnowmax/tmp/work/intel_ > corei7_64-mel-linux/perf/1.0-r9/perf-1.0/fd/array.o) > to format elf32-i386 (/home/sujith/MEL/dogwood/buil > d-minnowmax/tmp/work/intel_corei7_64-mel-linux/perf/1.0- > r9/perf-1.0/fd/libapi-in.o) > is not supported > > This change help fix the issue. > > Signed-off-by: Sujith Haridasan > --- > What’s with the redundant submission? You submitted the fix from meta-mentor for this last week, and it was merged. http://git.openembedded.org/openembedded-core/commit/?id=0ce06611068e74e6ea2e226e3f967aaa91fecd25 -- Christopher Larson clarson at kergoth dot com Founder - BitBake, OpenEmbedded, OpenZaurus Maintainer - Tslib Senior Software Engineer, Mentor Graphics -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core
Re: [OE-core] [Oe-Core][PATCH] perf: Fix to obey LD failure
Without this change perf was failing for minnow max BSP. Below is the complete log before applying the patch: | DEBUG: Executing shell function do_compile | NOTE: make -j10 -C /home/sujith/MEL/dogwood/build-minnowmax/tmp/work-shared/intel-corei7-64/kernel-source/tools/perf O=/home/sujith/MEL/dogwood/build-minnowmax/tmp/work/intel_corei7_64-mel-linux/perf/1.0-r9/perf-1.0 CROSS_COMPILE=i686-pc-linux-gnu- ARCH=x86 CC=i686-pc-linux-gnu-gcc -m64 -march=corei7 -mtune=corei7 -mfpmath=sse -msse4.2 -msgxx-glibc --no-sysroot-suffix --sysroot=/home/sujith/MEL/dogwood/build-minnowmax/tmp/sysroots/intel-corei7-64 AR=i686-pc-linux-gnu-ar LD=i686-pc-linux-gnu-ld --sysroot=/home/sujith/MEL/dogwood/build-minnowmax/tmp/sysroots/intel-corei7-64 -m elf_x86_64 EXTRA_CFLAGS=-ldw perfexecdir=/usr/libexec NO_GTK2=1 NO_DWARF=1 NO_LIBUNWIND=1 NO_LIBDW_DWARF_UNWIND=1 NO_LIBNUMA=1 DESTDIR=/home/sujith/MEL/dogwood/build-minnowmax/tmp/work/intel_corei7_64-mel-linux/perf/1.0-r9/image prefix=/usr bindir=/usr/bin sharedir=/usr/share sysconfdir=/etc perfexecdir=/usr/libexec/perf-core ETC_PERFCONFIG=../etc sharedir=share mandir=share/man infodir=share/info INCLUDES=-I. $(CONFIG_INCLUDES) all | make: Entering directory `/home/sujith/MEL/dogwood/build-minnowmax/tmp/work-shared/intel-corei7-64/kernel-source/tools/perf' | BUILD: Doing 'make -j5' parallel build | | Auto-detecting system features: | ... dwarf: [ on ] | ... glibc: [ on ] | ... gtk2: [ OFF ] | ... libaudit: [ OFF ] | ...libbfd: [ on ] | ...libelf: [ on ] | ... libnuma: [ OFF ] | ... libperl: [ on ] | ... libpython: [ on ] | ... libslang: [ on ] | ... libunwind: [ OFF ] | ...libdw-dwarf-unwind: [ on ] | ... zlib: [ on ] | ... lzma: [ on ] | | config/Makefile:319: Disabling post unwind, no support found. | config/Makefile:360: No libaudit.h found, disables 'trace' tool, please install audit-libs-devel or libaudit-dev | MKDIR /home/sujith/MEL/dogwood/build-minnowmax/tmp/work/intel_corei7_64-mel-linux/perf/1.0-r9/perf-1.0/util/ | MKDIR /home/sujith/MEL/dogwood/build-minnowmax/tmp/work/intel_corei7_64-mel-linux/perf/1.0-r9/perf-1.0/ui/ | MKDIR /home/sujith/MEL/dogwood/build-minnowmax/tmp/work/intel_corei7_64-mel-linux/perf/1.0-r9/perf-1.0/arch/ | MKDIR /home/sujith/MEL/dogwood/build-minnowmax/tmp/work/intel_corei7_64-mel-linux/perf/1.0-r9/perf-1.0/scripts/perl/Perf-Trace-Util/ | CC /home/sujith/MEL/dogwood/build-minnowmax/tmp/work/intel_corei7_64-mel-linux/perf/1.0-r9/perf-1.0/util/abspath.o | CC /home/sujith/MEL/dogwood/build-minnowmax/tmp/work/intel_corei7_64-mel-linux/perf/1.0-r9/perf-1.0/scripts/perl/Perf-Trace-Util/Context.o | CC /home/sujith/MEL/dogwood/build-minnowmax/tmp/work/intel_corei7_64-mel-linux/perf/1.0-r9/perf-1.0/ui/setup.o | CC /home/sujith/MEL/dogwood/build-minnowmax/tmp/work/intel_corei7_64-mel-linux/perf/1.0-r9/perf-1.0/arch/common.o | MKDIR /home/sujith/MEL/dogwood/build-minnowmax/tmp/work/intel_corei7_64-mel-linux/perf/1.0-r9/perf-1.0/fd/ | CC /home/sujith/MEL/dogwood/build-minnowmax/tmp/work/intel_corei7_64-mel-linux/perf/1.0-r9/perf-1.0/fd/array.o | MKDIR /home/sujith/MEL/dogwood/build-minnowmax/tmp/work/intel_corei7_64-mel-linux/perf/1.0-r9/perf-1.0/util/ | CC /home/sujith/MEL/dogwood/build-minnowmax/tmp/work/intel_corei7_64-mel-linux/perf/1.0-r9/perf-1.0/util/alias.o | MKDIR /home/sujith/MEL/dogwood/build-minnowmax/tmp/work/intel_corei7_64-mel-linux/perf/1.0-r9/perf-1.0/fd/ | LD /home/sujith/MEL/dogwood/build-minnowmax/tmp/work/intel_corei7_64-mel-linux/perf/1.0-r9/perf-1.0/fd/libapi-in.o | MKDIR /home/sujith/MEL/dogwood/build-minnowmax/tmp/work/intel_corei7_64-mel-linux/perf/1.0-r9/perf-1.0/ui/ | /home/sujith/codebench-linux-install-2015.12-133-i686-pc-linux-gnu/codebench/bin/i686-pc-linux-gnu-ld: Relocatable linking with relocations from format elf64-x86-64 (/home/sujith/MEL/dogwood/build-minnowmax/tmp/work/intel_corei7_64-mel-linux/perf/1.0-r9/perf-1.0/fd/array.o) to format elf32-i386 (/home/sujith/MEL/dogwood/build-minnowmax/tmp/work/intel_corei7_64-mel-linux/perf/1.0-r9/perf-1.0/fd/libapi-in.o) is not supported | CC /home/sujith/MEL/dogwood/build-minnowmax/tmp/work/intel_corei7_64-mel-linux/perf/1.0-r9/perf-1.0/ui/helpline.o | make[4]: *** [/home/sujith/MEL/dogwood/build-minnowmax/tmp/work/intel_corei7_64-mel-linux/perf/1.0-r9/perf-1.0/fd/libapi-in.o] Error 1 | make[3]: *** [fd] Error 2 | make[2]: *** [/home/sujith/MEL/dogwood/build-minnowmax/tmp/work/intel_corei7_64-mel-linux/perf/1.0-r9/perf-1.0/libapi-in.o] Error 2 | make[1]: *** [/home/sujith/MEL/dogwood/build-minnowmax/tmp/work/intel_corei7_64-mel-linux/perf/1.0-r9/perf-1.0/libapi.a] Error 2 | make[1]: *** Waiting for unfinished jobs | MKDIR
[OE-core] [Oe-Core][PATCH] perf: Fix to obey LD failure
From: Sujith HaridasanWhen built on minnowmax ( machine name: intel-corei7-64), an error is noticed during the do_compile: /home/sujith/codebench-linux-install-2015.12-133-i686-pc-linux-gnu/codebench/bin/i686-pc-linux-gnu-ld: Relocatable linking with relocations from format elf64-x86-64 (/home/sujith/MEL/dogwood/build-minnowmax/tmp/work/intel_corei7_64-mel-linux/perf/1.0-r9/perf-1.0/fd/array.o) to format elf32-i386 (/home/sujith/MEL/dogwood/build-minnowmax/tmp/work/intel_corei7_64-mel-linux/perf/1.0-r9/perf-1.0/fd/libapi-in.o) is not supported This change help fix the issue. Signed-off-by: Sujith Haridasan --- meta/recipes-kernel/perf/perf.bb | 1 + 1 file changed, 1 insertion(+) diff --git a/meta/recipes-kernel/perf/perf.bb b/meta/recipes-kernel/perf/perf.bb index 0d104d3..471023d 100644 --- a/meta/recipes-kernel/perf/perf.bb +++ b/meta/recipes-kernel/perf/perf.bb @@ -170,6 +170,7 @@ do_configure_prepend () { if [ -e "${S}/tools/perf/Makefile.perf" ]; then sed -i 's,CC = $(CROSS_COMPILE)gcc,#CC,' ${S}/tools/perf/Makefile.perf sed -i 's,AR = $(CROSS_COMPILE)ar,#AR,' ${S}/tools/perf/Makefile.perf +sed -i 's,LD = $(CROSS_COMPILE)ld,#LD,' ${S}/tools/perf/Makefile.perf fi if [ -e "${S}/tools/lib/api/Makefile" ]; then sed -i 's,CC = $(CROSS_COMPILE)gcc,#CC,' ${S}/tools/lib/api/Makefile -- 1.9.1 -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core