From owner-freebsd-virtualization@freebsd.org Thu Jul 11 16:25:01 2019 Return-Path: Delivered-To: freebsd-virtualization@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2669415D859D for ; Thu, 11 Jul 2019 16:25:01 +0000 (UTC) (envelope-from dariusmihaim@gmail.com) Received: from mail-qk1-x744.google.com (mail-qk1-x744.google.com [IPv6:2607:f8b0:4864:20::744]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 57A5986F91 for ; Thu, 11 Jul 2019 16:24:59 +0000 (UTC) (envelope-from dariusmihaim@gmail.com) Received: by mail-qk1-x744.google.com with SMTP id s22so4051914qkj.12 for ; Thu, 11 Jul 2019 09:24:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=7zckTtp06Iv9xDd3FMDIQP/cJFqih16xVw4GExORde0=; b=CJPHPTQ+O1Anh2Ridkt71vGF9L9nGbTTA2EnePLxj+0H8E6fVm9uv0g2+iYeaNM82z Lum56sCP8KE/woNxmwjsCBjN8OELFHVpam2UiFTJiEwnaxZ2livqdxVz+SK3QRh8v9oW fZV2Dky19tbS3BrKVsKyUWXpxJCgPt6IjUuxLrhOyy5J64ozlhhjlmbqf5YEQaZk54m+ 8I+PX6RjSjN0vEzxmEa14BVqnadilcmRIDO/15S8qbexJZ585YTsjkpJqDjUpmKGqmVO OkDnQLPHEeKXYw0CGKoiPDe+wiEvbY48/EP7GFoYv6xoB13uhjQG8ahByht96CC06GLq brIA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=7zckTtp06Iv9xDd3FMDIQP/cJFqih16xVw4GExORde0=; b=VflyOZieh13o3+KWicgn5eFizuqd0IuaBvugYpq5j/Ih4HI0wEJzO81bbp2WOQyCNO 1tcnDXyd9Avt4PCPy7XndeAH5kzsShBAVCicaQQd0NNSIwrKywrP1x7nsn+JJzYotwNL JMQEW3bKfn8TxK0SlLDUAOfRbhknrqPE56wQ0sh3oODrHKSrYW3pr4FCErZtOnCHUD0r 3l/feynS0wKjBaO1NEzVBmZyaE3viy3MqLuwMzRI9bXMSZPEwW3n4QChr7R8JmpLWfF1 JbYTbevALsT81YX5tMf8+JRQRLAGNQsomRpv6Wx78MlAogudLvRjivS3nGpf9+ufM8r8 zbSw== X-Gm-Message-State: APjAAAWfnOKM2Xr0K21XgCP4NhJX77fjsLrUUFGrkVhddTZ/coF1YIgS WKj8Ucadj+H4JDuxKP9DJ8h5jct+txvN2QimXSw= X-Google-Smtp-Source: APXvYqzvK6r+7suSthK5kduBUuKXmBhkW5UreafV6sfRpeAXRyau2Uw+2WFUad/dfZB8351AZ4RCiDA/4n52OQa1IpA= X-Received: by 2002:a0c:e8c7:: with SMTP id m7mr2551456qvo.134.1562862298691; Thu, 11 Jul 2019 09:24:58 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Darius Mihai Date: Thu, 11 Jul 2019 19:24:21 +0300 Message-ID: Subject: Re: bhyve/arm64 status To: Kamil Koczurek Cc: freebsd-virtualization@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 57A5986F91 X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=CJPHPTQ+; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of dariusmihaim@gmail.com designates 2607:f8b0:4864:20::744 as permitted sender) smtp.mailfrom=dariusmihaim@gmail.com X-Spamd-Result: default: False [-4.72 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; FREEMAIL_FROM(0.00)[gmail.com]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-virtualization@freebsd.org]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; MX_GOOD(-0.01)[cached: alt3.gmail-smtp-in.l.google.com]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[4.4.7.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; RCVD_TLS_LAST(0.00)[]; NEURAL_HAM_SHORT(-0.93)[-0.927,0]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_COUNT_TWO(0.00)[2]; IP_SCORE(-0.78)[ip: (1.76), ipnet: 2607:f8b0::/32(-3.18), asn: 15169(-2.44), country: US(-0.06)]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0] X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Jul 2019 16:25:01 -0000 On Thu, Jul 11, 2019 at 4:01 PM Darius Mihai wrote: > > On Thu, Jul 11, 2019 at 1:09 PM Kamil Koczurek wrote: > > > > I'm trying to cross-compile bhyve for espressobin myself, but I've > > come across some problems. `make buildworld`* throws the following > > errors: > > > > 1. on branch bhyvearm64: > > ``` > > make[4]: make[4]: don't know how to make bhyvectl.1. Stop > > ``` > > > > 2. on branch bhyvearm64_refactor: > > ``` > > In file included from > > /root/bhyve/ehh/freebsd/usr.sbin/bhyve/mmio//devemu_irq.c:14: > > /root/bhyve/ehh/freebsd/sys/dev/virtio/mmio/virtio_mmio.h:36:1: error: > > type specifier missing, defaults to 'int' > > [-Werror,-Wimplicit-int] > > DECLARE_CLASS(vtmmio_driver); > > ^ > > /root/bhyve/ehh/freebsd/sys/dev/virtio/mmio/virtio_mmio.h:36:15: > > error: a parameter list without types is only allowed in a function > > definition > > DECLARE_CLASS(vtmmio_driver); > > ^ > > /root/bhyve/ehh/freebsd/sys/dev/virtio/mmio/virtio_mmio.h:41:2: error: > > unknown type name 'device_t' > > device_t dev; > > ^ > > /root/bhyve/ehh/freebsd/sys/dev/virtio/mmio/virtio_mmio.h:42:2: error: > > unknown type name 'device_t' > > device_t platform; > > ^ > > /root/bhyve/ehh/freebsd/sys/dev/virtio/mmio/virtio_mmio.h:49:2: error: > > unknown type name 'device_t' > > device_t vtmmio_child_dev; > > ^ > > /root/bhyve/ehh/freebsd/sys/dev/virtio/mmio/virtio_mmio.h:57:19: > > error: a parameter list without types is only allowed in a function > > definition > > int vtmmio_attach(device_t); > > ^ > > ``` > > > > Both builds were done on freshly installed FreeBSD 13.0 / amd64. I can > > supply full logs if anybody wants to take a look at them. > > > > * Using supplied build scripts from bhyvearm64-utils gives the same results. > > Hello, > > You didn't mention where you got the code from. I assume it's the one > at https://github.com/FreeBSD-UPB/freebsd/tree/projects/bhyvearm64-refactor. > I'll try building it on my side to see why you're getting those errors. > > All the best, > Darius Hello again, Try updating the git branch now. The issue was caused by using the defines under /sys/dev/virtio/mmio/virtio_mmio.h by including the header from /sys/dev/virtio/mmio; at some point, the header added a class definition and structure that rely on other includes being added before including the 'virtio_mmio.h' header. I have added a local copy of the header with only the defines in it to bypass this issue. Give it a try and let me know how it works. All the best, Darius