From owner-freebsd-current@freebsd.org Mon Sep 16 15:27:08 2019 Return-Path: Delivered-To: freebsd-current@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 21725125843 for ; Mon, 16 Sep 2019 15:27:08 +0000 (UTC) (envelope-from me@mko.io) Received: from sender4-of-o58.zoho.com (sender4-of-o58.zoho.com [136.143.188.58]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 46X98W1rc2z3LKt for ; Mon, 16 Sep 2019 15:27:06 +0000 (UTC) (envelope-from me@mko.io) ARC-Seal: i=1; a=rsa-sha256; t=1568647623; cv=none; d=zoho.com; s=zohoarc; b=FVt08sxllSllDOd9ox3uf3B+73jnJtAAAfzjDrZosZjwmBgKIVl6L6VsyCQ6ZkzLLOk9nTpNU11oiSdxTcve544VNcpeYxSl3U5pOCks8tfN7x8xZeXpJ+670FlOhkv7RvBKdrn3Tl9Z1V/66/wfxQHGTw4OC3sTEOXDdfkUu7E= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1568647623; h=Content-Type:Date:From:MIME-Version:Message-ID:Subject:To:ARC-Authentication-Results; bh=dKf7VRzzFCOYEDh9XAF8a1WHAjTUSiQ5WLbRMUs3SUw=; b=WWMONHVYeS7PieyfYOnB74lM4l87mhadwnS8tkEUMAgt1V0E8TBEGeJPHJgdkMkNZ1nPCF1YAkBnEykqIurH7hqeuWyy12w/EfuGf70wpJA5IY4NDX5rn0s+Jt4tnEIg3sXErpR/8J27eQXck/vG4RwaR1rOcD8pnIGg06Moe/Q= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=pass header.i=mko.io; spf=pass smtp.mailfrom=me@mko.io; dmarc=pass header.from= header.from= Received: from yorda.hub (121-75-101-197.dyn.vf.net.nz [121.75.101.197]) by mx.zohomail.com with SMTPS id 1568647621680537.4247940965796; Mon, 16 Sep 2019 08:27:01 -0700 (PDT) From: mko Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Subject: Enable wasm LLVM backend Message-Id: <9CECC969-9B12-48B0-9039-D304C02A9EFB@mko.io> To: freebsd-current@freebsd.org X-Mailer: Apple Mail (2.3445.104.11) X-ZohoMailClient: External X-Rspamd-Queue-Id: 46X98W1rc2z3LKt X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of me@mko.io has no SPF policy when checking 136.143.188.58) smtp.mailfrom=me@mko.io X-Spamd-Result: default: False [-4.27 / 15.00]; RCVD_TLS_LAST(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; ARC_ALLOW(-1.00)[i=1]; RECEIVED_SPAMHAUS_PBL(0.00)[197.101.75.121.khpj7ygk5idzvmvt5x4ziurxhy.zen.dq.spamhaus.net : 127.0.0.11]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MV_CASE(0.50)[]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; TO_DN_NONE(0.00)[]; DMARC_NA(0.00)[mko.io]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; IP_SCORE(-1.67)[ipnet: 136.143.188.0/24(-4.86), asn: 2639(-3.46), country: US(-0.05)]; R_SPF_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; ASN(0.00)[asn:2639, ipnet:136.143.188.0/24, country:US]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-Mailman-Approved-At: Sun, 13 Oct 2019 15:23:47 +0000 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Date: Mon, 16 Sep 2019 15:27:08 -0000 X-Original-Date: Tue, 17 Sep 2019 03:26:58 +1200 X-List-Received-Date: Mon, 16 Sep 2019 15:27:08 -0000 Hi list, I=E2=80=99m trying the Freebsd 12.1 prerelease which comes with llvm = 8.0. The webassembly (wasm) backend is no longer experimental and = enabled by default in llvm 8.0 and also the coming 9.0 with riscv = backend. But I failed to use the wasm backend in the prerelease: clang90 -Wall --target=3Dwasm32 -nostdlib -c -o fib.wasm fib.c ;; output = wasm file error: no wasm32 backend So i think freebsd 12.1 somehow disable wasm backend for some reason.=20 I think we should include the wasm backend and also riscv backend in the = official 12.1 release with llvm 9.0. With default wasm compiler in the = base, all the existing c code can run on the modern browser, thus let = freebsd gain some advantages for web developer over linux which = doesn=E2=80=99t support llvm by default. It could be done to install llvm-devel package, but it=E2=80=99s = required more steps and versioned binary like clang80 would confuse new = comers. mko=