From nobody Thu Dec 2 12:27:45 2021 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id B7A5F18B8D73; Thu, 2 Dec 2021 12:27:55 +0000 (UTC) (envelope-from manu@bidouilliste.com) Received: from mx.blih.net (mail.blih.net [212.83.155.74]) (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 (2048 bits) client-digest SHA256) (Client CN "mx.blih.net", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4J4Zwp16hlz3tvZ; Thu, 2 Dec 2021 12:27:54 +0000 (UTC) (envelope-from manu@bidouilliste.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bidouilliste.com; s=mx; t=1638448065; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=AGVZDUzqkx8dvDXmOiNAwg/oZj9iaJtBN2mIHhsnaZg=; b=PFk5c7R4fF3Ega4YjBiZYpd6WpXGbGHxAby8zWtRcfzlo951n3z7DpTXZuEtXLpwsHMms4 z7E5a9Sy16NbfFwNVQwJ2ipig9As28SXOsfFDs9uU+yLZharYq2/Ie3LYJ2LyD46GSKW+s zZXLr+WqAu2rV5QXSe9JSeWMjKZZ6EM= Received: from amy (lfbn-idf2-1-1163-183.w90-92.abo.wanadoo.fr [90.92.222.183]) by mx.blih.net (OpenSMTPD) with ESMTPSA id 4be858d7 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Thu, 2 Dec 2021 12:27:45 +0000 (UTC) Date: Thu, 2 Dec 2021 13:27:45 +0100 From: Emmanuel Vadot To: Mikael Urankar , greg@unrelenting.technology Cc: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: Re: git: 5b6ee988cc92 - main - devel/wasi-compiler-rt13: Add new port. Message-Id: <20211202132745.da1f8e61c58e5066f6d62014@bidouilliste.com> In-Reply-To: <202110211546.19LFkrgm072234@gitrepo.freebsd.org> References: <202110211546.19LFkrgm072234@gitrepo.freebsd.org> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.33; amd64-portbld-freebsd14.0) List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4J4Zwp16hlz3tvZ X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=bidouilliste.com header.s=mx header.b=PFk5c7R4; dmarc=pass (policy=none) header.from=bidouilliste.com; spf=pass (mx1.freebsd.org: domain of manu@bidouilliste.com designates 212.83.155.74 as permitted sender) smtp.mailfrom=manu@bidouilliste.com X-Spamd-Result: default: False [-3.50 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[bidouilliste.com:s=mx]; FREEFALL_USER(0.00)[manu]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; MV_CASE(0.50)[]; MID_RHS_MATCH_FROM(0.00)[]; MIME_GOOD(-0.10)[text/plain]; R_SPF_ALLOW(-0.20)[+ip4:212.83.155.74/32]; NEURAL_HAM_LONG(-1.00)[-1.000]; RCPT_COUNT_FIVE(0.00)[5]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[bidouilliste.com:+]; DMARC_POLICY_ALLOW(-0.50)[bidouilliste.com,none]; NEURAL_HAM_SHORT(-1.00)[-0.998]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:12876, ipnet:212.83.128.0/19, country:FR]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] X-ThisMailContainsUnwantedMimeParts: N On Thu, 21 Oct 2021 15:46:53 GMT Mikael Urankar wrote: > The branch main has been updated by mikael: > > URL: https://cgit.FreeBSD.org/ports/commit/?id=5b6ee988cc92269b5fd6d9cc4a48da9f935b93e4 > > commit 5b6ee988cc92269b5fd6d9cc4a48da9f935b93e4 > Author: Greg V > AuthorDate: 2021-10-20 06:43:39 +0000 > Commit: Mikael Urankar > CommitDate: 2021-10-21 15:46:47 +0000 > > devel/wasi-compiler-rt13: Add new port. > > The LLVM Project is a collection of modular and reusable compiler and > toolchain technologies. > > This port includes Clang builtins for WASI > (WebAssembly System Interface). > > Differential Revision: https://reviews.freebsd.org/D32439 > --- > devel/Makefile | 1 + > devel/wasi-compiler-rt13/Makefile | 49 ++++++++++++++++++++++++++++++++++++++ > devel/wasi-compiler-rt13/distinfo | 3 +++ > devel/wasi-compiler-rt13/pkg-descr | 7 ++++++ > 4 files changed, 60 insertions(+) > > diff --git a/devel/Makefile b/devel/Makefile > index 5523b10b8fa1..74f4e414e689 100644 > --- a/devel/Makefile > +++ b/devel/Makefile > @@ -7143,6 +7143,7 @@ > SUBDIR += wand-libconfig > SUBDIR += wandio > SUBDIR += wasi-compiler-rt11 > + SUBDIR += wasi-compiler-rt13 > SUBDIR += wasi-libc > SUBDIR += wasi-libcxx > SUBDIR += wasm3 > diff --git a/devel/wasi-compiler-rt13/Makefile b/devel/wasi-compiler-rt13/Makefile > new file mode 100644 > index 000000000000..7a90a7c8f40b > --- /dev/null > +++ b/devel/wasi-compiler-rt13/Makefile > @@ -0,0 +1,49 @@ > +PORTNAME= compiler-rt > +DISTVERSION= 13.0.0 > +CATEGORIES= devel lang > +MASTER_SITES= https://github.com/llvm/llvm-project/releases/download/llvmorg-${DISTVERSION:S/rc/-rc/}/ \ > + https://${PRE_}releases.llvm.org/${LLVM_RELEASE}/${RCDIR} > +PKGNAMEPREFIX= wasi- > +PKGNAMESUFFIX= ${LLVM_SUFFIX} > +DISTNAME= llvm-project-${DISTVERSION}.src > +DISTFILES= llvm-project-${DISTVERSION}.src${EXTRACT_SUFX} > + > +MAINTAINER= greg@unrelenting.technology > +COMMENT= Clang builtins library for WebAssembly System Interface > + > +LICENSE= LLVM2 > +LICENSE_FILE= ${WRKSRC}/llvm/LICENSE.TXT > +LICENSE_NAME= Apache License 2.0 with LLVM Exceptions > +LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept > + > +LLVM_RELEASE= ${DISTVERSION:C/rc.*//} > +LLVM_SUFFIX= ${LLVM_RELEASE:C/\.[0-9]\.[0-9]$//} > +LLVM_PREFIX= ${PREFIX}/llvm${LLVM_SUFFIX} > + > +WASI_SYSROOT= ${LOCALBASE}/share/wasi-sysroot > + > +BUILD_DEPENDS= ${WASI_SYSROOT}/include/stdarg.h:devel/wasi-libc \ > + clang${LLVM_SUFFIX}:devel/llvm${LLVM_SUFFIX} > + > +USES= cmake tar:xz > +NO_ARCH= yes > + > +PLIST_FILES= llvm${LLVM_SUFFIX}/lib/clang/${LLVM_RELEASE}/lib/wasi/libclang_rt.builtins-wasm32.a > + > +CC= ${LOCALBASE}/bin/clang${LLVM_SUFFIX} > +CXX= ${LOCALBASE}/bin/clang++${LLVM_SUFFIX} > + > +CMAKE_SOURCE_PATH= ${WRKSRC}/compiler-rt/lib/builtins > +CMAKE_INSTALL_PREFIX= ${LLVM_PREFIX}/lib/clang/${LLVM_RELEASE} > +CMAKE_ARGS= -DCMAKE_C_COMPILER_WORKS=1 \ > + -DCMAKE_SYSROOT=${WASI_SYSROOT} \ > + -DLLVM_CONFIG_PATH=${LOCALBASE}/bin/llvm-config${LLVM_SUFFIX} \ > + -DCOMPILER_RT_OS_DIR=wasi \ > + -DCOMPILER_RT_BAREMETAL_BUILD=TRUE \ > + -DCOMPILER_RT_DEFAULT_TARGET_TRIPLE=wasm32-wasi \ > + -DCOMPILER_RT_EXCLUDE_ATOMIC_BUILTIN=TRUE > + > +post-build: > + ${LOCALBASE}/bin/llvm-ranlib${LLVM_SUFFIX} ${CONFIGURE_WRKSRC}/lib/wasi/*.a > + > +.include > diff --git a/devel/wasi-compiler-rt13/distinfo b/devel/wasi-compiler-rt13/distinfo > new file mode 100644 > index 000000000000..065a7c5d1fab > --- /dev/null > +++ b/devel/wasi-compiler-rt13/distinfo > @@ -0,0 +1,3 @@ > +TIMESTAMP = 1633602220 > +SHA256 (llvm-project-13.0.0.src.tar.xz) = 6075ad30f1ac0e15f07c1bf062c1e1268c241d674f11bd32cdf0e040c71f2bf3 > +SIZE (llvm-project-13.0.0.src.tar.xz) = 97577404 > diff --git a/devel/wasi-compiler-rt13/pkg-descr b/devel/wasi-compiler-rt13/pkg-descr > new file mode 100644 > index 000000000000..9f4dbd2d452c > --- /dev/null > +++ b/devel/wasi-compiler-rt13/pkg-descr > @@ -0,0 +1,7 @@ > +The LLVM Project is a collection of modular and reusable compiler and > +toolchain technologies. > + > +This port includes Clang builtins for WASI > +(WebAssembly System Interface). > + > +WWW: http://llvm.org/ It fails to compile for me on aarch64, see : https://people.freebsd.org/~manu/wasi-compiler-rt13-13.0.0.log This means no firefox on aarch64. I honestly can't remember the last time I've been able to have everything I need for desktop on aarch64 ... -- Emmanuel Vadot