From owner-freebsd-bugs@freebsd.org Fri Jun 12 15:35:21 2020 Return-Path: Delivered-To: freebsd-bugs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id C395C33D576 for ; Fri, 12 Jun 2020 15:35:21 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 49k4YP4s0Kz4ffh for ; Fri, 12 Jun 2020 15:35:21 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id A696033D575; Fri, 12 Jun 2020 15:35:21 +0000 (UTC) Delivered-To: bugs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id A658133DA18 for ; Fri, 12 Jun 2020 15:35:21 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 49k4YP3yTjz4fX5 for ; Fri, 12 Jun 2020 15:35:21 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 833A0B9D9 for ; Fri, 12 Jun 2020 15:35:21 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 05CFZL0j043185 for ; Fri, 12 Jun 2020 15:35:21 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 05CFZLqm043117 for bugs@FreeBSD.org; Fri, 12 Jun 2020 15:35:21 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 247210] Risc-V in QEMU: missing interrupts and cc(1) failure Date: Fri, 12 Jun 2020 15:35:18 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: misc X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: phk@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Jun 2020 15:35:21 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D247210 Bug ID: 247210 Summary: Risc-V in QEMU: missing interrupts and cc(1) failure Product: Base System Version: CURRENT Hardware: riscv OS: Any Status: New Severity: Affects Only Me Priority: --- Component: misc Assignee: bugs@FreeBSD.org Reporter: phk@FreeBSD.org I tried following the wiki to setup a Risc-V system using -CURRENT under Qemu-devel. As far as things goes it does boot, and big hat tip for that. Two issues however: Two phenomena points to some timer interrupts not happening. 1) Ping(1) reports "inf ms": root@qemu:/tmp # ping 192.168.60.1 PING 192.168.60.1 (192.168.60.1): 56 data bytes 64 bytes from 192.168.60.1: icmp_seq=3D0 ttl=3D64 time=3Dinf ms 64 bytes from 192.168.60.1: icmp_seq=3D1 ttl=3D64 time=3Dinf ms 64 bytes from 192.168.60.1: icmp_seq=3D2 ttl=3D64 time=3Dinf ms 2) Things run faster i CTRL-T is repeatedly pressed in the console. I think this may also be why any attempt to ssh into the instance times out. The other problem is that the installed compiler does not work, compiling t= he canonical hello.c fails with: ld: error: a.c:(.text+0x0): relocation R_RISCV_ALIGN requires unimpleme= nted linker relaxation; recompile with -mno-relax cc: error: linker command failed with exit code 1 (use -v to see invocation) --=20 You are receiving this mail because: You are the assignee for the bug.=