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: <3EB170DD.F5A1C994@eagercon.com> Date: Thu, 01 May 2003 12:09:17 -0700 From: Michael Eager X-Accept-Language: en MIME-Version: 1.0 To: ??? CC: cygwin Subject: Re: undefined reference error __mempcpy References: <20030423015402 DOT GB38081907 AT hpn5170x> <20030424002924 DOT GB14061 AT redhat DOT com> <001c01c30a09$ecec2bf0$5b0366d2 AT adcpc91DJKIM> <005701c30a0b$72b246b0$ac6786d9 AT ellixia> <005201c30e09$44a19300$5b0366d2 AT adcpc91DJKIM> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit There was a patch posted to the gcc mailing list in the past couple weeks. (Actually two, one from me, one from someone else.) ??? wrote: > > 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. -- Michael Eager Eager Consulting eager AT eagercon DOT com 1960 Park Blvd., Palo Alto, CA 94306 650-325-8077 -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/