Problems compiling gollvm macos

43 views
Skip to first unread message

Guido Chari

unread,
Jun 19, 2020, 2:19:10 PM6/19/20
to golang-nuts
Hi,

I am having problems to compile gollvm. 
I am following the instructions in https://go.googlesource.com/gollvm/, and I am running a macos mojave.
I can not complete the cmake. Below the beggining of the error log.
Any pointers?

```
Checking whether the ASM compiler is GNU using "--version" did not match "(GNU assembler)|(GCC)|(Free Software Foundation)":
Apple LLVM version 10.0.1 (clang-1001.0.46.4)
Target: x86_64-apple-darwin18.7.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
Checking whether the ASM compiler is Clang using "--version" did not match "(clang version)":
Apple LLVM version 10.0.1 (clang-1001.0.46.4)
Target: x86_64-apple-darwin18.7.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
Determining if the include file link.h exists failed with the following output:
Change Dir: /Users/guidochari/Documents/Projects/Testing/Symbolic Execution/workarea/build-debug/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/local/bin/ninja cmTC_e14c9 && [1/2] Building C object CMakeFiles/cmTC_e14c9.dir/CheckIncludeFile.c.o
FAILED: CMakeFiles/cmTC_e14c9.dir/CheckIncludeFile.c.o
/Library/Developer/CommandLineTools/usr/bin/cc   -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk -o CMakeFiles/cmTC_e14c9.dir/CheckIncludeFile.c.o   -c CheckIncludeFile.c
CheckIncludeFile.c:1:10: fatal error: 'link.h' file not found
#include <link.h>
         ^~~~~~~~
1 error generated.
ninja: build stopped: subcommand failed.



Determining if the include file valgrind/valgrind.h exists failed with the following output:
Change Dir: /Users/guidochari/Documents/Projects/Testing/Symbolic Execution/workarea/build-debug/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/local/bin/ninja cmTC_6dcf0 && [1/2] Building C object CMakeFiles/cmTC_6dcf0.dir/CheckIncludeFile.c.o
FAILED: CMakeFiles/cmTC_6dcf0.dir/CheckIncludeFile.c.o
/Library/Developer/CommandLineTools/usr/bin/cc   -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk -o CMakeFiles/cmTC_6dcf0.dir/CheckIncludeFile.c.o   -c CheckIncludeFile.c
CheckIncludeFile.c:1:10: fatal error: 'valgrind/valgrind.h' file not found
#include <valgrind/valgrind.h>
         ^~~~~~~~~~~~~~~~~~~~~
1 error generated.
ninja: build stopped: subcommand failed.
```

Cheers,
Guido.

Than McIntosh

unread,
Jun 19, 2020, 2:23:51 PM6/19/20
to Guido Chari, golang-nuts
Hello,
Gollvm is not support for MacOS at the moment-- the runtime (shared with gccgo) doesn't target MacOS.   
Cheers, Than


--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/bd6687ed-c864-44e6-81ef-37dbd16934d2o%40googlegroups.com.

Guido Chari

unread,
Jun 19, 2020, 3:13:12 PM6/19/20
to golang-nuts
Hi Than,

Thanks a lot for the prompt response.

I create an ubuntu docker container, running gcc 9.3 and, I face exactly the same issue. That is also documented here: https://github.com/golang/go/issues/38728, and closed.

Cheers,
Guido.
To unsubscribe from this group and stop receiving emails from it, send an email to golan...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages