gcc version is very high

when compile android 4.0 , when gcc version 4.6.3 is very high, it will show error message below, It must use gcc version 4.4 .


----------------------------------------------------------------------------------------------------

host C++: etc1tool <= development/tools/etc1tool/etc1tool.cpp
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
development/tools/etc1tool/etc1tool.cpp: In function ‘void multipleEncodeDecodeCheck(bool*)’:
development/tools/etc1tool/etc1tool.cpp:477:94: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
development/tools/etc1tool/etc1tool.cpp: In function ‘int main(int, char**)’:
development/tools/etc1tool/etc1tool.cpp:502:54: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
development/tools/etc1tool/etc1tool.cpp:505:54: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
development/tools/etc1tool/etc1tool.cpp:523:76: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
development/tools/etc1tool/etc1tool.cpp:527:73: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
development/tools/etc1tool/etc1tool.cpp:533:50: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
development/tools/etc1tool/etc1tool.cpp:538:46: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
development/tools/etc1tool/etc1tool.cpp:545:37: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
development/tools/etc1tool/etc1tool.cpp:556:62: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
development/tools/etc1tool/etc1tool.cpp:560:40: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
development/tools/etc1tool/etc1tool.cpp:569:80: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
host C++: libETC1 <= frameworks/base/opengl/libs/ETC1/etc1.cpp
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
host C++: exc_dump <= sdk/emulator/qtools/exc_dump.cpp
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
host C++: exc_dump <= sdk/emulator/qtools/trace_reader.cpp
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
host C++: exc_dump <= sdk/emulator/qtools/decoder.cpp
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
host C: fastboot <= system/core/fastboot/protocol.c
host C: fastboot <= system/core/fastboot/engine.c
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
host C: fastboot <= system/core/fastboot/bootimg.c
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
host C: fastboot <= system/core/fastboot/fastboot.c
host C: fastboot <= system/core/fastboot/usb_linux.c
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
host C: fastboot <= system/core/fastboot/util_linux.c
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
host C: fs_config <= build/tools/fs_config/fs_config.c
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
host C: fs_get_stats <= build/tools/fs_get_stats/fs_get_stats.c
host C: genext2fs <= external/genext2fs/genext2fs.c
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
host C: gpttool <= system/core/gpttool/gpttool.c
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
system/core/gpttool/gpttool.c: In function ‘main’:
system/core/gpttool/gpttool.c:296:3: warning: implicit declaration of function ‘ioctl’ [-Wimplicit-function-declaration]
system/core/gpttool/gpttool.c: In function ‘show’:
system/core/gpttool/gpttool.c:175:7: warning: array subscript is above array bounds [-Warray-bounds]
host C++: hist_trace <= sdk/emulator/qtools/hist_trace.cpp
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
host C++: hist_trace <= sdk/emulator/qtools/trace_reader.cpp
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
host C++: hist_trace <= sdk/emulator/qtools/decoder.cpp
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
host C: hprof-conv <= dalvik/tools/hprof-conv/HprofConv.c
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
host C: icudata <= build/tools/bin2asm/icudata.c
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
build/tools/bin2asm/icudata.c: In function ‘main’:
build/tools/bin2asm/icudata.c:18:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
host C: imgdiff <= bootable/recovery/applypatch/imgdiff.c
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
host C: imgdiff <= bootable/recovery/applypatch/utils.c
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
host C: imgdiff <= bootable/recovery/applypatch/bsdiff.c
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
host C: imgpack <= build/tools/imgpack/imgpack.c
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
build/tools/imgpack/imgpack.c: In function ‘get_filename’:
build/tools/imgpack/imgpack.c:65:19: warning: initialization discards ‘const’ qualifier from pointer target type [enabled by default]
build/tools/imgpack/imgpack.c:71:13: warning: assignment discards ‘const’ qualifier from pointer target type [enabled by default]
build/tools/imgpack/imgpack.c: In function ‘main’:
build/tools/imgpack/imgpack.c:151:6: warning: pointer targets in passing argument 1 of ‘fopen’ differ in signedness [-Wpointer-sign]
/usr/include/stdio.h:284:14: note: expected ‘const char * __restrict__’ but argument is of type ‘__u8 *’
build/tools/imgpack/imgpack.c:238:4: warning: pointer targets in passing argument 1 of ‘__builtin_strncpy’ differ in signedness [-Wpointer-sign]
build/tools/imgpack/imgpack.c:238:4: note: expected ‘char *’ but argument is of type ‘__u8 *’
build/tools/imgpack/imgpack.c:287:3: warning: pointer targets in passing argument 1 of ‘__builtin_strncpy’ differ in signedness [-Wpointer-sign]
build/tools/imgpack/imgpack.c:287:3: note: expected ‘char *’ but argument is of type ‘__u8 *’
build/tools/imgpack/imgpack.c:139:10: warning: ‘fsize_src’ may be used uninitialized in this function [-Wuninitialized]
build/tools/imgpack/imgpack.c:227:8: warning: ‘pos’ may be used uninitialized in this function [-Wuninitialized]
bootable/recovery/applypatch/bsdiff.c: In function ‘bsdiff’:
bootable/recovery/applypatch/bsdiff.c:224:5: warning: ‘pos’ may be used uninitialized in this function [-Wuninitialized]
host C++: jdwpspy <= development/tools/jdwpspy/Main.cpp
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
host C++: jdwpspy <= development/tools/jdwpspy/Net.cpp
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
host C++: jdwpspy <= development/tools/jdwpspy/find_JdwpConstants.cpp
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
host C: line_endings <= development/tools/line_endings/line_endings.c
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
host C++: localize <= frameworks/base/tools/localize/file_utils.cpp
host C++: localize <= frameworks/base/tools/localize/localize.cpp
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
host C++: localize <= frameworks/base/tools/localize/merge_res_and_xliff.cpp
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
host C++: localize <= frameworks/base/tools/localize/res_check.cpp
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
host C++: localize <= frameworks/base/tools/localize/xmb.cpp
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]host C++: localize <= frameworks/base/tools/localize/Configuration.cpp


