-
-
Save kat-co/a8c85b6d7c1cbb84f19e7f3516bebb73 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(define-module (upstream packages cpp) | |
#:use-module ((guix licenses) #:prefix license:) | |
#:use-module (guix packages) | |
#:use-module (guix download) | |
#:use-module (guix git-download) | |
#:use-module (guix build-system cmake) | |
#:use-module (guix build-system gnu) | |
#:use-module (gnu packages llvm) | |
#:use-module (gnu packages gcc) | |
#:use-module (gnu packages libffi)) | |
(define-public c2ffi | |
(let ((branch "llvm-8.0.0") ; Update as LLVM version increases | |
(commit "9e49eb86c65729d811117b6c75d9253f6bbc9881") | |
(revision "1")) | |
(package | |
(name "c2ffi") | |
(version (git-version "0.0.0" revision commit)) | |
(source | |
(origin | |
(method git-fetch) | |
(uri (git-reference | |
(url "https://github.com/rpav/c2ffi") | |
(commit commit))) | |
(sha256 | |
(base32 | |
"1ia2ag917zsnrjxmj89dlc1f6cbbx1r4yxp7bgfq9j73fva0r88h")))) | |
(build-system cmake-build-system) | |
(arguments | |
`(#:build-type "Release")) | |
(inputs | |
`(("llvm" ,llvm-8) | |
("clang" ,clang))) | |
(home-page "https://github.com/rpav/c2ffi") | |
(synopsis "A clang based FFI wrapper generator") | |
(description | |
"") | |
(license license:lgpl2.1)))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
And here's the error I get:
I can see that the author is attempting to fix problems with just building this:
I have tried using other commits, and I get different errors, but errors none the less.
If I look at that library, I see the undefined symbols:
ParseSectionSpecifier
is defined here: https://llvm.org/doxygen/MCSectionMachO_8cpp_source.html#l00182StringRef
is defined here: http://llvm.org/doxygen/StringRef_8h_source.html#l00048How do I tell which symbol is missing?
The README for c2ffi has some pointers: https://github.com/rpav/c2ffi/blob/llvm-8.0.0/README.md#notes but I'm not sure what to make of this.