NetBSD Problem Report #55888

From www@netbsd.org  Mon Dec 21 13:56:15 2020
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 47D501A921F
	for <gnats-bugs@gnats.NetBSD.org>; Mon, 21 Dec 2020 13:56:15 +0000 (UTC)
Message-Id: <20201221135614.174ED1A9239@mollari.NetBSD.org>
Date: Mon, 21 Dec 2020 13:56:14 +0000 (UTC)
From: prlw1@cam.ac.uk
Reply-To: prlw1@cam.ac.uk
To: gnats-bugs@NetBSD.org
Subject: xentools413 build failure - memcpy undefined
X-Send-Pr-Version: www-1.0

>Number:         55888
>Category:       pkg
>Synopsis:       xentools413 build failure - memcpy undefined
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    bouyer
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Dec 21 14:00:00 +0000 2020
>Closed-Date:    Fri Feb 05 13:55:14 +0000 2021
>Last-Modified:  Fri Feb 05 13:55:14 +0000 2021
>Originator:     Patrick Welche
>Release:        pkgsrc-current of Dec 20 11:09 GMT
>Organization:
>Environment:
NetBSD-9.99.77/amd64
>Description:
xentools 4.13.2nb2 is failing to bulid for me on -current (gcc) with

/usr/pkg/bin/gmake -C seabios-dir CC=gcc LD=ld PYTHON=python3.8 EXTRAVERSION="-Xen" all;
gmake[6]: Entering directory '/tmp/pkgsrc/sysutils/xentools413/work.x86_64/seabios-rel-1.12.1'
  Linking out/rom.o
ld -N -T out/romlayout32flat.lds out/rom16.strip.o out/rom32seg.strip.o out/code32flat.o -o out/rom.o
ld: out/code32flat.o: in function `memmove':
/tmp/pkgsrc/sysutils/xentools413/work.x86_64/seabios-rel-1.12.1/./src/string.c:206: undefined reference to `memcpy'
ld: out/code32flat.o: in function `const_read_file':
/tmp/pkgsrc/sysutils/xentools413/work.x86_64/seabios-rel-1.12.1/./src/romfile.c:116: undefined reference to `memcpy'
ld: out/code32flat.o: in function `tpm_log_event':
/tmp/pkgsrc/sysutils/xentools413/work.x86_64/seabios-rel-1.12.1/./src/tcgbios.c:131: undefined reference to `memcpy'
ld: /tmp/pkgsrc/sysutils/xentools413/work.x86_64/seabios-rel-1.12.1/./src/tcgbios.c:134: undefined reference to `memcpy'
ld: out/code32flat.o: in function `smm_save_and_copy':
/tmp/pkgsrc/sysutils/xentools413/work.x86_64/seabios-rel-1.12.1/./src/fw/smm.c:148: undefined reference to `memcpy'
ld: out/code32flat.o:/tmp/pkgsrc/sysutils/xentools413/work.x86_64/seabios-rel-1.12.1/./src/fw/smm.c:171: more undefined references to `memcpy' follow

>How-To-Repeat:

>Fix:

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->bouyer
Responsible-Changed-By: hauke@NetBSD.org
Responsible-Changed-When: Tue, 29 Dec 2020 19:25:53 +0000
Responsible-Changed-Why:
Over to maintainer.


From: Manuel Bouyer <bouyer@antioche.eu.org>
To: gnats-bugs@netbsd.org
Cc: pkg-manager@netbsd.org, gnats-admin@netbsd.org, pkgsrc-bugs@netbsd.org
Subject: Re: pkg/55888: xentools413 build failure - memcpy undefined
Date: Fri, 8 Jan 2021 23:11:44 +0100

 On Mon, Dec 21, 2020 at 02:00:01PM +0000, prlw1@cam.ac.uk wrote:
 > >Number:         55888
 > >Category:       pkg
 > >Synopsis:       xentools413 build failure - memcpy undefined
 > >Confidential:   no
 > >Severity:       serious
 > >Priority:       low
 > >Responsible:    pkg-manager
 > >State:          open
 > >Class:          sw-bug
 > >Submitter-Id:   net
 > >Arrival-Date:   Mon Dec 21 14:00:00 +0000 2020
 > >Originator:     Patrick Welche
 > >Release:        pkgsrc-current of Dec 20 11:09 GMT
 > >Organization:
 > >Environment:
 > NetBSD-9.99.77/amd64
 > >Description:
 > xentools 4.13.2nb2 is failing to bulid for me on -current (gcc) with
 > 
 > /usr/pkg/bin/gmake -C seabios-dir CC=gcc LD=ld PYTHON=python3.8 EXTRAVERSION="-Xen" all;
 > gmake[6]: Entering directory '/tmp/pkgsrc/sysutils/xentools413/work.x86_64/seabios-rel-1.12.1'
 >   Linking out/rom.o
 > ld -N -T out/romlayout32flat.lds out/rom16.strip.o out/rom32seg.strip.o out/code32flat.o -o out/rom.o
 > ld: out/code32flat.o: in function `memmove':
 > /tmp/pkgsrc/sysutils/xentools413/work.x86_64/seabios-rel-1.12.1/./src/string.c:206: undefined reference to `memcpy'
 > ld: out/code32flat.o: in function `const_read_file':
 > /tmp/pkgsrc/sysutils/xentools413/work.x86_64/seabios-rel-1.12.1/./src/romfile.c:116: undefined reference to `memcpy'
 > ld: out/code32flat.o: in function `tpm_log_event':
 > /tmp/pkgsrc/sysutils/xentools413/work.x86_64/seabios-rel-1.12.1/./src/tcgbios.c:131: undefined reference to `memcpy'
 > ld: /tmp/pkgsrc/sysutils/xentools413/work.x86_64/seabios-rel-1.12.1/./src/tcgbios.c:134: undefined reference to `memcpy'
 > ld: out/code32flat.o: in function `smm_save_and_copy':
 > /tmp/pkgsrc/sysutils/xentools413/work.x86_64/seabios-rel-1.12.1/./src/fw/smm.c:148: undefined reference to `memcpy'
 > ld: out/code32flat.o:/tmp/pkgsrc/sysutils/xentools413/work.x86_64/seabios-rel-1.12.1/./src/fw/smm.c:171: more undefined references to `memcpy' follow

 I don't understand where this comes from; I can't reproduce it.

 -- 
 Manuel Bouyer <bouyer@antioche.eu.org>
      NetBSD: 26 ans d'experience feront toujours la difference
 --

State-Changed-From-To: open->feedback
State-Changed-By: bouyer@NetBSD.org
State-Changed-When: Thu, 04 Feb 2021 23:53:14 +0000
State-Changed-Why:
Should be fixed in current with patches/patch-.._seabios-rel-1.12.1_src_string.c


State-Changed-From-To: feedback->closed
State-Changed-By: prlw1@NetBSD.org
State-Changed-When: Fri, 05 Feb 2021 13:55:14 +0000
State-Changed-Why:
It builds for me - thank you for the fix!
http://mail-index.netbsd.org/pkgsrc-changes/2021/02/04/msg228194.html


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.46 2020/01/03 16:35:01 leot Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.