<built-in>:0:0: note: this is the location of the previous definition
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
host C++: localize <= frameworks/base/tools/localize/Perforce.cpp
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
host C++: localize <= frameworks/base/tools/localize/SourcePos.cpp
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
host C++: localize <= frameworks/base/tools/localize/Values.cpp
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
host C++: localize <= frameworks/base/tools/localize/ValuesFile.cpp
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
host C++: localize <= frameworks/base/tools/localize/XLIFFFile.cpp
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
host C++: localize <= frameworks/base/tools/localize/XMLHandler.cpp
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
host C++: localize <= frameworks/base/tools/localize/test.cpp
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
host C++: localize <= frameworks/base/tools/localize/localize_test.cpp
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
host C++: localize <= frameworks/base/tools/localize/merge_res_and_xliff_test.cpp
host C++: localize <= frameworks/base/tools/localize/Perforce_test.cpp
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
host C++: localize <= frameworks/base/tools/localize/ValuesFile_test.cpp
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
host C++: localize <= frameworks/base/tools/localize/XLIFFFile_test.cpp
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
host C++: localize <= frameworks/base/tools/localize/XMLHandler_test.cpp
host C++: make_cfst <= external/srec/tools/make_cfst/make_cfst.cpp
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
In file included from /usr/include/c++/4.6/ext/hash_map:61:0,
                 from external/srec/tools/thirdparty/OpenFst/fst/lib/compat.h:30,
                 from external/srec/tools/thirdparty/OpenFst/fst/lib/weight.h:73,
                 from external/srec/tools/thirdparty/OpenFst/fst/lib/float-weight.h:25,
                 from external/srec/tools/thirdparty/OpenFst/fst/lib/arc.h:22,
                 from external/srec/tools/thirdparty/OpenFst/fst/lib/fst.h:23,
                 from external/srec/tools/thirdparty/OpenFst/fst/lib/fstlib.h:45,
                 from external/srec/tools/make_cfst/make_cfst.cpp:24:
/usr/include/c++/4.6/backward/backward_warning.h:33:2: warning: #warning This file includes at least one deprecated or antiquated header which may be removed without further notice at a future date. Please use a non-deprecated interface with equivalent functionality instead. For a listing of replacement headers and interfaces, consult the file backward_warning.h. To disable this warning use -Wno-deprecated. [-Wcpp]
host C: make_ext4fs <= system/extras/ext4_utils/make_ext4fs_main.c
In file included from external/srec/tools/thirdparty/OpenFst/fst/lib/fst.h:26:0,
                 from external/srec/tools/thirdparty/OpenFst/fst/lib/fstlib.h:45,
                 from external/srec/tools/make_cfst/make_cfst.cpp:24:
