I tried to build m-c today with clang 5.0 and icecream using the following 
mozconfig:


```
mk_add_options MOZ_MAKE_FLAGS="-j$(icecc-jobs)"

mk_add_options 'export CCACHE_PREFIX=icecc'
mk_add_options "export RUSTC_WRAPPER=sccache" 

export CC=clang
export CXX=clang++

ac_add_options --with-ccache

```

The result is an error during config:

```
 0:02.58 checking the target C compiler version... 5.0.0
 0:05.91 checking the target C compiler works... no
 0:05.91 DEBUG: Creating `/tmp/conftest.oIC8nq.c` with content:
 0:05.91 DEBUG: |
 0:05.91 DEBUG: | int
 0:05.91 DEBUG: | main(void)
 0:05.91 DEBUG: | {
 0:05.91 DEBUG: |
 0:05.91 DEBUG: |   ;
 0:05.91 DEBUG: |   return 0;
 0:05.91 DEBUG: | }
 0:05.91 DEBUG: Executing: `/usr/bin/ccache /usr/bin/clang -std=gnu99 -c 
/tmp/conftest.oIC8nq.c`
 0:05.91 DEBUG: The command returned non-zero exit status 127.
 0:05.91 DEBUG: Its error output was:
 0:05.91 DEBUG: | usr/bin/clang: error while loading shared libraries: 
libLLVM-5.0.so: cannot open shared object file: No such file or directory
 0:05.91 DEBUG: | ICECC[8371] 17:45:53: Compiled on 10.251.24.73
 0:05.91 ERROR: Failed compiling a simple C source with the target C compiler
 0:05.94 *** Fix above errors and then restart with\
 0:05.94                "/usr/bin/make -f client.mk build"
 0:05.94 make[2]: *** [/projects/mozilla-unified/client.mk:2
```

I know I can build using gcc+icecream or using clang without icecream, but does 
anyone know how to combine clang and icecream to make it work?

Thanks,
zb.
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to