Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: <005201c30e09$44a19300$5b0366d2@adcpc91DJKIM> From: =?UTF-8?B?6rmA65Od7KSR?= To: "cygwin" References: <20030423015402 DOT GB38081907 AT hpn5170x> <20030424002924 DOT GB14061 AT redhat DOT com> <001c01c30a09$ecec2bf0$5b0366d2 AT adcpc91DJKIM> <005701c30a0b$72b246b0$ac6786d9 AT ellixia> Subject: undefined reference error __mempcpy Date: Tue, 29 Apr 2003 13:39:06 +0900 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Priority: 3 X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by delorie.com id h3T4hie02196 Hi all. I have a problem installing a gcc-3.2 cross-compiler under Cygwin(cygwin-1.3.22.tar). ../configure --target ae32000-elf --prefix=/usr/local --enable-languages=c,c++ --with-gnu-as --with-gnu-ld --with-headers=... --with-newlib # (host : i686-pc-cygwin) When compiling the gnu-regex.c , error message is the following. ... gcc -c -DIN_GCC -DHAVE_CONFIG_H -DIN_GCC -DCROSS_COMPILE -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long -DHAVE_CONFIG_H -DGENERATOR_FILE -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long -I. -I.. -I../../../gcc-3.2/gcc/fixinc -I../../../gcc-3.2/gcc/fixinc/.. -I../../../gcc-3.2/gcc/fixinc/../config -I../../../gcc-3.2/gcc/fixinc/../../include ../../../gcc-3.2/gcc/fixinc/fixlib.c In file included from ../config.h:20, from ../../../gcc-3.2/gcc/fixinc/fixlib.h:30, from ../../../gcc-3.2/gcc/fixinc/fixlib.c:25: ../../../gcc-3.2/gcc/config/ae32000/ae32000.h:957:1: warning: C++ style comments are not allowed in ISO C89 ../../../gcc-3.2/gcc/config/ae32000/ae32000.h:957:1: warning: (this will be reported only once per input file) gcc -DIN_GCC -DHAVE_CONFIG_H -DIN_GCC -DCROSS_COMPILE -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long -DHAVE_CONFIG_H -DGENERATOR_FILE -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long -I. -I.. -I../../../gcc-3.2/gcc/fixinc -I../../../gcc-3.2/gcc/fixinc/.. -I../../../gcc-3.2/gcc/fixinc/../config -I../../../gcc-3.2/gcc/fixinc/../../include -o fixincl.exe fixincl.o fixtests.o fixfixes.o server.o procopen.o gnu-regex.o fixlib.o ../../libiberty/libiberty.a gnu-regex.o(.text+0x6556): In function `regerror': /home/Administrator/Angel2/build-gcc-ae32000-elf/gcc/fixinc/../../../gcc-3.2/gcc/fixinc/gnu-regex.c:5723: undefined reference to `___mempcpy' collect2: ld returned 1 exit status make[2]: *** [full-stamp] Error 1 make[2]: Leaving directory `/home/Administrator/Angel2/build-gcc-ae32000-elf/gcc/fixinc' make[1]: *** [fixinc.sh] Error 2 make[1]: Leaving directory `/home/Administrator/Angel2/build-gcc-ae32000-elf/gcc' make: *** [all-gcc] Error 2 + make install ... When compiling at the linux environment, it's no problem. How does it slove? Please give me some hits... If anybody could shed some light on the subject I would be very grateful. Cheers, Djkim.