external/srec/tools/thirdparty/OpenFst/fst/lib/register.h:58:46: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
external/srec/tools/thirdparty/OpenFst/fst/lib/register.h:62:52: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
host C: libext4_utils <= system/extras/ext4_utils/make_ext4fs.c
In file included from external/srec/tools/thirdparty/OpenFst/fst/lib/fst.h:27:0,
                 from external/srec/tools/thirdparty/OpenFst/fst/lib/fstlib.h:45,
                 from external/srec/tools/make_cfst/make_cfst.cpp:24:
external/srec/tools/thirdparty/OpenFst/fst/lib/symbol-table.h: In function ‘bool fst::CompatSymbols(const fst::SymbolTable*, const fst::SymbolTable*)’:
external/srec/tools/thirdparty/OpenFst/fst/lib/symbol-table.h:379:41: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
In file included from external/srec/tools/thirdparty/OpenFst/fst/lib/vector-fst.h:27:0,
                 from external/srec/tools/thirdparty/OpenFst/fst/lib/fstlib.h:50,
                 from external/srec/tools/make_cfst/make_cfst.cpp:24:
external/srec/tools/thirdparty/OpenFst/fst/lib/test-properties.h: In function ‘uint64 fst::KnownProperties(uint64)’:
external/srec/tools/thirdparty/OpenFst/fst/lib/test-properties.h:38:38: warning: suggest parentheses around arithmetic in operand of ‘|’ [-Wparentheses]
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
In file included from external/srec/tools/thirdparty/OpenFst/fst/lib/fstlib.h:61:0,
                 from external/srec/tools/make_cfst/make_cfst.cpp:24:
external/srec/tools/thirdparty/OpenFst/fst/lib/encode.h: At global scope:
external/srec/tools/thirdparty/OpenFst/fst/lib/encode.h:177:24: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
external/srec/tools/thirdparty/OpenFst/fst/lib/encode.h:274:24: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
external/srec/tools/thirdparty/OpenFst/fst/lib/encode.h:275:27: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
In file included from external/srec/tools/thirdparty/OpenFst/fst/lib/rmepsilon.h:34:0,
                 from external/srec/tools/thirdparty/OpenFst/fst/lib/epsnormalize.h:31,
                 from external/srec/tools/thirdparty/OpenFst/fst/lib/fstlib.h:62,
                 from external/srec/tools/make_cfst/make_cfst.cpp:24:
external/srec/tools/thirdparty/OpenFst/fst/lib/queue.h: In static member function ‘static void fst::AutoQueue<S>::SccQueueType(const fst::Fst<Arc>&, const std::vector<A>&, std::vector<fst::QueueType>*, ArcFilter, Less*, bool*, bool*)’:
external/srec/tools/thirdparty/OpenFst/fst/lib/queue.h:672:17: warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wparentheses]
host C: libext4_utils <= system/extras/ext4_utils/ext4fixup.c
In file included from external/srec/tools/thirdparty/OpenFst/fst/lib/minimize.h:33:0,
                 from external/srec/tools/thirdparty/OpenFst/fst/lib/fstlib.h:69,
                 from external/srec/tools/make_cfst/make_cfst.cpp:24:
external/srec/tools/thirdparty/OpenFst/fst/lib/partition.h: At global scope:
external/srec/tools/thirdparty/OpenFst/fst/lib/partition.h:215:40: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
In file included from external/srec/tools/thirdparty/OpenFst/fst/lib/fstlib.h:69:0,
                 from external/srec/tools/make_cfst/make_cfst.cpp:24:
external/srec/tools/thirdparty/OpenFst/fst/lib/minimize.h:368:31: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
In file included from external/srec/tools/thirdparty/OpenFst/fst/lib/fstlib.h:54:0,
                 from external/srec/tools/make_cfst/make_cfst.cpp:24:
