hi ,
  I have a error when i compile gcc-4.1.2 using buildroot in cygwin

gcc   -g -O2 -DIN_GCC -DCROSS_COMPILE  -W -Wall -Wwrite-strings
-Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition
-Wmissing-format-attribute    -DHAVE_CONFIG_H  -o cc1 c-lang.o
stub-objc.o attribs.o c-errors.o c-lex.o c-pragma.o c-decl.o
c-typeck.o c-convert.o c-aux-info.o c-common.o c-opts.o c-format.o
c-semantics.o c-incpath.o cppdefault.o c-ppoutput.o c-cppbuiltin.o
prefix.o c-objc-common.o c-dump.o c-pch.o c-parser.o  c-gimplify.o
tree-mudflap.o c-pretty-print.o cc1-checksum.o \
          main.o  libbackend.a ../libcpp/libcpp.a ../libcpp/libcpp.a
-liconv ../libiberty/libiberty.a
c-pch.o: In function `c_common_valid_pch':
/home/mahua/opt/armbuild26_v1/toolchain_build_arm/gcc-4.1.2/gcc/c-pch.c:239:
undefined reference to `_executable_checksum'
/home/mahua/opt/arm/toolchain_build_arm/gcc-4.1.2/gcc/c-pch.c:271:
undefined reference to `_executable_checksum'
c-pch.o: In function `c_common_print_pch_checksum':
/home/mahua/opt/arm/toolchain_build_arm/gcc-4.1.2/gcc/c-pch.c:489:
undefined reference to `_executable_checksum'
c-pch.o: In function `pch_init':
/home/mahua/opt/arm/toolchain_build_arm/gcc-4.1.2/gcc/c-pch.c:135:
undefined reference to `_executable_checksum'
/home/mahua/opt/arm/toolchain_build_arm/gcc-4.1.2/gcc/c-pch.c:149:
undefined reference to `_executable_checksum'
collect2: ld returned 1 exit status
make[2]: *** [cc1] Error 1
make[2]: Leaving directory
`/home/mahua/opt/arm/toolchain_build_arm/gcc-4.1.2-initial/gcc'
make[1]: *** [all-gcc] Error 2
make[1]: Leaving directory
`/home/mahua/opt/arm/toolchain_build_arm/gcc-4.1.2-initial'

The target platform is arm, gcc version is 4.1.2
binutils-2.17.50.0.8, uClibc-0.9.28.
The host platform is cygwin (1.5.24).
Thanks.

Reply via email to