From owner-freebsd-riscv@freebsd.org Tue Nov 26 08:55:46 2019 Return-Path: Delivered-To: freebsd-riscv@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 53BF01AF056 for ; Tue, 26 Nov 2019 08:55:46 +0000 (UTC) (envelope-from dclarke@blastwave.org) Received: from jax4mhob19.registeredsite.com (jax4mhob19.registeredsite.com [64.69.218.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.registeredsite.com", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47Md692mTcz4Z4n for ; Tue, 26 Nov 2019 08:55:44 +0000 (UTC) (envelope-from dclarke@blastwave.org) Received: from mailpod.hostingplatform.com ([10.30.77.35]) by jax4mhob19.registeredsite.com (8.14.4/8.14.4) with ESMTP id xAQ8tfCV052951 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Tue, 26 Nov 2019 03:55:41 -0500 Received: (qmail 13339 invoked by uid 0); 26 Nov 2019 08:55:40 -0000 X-TCPREMOTEIP: 99.253.169.68 X-Authenticated-UID: dclarke@blastwave.org Received: from unknown (HELO ?172.16.35.2?) (dclarke@blastwave.org@99.253.169.68) by 0 with ESMTPA; 26 Nov 2019 08:55:40 -0000 To: Ruslan Bukin , RISC-V SW Dev , freebsd-riscv From: Dennis Clarke Subject: GCC 8.x or 9.x for FreeBSD rv64imafdc ?? Message-ID: <5bca6745-1c09-3ba7-3b4a-2456ea2e1081@blastwave.org> Date: Tue, 26 Nov 2019 08:55:39 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:71.0) Gecko/20100101 Thunderbird/71.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 47Md692mTcz4Z4n X-Spamd-Bar: ++++ Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of dclarke@blastwave.org has no SPF policy when checking 64.69.218.107) smtp.mailfrom=dclarke@blastwave.org X-Spamd-Result: default: False [4.38 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; IP_SCORE(0.51)[ipnet: 64.69.218.0/23(0.96), asn: 19871(1.67), country: US(-0.05)]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-riscv@freebsd.org]; DMARC_NA(0.00)[blastwave.org]; AUTH_NA(1.00)[]; NEURAL_SPAM_MEDIUM(0.99)[0.985,0]; RCVD_COUNT_THREE(0.00)[3]; MIME_TRACE(0.00)[0:+]; TO_DN_ALL(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[107.218.69.64.list.dnswl.org : 127.0.10.0]; NEURAL_SPAM_LONG(0.98)[0.982,0]; R_SPF_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; SUBJECT_ENDS_QUESTION(1.00)[]; ASN(0.00)[asn:19871, ipnet:64.69.218.0/23, country:US]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_TLS_LAST(0.00)[] X-BeenThere: freebsd-riscv@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FreeBSD on the RISC-V instruction set architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Nov 2019 08:55:46 -0000 rv64imafdc folks : I will send this out to the only people and places that are likely to not simply be a black hole from which nothing ever returns. However most of my messages do just die on the mail lists with no reply from anyone ever and that is very true for the gcc maillists for anything RISC-V related. I wish I knew why. I am able to checkout and cross compile FreeBSD 13.0-CURRENT r354873 however there is no compiler. I looked. The output destination rootfs shows no signs of LLVM/Clang and certainly not gcc of any flavor. I do see wonderful things like : https://github.com/freebsd-riscv/riscv-gcc/commit/be9abee2aaa919ad8530336569d17b5a60049717 However nothing actually usable by any user out here in the more or less real world that is not inside SiFive or similar. So is there any place at all that one may attain a compiler or am I left to decipher the horrific mess that is known as the Canadian cross compiler bootstrap which has never worked for me. -- Dennis Clarke RISC-V/SPARC/PPC/ARM/CISC UNIX and Linux spoken GreyBeard and suspenders optional From owner-freebsd-riscv@freebsd.org Tue Nov 26 23:25:04 2019 Return-Path: Delivered-To: freebsd-riscv@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 B5BC61C47C1 for ; Tue, 26 Nov 2019 23:25:04 +0000 (UTC) (envelope-from mhorne@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47N0PD4QbZz4Nmt for ; Tue, 26 Nov 2019 23:25:04 +0000 (UTC) (envelope-from mhorne@freebsd.org) Received: from mail-ot1-f45.google.com (mail-ot1-f45.google.com [209.85.210.45]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) (Authenticated sender: mhorne) by smtp.freebsd.org (Postfix) with ESMTPSA id 65F2F181F0 for ; Tue, 26 Nov 2019 23:25:04 +0000 (UTC) (envelope-from mhorne@freebsd.org) Received: by mail-ot1-f45.google.com with SMTP id q23so11682487otn.0 for ; Tue, 26 Nov 2019 15:25:04 -0800 (PST) X-Gm-Message-State: APjAAAUId5FBlmldI0vRiBDLJTqDFrUX5q1EsVezi8Y4MogMBsbU81+s /7uExrcdUn2ml24gCU5UGxf5VegWEeojotDRY7Y= X-Google-Smtp-Source: APXvYqx0aDm+G5BqvZ17ulccmAVvn9Pk0UyzBlnUt9+kikGoNLdOz6QxSExYmebmx2GsO3u33kuGHL3e/uGWNBy/LlE= X-Received: by 2002:a05:6830:1649:: with SMTP id h9mr1254144otr.281.1574810703588; Tue, 26 Nov 2019 15:25:03 -0800 (PST) MIME-Version: 1.0 References: <4e366b17-25ae-5b89-79ad-e1e113149494@blastwave.org> In-Reply-To: From: Mitchell Horne Date: Tue, 26 Nov 2019 18:24:52 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: GCC 8.x or 9.x for FreeBSD rv64imafdc ?? To: Dennis Clarke , Ruslan Bukin , RISC-V SW Dev , freebsd-riscv Content-Type: text/plain; charset="UTF-8" X-BeenThere: freebsd-riscv@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FreeBSD on the RISC-V instruction set architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Nov 2019 23:25:04 -0000 Forwarding my response from earlier as I didn't include all of the original mailing lists. See below. On Tue, Nov 26, 2019 at 8:54 AM Mitchell Horne wrote: > > On Tue, Nov 26, 2019 at 3:57 AM Dennis Clarke wrote: > > > > > > ---------------------------------------------------------------- > > I will cross post this as there are very few options left. > > ---------------------------------------------------------------- > > rv64imafdc folks : > > > > I will send this out to the only people and places that are likely to > > not simply be a black hole from which nothing ever returns. However > > most of my messages do just die on the mail lists with no reply from > > anyone ever and that is very true for the gcc maillists for anything > > RISC-V related. I wish I knew why. > > > > I am able to checkout and cross compile FreeBSD 13.0-CURRENT r354873 > > however there is no compiler. I looked. The output destination rootfs > > shows no signs of LLVM/Clang and certainly not gcc of any flavor. > > > > I do see wonderful things like : > > > > > > https://github.com/freebsd-riscv/riscv-gcc/commit/be9abee2aaa919ad8530336569d17b5a60049717 > > > > > > However nothing actually usable by any user out here in the more or less > > real world that is not inside SiFive or similar. > > > > So is there any place at all that one may attain a compiler or am I left > > to decipher the horrific mess that is known as the Canadian cross > > compiler bootstrap which has never worked for me. > > > > As of r354660, clang is built as part of buildworld. If you are using > r354873 then > you should have it as /usr/bin/clang, perhaps you just need to regenerate your > rootfs. > > Cheers, > Mitchell > And to expand on this a little more: We have only recently imported the LLVM 9 sources into HEAD, and even more recently enabled the RISC-V backend by default. So we now build a native version of clang when compiling a FreeBSD/RISC-V userland, although It is still largely untested. This should serve well enough for your purposes, or at least allow you to compile gcc natively. Going forward, our focus will be mostly on improving support for the LLVM toolchain. The native gcc toolchain instructions on the wiki are fragile, and will likely be removed once clang is a little more tested and settled for this platform. When we begin supporting FreeBSD's ports framwork on RISC-V it should also serve to make life easier for end-users (e.g. you could simply pkg install gcc9). Hope this helps, Mitchell > > > -- > > Dennis Clarke > > RISC-V/SPARC/PPC/ARM/CISC > > UNIX and Linux spoken > > GreyBeard and suspenders optional > > _______________________________________________ > > freebsd-current@freebsd.org mailing list > > https://lists.freebsd.org/mailman/listinfo/freebsd-current > > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" From owner-freebsd-riscv@freebsd.org Tue Nov 26 23:47:37 2019 Return-Path: Delivered-To: freebsd-riscv@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 0EEB51C4EBE for ; Tue, 26 Nov 2019 23:47:37 +0000 (UTC) (envelope-from newsletter@ebersole.net) Received: from jax4mhob24.registeredsite.com (jax4mhob24.registeredsite.com [64.69.218.112]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.registeredsite.com", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47N0vC5KB4z4Pk0 for ; Tue, 26 Nov 2019 23:47:35 +0000 (UTC) (envelope-from newsletter@ebersole.net) Received: from mailpod.hostingplatform.com ([10.30.71.204]) by jax4mhob24.registeredsite.com (8.14.4/8.14.4) with ESMTP id xAQNlTjg064047 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Tue, 26 Nov 2019 18:47:29 -0500 Received: (qmail 31060 invoked by uid 0); 26 Nov 2019 23:47:29 -0000 X-TCPREMOTEIP: 73.147.222.55 X-Authenticated-UID: duane@ebersole.net Received: from unknown (HELO ?10.0.2.15?) (duane@ebersole.net@73.147.222.55) by 0 with ESMTPA; 26 Nov 2019 23:47:29 -0000 Subject: Re: GCC 8.x or 9.x for FreeBSD rv64imafdc ?? To: freebsd-riscv@freebsd.org References: <5bca6745-1c09-3ba7-3b4a-2456ea2e1081@blastwave.org> From: Duane Message-ID: <95a1471f-660f-258d-19c0-889e16bfccbd@ebersole.net> Date: Tue, 26 Nov 2019 18:47:29 -0500 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:68.0) Gecko/20100101 Thunderbird/68.2.1 MIME-Version: 1.0 In-Reply-To: <5bca6745-1c09-3ba7-3b4a-2456ea2e1081@blastwave.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Rspamd-Queue-Id: 47N0vC5KB4z4Pk0 X-Spamd-Bar: ++++ Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of newsletter@ebersole.net has no SPF policy when checking 64.69.218.112) smtp.mailfrom=newsletter@ebersole.net X-Spamd-Result: default: False [4.37 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; IP_SCORE(0.48)[ipnet: 64.69.218.0/23(0.81), asn: 19871(1.67), country: US(-0.05)]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-riscv@freebsd.org]; TO_DN_NONE(0.00)[]; AUTH_NA(1.00)[]; RCPT_COUNT_ONE(0.00)[1]; RCVD_COUNT_THREE(0.00)[3]; MIME_TRACE(0.00)[0:+]; NEURAL_SPAM_MEDIUM(1.00)[0.996,0]; NEURAL_SPAM_LONG(0.99)[0.991,0]; RCVD_IN_DNSWL_NONE(0.00)[112.218.69.64.list.dnswl.org : 127.0.10.0]; R_SPF_NA(0.00)[]; DMARC_NA(0.00)[ebersole.net]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; SUBJECT_ENDS_QUESTION(1.00)[]; ASN(0.00)[asn:19871, ipnet:64.69.218.0/23, country:US]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_TLS_LAST(0.00)[] X-BeenThere: freebsd-riscv@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FreeBSD on the RISC-V instruction set architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Nov 2019 23:47:37 -0000 Hey Dennis, I have tried everything published and I cannot get anything to work on my sifive board. I have given up, sorry for being a black hole. ~Duane On 2019-11-26 3:55 a.m., Dennis Clarke wrote: > > rv64imafdc folks : > > I will send this out to the only people and places that are likely to > not simply be a black hole from which nothing ever returns. However > most of my messages do just die on the mail lists with no reply from > anyone ever and that is very true for the gcc maillists for anything > RISC-V related. I wish I knew why. > > I am able to checkout and cross compile FreeBSD 13.0-CURRENT r354873 > however there is no compiler. I looked. The output destination rootfs > shows no signs of LLVM/Clang and certainly not gcc of any flavor. > > I do see wonderful things like : > > > https://github.com/freebsd-riscv/riscv-gcc/commit/be9abee2aaa919ad8530336569d17b5a60049717 > > > > However nothing actually usable by any user out here in the more or less > real world that is not inside SiFive or similar. > > So is there any place at all that one may attain a compiler or am I left > to decipher the horrific mess that is known as the Canadian cross > compiler bootstrap which has never worked for me. > From owner-freebsd-riscv@freebsd.org Wed Nov 27 06:58:28 2019 Return-Path: Delivered-To: freebsd-riscv@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 9EC931CC16B for ; Wed, 27 Nov 2019 06:58:28 +0000 (UTC) (envelope-from philip@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47NBSN3lcRz3GB4; Wed, 27 Nov 2019 06:58:28 +0000 (UTC) (envelope-from philip@freebsd.org) Received: from weatherwax.trouble.is (weatherwax.trouble.is [176.58.93.127]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "weatherwax.trouble.is", Issuer "Let's Encrypt Authority X3" (verified OK)) (Authenticated sender: philip/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 4BED31BAF9; Wed, 27 Nov 2019 06:58:28 +0000 (UTC) (envelope-from philip@freebsd.org) Received: from rincewind.trouble.is (rincewind.trouble.is [IPv6:2a01:4f9:2a:1715::1:1]) (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 "rincewind.trouble.is", Issuer "Let's Encrypt Authority X3" (verified OK)) by weatherwax.trouble.is (Postfix) with ESMTPS id 47NBSL4syQz4xT6; Wed, 27 Nov 2019 06:58:26 +0000 (UTC) Received: by rincewind.trouble.is (Postfix, authenticated sender philip) id 47NBSG6LpZz1Mnd; Wed, 27 Nov 2019 06:58:22 +0000 (UTC) From: "Philip Paeps" To: Duane Cc: freebsd-riscv@freebsd.org Subject: Re: GCC 8.x or 9.x for FreeBSD rv64imafdc ?? Date: Wed, 27 Nov 2019 14:58:17 +0800 X-Clacks-Overhead: GNU Terry Pratchett X-Mailer: MailMate (1.13r5667) Message-ID: In-Reply-To: <95a1471f-660f-258d-19c0-889e16bfccbd@ebersole.net> References: <5bca6745-1c09-3ba7-3b4a-2456ea2e1081@blastwave.org> <95a1471f-660f-258d-19c0-889e16bfccbd@ebersole.net> MIME-Version: 1.0 Content-Type: text/plain; format=flowed X-BeenThere: freebsd-riscv@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FreeBSD on the RISC-V instruction set architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Nov 2019 06:58:28 -0000 On 2019-11-27 07:47:29 (+0800), Duane wrote: > I have tried everything published and I cannot get anything to work on > my sifive board. > I have given up, sorry for being a black hole. By "anything", do you mean you can't run a compiler natively on FreeBSD on your SiFive board, or that you can't even run FreeBSD on it? FreeBSD works fine on the SiFive board in my experience. Philip -- Philip Paeps Senior Reality Engineer Alternative Enterprises From owner-freebsd-riscv@freebsd.org Wed Nov 27 22:49:26 2019 Return-Path: Delivered-To: freebsd-riscv@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 A5A981BAF9E for ; Wed, 27 Nov 2019 22:49:26 +0000 (UTC) (envelope-from dclarke@blastwave.org) Received: from jax4mhob25.registeredsite.com (jax4mhob25.registeredsite.com [64.69.218.113]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.registeredsite.com", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47NbYd4H9Tz3DKW for ; Wed, 27 Nov 2019 22:49:25 +0000 (UTC) (envelope-from dclarke@blastwave.org) Received: from mailpod.hostingplatform.com ([10.30.77.35]) by jax4mhob25.registeredsite.com (8.14.4/8.14.4) with ESMTP id xARMnLNO115651 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Wed, 27 Nov 2019 17:49:21 -0500 Received: (qmail 35911 invoked by uid 0); 27 Nov 2019 22:49:21 -0000 X-TCPREMOTEIP: 99.253.169.68 X-Authenticated-UID: dclarke@blastwave.org Received: from unknown (HELO ?172.16.35.2?) (dclarke@blastwave.org@99.253.169.68) by 0 with ESMTPA; 27 Nov 2019 22:49:21 -0000 Subject: Re: [sw-dev] GCC 8.x or 9.x for FreeBSD rv64imafdc ?? To: Ruslan Bukin , Bruce Hoult Cc: RISC-V SW Dev , freebsd-riscv References: <5bca6745-1c09-3ba7-3b4a-2456ea2e1081@blastwave.org> <20191127135941.GA20804@bsdpad.com> From: Dennis Clarke Message-ID: <11917081-1ce7-182d-d6a8-3d88fd58b153@blastwave.org> Date: Wed, 27 Nov 2019 22:49:20 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:71.0) Gecko/20100101 Thunderbird/71.0 MIME-Version: 1.0 In-Reply-To: <20191127135941.GA20804@bsdpad.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 47NbYd4H9Tz3DKW X-Spamd-Bar: ++++ Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of dclarke@blastwave.org has no SPF policy when checking 64.69.218.113) smtp.mailfrom=dclarke@blastwave.org X-Spamd-Result: default: False [4.21 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; IP_SCORE(0.38)[ipnet: 64.69.218.0/23(0.29), asn: 19871(1.66), country: US(-0.05)]; MIME_GOOD(-0.10)[text/plain]; MIME_TRACE(0.00)[0:+]; PREVIOUSLY_DELIVERED(0.00)[freebsd-riscv@freebsd.org]; AUTH_NA(1.00)[]; DMARC_NA(0.00)[blastwave.org]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; NEURAL_SPAM_MEDIUM(0.97)[0.972,0]; NEURAL_SPAM_LONG(0.96)[0.962,0]; RCVD_IN_DNSWL_NONE(0.00)[113.218.69.64.list.dnswl.org : 127.0.10.0]; R_SPF_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; SUBJECT_ENDS_QUESTION(1.00)[]; ASN(0.00)[asn:19871, ipnet:64.69.218.0/23, country:US]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_TLS_LAST(0.00)[] X-BeenThere: freebsd-riscv@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FreeBSD on the RISC-V instruction set architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Nov 2019 22:49:26 -0000 On 11/27/19 1:59 PM, Ruslan Bukin wrote: > The gcc we use is not old, but 8.3.0: > http://svn.freebsd.org/ports/head/devel/riscv64-gcc/Makefile > Thank you for the reply here as I was hoping to hear from you. > We have an official way of cross building native toolchain using base/gcc port and instructions: http://svn.freebsd.org/ports/head/base/README. > This port is outdated a bit (GCC 6.4) and requires an update (won't work for riscv currently). > I have tried a few methods with varying degrees of success and more recently with consistent success. However the absence of a native compiler may as well reduce the whole idea to nothing but ashes. However I may be wrong as I am told that clang is now being built in the buildworld process. I can tell you that I have tried the RISC-V projects gnu-toolchain gcc and the results are promising : vesta# vesta# uname -apKU FreeBSD vesta 12.1-RELEASE-p1 FreeBSD 12.1-RELEASE-p1 GENERIC amd64 amd64 1201000 1201000 vesta# /opt/rv64/tools/bin/riscv64-unknown-elf-gcc --version riscv64-unknown-elf-gcc (GCC) 9.2.0 Copyright (C) 2019 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. vesta# So that is 9.2.0 from https://github.com/riscv/riscv-gnu-toolchain and we can buildworld but not build the kernel. I find that curious. However I do see in my $DESTDIR a clang : vesta# ls -lap $DESTDIR/usr/bin/cl* -r-xr-xr-x 3 root wheel 63383544 Nov 26 08:00 /opt/rv64/rootfs/usr/bin/clang -r-xr-xr-x 3 root wheel 63383544 Nov 26 08:00 /opt/rv64/rootfs/usr/bin/clang-cpp -r-xr-xr-x 1 root wheel 865912 Nov 26 08:00 /opt/rv64/rootfs/usr/bin/clang-tblgen -r-xr-xr-x 3 root wheel 63383544 Nov 26 08:00 /opt/rv64/rootfs/usr/bin/clang++ -r-xr-xr-x 1 root wheel 1750 Nov 26 08:00 /opt/rv64/rootfs/usr/bin/clear vesta# vesta# file /opt/rv64/rootfs/usr/bin/clang /opt/rv64/rootfs/usr/bin/clang: ELF 64-bit LSB executable, UCB RISC-V, version 1 (SYSV), dynamically linked, interpreter /libexec/ld-elf.so.1, FreeBSD-style, for FreeBSD 13.0 (1300061), stripped vesta# vesta# vesta# readelf -delV /opt/rv64/rootfs/usr/bin/clang ELF Header: Magic: 7f 45 4c 46 02 01 01 00 00 00 00 00 00 00 00 00 Class: ELF64 Data: 2's complement, little endian Version: 1 (current) OS/ABI: UNIX - System V ABI Version: 0 Type: EXEC (Executable file) Machine: RISC-V Version: 0x1 Entry point address: 0x6d48a Start of program headers: 64 (bytes into file) Start of section headers: 63381560 (bytes into file) Flags: 0x5, RVC, double-float ABI Size of this header: 64 (bytes) Size of program headers: 56 (bytes) Number of program headers: 8 Size of section headers: 64 (bytes) Number of section headers: 31 Section header string table index: 30 . . . etc etc. However for the kernel I must use the cross tools from ports : vesta# vesta# /usr/local/bin/riscv64-unknown-freebsd12.0-gcc --version riscv64-unknown-freebsd12.0-gcc (FreeBSD Ports Collection for riscv64) 8.1.0 Copyright (C) 2018 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. vesta# However the only gcc that I have in the native RISC-V FreeBSD world is the one you cooked up in your homedir a while ago. I will try for a bootstrap of 9.2.0 natively today or tomorrow and with some effort maybe report back a result of some value. > On Tue, Nov 26, 2019 at 02:18:35AM -0800, Bruce Hoult wrote: >> I think there are very few people who have experience with the >> intersection of FreeBSD and RISC-V. So very true and yet I have had good results on RISC-V with FreeBSD and even ZFS ZPools however what the world desperately needs is a machine with real DDR4 memory slots and some SAS/SATA ports or at the very least a few PCI slots for storage controllers. We just are not there and the money needed for a 9nm solution is $300M or so. I don't think a FPGA is the way to go here. -- Dennis Clarke RISC-V/SPARC/PPC/ARM/CISC UNIX and Linux spoken GreyBeard and suspenders optional From owner-freebsd-riscv@freebsd.org Thu Nov 28 00:28:23 2019 Return-Path: Delivered-To: freebsd-riscv@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 02D3E1BCCFB for ; Thu, 28 Nov 2019 00:28:23 +0000 (UTC) (envelope-from newsletter@ebersole.net) Received: from jax4mhob17.registeredsite.com (jax4mhob17.registeredsite.com [64.69.218.105]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.registeredsite.com", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47Ndlp1TCtz3JCb for ; Thu, 28 Nov 2019 00:28:21 +0000 (UTC) (envelope-from newsletter@ebersole.net) Received: from mailpod.hostingplatform.com ([10.30.71.203]) by jax4mhob17.registeredsite.com (8.14.4/8.14.4) with ESMTP id xAS0SIbI048533 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Wed, 27 Nov 2019 19:28:18 -0500 Received: (qmail 7367 invoked by uid 0); 28 Nov 2019 00:28:18 -0000 X-TCPREMOTEIP: 73.147.222.55 X-Authenticated-UID: duane@ebersole.net Received: from unknown (HELO ?10.0.2.15?) (duane@ebersole.net@73.147.222.55) by 0 with ESMTPA; 28 Nov 2019 00:28:17 -0000 Subject: Re: GCC 8.x or 9.x for FreeBSD rv64imafdc ?? To: Philip Paeps Cc: freebsd-riscv@freebsd.org References: <5bca6745-1c09-3ba7-3b4a-2456ea2e1081@blastwave.org> <95a1471f-660f-258d-19c0-889e16bfccbd@ebersole.net> From: Duane Message-ID: <1ef68503-e5e5-0e9e-3816-7945f3c36520@ebersole.net> Date: Wed, 27 Nov 2019 19:28:17 -0500 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:68.0) Gecko/20100101 Thunderbird/68.2.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Rspamd-Queue-Id: 47Ndlp1TCtz3JCb X-Spamd-Bar: ++++ Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of newsletter@ebersole.net has no SPF policy when checking 64.69.218.105) smtp.mailfrom=newsletter@ebersole.net X-Spamd-Result: default: False [4.19 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; IP_SCORE(0.38)[ipnet: 64.69.218.0/23(0.27), asn: 19871(1.66), country: US(-0.05)]; MIME_GOOD(-0.10)[text/plain]; MIME_TRACE(0.00)[0:+]; PREVIOUSLY_DELIVERED(0.00)[freebsd-riscv@freebsd.org]; AUTH_NA(1.00)[]; DMARC_NA(0.00)[ebersole.net]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_SPAM_MEDIUM(0.98)[0.981,0]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[105.218.69.64.list.dnswl.org : 127.0.10.0]; NEURAL_SPAM_LONG(0.93)[0.930,0]; R_SPF_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; SUBJECT_ENDS_QUESTION(1.00)[]; ASN(0.00)[asn:19871, ipnet:64.69.218.0/23, country:US]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_TLS_LAST(0.00)[] X-BeenThere: freebsd-riscv@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FreeBSD on the RISC-V instruction set architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Nov 2019 00:28:23 -0000 I can't even get to a point where I could try to run a compile. It boots up with whatever it came with and lands at a totally useless # prompt. Have tried several forums and email contacts, to no avail - still can't get past the initial load it came with. ~Duane On 2019-11-27 1:58 a.m., Philip Paeps wrote: > On 2019-11-27 07:47:29 (+0800), Duane wrote: >> I have tried everything published and I cannot get anything to work >> on my sifive board. >> I have given up, sorry for being a black hole. > > By "anything", do you mean you can't run a compiler natively on > FreeBSD on your SiFive board, or that you can't even run FreeBSD on it? > > FreeBSD works fine on the SiFive board in my experience. > > Philip > From owner-freebsd-riscv@freebsd.org Thu Nov 28 01:11:21 2019 Return-Path: Delivered-To: freebsd-riscv@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 93CDA1BD9D8 for ; Thu, 28 Nov 2019 01:11:21 +0000 (UTC) (envelope-from dclarke@blastwave.org) Received: from jax4mhob02.myregisteredsite.com (jax4mhob02.myregisteredsite.com [64.69.218.82]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.registeredsite.com", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47NfjN3bvnz3LYG for ; Thu, 28 Nov 2019 01:11:19 +0000 (UTC) (envelope-from dclarke@blastwave.org) Received: from mailpod.hostingplatform.com (atl4qobmail02pod2.registeredsite.com [10.30.77.36]) by jax4mhob02.myregisteredsite.com (8.14.4/8.14.4) with ESMTP id xAS1BG04006166 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Wed, 27 Nov 2019 20:11:17 -0500 Received: (qmail 4105 invoked by uid 0); 28 Nov 2019 01:11:16 -0000 X-TCPREMOTEIP: 99.253.169.68 X-Authenticated-UID: dclarke@blastwave.org Received: from unknown (HELO ?172.16.35.2?) (dclarke@blastwave.org@99.253.169.68) by 0 with ESMTPA; 28 Nov 2019 01:11:16 -0000 Subject: Re: GCC 8.x or 9.x for FreeBSD rv64imafdc ?? To: freebsd-riscv@freebsd.org References: <5bca6745-1c09-3ba7-3b4a-2456ea2e1081@blastwave.org> <95a1471f-660f-258d-19c0-889e16bfccbd@ebersole.net> <1ef68503-e5e5-0e9e-3816-7945f3c36520@ebersole.net> From: Dennis Clarke Message-ID: Date: Thu, 28 Nov 2019 01:11:15 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:71.0) Gecko/20100101 Thunderbird/71.0 MIME-Version: 1.0 In-Reply-To: <1ef68503-e5e5-0e9e-3816-7945f3c36520@ebersole.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 47NfjN3bvnz3LYG X-Spamd-Bar: ++++ Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of dclarke@blastwave.org has no SPF policy when checking 64.69.218.82) smtp.mailfrom=dclarke@blastwave.org X-Spamd-Result: default: False [4.19 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; IP_SCORE(0.37)[ipnet: 64.69.218.0/23(0.26), asn: 19871(1.66), country: US(-0.05)]; MIME_GOOD(-0.10)[text/plain]; MIME_TRACE(0.00)[0:+]; PREVIOUSLY_DELIVERED(0.00)[freebsd-riscv@freebsd.org]; AUTH_NA(1.00)[]; RCPT_COUNT_ONE(0.00)[1]; RCVD_COUNT_THREE(0.00)[3]; TO_DN_NONE(0.00)[]; NEURAL_SPAM_MEDIUM(0.98)[0.982,0]; NEURAL_SPAM_LONG(0.94)[0.935,0]; RCVD_IN_DNSWL_NONE(0.00)[82.218.69.64.list.dnswl.org : 127.0.5.0]; R_SPF_NA(0.00)[]; DMARC_NA(0.00)[blastwave.org]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; SUBJECT_ENDS_QUESTION(1.00)[]; ASN(0.00)[asn:19871, ipnet:64.69.218.0/23, country:US]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_TLS_LAST(0.00)[] X-BeenThere: freebsd-riscv@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FreeBSD on the RISC-V instruction set architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Nov 2019 01:11:21 -0000 On 11/28/19 12:28 AM, Duane wrote: > I can't even get to a point where I could try to run a compile. > It boots up with whatever it came with and lands at a totally useless # > prompt. > Have tried several forums and email contacts, to no avail - still can't > get past the initial load it came with. > > ~Duane Hang in there ... I am making progress : rv64$ rv64$ uptime 1:09AM up 23 mins, 2 users, load averages: 0.15, 0.27, 0.24 rv64$ rv64$ uname -a FreeBSD callisto 13.0-CURRENT FreeBSD 13.0-CURRENT #0 r355009: Mon Nov 25 04:02:43 GMT 2019 root@vesta:/opt/rv64/obj/usr/src/20191122121007/freebsd-riscv/riscv.riscv64/sys/QEMU riscv rv64$ rv64$ ls -la /usr/bin/clang* -r-xr-xr-x 3 root wheel 63383544 Nov 26 08:00 /usr/bin/clang -r-xr-xr-x 3 root wheel 63383544 Nov 26 08:00 /usr/bin/clang++ -r-xr-xr-x 3 root wheel 63383544 Nov 26 08:00 /usr/bin/clang-cpp -r-xr-xr-x 1 root wheel 865912 Nov 26 08:00 /usr/bin/clang-tblgen rv64$ rv64$ /usr/bin/clang --version FreeBSD clang version 9.0.0 (tags/RELEASE_900/final 372316) (based on LLVM 9.0.0) Target: riscv64-unknown-freebsd13.0 Thread model: posix InstalledDir: /usr/bin rv64$ Dennis From owner-freebsd-riscv@freebsd.org Thu Nov 28 01:13:16 2019 Return-Path: Delivered-To: freebsd-riscv@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 506701BDBAB for ; Thu, 28 Nov 2019 01:13:16 +0000 (UTC) (envelope-from dclarke@blastwave.org) Received: from jax4mhob25.registeredsite.com (jax4mhob25.registeredsite.com [64.69.218.113]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.registeredsite.com", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47NflZ71KQz3Lpj for ; Thu, 28 Nov 2019 01:13:14 +0000 (UTC) (envelope-from dclarke@blastwave.org) Received: from mailpod.hostingplatform.com ([10.30.77.36]) by jax4mhob25.registeredsite.com (8.14.4/8.14.4) with ESMTP id xAS1D6hC131495 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Wed, 27 Nov 2019 20:13:07 -0500 Received: (qmail 7614 invoked by uid 0); 28 Nov 2019 01:13:06 -0000 X-TCPREMOTEIP: 99.253.169.68 X-Authenticated-UID: dclarke@blastwave.org Received: from unknown (HELO ?172.16.35.2?) (dclarke@blastwave.org@99.253.169.68) by 0 with ESMTPA; 28 Nov 2019 01:13:06 -0000 Subject: Re: [sw-dev] GCC 8.x or 9.x for FreeBSD rv64imafdc ?? To: Bruce Hoult Cc: Ruslan Bukin , RISC-V SW Dev , freebsd-riscv References: <5bca6745-1c09-3ba7-3b4a-2456ea2e1081@blastwave.org> <20191127135941.GA20804@bsdpad.com> <11917081-1ce7-182d-d6a8-3d88fd58b153@blastwave.org> From: Dennis Clarke Message-ID: Date: Thu, 28 Nov 2019 01:13:05 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:71.0) Gecko/20100101 Thunderbird/71.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 47NflZ71KQz3Lpj X-Spamd-Bar: ++++ Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of dclarke@blastwave.org has no SPF policy when checking 64.69.218.113) smtp.mailfrom=dclarke@blastwave.org X-Spamd-Result: default: False [4.16 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; IP_SCORE(0.37)[ipnet: 64.69.218.0/23(0.25), asn: 19871(1.66), country: US(-0.05)]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-riscv@freebsd.org]; DMARC_NA(0.00)[blastwave.org]; AUTH_NA(1.00)[]; NEURAL_SPAM_MEDIUM(0.98)[0.977,0]; RCVD_COUNT_THREE(0.00)[3]; MIME_TRACE(0.00)[0:+]; TO_DN_ALL(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[113.218.69.64.list.dnswl.org : 127.0.10.0]; NEURAL_SPAM_LONG(0.91)[0.911,0]; R_SPF_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; SUBJECT_ENDS_QUESTION(1.00)[]; ASN(0.00)[asn:19871, ipnet:64.69.218.0/23, country:US]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_TLS_LAST(0.00)[] X-BeenThere: freebsd-riscv@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FreeBSD on the RISC-V instruction set architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Nov 2019 01:13:16 -0000 >> We just are not there and the money needed for a 9nm solution is $300M or so. > > No one except x86 systems based on CPUs from Intel and AMD has the > volume and supply chain maturity to be "there". No one. > Yep .. we all know this. So I am looking at about $4k to get a prototype hardware kit together and that would provide a pci bus. Such is life. Dennis From owner-freebsd-riscv@freebsd.org Thu Nov 28 01:15:22 2019 Return-Path: Delivered-To: freebsd-riscv@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 3446A1BDC6D for ; Thu, 28 Nov 2019 01:15:22 +0000 (UTC) (envelope-from dclarke@blastwave.org) Received: from jax4mhob18.registeredsite.com (jax4mhob18.registeredsite.com [64.69.218.106]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.registeredsite.com", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47Nfp12r1Vz3LrY for ; Thu, 28 Nov 2019 01:15:21 +0000 (UTC) (envelope-from dclarke@blastwave.org) Received: from mailpod.hostingplatform.com ([10.30.77.36]) by jax4mhob18.registeredsite.com (8.14.4/8.14.4) with ESMTP id xAS1FCTq082885 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Wed, 27 Nov 2019 20:15:15 -0500 Received: (qmail 11532 invoked by uid 0); 28 Nov 2019 01:15:12 -0000 X-TCPREMOTEIP: 99.253.169.68 X-Authenticated-UID: dclarke@blastwave.org Received: from unknown (HELO ?172.16.35.2?) (dclarke@blastwave.org@99.253.169.68) by 0 with ESMTPA; 28 Nov 2019 01:15:12 -0000 Subject: Re: [sw-dev] GCC 8.x or 9.x for FreeBSD rv64imafdc ?? To: Ruslan Bukin , Bruce Hoult Cc: RISC-V SW Dev , freebsd-riscv References: <5bca6745-1c09-3ba7-3b4a-2456ea2e1081@blastwave.org> <20191127135941.GA20804@bsdpad.com> From: Dennis Clarke Message-ID: <5621d0f4-1836-f920-dad5-1ef44db51777@blastwave.org> Date: Thu, 28 Nov 2019 01:15:11 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:71.0) Gecko/20100101 Thunderbird/71.0 MIME-Version: 1.0 In-Reply-To: <20191127135941.GA20804@bsdpad.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 47Nfp12r1Vz3LrY X-Spamd-Bar: ++++ Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of dclarke@blastwave.org has no SPF policy when checking 64.69.218.106) smtp.mailfrom=dclarke@blastwave.org X-Spamd-Result: default: False [4.23 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; IP_SCORE(0.37)[ipnet: 64.69.218.0/23(0.24), asn: 19871(1.66), country: US(-0.05)]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-riscv@freebsd.org]; DMARC_NA(0.00)[blastwave.org]; AUTH_NA(1.00)[]; NEURAL_SPAM_MEDIUM(0.98)[0.981,0]; RCVD_COUNT_THREE(0.00)[3]; MIME_TRACE(0.00)[0:+]; TO_DN_ALL(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[106.218.69.64.list.dnswl.org : 127.0.10.0]; NEURAL_SPAM_LONG(0.98)[0.975,0]; R_SPF_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; SUBJECT_ENDS_QUESTION(1.00)[]; ASN(0.00)[asn:19871, ipnet:64.69.218.0/23, country:US]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_TLS_LAST(0.00)[] X-BeenThere: freebsd-riscv@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FreeBSD on the RISC-V instruction set architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Nov 2019 01:15:22 -0000 On 11/27/19 1:59 PM, Ruslan Bukin wrote: > The gcc we use is not old, but 8.3.0: > http://svn.freebsd.org/ports/head/devel/riscv64-gcc/Makefile > I am making some progress here : rv64$ rv64$ uptime 1:09AM up 23 mins, 2 users, load averages: 0.15, 0.27, 0.24 rv64$ rv64$ uname -a FreeBSD callisto 13.0-CURRENT FreeBSD 13.0-CURRENT #0 r355009: Mon Nov 25 04:02:43 GMT 2019 root@vesta:/opt/rv64/obj/usr/src/20191122121007/freebsd-riscv/riscv.riscv64/sys/QEMU riscv rv64$ rv64$ ls -la /usr/bin/clang* -r-xr-xr-x 3 root wheel 63383544 Nov 26 08:00 /usr/bin/clang -r-xr-xr-x 3 root wheel 63383544 Nov 26 08:00 /usr/bin/clang++ -r-xr-xr-x 3 root wheel 63383544 Nov 26 08:00 /usr/bin/clang-cpp -r-xr-xr-x 1 root wheel 865912 Nov 26 08:00 /usr/bin/clang-tblgen rv64$ rv64$ /usr/bin/clang --version FreeBSD clang version 9.0.0 (tags/RELEASE_900/final 372316) (based on LLVM 9.0.0) Target: riscv64-unknown-freebsd13.0 Thread model: posix InstalledDir: /usr/bin rv64$ This looks like a fine start to at least begin a possible bootstrap. -- Dennis Clarke RISC-V/SPARC/PPC/ARM/CISC UNIX and Linux spoken GreyBeard and suspenders optional From owner-freebsd-riscv@freebsd.org Thu Nov 28 02:20:50 2019 Return-Path: Delivered-To: freebsd-riscv@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 14CBD1C0ACA for ; Thu, 28 Nov 2019 02:20:50 +0000 (UTC) (envelope-from dclarke@blastwave.org) Received: from jax4mhob13.myregisteredsite.com (jax4mhob13.myregisteredsite.com [64.69.218.93]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.registeredsite.com", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47NhFX5kbHz3QdM for ; Thu, 28 Nov 2019 02:20:48 +0000 (UTC) (envelope-from dclarke@blastwave.org) Received: from mailpod.hostingplatform.com (atl4qobmail01pod2.registeredsite.com [10.30.77.35]) by jax4mhob13.myregisteredsite.com (8.14.4/8.14.4) with ESMTP id xAS2KiLb016397 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Wed, 27 Nov 2019 21:20:44 -0500 Received: (qmail 15617 invoked by uid 0); 28 Nov 2019 02:20:44 -0000 X-TCPREMOTEIP: 99.253.169.68 X-Authenticated-UID: dclarke@blastwave.org Received: from unknown (HELO ?172.16.35.2?) (dclarke@blastwave.org@99.253.169.68) by 0 with ESMTPA; 28 Nov 2019 02:20:44 -0000 Subject: clang dumps core on FreeBSD rv64imafdc To: Ruslan Bukin , Bruce Hoult Cc: RISC-V SW Dev , freebsd-riscv References: <5bca6745-1c09-3ba7-3b4a-2456ea2e1081@blastwave.org> <20191127135941.GA20804@bsdpad.com> From: Dennis Clarke Message-ID: <2a767be9-c6f6-498b-5054-0e01a912cd7a@blastwave.org> Date: Thu, 28 Nov 2019 02:20:43 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:71.0) Gecko/20100101 Thunderbird/71.0 MIME-Version: 1.0 In-Reply-To: <20191127135941.GA20804@bsdpad.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 47NhFX5kbHz3QdM X-Spamd-Bar: +++++ Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of dclarke@blastwave.org has no SPF policy when checking 64.69.218.93) smtp.mailfrom=dclarke@blastwave.org X-Spamd-Result: default: False [5.22 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; IP_SCORE(0.37)[ipnet: 64.69.218.0/23(0.24), asn: 19871(1.66), country: US(-0.05)]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-riscv@freebsd.org]; DMARC_NA(0.00)[blastwave.org]; RBL_MAILSPIKE_WORST(2.00)[93.218.69.64.rep.mailspike.net : 127.0.0.10]; NEURAL_SPAM_MEDIUM(0.96)[0.964,0]; AUTH_NA(1.00)[]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; NEURAL_SPAM_LONG(0.99)[0.989,0]; RCVD_IN_DNSWL_NONE(0.00)[93.218.69.64.list.dnswl.org : 127.0.5.0]; R_SPF_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:19871, ipnet:64.69.218.0/23, country:US]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_TLS_LAST(0.00)[] X-BeenThere: freebsd-riscv@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FreeBSD on the RISC-V instruction set architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Nov 2019 02:20:50 -0000 On 11/27/19 1:59 PM, Ruslan Bukin wrote: > The gcc we use is not old, but 8.3.0: > http://svn.freebsd.org/ports/head/devel/riscv64-gcc/Makefile > OKay I will go back and have another look at that. For the record clang currently dumps core on FreeBSD rv64imafdc : rv64$ uname -a FreeBSD callisto 13.0-CURRENT FreeBSD 13.0-CURRENT #0 r355009: Mon Nov 25 04:02:43 GMT 2019 root@vesta:/opt/rv64/obj/usr/src/20191122121007/freebsd-riscv/riscv.riscv64/sys/QEMU riscv rv64$ rv64$ /usr/bin/clang --version FreeBSD clang version 9.0.0 (tags/RELEASE_900/final 372316) (based on LLVM 9.0.0) Target: riscv64-unknown-freebsd13.0 Thread model: posix InstalledDir: /usr/bin rv64$ rv64$ rv64$ cat hello.c #include #include #include int main ( int argc, char **argv) { uint64_t foo = 0xfeeddeadbeef; printf ( "have a sandwich %lld\n", foo ); return ( 0x42 ); } rv64$ rv64$ ls -lapbin /usr/bin/cc /usr/bin/clang 613 -r-xr-xr-x 4 0 0 63383544 Nov 26 08:00 /usr/bin/cc 613 -r-xr-xr-x 4 0 0 63383544 Nov 26 08:00 /usr/bin/clang rv64$ rv64$ echo $CC /usr/bin/cc rv64$ echo $CFLAGS -std=iso9899:1999 -O0 -fno-builtin -march=rv64imafdc -mabi=lp64d -mstrict-align rv64$ echo $CPPFLAGS -D_TS_ERRNO -D_POSIX_PTHREAD_SEMANTIC -D_LARGEFILE64_SOURCE -D_XOPEN_SOURCE=600 rv64$ rv64$ $CC $CFLAGS $CPPFLAGS -E -o hello.i hello.s Seems to produce reasonable output. rv64$ rv64$ $CC $CFLAGS $CPPFLAGS -S -o hello.s hello.i cc: warning: argument unused during compilation: '-mstrict-align' [-Wunused-command-line-argument] Assertion failed: (*(NamedDecl **)&Data == ND && "PointerUnion mangles the NamedDecl pointer!"), function setOnlyValue, file /usr/src/20191122121007/freebsd-riscv/contrib/llvm/tools/clang/include/clang/AST/DeclContextInternals.h, line 103. Stack dump: 0. Program arguments: /usr/bin/cc -cc1 -triple riscv64-unknown-freebsd13.0 -S -disable-free -main-file-name hello.i -mrelocation-model static -mthread-model posix -mdisable-fp-elim -masm-verbose -mconstructor-aliases -munwind-tables -fuse-init-array -target-feature +m -target-feature +a -target-feature +f -target-feature +d -target-feature +c -target-feature +relax -target-abi lp64d -dwarf-column-info -debugger-tuning=gdb -coverage-notes-file /home/dclarke/hello.gcno -resource-dir /usr/lib/clang/9.0.0 -O0 -std=iso9899:1999 -fdebug-compilation-dir /home/dclarke -ferror-limit 19 -fmessage-length 132 -fno-builtin -fno-signed-char -fobjc-runtime=gnustep -fdiagnostics-show-option -faddrsig -o hello.s -x cpp-output hello.i 1. /usr/include/stdio.h:459:15: current parser token '>=' 2. /usr/include/stdio.h:458:47: parsing function body '__sputc' 3. /usr/include/stdio.h:458:47: in compound statement ('{}') cc: error: unable to execute command: Abort trap (core dumped) cc: error: clang frontend command failed due to signal (use -v to see invocation) FreeBSD clang version 9.0.0 (tags/RELEASE_900/final 372316) (based on LLVM 9.0.0) Target: riscv64-unknown-freebsd13.0 Thread model: posix InstalledDir: /usr/bin cc: note: diagnostic msg: PLEASE submit a bug report to https://bugs.freebsd.org/submit/ and include the crash backtrace, preprocessed source, and associated run script. cc: note: diagnostic msg: Error generating preprocessed source(s) - no preprocessable inputs. rv64$ rv64$ rv64$ ls -la cc.core -rw------- 1 dclarke devl 12701696 Nov 28 01:24 cc.core rv64$ file cc.core cc.core: ELF 64-bit LSB core file, UCB RISC-V, version 1 (FreeBSD), FreeBSD-style, from '/usr/bin/cc -cc1 -triple riscv64-unknown-freebsd13.0 -S -disable-free -main-file', pid=823 rv64$ So the good news is that your older gcc seems to be working fine. A bit confused about where to find libs but works just fine thus far. rv64$ rv64$ cat hello.c #include #include #include int main ( int argc, char **argv) { uint64_t foo = 0xfeeddeadbeef; printf ( "have a sandwich %lld\n", foo ); return ( 0x42 ); } rv64$ /usr/local/bin/gcc -v -std=iso9899:1999 -O0 -fno-builtin -march=rv64imafdc -mabi=lp64d -L/usr/local/lib -L/lib -o hello hello.c Using built-in specs. COLLECT_GCC=/usr/local/bin/gcc COLLECT_LTO_WRAPPER=/usr/local/libexec/gcc/riscv64-unknown-freebsd12.0/8.2.0/lto-wrapper Target: riscv64-unknown-freebsd12.0 Configured with: /home/br/dev/riscv20181213/riscv-gnu-toolchain/riscv-gcc/configure --target=riscv64-unknown-freebsd12.0 --host=riscv64-unknown-freebsd12.0 --with-build-sysroot=/home/br/riscv-world --without-newlib --without-headers --disable-werror --disable-shared --enable-threads --enable-tls --enable-languages=c,c++ --with-gmp=/home/br/riscv-world/usr/local --with-mpfr=/home/br/riscv-world/usr/local --with-mpc=/home/br/riscv-world/usr/local --disable-libatomic --disable-libmudflap --disable-libssp --disable-libquadmath --disable-libgomp --disable-nls --disable-bootstrap --disable-multilib --with-arch=rv64imafdc Thread model: posix gcc version 8.2.0 (GCC) COLLECT_GCC_OPTIONS='-v' '-std=c99' '-O0' '-fno-builtin' '-march=rv64imafdc' '-mabi=lp64d' '-L/usr/local/lib' '-L/lib' '-o' 'hello' /usr/local/libexec/gcc/riscv64-unknown-freebsd12.0/8.2.0/cc1 -quiet -v hello.c -quiet -dumpbase hello.c -march=rv64imafdc -mabi=lp64d -auxbase hello -O0 -std=c99 -version -fno-builtin -o /var/tmp/dclarke/ccGbO6Xa.s GNU C99 (GCC) version 8.2.0 (riscv64-unknown-freebsd12.0) compiled by GNU C version 8.2.0, GMP version 6.1.2, MPFR version 4.0.1, MPC version 1.1.0, isl version none GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 ignoring nonexistent directory "/usr/local/lib/gcc/riscv64-unknown-freebsd12.0/8.2.0/../../../../riscv64-unknown-freebsd12.0/include" #include "..." search starts here: #include <...> search starts here: /usr/local/lib/gcc/riscv64-unknown-freebsd12.0/8.2.0/include /usr/local/lib/gcc/riscv64-unknown-freebsd12.0/8.2.0/include-fixed /usr/include End of search list. GNU C99 (GCC) version 8.2.0 (riscv64-unknown-freebsd12.0) compiled by GNU C version 8.2.0, GMP version 6.1.2, MPFR version 4.0.1, MPC version 1.1.0, isl version none GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 Compiler executable checksum: 4dda19917b6f288652be2776fcfdf247 COLLECT_GCC_OPTIONS='-v' '-std=c99' '-O0' '-fno-builtin' '-march=rv64imafdc' '-mabi=lp64d' '-L/usr/local/lib' '-L/lib' '-o' 'hello' /usr/local/lib/gcc/riscv64-unknown-freebsd12.0/8.2.0/../../../../riscv64-unknown-freebsd12.0/bin/as -v --traditional-format -march=rv64imafdc -mabi=lp64d -o /var/tmp/dclarke/ccqQ7cBB.o /var/tmp/dclarke/ccGbO6Xa.s GNU assembler version 2.31.1 (riscv64-unknown-freebsd12.0) using BFD version (GNU Binutils) 2.31.1 COMPILER_PATH=/usr/local/libexec/gcc/riscv64-unknown-freebsd12.0/8.2.0/:/usr/local/libexec/gcc/riscv64-unknown-freebsd12.0/8.2.0/:/usr/local/libexec/gcc/riscv64-unknown-freebsd12.0/:/usr/local/lib/gcc/riscv64-unknown-freebsd12.0/8.2.0/:/usr/local/lib/gcc/riscv64-unknown-freebsd12.0/:/usr/local/lib/gcc/riscv64-unknown-freebsd12.0/8.2.0/../../../../riscv64-unknown-freebsd12.0/bin/ LIBRARY_PATH=/usr/local/lib/gcc/riscv64-unknown-freebsd12.0/8.2.0/:/usr/local/lib/gcc/riscv64-unknown-freebsd12.0/8.2.0/../../../../riscv64-unknown-freebsd12.0/lib/:/lib/:/usr/lib/ COLLECT_GCC_OPTIONS='-v' '-std=c99' '-O0' '-fno-builtin' '-march=rv64imafdc' '-mabi=lp64d' '-L/usr/local/lib' '-L/lib' '-o' 'hello' /usr/local/libexec/gcc/riscv64-unknown-freebsd12.0/8.2.0/collect2 -plugin /usr/local/libexec/gcc/riscv64-unknown-freebsd12.0/8.2.0/liblto_plugin.so -plugin-opt=/usr/local/libexec/gcc/riscv64-unknown-freebsd12.0/8.2.0/lto-wrapper -plugin-opt=-fresolution=/var/tmp/dclarke/ccjoEC0T.res -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc --eh-frame-hdr -melf64lriscv -V -dynamic-linker /libexec/ld-elf.so.1 -o hello /usr/lib/crt1.o /usr/lib/crti.o /usr/lib/crtbegin.o -L/usr/local/lib -L/lib -L/usr/local/lib/gcc/riscv64-unknown-freebsd12.0/8.2.0 -L/usr/local/lib/gcc/riscv64-unknown-freebsd12.0/8.2.0/../../../../riscv64-unknown-freebsd12.0/lib /var/tmp/dclarke/ccqQ7cBB.o -lgcc -lc -lgcc /usr/lib/crtend.o /usr/lib/crtn.o GNU ld (GNU Binutils) 2.31.1 Supported emulations: elf64lriscv elf32lriscv COLLECT_GCC_OPTIONS='-v' '-std=c99' '-O0' '-fno-builtin' '-march=rv64imafdc' '-mabi=lp64d' '-L/usr/local/lib' '-L/lib' '-o' 'hello' rv64$ ./hello have a sandwich 280297596632815 rv64$ echo $? 66 rv64$ rv64$ rv64$ uname -apKU FreeBSD callisto 13.0-CURRENT FreeBSD 13.0-CURRENT #0 r355009: Mon Nov 25 04:02:43 GMT 2019 root@vesta:/opt/rv64/obj/usr/src/20191122121007/freebsd-riscv/riscv.riscv64/sys/QEMU riscv riscv64 1300061 1300061 rv64$ rv64$ /usr/local/bin/gcc --version gcc (GCC) 8.2.0 Copyright (C) 2018 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. rv64$ cat pi.c #define _XOPEN_SOURCE 600 #include #include #include #include int main(int argc, char *argv[]) { long double *pi; int j = 1; /* dummy test integer */ int little_endian = (*(uint8_t*)&j == 1) ? 1 : 0; printf("the sizeof(long double pi) is %lld bytes\n", sizeof(long double) ); pi = calloc ( (size_t)1, sizeof(long double) ); *pi = 3.141592653589793238462643383279502884197L; if (little_endian) { printf("\nThis is a little endian memory machine.\n"); printf("Data in memory may be reversed.\n"); printf("Here is the data in natural human order.\n"); printf("0x%" PRIXPTR " : ", (uintptr_t)pi); for ( j=(sizeof(long double)-1); j>(-1); j-- ) printf("%02x ", (uint8_t)((uint8_t*)pi)[j] ); } else { printf("\nThis is a big endian memory machine.\n"); printf("0x%" PRIXPTR " : ", (uintptr_t)pi); for ( j=0; j Delivered-To: freebsd-riscv@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 4D69B1B5EBF for ; Thu, 28 Nov 2019 20:15:32 +0000 (UTC) (envelope-from dclarke@blastwave.org) Received: from jax4mhob15.registeredsite.com (jax4mhob15.registeredsite.com [64.69.218.103]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.registeredsite.com", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47P85b1fjTz4296 for ; Thu, 28 Nov 2019 20:15:30 +0000 (UTC) (envelope-from dclarke@blastwave.org) Received: from mailpod.hostingplatform.com ([10.30.77.35]) by jax4mhob15.registeredsite.com (8.14.4/8.14.4) with ESMTP id xASKFO1f168258 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Thu, 28 Nov 2019 15:15:24 -0500 Received: (qmail 47351 invoked by uid 0); 28 Nov 2019 20:15:24 -0000 X-TCPREMOTEIP: 99.253.169.68 X-Authenticated-UID: dclarke@blastwave.org Received: from unknown (HELO ?172.16.35.2?) (dclarke@blastwave.org@99.253.169.68) by 0 with ESMTPA; 28 Nov 2019 20:15:24 -0000 To: freebsd-riscv From: Dennis Clarke Subject: r355009 dies with a kernel panic Message-ID: <2bc61d55-e45d-0b10-34ee-14bad17ed693@blastwave.org> Date: Thu, 28 Nov 2019 20:15:23 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:71.0) Gecko/20100101 Thunderbird/71.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 47P85b1fjTz4296 X-Spamd-Bar: ++ Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of dclarke@blastwave.org has no SPF policy when checking 64.69.218.103) smtp.mailfrom=dclarke@blastwave.org X-Spamd-Result: default: False [2.36 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-riscv@freebsd.org]; DMARC_NA(0.00)[blastwave.org]; AUTH_NA(1.00)[]; RCPT_COUNT_ONE(0.00)[1]; RCVD_COUNT_THREE(0.00)[3]; RCVD_TLS_LAST(0.00)[]; TO_DN_ALL(0.00)[]; NEURAL_SPAM_MEDIUM(0.66)[0.665,0]; NEURAL_SPAM_LONG(0.43)[0.428,0]; RCVD_IN_DNSWL_NONE(0.00)[103.218.69.64.list.dnswl.org : 127.0.10.0]; R_SPF_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:19871, ipnet:64.69.218.0/23, country:US]; MID_RHS_MATCH_FROM(0.00)[]; IP_SCORE(0.37)[ipnet: 64.69.218.0/23(0.23), asn: 19871(1.66), country: US(-0.05)] X-BeenThere: freebsd-riscv@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FreeBSD on the RISC-V instruction set architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Nov 2019 20:15:32 -0000 While is it fine that the CI does a bare bones compile I don't know if anyone actually tries to run it for a period of time. If r355009 is left running for a few hours ( on QEMU ) it merely dies with a panic : panic: deadlres_td_sleep_q: possible deadlock detected for 0xffffffd04630a560, blocked for 180225 ticks cpuid = 0 time = 1574915402 KDB: stack backtrace: db_trace_self() at db_read_token_flags+0x696 pc = 0xffffffc0004ca28a ra = 0xffffffc0000d289c sp = 0xffffffc024bb4790 fp = 0xffffffc024bb49b0 db_read_token_flags() at kdb_backtrace+0x2e pc = 0xffffffc0000d289c ra = 0xffffffc00026b98c sp = 0xffffffc024bb49b0 fp = 0xffffffc024bb4a60 kdb_backtrace() at vpanic+0x14a pc = 0xffffffc00026b98c ra = 0xffffffc00022dfac sp = 0xffffffc024bb4a60 fp = 0xffffffc024bb4aa0 vpanic() at panic+0x22 pc = 0xffffffc00022dfac ra = 0xffffffc00022dfe4 sp = 0xffffffc024bb4aa0 fp = 0xffffffc024bb4ac0 panic() at acct_process+0x676 pc = 0xffffffc00022dfe4 ra = 0xffffffc0001de0aa sp = 0xffffffc024bb4ac0 fp = 0xffffffc024bb4b80 acct_process() at fork_exit+0x5c pc = 0xffffffc0001de0aa ra = 0xffffffc0001fbd02 sp = 0xffffffc024bb4b80 fp = 0xffffffc024bb4bc0 fork_exit() at fork_trampoline+0xa pc = 0xffffffc0001fbd02 ra = 0xffffffc0004d768a sp = 0xffffffc024bb4bc0 fp = 0xffffffc0001ddea4 fork_trampoline() at 0xb7e1dbe985ce8b81 pc = 0xffffffc0004d768a ra = 0xb7e1dbe985ce8b81 sp = 0xffffffc0001ddea4 fp = 0x40a7d7b3000a3783 KDB: enter: panic [ thread pid 0 tid 100030 ] Stopped at kdb_enter+0x3a: c.ebreak db> Killed So is anyone anywhere trying to run FreeBSD on RISC-V at all or just me? -- Dennis Clarke RISC-V/SPARC/PPC/ARM/CISC UNIX and Linux spoken GreyBeard and suspenders optional From owner-freebsd-riscv@freebsd.org Thu Nov 28 20:27:25 2019 Return-Path: Delivered-To: freebsd-riscv@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 2A50A1B6D45 for ; Thu, 28 Nov 2019 20:27:25 +0000 (UTC) (envelope-from dclarke@blastwave.org) Received: from jax4mhob16.registeredsite.com (jax4mhob16.registeredsite.com [64.69.218.104]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.registeredsite.com", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47P8MJ270zz43hb for ; Thu, 28 Nov 2019 20:27:23 +0000 (UTC) (envelope-from dclarke@blastwave.org) Received: from mailpod.hostingplatform.com ([10.30.77.36]) by jax4mhob16.registeredsite.com (8.14.4/8.14.4) with ESMTP id xASKRKvc060354 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Thu, 28 Nov 2019 15:27:20 -0500 Received: (qmail 28496 invoked by uid 0); 28 Nov 2019 20:27:20 -0000 X-TCPREMOTEIP: 99.253.169.68 X-Authenticated-UID: dclarke@blastwave.org Received: from unknown (HELO ?172.16.35.2?) (dclarke@blastwave.org@99.253.169.68) by 0 with ESMTPA; 28 Nov 2019 20:27:20 -0000 Subject: Re: GCC 8.x or 9.x for FreeBSD rv64imafdc ?? To: freebsd-riscv@freebsd.org References: <5bca6745-1c09-3ba7-3b4a-2456ea2e1081@blastwave.org> <95a1471f-660f-258d-19c0-889e16bfccbd@ebersole.net> From: Dennis Clarke Message-ID: <7d508522-dc13-f248-1fd7-45ae1a40abed@blastwave.org> Date: Thu, 28 Nov 2019 20:27:19 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:71.0) Gecko/20100101 Thunderbird/71.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 47P8MJ270zz43hb X-Spamd-Bar: ++++ Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of dclarke@blastwave.org has no SPF policy when checking 64.69.218.104) smtp.mailfrom=dclarke@blastwave.org X-Spamd-Result: default: False [4.15 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; IP_SCORE(0.37)[ipnet: 64.69.218.0/23(0.22), asn: 19871(1.66), country: US(-0.05)]; MIME_GOOD(-0.10)[text/plain]; MIME_TRACE(0.00)[0:+]; PREVIOUSLY_DELIVERED(0.00)[freebsd-riscv@freebsd.org]; AUTH_NA(1.00)[]; RCPT_COUNT_ONE(0.00)[1]; RCVD_COUNT_THREE(0.00)[3]; TO_DN_NONE(0.00)[]; NEURAL_SPAM_MEDIUM(0.98)[0.976,0]; NEURAL_SPAM_LONG(0.91)[0.911,0]; RCVD_IN_DNSWL_NONE(0.00)[104.218.69.64.list.dnswl.org : 127.0.10.0]; R_SPF_NA(0.00)[]; DMARC_NA(0.00)[blastwave.org]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; SUBJECT_ENDS_QUESTION(1.00)[]; ASN(0.00)[asn:19871, ipnet:64.69.218.0/23, country:US]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_TLS_LAST(0.00)[] X-BeenThere: freebsd-riscv@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FreeBSD on the RISC-V instruction set architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Nov 2019 20:27:25 -0000 On 11/27/19 6:58 AM, Philip Paeps wrote: > On 2019-11-27 07:47:29 (+0800), Duane wrote: >> I have tried everything published and I cannot get anything to work on >> my sifive board. >> I have given up, sorry for being a black hole. > > By "anything", do you mean you can't run a compiler natively on FreeBSD > on your SiFive board, or that you can't even run FreeBSD on it? > > FreeBSD works fine on the SiFive board in my experience. When you say "works fine" you mean that you leave it running for weeks with zfs and then ssh into it and do actual work with it ? Really? What does uname -apKU and uptime say ? -- Dennis Clarke RISC-V/SPARC/PPC/ARM/CISC UNIX and Linux spoken GreyBeard and suspenders optional