external/srec/tools/thirdparty/OpenFst/fst/lib/arcsort.h: In member function ‘uint64 fst::OLabelCompare<A>::Properties(uint64) const [with A = fst::StdArc, uint64 = long long unsigned int]’:
external/srec/tools/thirdparty/OpenFst/fst/lib/arcsort.h:64:3:   instantiated from ‘void fst::ArcSort(fst::MutableFst<Arc>*, Compare) [with Arc = fst::StdArc, Compare = fst::OLabelCompare<fst::StdArc>]’
external/srec/tools/make_cfst/make_cfst.cpp:243:47:   instantiated from here
external/srec/tools/thirdparty/OpenFst/fst/lib/arcsort.h:299:41: warning: suggest parentheses around arithmetic in operand of ‘|’ [-Wparentheses]
In file included from external/srec/tools/thirdparty/OpenFst/fst/lib/float-weight.h:25:0,
                 from external/srec/tools/thirdparty/OpenFst/fst/lib/arc.h:22,
                 from external/srec/tools/thirdparty/OpenFst/fst/lib/fst.h:23,
                 from external/srec/tools/thirdparty/OpenFst/fst/lib/fstlib.h:45,
                 from external/srec/tools/make_cfst/make_cfst.cpp:24:
external/srec/tools/thirdparty/OpenFst/fst/lib/weight.h: In constructor ‘fst::NaturalLess<W>::NaturalLess() [with W = fst::TropicalWeight]’:
external/srec/tools/thirdparty/OpenFst/fst/lib/queue.h:532:9:   instantiated from ‘fst::AutoQueue<S>::AutoQueue(const fst::Fst<Arc>&, const std::vector<typename Arc::Weight>*, ArcFilter) [with Arc = fst::StdArc, ArcFilter = fst::EpsilonArcFilter<fst::StdArc>, S = int, typename Arc::Weight = fst::TropicalWeight]’
external/srec/tools/thirdparty/OpenFst/fst/lib/rmepsilon.h:294:74:   instantiated from ‘void fst::RmEpsilon(fst::MutableFst<Arc>*, bool) [with Arc = fst::StdArc]’
external/srec/tools/make_cfst/make_cfst.cpp:236:45:   instantiated from here
external/srec/tools/thirdparty/OpenFst/fst/lib/weight.h:127:5: warning: suggest parentheses around comparison in operand of ‘&’ [-Wparentheses]
host C: libext4_utils <= system/extras/ext4_utils/ext4_utils.c
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
host C: libext4_utils <= system/extras/ext4_utils/allocate.c
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
host C: libext4_utils <= system/extras/ext4_utils/backed_block.c
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
host C: libext4_utils <= system/extras/ext4_utils/output_file.c
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
host C: libext4_utils <= system/extras/ext4_utils/contents.c
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
host C: libext4_utils <= system/extras/ext4_utils/extent.c
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
host C: libext4_utils <= system/extras/ext4_utils/indirect.c
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
host C: libext4_utils <= system/extras/ext4_utils/uuid.c
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
host C: libext4_utils <= system/extras/ext4_utils/sha1.c
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
host C: libext4_utils <= system/extras/ext4_utils/sparse_crc32.c
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
host C: libext4_utils <= system/extras/ext4_utils/wipe.c
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
target thumb C: libext4_utils <= system/extras/ext4_utils/make_ext4fs.c
target thumb C: libext4_utils <= system/extras/ext4_utils/ext4fixup.c
target thumb C: libext4_utils <= system/extras/ext4_utils/ext4_utils.c
target thumb C: libext4_utils <= system/extras/ext4_utils/allocate.c
target thumb C: libext4_utils <= system/extras/ext4_utils/backed_block.c
target thumb C: libext4_utils <= system/extras/ext4_utils/output_file.c
target thumb C: libext4_utils <= system/extras/ext4_utils/contents.c
target thumb C: libext4_utils <= system/extras/ext4_utils/extent.c
target thumb C: libext4_utils <= system/extras/ext4_utils/indirect.c
target thumb C: libext4_utils <= system/extras/ext4_utils/uuid.c
target thumb C: libext4_utils <= system/extras/ext4_utils/sha1.c
target thumb C: libext4_utils <= system/extras/ext4_utils/sparse_crc32.c
target thumb C: libext4_utils <= system/extras/ext4_utils/wipe.c
host C: make_ve_grammar <= external/srec/tools/make_ve_grammar/make_ve_grammar.c
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
host C++: makekeycodes <= frameworks/base/tools/makekeycodes/makekeycodes.cpp
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
host C: minigzip <= external/zlib/minigzip.c
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
external/zlib/minigzip.c: In function ‘file_compress’:
external/zlib/minigzip.c:283:5: warning: implicit declaration of function ‘gzopen64’ [-Wimplicit-function-declaration]
external/zlib/minigzip.c:283:9: warning: assignment makes pointer from integer without a cast [enabled by default]
external/zlib/minigzip.c: In function ‘file_uncompress’:
external/zlib/minigzip.c:322:8: warning: assignment makes pointer from integer without a cast [enabled by default]
external/zlib/minigzip.c: In function ‘main’:
external/zlib/minigzip.c:412:26: warning: assignment makes pointer from integer without a cast [enabled by default]
host C: mkbootfs <= system/core/cpio/mkbootfs.c
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
system/core/cpio/mkbootfs.c: In function ‘_eject’:
system/core/cpio/mkbootfs.c:82:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
host C: mkbootimg <= system/core/mkbootimg/mkbootimg.c
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
system/core/mkbootimg/mkbootimg.c: In function ‘write_padding’:
system/core/mkbootimg/mkbootimg.c:88:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
system/core/mkbootimg/mkbootimg.c: In function ‘main’:
system/core/mkbootimg/mkbootimg.c:183:5: warning: pointer targets in passing argument 1 of ‘strcpy’ differ in signedness [-Wpointer-sign]
/usr/include/string.h:128:14: note: expected ‘char * __restrict__’ but argument is of type ‘unsigned char *’
system/core/mkbootimg/mkbootimg.c:228:9: warning: assignment discards ‘const’ qualifier from pointer target type [enabled by default]
system/core/mkbootimg/mkbootimg.c:241:48: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
system/core/mkbootimg/mkbootimg.c:244:50: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
system/core/mkbootimg/mkbootimg.c:248:52: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
host C: libmincrypt <= system/core/libmincrypt/rsa.c
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
host C: libmincrypt <= system/core/libmincrypt/sha.c
host C: mksdcard <= sdk/emulator/mksdcard/mksdcard.c
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
system/core/libmincrypt/sha.c: In function ‘SHA_update’:
system/core/libmincrypt/sha.c:153:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
host C: mkyaffs2image <= external/yaffs2/yaffs2/utils/mkyaffs2image.c
host C: mkyaffs2image <= external/yaffs2/yaffs2/yaffs_packedtags2.c
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
In file included from external/yaffs2/yaffs2/yaffs_packedtags2.c:18:0:
external/yaffs2/yaffs2/yaffs_tagsvalidity.h:23:6: warning: redundant redeclaration of ‘yaffs_InitialiseTags’ [-Wredundant-decls]
external/yaffs2/yaffs2/yaffs_guts.h:888:6: note: previous declaration of ‘yaffs_InitialiseTags’ was here
In file included from external/yaffs2/yaffs2/yaffs_guts.h:23:0,
                 from external/yaffs2/yaffs2/utils/mkyaffs2image.c:38:
