[go-llvm] Problem compiling in docker

46 views
Skip to first unread message

Guido Chari

unread,
Jun 22, 2020, 9:24:15 AM6/22/20
to golang-nuts
Hi,

I tried to compile under macos and I was told it is not supported.

Now I created a docker container with a fresh ubuntu 20.04. 
When executing the CMake command following the guidelines I got something very similar to what I had get in macos:

`
Determining if the include file malloc/malloc.h exists failed with the following output:
Change Dir: /root/workarea/build-debug/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/ninja cmTC_86a7a && [1/2] Building C object CMakeFiles/cmTC_86a7a.dir/CheckIncludeFile.c.o
FAILED: CMakeFiles/cmTC_86a7a.dir/CheckIncludeFile.c.o
/usr/bin/cc    -o CMakeFiles/cmTC_86a7a.dir/CheckIncludeFile.c.o   -c CheckIncludeFile.c
CheckIncludeFile.c:1:10: fatal error: malloc/malloc.h: No such file or directory
    1 | #include <malloc/malloc.h>
      |          ^~~~~~~~~~~~~~~~~
compilation terminated.
ninja: build stopped: subcommand failed.
`

/usr/bin/cc -v -> gcc version 9.3.0 (Ubuntu 9.3.0-10ubuntu2)

Any ideas on a workaround?

Best,
Guido.
Reply all
Reply to author
Forward
0 new messages