[llvm-dev] [Firefox] How to compile firefox with Clang for Linux

Pengfei Sun via llvm-dev llvm-dev at lists.llvm.org
Tue Feb 16 07:24:36 PST 2016


Hi Vasileios,

Thanks for your suggestion. I will go to Mozilla's IRC channels to ask for
help.

My errors are as following:
0:00.84 configure:3537: checking whether the C compiler
(/home/sun/project/obfuscator/build/bin/clang -fsanitize=address
-Dxmalloc=myxmalloc -fPIC -fsanitize=address) works
 0:00.84 configure:3553: /home/sun/project/obfuscator/build/bin/clang -o
conftest -fsanitize=address -Dxmalloc=myxmalloc -fPIC  -fsanitize=address
conftest.c  1>&5
 0:00.84 /home/sun/project/mozilla-central/configure: 1: eval:
/home/sun/project/obfuscator/build/bin/clang: Permission denied
 0:00.84 configure: failed program was:
 0:00.84
 0:00.84 #line 3548 "configure"
 0:00.84 #include "confdefs.h"
 0:00.84
 0:00.84 main(){return(0);}
 0:00.84 configure: error: installation or configuration problem: C
compiler cannot create executables.
 0:00.84 *** Fix above errors and then restart with\
 0:00.84                "/usr/bin/make -f client.mk build"
 0:00.84 make[2]: *** [configure] Error 1
 0:00.84 make[1]: ***
[/home/sun/project/mozilla-central/objdir-ff-asan/Makefile] Error 2
 0:00.85 make: *** [build] Error 2


Best Regards,
Pengfei

On Tue, Feb 16, 2016 at 10:05 AM, Vasileios Kalintiris <
Vasileios.Kalintiris at imgtec.com> wrote:

> Hi Pengfei,
>
> I'm pretty sure that some of the Mozilla devs are building Firefox with
> clang on Linux. You'll get better (as in firefox-specific) advice at the
> Mozilla's IRC channels (https://wiki.mozilla.org/IRC) given that the
> errors happen during configuration-time.
>
> - Vasileios
>
> ------------------------------
> *From:* llvm-dev [llvm-dev-bounces at lists.llvm.org] on behalf of Pengfei
> Sun via llvm-dev [llvm-dev at lists.llvm.org]
> *Sent:* 16 February 2016 14:52
> *To:* llvm-dev at lists.llvm.org
> *Subject:* [llvm-dev] [Firefox] How to compile firefox with Clang for
> Linux
>
> Hi All,
>
> I am trying to build firefox with clang in Ubuntu 14.04 64bit. There is
> always configure failed errors problem. I follow compiling firefox with
> clang on linux
> <https://developer.mozilla.org/en-US/docs/Compiling_Firefox_With_Clang_On_Linux>.
> I add "export CC=clang export CXX=clang++" to mozconfig file.
>
> I wonder whether you guys have built firefox with clang in Linux. Could
> you give me some tips how to build the firefox with clang.
>
>
> Best Regards,
> Pengfei
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160216/2dc2a5fc/attachment.html>


More information about the llvm-dev mailing list