From: Gary Thomas <gary@mlbassoc.com>
To: Darren Hart <dvhart@linux.intel.com>
Cc: "yocto@yoctoproject.org" <yocto@yoctoproject.org>
Subject: Re: Kernel Panics on armv4t with gcc.4.5.1
Date: Thu, 03 Feb 2011 13:03:03 -0700 [thread overview]
Message-ID: <4D4B09F7.2000305@mlbassoc.com> (raw)
In-Reply-To: <4D4AF221.5020303@linux.intel.com>
On 02/03/2011 11:21 AM, Darren Hart wrote:
> On 02/03/2011 09:00 AM, Kamble, Nitin A wrote:
>> Hi Diego,
>>
>> Good to know your kernel panic is gone. The 4.5.1 tree is arm specific
>> linaro patches, which probably helping you. You can also try the
>> meta-linaro layer.
>>
>> http://git.pokylinux.org/cgit/cgit.cgi/meta-linaro/
>
> This has moved:
>
> http://git.pokylinux.org/cgit/cgit.cgi/poky-extras
>
>>
>> And Darren is working on updating that layer currently. The gcc from
>> that layer has linaro arm patches.
>
> I'm running into some build issues during the uprev, but hoping to have it done ASAP.
To be clear on how to use this - I added the meta-linaro layer to my
poky tree and added these to my <MACHINE>.conf:
GCCVERSION = "4.5.1.linaro"
SDKGCCVERSION = "4.5.1.linaro"
When I tried this, I got these errors:
NOTE: preferred version 4.5.1.linaro of gcc-cross not available (for item virtual/arm-poky-linux-gnueabi-gcc)
NOTE: preferred version 4.5.1.linaro of gcc-runtime not available (for item virtual/arm-poky-linux-gnueabi-compilerlibs)
NOTE: preferred version 4.5.1.linaro of gcc-cross not available (for item virtual/arm-poky-linux-gnueabi-g++)
NOTE: preferred version 4.5.1.linaro of gcc-cross-intermediate not available (for item virtual/arm-poky-linux-gnueabi-gcc-intermediate)
NOTE: preferred version 4.5.1.linaro of gcc-crosssdk not available (for item virtual/i586-pokysdk-linux-gcc-crosssdk)
NOTE: preferred version 4.5.1.linaro of gcc-runtime-nativesdk not available (for item virtual/i586-pokysdk-linux-compilerlibs-nativesdk)
NOTE: preferred version 4.5.1.linaro of gcc-cross-initial not available (for item virtual/arm-poky-linux-gnueabi-gcc-initial)
NOTE: preferred version 4.5.1.linaro of gcc-crosssdk not available (for item virtual/i586-pokysdk-linux-g++-crosssdk)
NOTE: preferred version 4.5.1.linaro of gcc-crosssdk-intermediate not available (for item virtual/i586-pokysdk-linux-gcc-intermediate-crosssdk)
NOTE: preferred version 4.5.1.linaro of gcc-crosssdk-initial not available (for item virtual/i586-pokysdk-linux-gcc-initial-crosssdk)
What did I miss?
>> *From:*Diego Sueiro [mailto:diego.sueiro@gmail.com]
>> *Sent:* Tuesday, February 01, 2011 7:34 AM
>> *To:* Kamble, Nitin A
>> *Cc:* yocto@yoctoproject.org
>> *Subject:* Re: [yocto] Kernel Panics on armv4t with gcc.4.5.1
>>
>> Nitin,
>>
>> After removing:
>>
>> echo "/* GNU ld script
>>
>> Use the shared library, but some functions are only in
>>
>> the static library. */
>>
>> GROUP ( libgcc_s.so.1 libgcc.a )" > ${D}${libdir}/libgcc_s.so
>>
>> from gcc-package-target.inc and gcc-package-cross.inc, the gcc 4.5.2 was
>> successfully compiled.
>>
>>
>> And no kernel panic anymore. :-D
>>
>> I just want to understand what is wrong with gcc 4.5.1.
>>
>> Regards,
>>
>> --
>> *dS
>> Diego Sueiro
>>
>> Administrador do Portal Embarcados
>> www.embarcados.com.br <http://www.embarcados.com.br>
>>
>> /*long live rock 'n roll*/
>>
>> On Tue, Feb 1, 2011 at 8:40 AM, Diego Sueiro <diego.sueiro@gmail.com
>> <mailto:diego.sueiro@gmail.com>> wrote:
>>
>> Nitin,
>>
>> I got this error:
>>
>> /home/dev/yocto-repo/build/tmp/sysroots/i686-linux/usr/bin/armv4t-poky-linux-gnueabi/arm-poky-linux-gnueabi-ld:
>> /usr/lib/crti.o: Relocations in generic ELF (EM: 3)
>>
>> /home/dev/yocto-repo/build/tmp/sysroots/i686-linux/usr/bin/armv4t-poky-linux-gnueabi/arm-poky-linux-gnueabi-ld:
>> /usr/lib/crti.o: Relocations in generic ELF (EM: 3)
>>
>> /usr/lib/crti.o: could not read symbols: File in wrong format
>>
>> collect2: ld returned 1 exit status
>>
>> make[2]: *** [libgcc_s.so] Error 1
>>
>> make[2]: *** Waiting for unfinished jobs....
>>
>> arm-poky-linux-gnueabi-ranlib libgcc_eh.a
>>
>> arm-poky-linux-gnueabi-ranlib libgcc.a
>>
>> make[2]: Leaving directory
>> `/home/dev/yocto-repo/build/tmp/work/armv4t-poky-linux-gnueabi/gcc-cross-intermediate-4.5.2-r3/gcc-4.5.2/build.i686-linux.arm-poky-linux-gnueabi/arm-poky-linux-gnueabi/libgcc'
>>
>> make[1]: *** [all-target-libgcc] Error 2
>>
>> make[1]: Leaving directory
>> `/home/dev/yocto-repo/build/tmp/work/armv4t-poky-linux-gnueabi/gcc-cross-intermediate-4.5.2-r3/gcc-4.5.2/build.i686-linux.arm-poky-linux-gnueabi'
>>
>> make: *** [all] Error 2
>>
>> FATAL: oe_runmake failed
>>
>> Function 'do_compile' failed (see
>> /home/dev/yocto-repo/build/tmp/work/armv4t-poky-linux-gnueabi/gcc-cross-intermediate-4.5.2-r3/temp/log.do_compile.646
>> for further information)
>>
>> ERROR: Function 'do_compile' failed (see
>> /home/dev/yocto-repo/build/tmp/work/armv4t-poky-linux-gnueabi/gcc-cross-intermediate-4.5.2-r3/temp/log.do_compile.646
>> for further information)
>>
>>
>> Regards,
>>
>> --
>> *dS
>> Diego Sueiro
>>
>> /*long live rock 'n roll*/
>>
>> On Mon, Jan 31, 2011 at 10:41 PM, Kamble, Nitin A
>> <nitin.a.kamble@intel.com <mailto:nitin.a.kamble@intel.com>> wrote:
>>
>> Diego,
>>
>> Can you try with 4.5.2 gcc from this branch:
>> http://git.pokylinux.org/cgit/cgit.cgi/poky-contrib/log/?h=nitin/khem_gcc_nitin
>>
>> Thanks,
>>
>> Nitin
>>
>> *From:*yocto-bounces@yoctoproject.org
>> <mailto:yocto-bounces@yoctoproject.org>
>> [mailto:yocto-bounces@yoctoproject.org
>> <mailto:yocto-bounces@yoctoproject.org>] *On Behalf Of *Diego Sueiro
>> *Sent:* Monday, January 31, 2011 10:53 AM
>> *To:* yocto@yoctoproject.org <mailto:yocto@yoctoproject.org>
>> *Subject:* [yocto] Kernel Panics on armv4t with gcc.4.5.1
>>
>> Folks,
>>
>> I'm not a kernel and neither a gcc expert developer, and after searching
>> for a solution for the last 2 weeks I've decided to appeal to the list.
>>
>> I'm trying to build a kernel image (2.6.32 and 2.6.30) for mini2440
>> (armv4t) with Yocto Project (poky master branch) and I'm facing a
>> strange issue.
>>
>> If I compile the kernel with Yocto gcc recipes (gcc 4.5.1) the kernel
>> will panic on init (console printed message is attached for kernel
>> 2.6.30 and 2.6.32).
>>
>> But, if I compile the kernel with meta-oe gcc recipes (gcc 4.5)
>> everything will be ok.
>>
>> Just for your reference these is the gcc recipes which I'm using:
>>
>> http://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/meta/recipes-devtools/gcc
>>
>> http://git.openembedded.org/cgit.cgi/meta-openembedded/tree/recipes-devtools/gcc
>>
>> I've compiled with and without thumb instructions, but the issue remains.
>>
>> I've tried to apply the patches gcc-armv4-pass-fix-v4bx-to-ld.patch and
>> gcc-arm-volatile-bitfield-fix.patch, but no success.
>>
>> Kind Regards,
>>
>> --
>>
>> *dS
>> Diego Sueiro
>>
>> /*long live rock 'n roll*/
>>
>
>
--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------
next prev parent reply other threads:[~2011-02-03 20:03 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-31 18:52 Kernel Panics on armv4t with gcc.4.5.1 Diego Sueiro
2011-02-01 0:41 ` Kamble, Nitin A
2011-02-01 10:40 ` Diego Sueiro
2011-02-01 15:33 ` Diego Sueiro
2011-02-03 17:00 ` Kamble, Nitin A
2011-02-03 18:21 ` Darren Hart
2011-02-03 20:03 ` Gary Thomas [this message]
2011-02-03 21:22 ` Kamble, Nitin A
2011-02-03 21:35 ` Gary Thomas
2011-02-02 13:45 ` Gary Thomas
2011-02-02 15:28 ` Gary Thomas
2011-02-03 17:03 ` Kamble, Nitin A
2011-02-03 17:06 ` Gary Thomas
2011-02-03 17:27 ` Diego Sueiro
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4D4B09F7.2000305@mlbassoc.com \
--to=gary@mlbassoc.com \
--cc=dvhart@linux.intel.com \
--cc=yocto@yoctoproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.