Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 2 Dec 2021 13:27:45 +0100
From:      Emmanuel Vadot <manu@bidouilliste.com>
To:        Mikael Urankar <mikael@FreeBSD.org>, 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>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 21 Oct 2021 15:46:53 GMT
Mikael Urankar <mikael@FreeBSD.org> wrote:

> The branch main has been updated by mikael:
> 
> URL: https://cgit.FreeBSD.org/ports/commit/?id=5b6ee988cc92269b5fd6d9cc4a48da9f935b93e4
> 
> commit 5b6ee988cc92269b5fd6d9cc4a48da9f935b93e4
> Author:     Greg V <greg@unrelenting.technology>
> AuthorDate: 2021-10-20 06:43:39 +0000
> Commit:     Mikael Urankar <mikael@FreeBSD.org>
> 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 <bsd.port.mk>
> 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 <manu@bidouilliste.com> <manu@FreeBSD.org>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20211202132745.da1f8e61c58e5066f6d62014>