[oe] GCC Error

Martin Jansa martin.jansa at gmail.com
Tue Nov 15 09:58:30 UTC 2011


On Mon, Nov 14, 2011 at 06:22:27PM -0600, David Thomas wrote:
> Sorry, very frustrated. I am attempting to fix this issue. I apologize, I do not even know what a hpveer is, I will keep trying. 

hpveer is this device:
http://en.wikipedia.org/wiki/HP_Veer

I don't know where did you get cm-t35.conf but I guess it's not
selecting right kernel to use, maybe because it's not available in any
enabled layer..

Check PREFERRED_PROVIDER_virtual/kernel in cm-t35.conf but it should not
build linux-hpveer for cm-t35 for sure..

And yes linux-hpveer_git.bb is not optimal in forcing those 
TARGET_CC_KERNEL_ARCH for everybody, because it assumes that everybody
is using default oe-core gcc which is currently 4.6. IIRC Angstrom is
using 4.5 by default.

Regards,
 
> 
> On Nov 14, 2011, at 6:11 PM, David Thomas wrote:
> 
> > Well not everyone works this day in and day out now do they? Show me where it states you have to use gcc.4.6 and for that matter, I specifically choose a LTS platform to avoid having to play latest and greatest.
> > 
> > So I ask, what is gained by forcing the user to have to use the absolute latest version?
> > 
> > In addition, it is not necessarily clear to a OE newby how all this is pieced together? It is a hackers paradise, I am not a hacker, I have a schedule to meet.
> > Perhaps 
> > 
> > In any event, it is moot, were dumping the cm-t35 and using a beagleboard for product demonstration as it is a dead end. 
> > 
> > "The toolchain problems wouldn't have been there if people had used an existing, working distro like angstrom, the kernel issues mentioned above are all handled automagically by linux.inc."
> > 
> > Really?
> > 
> > On Nov 14, 2011, at 5:28 PM, Martin Jansa wrote:
> > 
> >> On Mon, Nov 14, 2011 at 04:23:30PM -0600, David Thomas wrote:
> >>> OK, so I fight a install of gcc-4.6 onto ubuntu lts and same error. I
> >>> first tried for weeks to get Compulab CM-T35 stuff to work per their
> >>> instructions. Then I get the scripts and all seems well, now this. I
> >>> have spent a month on trying to build a cm-t35 so I can then add in
> >>> additional functionality. At ever turn it fails.  4 weeks and nothing.
> >>> 
> >>> I mean, how hard can this be?
> >> 
> >> How hard is to find out that
> >> meta-smartphone/meta-palm/recipes-kernel/linux/linux-hpveer_git.bb
> >> probably is not best kernel for CM-T35 as the hpveer in name suggests?
> >> 
> >> And how hard is to open that recipe and read:
> >> # Workaround default -Werror setting and some warnings in kernel compilation
> >> TARGET_CC_KERNEL_ARCH += " -Wno-error=unused-but-set-variable -Wno-error=array-bounds"
> >> 
> >> which is needed for newer gcc to not fail with -Wall -Werror.
> >> 
> >> Regards,
> >> 
> >>> 
> >>> 
> >>> On Mon, Nov 14, 2011 at 12:59 PM, McClintock Matthew-B29882
> >>> <B29882 at freescale.com> wrote:
> >>>> On Mon, Nov 14, 2011 at 12:55 PM, David Thomas
> >>>> <david.thomas at microbee-systems.com> wrote:
> >>>>> I am getting a gcc error
> >>>>> 
> >>>>> cc1: error: -Werror=unused-but-set-variable: No option -Wunused-but-set-variable
> >>>>> 
> >>>>> Using the Angstrom scripts I can run machine=beagleboard and complete.
> >>>>> However, machine=cm-t35 with a cm-t35.conf file throws this error.
> >>>>> 
> >>>>> I am having to guess that the machine file is all that was required,
> >>>>> it seems to pich all the right arch, etc.
> >>>>> 
> >>>>> I had asked on Angstrom for any CM-T35 related info to no avail...
> >>>> 
> >>>> This error is on by default for the compiler for OE now. You can get
> >>>> around it by
> >>>> 
> >>>> 1) Fixing the (potential) errors in the source code
> >>>> 2) Turning off the error in the build (EXTRA_CFLAGS =
> >>>> "-Wno-error=unused-but-set-variable" or something similiar)
> >>>> 
> >>>> -M
> >>>> 
> >>>> _______________________________________________
> >>>> Openembedded-devel mailing list
> >>>> Openembedded-devel at lists.openembedded.org
> >>>> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
> >>>> 
> >>> 
> >>> 
> >>> 
> >>> -- 
> >>> Dave Thomas
> >>> MicroBee Systems, Inc
> >>> 1429 Weatherly Road, Suite G
> >>> Huntsville, AL 35803-1187
> >>> 256-489-6671 (Voice)
> >>> 256-426-2431 (Mobile)
> >>> 256-489-6673 (FAX)
> >>> www.microbee-systems.com
> >>> "Innovative Solutions for an Embedded World"
> >>> 
> >>> This message is intended for the sole use of the addressee, and may
> >>> contain information that is privileged, confidential and exempt from
> >>> disclosure under applicable law. If you are not the addressee you are
> >>> hereby notified that you may not use, copy, disclose, or distribute to
> >>> anyone the message or any information contained in the message. If you
> >>> have received this message in error, please immediately advise the
> >>> sender by reply email and delete this message.
> >>> 
> >>> _______________________________________________
> >>> Openembedded-devel mailing list
> >>> Openembedded-devel at lists.openembedded.org
> >>> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
> >> 
> >> -- 
> >> Martin 'JaMa' Jansa     jabber: Martin.Jansa at gmail.com
> >> _______________________________________________
> >> Openembedded-devel mailing list
> >> Openembedded-devel at lists.openembedded.org
> >> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
> > 
> 
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel at lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

-- 
Martin 'JaMa' Jansa     jabber: Martin.Jansa at gmail.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.openembedded.org/pipermail/openembedded-devel/attachments/20111115/9cdf4bed/attachment-0002.sig>


More information about the Openembedded-devel mailing list