external/yaffs2/yaffs2/devextras.h:210:0: warning: "DT_UNKNOWN" redefined [enabled by default]
/usr/include/dirent.h:102:0: note: this is the location of the previous definition
external/yaffs2/yaffs2/devextras.h:211:0: warning: "DT_FIFO" redefined [enabled by default]
/usr/include/dirent.h:104:0: note: this is the location of the previous definition
external/yaffs2/yaffs2/devextras.h:212:0: warning: "DT_CHR" redefined [enabled by default]
/usr/include/dirent.h:106:0: note: this is the location of the previous definition
external/yaffs2/yaffs2/devextras.h:213:0: warning: "DT_DIR" redefined [enabled by default]
/usr/include/dirent.h:108:0: note: this is the location of the previous definition
external/yaffs2/yaffs2/devextras.h:214:0: warning: "DT_BLK" redefined [enabled by default]
/usr/include/dirent.h:110:0: note: this is the location of the previous definition
external/yaffs2/yaffs2/devextras.h:215:0: warning: "DT_REG" redefined [enabled by default]
/usr/include/dirent.h:112:0: note: this is the location of the previous definition
external/yaffs2/yaffs2/devextras.h:216:0: warning: "DT_LNK" redefined [enabled by default]
/usr/include/dirent.h:114:0: note: this is the location of the previous definition
external/yaffs2/yaffs2/devextras.h:217:0: warning: "DT_SOCK" redefined [enabled by default]
/usr/include/dirent.h:116:0: note: this is the location of the previous definition
external/yaffs2/yaffs2/devextras.h:218:0: warning: "DT_WHT" redefined [enabled by default]
/usr/include/dirent.h:118:0: note: this is the location of the previous definition
In file included from external/yaffs2/yaffs2/utils/mkyaffs2image.c:40:0:
external/yaffs2/yaffs2/yaffs_tagsvalidity.h:23:6: warning: redundant redeclaration of ‘yaffs_InitialiseTags’ [-Wredundant-decls]
external/yaffs2/yaffs2/yaffs_guts.h:888:6: note: previous declaration of ‘yaffs_InitialiseTags’ was here
host C: mkyaffs2image <= external/yaffs2/yaffs2/yaffs_ecc.c
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
external/yaffs2/yaffs2/utils/mkyaffs2image.c: In function ‘write_object_header’:
external/yaffs2/yaffs2/utils/mkyaffs2image.c:195:26: warning: array subscript is above array bounds [-Warray-bounds]
external/yaffs2/yaffs2/utils/mkyaffs2image.c:195:19: warning: array subscript is above array bounds [-Warray-bounds]
external/yaffs2/yaffs2/utils/mkyaffs2image.c:196:26: warning: array subscript is above array bounds [-Warray-bounds]
external/yaffs2/yaffs2/utils/mkyaffs2image.c:196:19: warning: array subscript is above array bounds [-Warray-bounds]
host C: mkyaffs2image <= external/yaffs2/yaffs2/yaffs_tagsvalidity.c
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
In file included from external/yaffs2/yaffs2/yaffs_tagsvalidity.c:17:0:
external/yaffs2/yaffs2/yaffs_tagsvalidity.h:23:6: warning: redundant redeclaration of ‘yaffs_InitialiseTags’ [-Wredundant-decls]
external/yaffs2/yaffs2/yaffs_guts.h:888:6: note: previous declaration of ‘yaffs_InitialiseTags’ was here
host C++: obbtool <= frameworks/base/tools/obbtool/Main.cpp
host C: parseStringTest <= external/srec/tools/parseStringTest/parseStringTest.c
<command-line>:0:0: error: "_FORTIFY_SOURCE" redefined [-Werror]
<built-in>:0:0: note: this is the location of the previous definition
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
cc1plus: all warnings being treated as errors
make: *** [out/host/linux-x86/obj/EXECUTABLES/obbtool_intermediates/Main.o] Error 1
make: *** Waiting for unfinished jobs....

