You are not logged in.

#1 2019-02-04 11:58:45

mass_t
Member
Registered: 2015-04-21
Posts: 57

[Request] llgo

llgo is a Go (http://golang.org) frontend for LLVM, written in Go.

https://github.com/llvm-mirror/llgo

Offline

#2 2019-02-06 17:54:07

loqs
Member
Registered: 2014-03-06
Posts: 17,197

Re: [Request] llgo

mass_t this seems a simple PKGBUILD to create as a first PKGBUILD see https://git.archlinux.org/svntogit/comm … ages/tint2 for a cmake PKGBUILD.
See VCS_package_guidelines#The_pkgver()_function and use git+https://github.com/llvm-mirror/llgo.git as the source.
As there are currently no releases / tags I am assuming this will be a -git package.

Offline

#3 2019-02-08 10:11:15

mass_t
Member
Registered: 2015-04-21
Posts: 57

Re: [Request] llgo

loqs wrote:

mass_t this seems a simple PKGBUILD to create as a first PKGBUILD see https://git.archlinux.org/svntogit/comm … ages/tint2 for a cmake PKGBUILD.
See VCS_package_guidelines#The_pkgver()_function and use git+https://github.com/llvm-mirror/llgo.git as the source.
As there are currently no releases / tags I am assuming this will be a -git package.

What I do wrong?
PKGBUILD https://pastebin.com/fTz9wEMR

==> Making package: llgo 1-1 (Fri Feb  8 13:08:01 2019)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Updating llgo git repo...
Fetching origin
==> Validating source files with sha256sums...
    llgo ... Skipped
==> Extracting sources...
  -> Creating working copy of llgo git repo...
Reset branch 'makepkg'
==> Removing existing $pkgdir/ directory...
==> Starting build()...
CMake Error at CMakeLists.txt:12 (llvm_add_go_executable):
  Unknown CMake command "llvm_add_go_executable".


CMake Warning (dev) in CMakeLists.txt:
  No cmake_minimum_required command is present.  A line of code such as

    cmake_minimum_required(VERSION 3.13)

  should be added at the top of the file.  The version specified may be lower
  if you wish to support older CMake versions for this project.  For more
  information run "cmake --help-policy CMP0000".
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Configuring incomplete, errors occurred!
See also "/tmp/llgo/src/build/CMakeFiles/CMakeOutput.log".
==> ERROR: A failure occurred in build().
    Aborting...

Offline

#4 2019-02-08 15:30:55

loqs
Member
Registered: 2014-03-06
Posts: 17,197

Re: [Request] llgo

The instructions from https://github.com/llvm-mirror/llgo specify using https://github.com/llvm/llvm-project.git as the repository which I missed.  This does mean building a custom llvm

pkgname=llgo-git
pkgver=1
pkgrel=1
pkgdesc='LLVM frontend for Go'
arch=('x86_64')
url='https://github.com/llvm-mirror/llgo'
license=('GPL2')
depends=('go')
makedepends=('cmake' 'git' 'python' 'ninja')
source=("git+https://github.com/llvm/llvm-project.git")
sha256sums=('SKIP')

build() {
  mkdir -p build
  cd build
  cmake ../llvm-project/llvm -G Ninja \
    -DCMAKE_INSTALL_PREFIX=/usr -DLLVM_ENABLE_PROJECTS='clang;llgo'
  ninja
}

package() {
  DESTDIR="$pkgdir" ninja -C build install
}

# vim: ts=2 sw=2 et:

Edit:
The above started building but that is as far as I checked.

Last edited by loqs (2019-02-08 15:53:19)

Offline

Board footer

Powered by FluxBB