[#4939] mtd-utils build fails on some machine with host gcc 3.3

Document created by Aaronwu Employee on Aug 30, 2013
Version 1Show Document
  • View in full screen mode

[#4939] mtd-utils build fails on some machine with host gcc 3.3

Submitted By: Mingquan Pan

Open Date

2009-02-24 23:18:09     Close Date

2009-03-01 21:33:55

Priority:

Medium     Assignee:

Mike Frysinger

Status:

Closed     Fixed In Release:

N/A

Found In Release:

N/A     Release:

Category:

N/A     Board:

N/A

Processor:

ALL     Silicon Revision:

Is this bug repeatable?:

Yes     Resolution:

Assigned (Not Start)

Uboot version or rev.:

    Toolchain version or rev.:

4.1 of Jan 16

App binary format:

N/A     

Summary: mtd-utils build fails on some machine with host gcc 3.3

Details:

 

mtd-utils build fails on some machine with host gcc 3.3 which has no support for -Wextra after updating Feb 21.

 

make[4]: Leaving directory `/home/test/work/cruise/checkouts/uclinux-dist/user/lrzsz/src'^M

make[3]: Leaving directory `/home/test/work/cruise/checkouts/uclinux-dist/user/lrzsz'^M

[ ! -d "mtd-utils" ] || ( touch mtd-utils/.sgbuilt_user && make -C mtd-utils ) || exit $?^M

make[3]: Entering directory `/home/test/work/cruise/checkouts/uclinux-dist/user/mtd-utils'^M

unset CC CFLAGS CPPFLAGS CROSS LDFLAGS;         make -C cca27d4c0819ae244b33639a19bec82cc2895704/ WITHOUT_XATTR=1 SUBDIRS= BUILDDIR=$PWD/build-cca27d4c0819ae244b33639a19bec82cc2895704-host/ TARGETS=" mkfs.jffs2 "^M

make[4]: Entering directory `/home/test/work/cruise/checkouts/uclinux-dist/user/mtd-utils/cca27d4c0819ae244b33639a19bec82cc2895704'^M

common.mk:58: no file name for `-include'^M

mkdir -p /home/test/work/cruise/checkouts/uclinux-dist/user/mtd-utils/build-cca27d4c0819ae244b33639a19bec82cc2895704-host/^M

gcc -I./include   -DWITHOUT_XATTR -O2 -g -Wall -Wextra -Wwrite-strings -Wno-sign-compare -D_FILE_OFFSET_BITS=64 -c -o /home/test/work/cruise/checkouts/uclinux-dist/user/mtd-utils/build-cca27d4c0819ae244b33639a19bec82cc2895704-host/mkfs.jffs2.o mkfs.jffs2.c -g -Wp,-MD,/home/test/work/cruise/checkouts/uclinux-dist/user/mtd-utils/build-cca27d4c0819ae244b33639a19bec82cc2895704-host/.mkfs.jffs2.c.dep^M

^[[0mcc1: error: unrecognized option `-Wextra'^M

make[4]: *** [/home/test/work/cruise/checkouts/uclinux-dist/user/mtd-utils/build-cca27d4c0819ae244b33639a19bec82cc2895704-host/mkfs.jffs2.o] Error 1^M

make[4]: Leaving directory `/home/test/work/cruise/checkouts/uclinux-dist/user/mtd-utils/cca27d4c0819ae244b33639a19bec82cc2895704'^M

make[3]: *** [all] Error 2^M

make[3]: Leaving directory `/home/test/work/cruise/checkouts/uclinux-dist/user/mtd-utils'^M

make[2]: *** [mtd-utils] Error 2^M

make[2]: Leaving directory `/home/test/work/cruise/checkouts/uclinux-dist/user'^M

make[1]: *** [all] Error 2^M

make[1]: Leaving directory `/home/test/work/cruise/checkouts/uclinux-dist/user'^M

make: *** [subdirs] Error

 

fails on host gcc version:

test@uclinux54-adv7393-ad1981-usb1362:~/work/cruise/test_scripts/uclinux-dist/logs> gcc --version

gcc (GCC) 3.3.5 20050117 (prerelease) (SUSE Linux)

Copyright (C) 2003 Free Software Foundation, Inc.

This is free software; see the source for copying conditions.  There is NO

warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

 

pass on host gcc version:

test@uclinux52-ad73311-lcd:~/work/cruise/test_scripts/uclinux-dist/logs> gcc --version

gcc (GCC) 4.0.2 20050901 (prerelease) (SUSE Linux)

Copyright (C) 2005 Free Software Foundation, Inc.

This is free software; see the source for copying conditions.  There is NO

warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

 

 

 

 

Follow-ups

 

--- Robin Getz                                               2009-02-26 12:11:46

I think the answer is update your host.

 

We can't support old (4+years) compilers which the upstream project is not

supporting anymore either.

 

-Robin

 

--- Mike Frysinger                                           2009-02-26 12:20:51

i posted a change upstream ... just waiting for them to take it

 

  lists.infradead.org/pipermail/linux-mtd/2009-February/024701.html

 

--- Mike Frysinger                                           2009-02-27 15:40:54

should be fixed in updated snapshot

 

--- Mingquan Pan                                             2009-03-01 21:33:55

Yes, fixed. It builds ok now on machines with gcc 3.3. Close.

 

 

 

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

 

File Name     File Type     File Size     Posted By

No Files Were Found

Attachments

    Outcomes