NetBSD Problem Report #51968

From www@NetBSD.org  Tue Feb 14 05:38:34 2017
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 "Postmaster NetBSD.org" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 377437A140
	for <gnats-bugs@gnats.NetBSD.org>; Tue, 14 Feb 2017 05:38:34 +0000 (UTC)
Message-Id: <20170214053832.D80B17A28E@mollari.NetBSD.org>
Date: Tue, 14 Feb 2017 05:38:32 +0000 (UTC)
From: hkang.sunysb@gmail.com
Reply-To: hkang.sunysb@gmail.com
To: gnats-bugs@NetBSD.org
Subject: Error in using src-netbsd with rumprun unikernel
X-Send-Pr-Version: www-1.0

>Number:         51968
>Category:       lib
>Synopsis:       Error in using src-netbsd with rumprun unikernel
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    lib-bug-people
>State:          open
>Class:          support
>Submitter-Id:   net
>Arrival-Date:   Tue Feb 14 05:40:00 +0000 2017
>Last-Modified:  Tue Mar 27 09:11:52 +0000 2018
>Originator:     Hui Kang
>Release:        4.4
>Organization:
IBM
>Environment:
Linux unikernel-dev-02 4.4.0-21-generic #37-Ubuntu SMP Mon Apr 18 18:33:37 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
>Description:

Hi,
I am a newbie to netbsd and have a question about compiling netbsd source for
the rumprun unikernel; the error message is listed at [1].

I think there may caused by this commit [3]. However, due to my limited
knowledge, I could not solve this. Could anyone help? Thanks.

- Hui

[1] https://gist.github.com/huikang/20bf39d3a353a4fb4a597b3833393037
[2] https://github.com/huikang/rumprun.git
[3] https://github.com/IIJ-NetBSD/netbsd-src/commit/42dad6f764ea9697a60522ba22515d5bca521d3e#diff-e65c5ddffc87c17b3e0191fa5187692b

>How-To-Repeat:
To reproduce the error, you can follow the following steps

1. Download rumprun unikernel source [2]
   git clone https://github.com/huikang/rumprun.git
   cd rumprun
   git checkout add-tuntap

2. Checkout the src-netbsd
   git clone https://github.com/huikang/src-netbsd.git
   cd src-netbsd
   git checkout appstack-src

3. Compile the rumprun unikernel
   ./build-rr hw

Then if I use the compiled rumpbake to back rumprun unikernel image, it gives
me the following error

/root/rumprun/./rumprun/rumprun-x86_64/lib/rumprun-hw/librumpdev_virtio_if_vioif.a(if_vioif.o):(.data+0x60): multiple definition of `rumpns_vioif_cd'
/root/rumprun/./rumprun/rumprun-x86_64/lib/rumprun-hw/librumpdev_virtio_if_vioif.a(component_simple.o):(.data+0x80): first defined here
/root/rumprun/./rumprun/rumprun-x86_64/lib/rumprun-hw/librumpdev_virtio_ld.a(ld.o):(.data+0x0): multiple definition of `rumpns_ld_cd'
/root/rumprun/./rumprun/rumprun-x86_64/lib/rumprun-hw/librumpdev_virtio_ld.a(ld_at_virtio.o):(.data+0xa0): first defined here
/root/rumprun/./rumprun/rumprun-x86_64/lib/rumprun-hw/librumpdev_pci_virtio.a(virtio_component.o):(.data+0xa0): multiple definition of `rumpns_virtio_cd'
/root/rumprun/./rumprun/rumprun-x86_64/lib/rumprun-hw/librumpdev_pci_virtio.a(component_simple.o):(.data+0xa0): first defined here
/root/rumprun/./rumprun/rumprun-x86_64/lib/rumprun-hw/librumpdev_pci_virtio.a(virtio.o):(.data+0x80): multiple definition of `rumpns_virtio_cd'
/root/rumprun/./rumprun/rumprun-x86_64/lib/rumprun-hw/librumpdev_pci_virtio.a(component_simple.o):(.data+0xa0): first defined here
>Fix:
NA

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: lib-bug-people->pooka
Responsible-Changed-By: dholland@NetBSD.org
Responsible-Changed-When: Fri, 17 Feb 2017 16:30:33 +0000
Responsible-Changed-Why:
rump


Responsible-Changed-From-To: pooka->lib-bug-people
Responsible-Changed-By: dholland@NetBSD.org
Responsible-Changed-When: Tue, 27 Mar 2018 09:11:52 +0000
Responsible-Changed-Why:
pooka resigned


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.43 2018/01/16 07:36:43 maya Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.