delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/04/29/01:13:04

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
From: "Gary R. Van Sickle" <g DOT r DOT vansickle AT worldnet DOT att DOT net>
To: "cygwin" <cygwin AT cygwin DOT com>
Subject: RE: undefined reference error __mempcpy
Date: Tue, 29 Apr 2003 00:12:58 -0500
Message-ID: <NCBBIHCHBLCMLBLOBONKAENDEBAA.g.r.vansickle@worldnet.att.net>
MIME-Version: 1.0
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
In-Reply-To: <005201c30e09$44a19300$5b0366d2@adcpc91DJKIM>
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id h3T5D3m07496

> gnu-regex.o(.text+0x6556): In function `regerror':
> /home/Administrator/Angel2/build-gcc-ae32000-elf/gcc/fixinc/../../../g
> cc-3.2/gcc/fixinc/gnu-regex.c:5723: undefined reference to `___mempcpy'

I ran into this same problem in my Cygwin->H8S cross.  Don't know the cause, but the bandaid is simple enough.  Find the "gnu-regex.c" file referenced in the error.  Search for "mempcpy"; you'll find one instance of it in a preprocessor construct something like this:

 #if HAVE_MEMPCOPY
	// Use mempcopy
	// ...
 #else
	// Simulate mempcopy
 #endif

Just change the #if to something like:

 #if 0 //HAVE_MEMPCOPY

and you should be good to go.

-- 
Gary R. Van Sickle
Brewer.  Patriot. 


--
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019