[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Ltib] mtd-utils fails to build with gcc-4.5+
From: |
Stuart Hughes |
Subject: |
Re: [Ltib] mtd-utils fails to build with gcc-4.5+ |
Date: |
Sat, 03 Mar 2012 12:29:41 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux i686; rv:10.0.2) Gecko/20120216 Thunderbird/10.0.2 |
Hi Peter,
I tried to apply this, but the current CVS version does not have
patches: 7,8 and 9.
Could you send these and a I'll get them all applied.
Regards, Stuart
On 28/02/12 19:37, Peter Barada wrote:
> When building mtd-utils-20080618 using CodeSourcery 2011.09-70 for ARM
> (gcc-4.6.1) it fails with (at least):
>
> gcc -I./inc -I./src -I../include -std=gnu99 -DPACKAGE_VERSION=\"1.0\"
> -O2 -g -Werror -Wall -Wwrite-strings -W -c -o error.o ./src/error.c -g
> -Wp,-MD,.error.c.dep
> ./src/error.c: In function 'info_msg':
> ./src/error.c:77:6: error: variable 'n' set but not used
> [-Werror=unused-but-set-variable]
> cc1: all warnings being treated as errors
>
> make[1]: *** [error.o] Error 1
> make[1]: Leaving directory
> `/home/peter/work/logic/eps_svn/software/products/linux/LTIB/trunk/ltib-3.0/rpm/BUILD/mtd-utils/ubi-utils'
> make: *** [all] Error 2
> error: Bad exit status from
> /home/peter/work/logic/eps_svn/software/products/linux/LTIB/trunk/ltib-3.0/tmp/rpm-tmp.85594
> (%build)
>
>
> RPM build errors:
> Bad exit status from
> /home/peter/work/logic/eps_svn/software/products/linux/LTIB/trunk/ltib-3.0/tmp/rpm-tmp.85594
> (%build)
> Build time for mtd-utils: 7 seconds
>
> Failed building mtd-utils
>
>
> The attached patch fixes this (at least makes mtd-utils build) for
> gcc-4.5+...
>
>
>
>
> _______________________________________________
> LTIB home page: http://ltib.org
>
> Ltib mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/ltib
- Re: [Ltib] mtd-utils fails to build with gcc-4.5+,
Stuart Hughes <=