-------------------------------------------------------------------------------------------------------------------------------------------------------------------


when use " make showcommands " , it will show:

host C++: obbtool <= frameworks/base/tools/obbtool/Main.cpp
g++ -I frameworks/base/tools/obbtool -I out/host/linux-x86/obj/EXECUTABLES/obbtool_intermediates -I out/target/product/f16ref/obj/STATIC_LIBRARIES/libwebcore_intermediates -I dalvik/libnativehelper/include/nativehelper -isystem system/core/include -isystem hardware/libhardware/include -isystem hardware/libhardware_legacy/include -isystem hardware/ril/include -isystem dalvik/libnativehelper/include -isystem frameworks/base/include -isystem frameworks/base/opengl/include -isystem frameworks/base/native/include -isystem external/skia/include -isystem tools/include -isystem out/host/linux-x86/obj/include -c  -fno-exceptions -Wno-multichar -m32 -fPIC -include system/core/include/arch/linux-x86/AndroidConfig.h -D_FORTIFY_SOURCE=0 -DANDROID -fmessage-length=0 -W -Wall -Wno-unused -Winit-self -Wpointer-arith -O2 -g -fno-strict-aliasing -DNDEBUG -UDEBUG -DANDROID -fmessage-length=0 -W -Wall -Wno-unused -Winit-self -Wpointer-arith -Wsign-promo -DNDEBUG -UDEBUG  -Wall -Werror     -MD -o out/host/linux-x86/obj/EXECUTABLES/obbtool_intermediates/Main.o frameworks/base/tools/obbtool/Main.cpp
<command-line>:0:0: error: "_FORTIFY_SOURCE" redefined [-Werror]
<built-in>:0:0: note: this is the location of the previous definition
cc1plus: all warnings being treated as errors
make: *** [out/host/linux-x86/obj/EXECUTABLES/obbtool_intermediates/Main.o] Error 1


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值