[cfe-dev] Error while compiling llvm 3.3 with clang

Richard Smith richard at metafoo.co.uk
Thu Aug 22 21:11:53 PDT 2013


>From your compilation log:

configure: [...] 'CFLAGS=-march=core2 -fPIC *-DPIC* -pipe *-DPIC* -fPIC
-O3' [...] 'CPPFLAGS=' 'CXX=g++' 'CXXFLAGS=-march=core2 -fPIC *-DPIC* -pipe
*-DPIC* -fPIC -O3'

The line where the build is failing:

bool PIC = PIE || getToolChain().isPICDefault();

Take the -DPIC out of your CFLAGS and CXXFLAGS and the problem should go
away.


On Wed, Aug 21, 2013 at 6:20 AM, Eithrial <sekstus.empiryk at gmail.com> wrote:

> I'm using gcc 4.6.4, but same error shows up when I'm compiling with
> precompiled llvm/clang 3.3 so it's source have to be somewhere else.
>
> Error looks like that:
>
>
> Full compilation log can be found there http://pastebin.com/asVzvqyv
>
>
>
> --
> View this message in context:
> http://clang-developers.42468.n3.nabble.com/Error-while-compiling-llvm-3-3-with-clang-tp4034012.html
> Sent from the Clang Developers mailing list archive at Nabble.com.
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20130822/41c8148f/attachment.html>


More information about the cfe-dev mailing list