Displaying 10 results from an estimated 10 matches for "clang_src".
2014 Feb 25
2
[LLVMdev] configure with clang vs gcc
...ind is not available.
>>
>> Why the difference?
>>
> How are you configuring?
>
> -eric
>
(You can see our wiki page
https://dmz-portal.mips.com/wiki/Build_mips_clang_llvm )
Basically:
$ OPT="-target mipsel-linux-gnu -mips32r2 -gcc-toolchain ${MIPS}"
$ $CLANG_SRC/configure \
--prefix=$CLANG_INSTALL \
--build=i686-pc-linux-gnu \
--host=mipsel-linux-gnu \
--enable-optimized \ # turn on optimization
"--with-extra-options=${OPT}" \
"--with-extra-ld-options=${OPT}" \
CC=$CLANG_TC/bin/clang \...
2014 Feb 25
2
[LLVMdev] configure with clang vs gcc
...g?
>>
>> -eric
>>
>>
>> (You can see our wiki page
>> https://dmz-portal.mips.com/wiki/Build_mips_clang_llvm )
>>
>> Basically:
>>
>> $ OPT="-target mipsel-linux-gnu -mips32r2 -gcc-toolchain ${MIPS}"
>>
>>
>> $ $CLANG_SRC/configure \
>> --prefix=$CLANG_INSTALL \
>> --build=i686-pc-linux-gnu \
>> --host=mipsel-linux-gnu \
>> --enable-optimized \ # turn on optimization
>> "--with-extra-options=${OPT}" \
>> "--with-extra-l...
2017 Aug 04
3
Cross compiling C++ program
...n how it was built), and another from the old HP
> libunwind project (different codebase, but same name as the llvm one).
> 3C) A c++ standard library. llvm provides this as libcxx. There's also
> libstdc++.
>
>
> To start with, I recommend using the cmake cache in:
> $clang_src/cmake/caches/BaremetalARM.cmake. You'll want the stuff in it that
> references the armv7em-none-eabi triple. To use it, do something like:
>
> $ cmake -G <build system>
> -DBAREMETAL_ARMV7EM_SYSROOT=path/to/your/v7em/sysroot -C
> path/to/BaremetalARM.cmake [other CMake Opt...
2017 Aug 02
2
Cross compiling C++ program
On Wed, Aug 02, 2017 at 05:48:20PM -0600, Jonathan Roelofs wrote:
> I strongly recommend against using the host's headers when cross compiling.
> You need to either find or build an arm-none-eabi sysroot, and use the
> --sysroot= flag.
>
>
> Jon
OK, that's a start. I found https://www.llvm.org/docs/HowToCrossCompileLLVM.html. Is it enough for --sysroot? In case it is,
2011 Dec 06
2
[LLVMdev] Assertion `PI && "Expected required passes to be initialized"' failed for AliasAnalysis.
...ot;data race detection with ThreadSanitizer",
2678 false, false)
2679
However when I run Clang with my pass enabled, I get the following error:
$ clang_build_Linux/Release+Asserts/bin/clang -fthread-sanitizer -c t.c
CREATE
clang: /usr/local/google/tsan-llvm/data-race-test/clang_src/lib/VMCore/PassManager.cpp:634:
void llvm::PMTopLevelManager::schedulePass(llvm::Pass*): Assertion `PI
&& "Expected required passes to be initialized"' failed.
0 clang 0x0000000001d1757f
1 clang 0x0000000001d197f2
2 libpthread.so.0 0x00007fe8a157d8f0
3...
2011 Dec 06
0
[LLVMdev] Assertion `PI && "Expected required passes to be initialized"' failed for AliasAnalysis.
...tizer",
> 2678 false, false)
> 2679
>
>
> However when I run Clang with my pass enabled, I get the following error:
> $ clang_build_Linux/Release+Asserts/bin/clang -fthread-sanitizer -c t.c
> CREATE
> clang: /usr/local/google/tsan-llvm/data-race-test/clang_src/lib/VMCore/PassManager.cpp:634:
> void llvm::PMTopLevelManager::schedulePass(llvm::Pass*): Assertion `PI
> && "Expected required passes to be initialized"' failed.
> 0 clang 0x0000000001d1757f
> 1 clang 0x0000000001d197f2
> 2 libpthread.so...
2017 Aug 04
3
Cross compiling C++ program
...gt; libunwind project (different codebase, but same name as the llvm one).
>>> 3C) A c++ standard library. llvm provides this as libcxx. There's also
>>> libstdc++.
>>>
>>>
>>> To start with, I recommend using the cmake cache in:
>>> $clang_src/cmake/caches/BaremetalARM.cmake. You'll want the stuff in it that
>>> references the armv7em-none-eabi triple. To use it, do something like:
>>>
>>> $ cmake -G <build system>
>>> -DBAREMETAL_ARMV7EM_SYSROOT=path/to/your/v7em/sysroot -C
>>> pa...
2014 Feb 25
3
[LLVMdev] configure with clang vs gcc
...ee our wiki page
>>>> https://dmz-portal.mips.com/wiki/Build_mips_clang_llvm )
>>>>
>>>> Basically:
>>>>
>>>> $ OPT="-target mipsel-linux-gnu -mips32r2 -gcc-toolchain ${MIPS}"
>>>>
>>>>
>>>> $ $CLANG_SRC/configure \
>>>> --prefix=$CLANG_INSTALL \
>>>> --build=i686-pc-linux-gnu \
>>>> --host=mipsel-linux-gnu \
>>>> --enable-optimized \ # turn on optimization
>>>> "--with-extra-options=${OP...
2017 Aug 04
2
Cross compiling C++ program
...nd project (different codebase, but same name as the llvm one).
> > > 3C) A c++ standard library. llvm provides this as libcxx. There's also
> > > libstdc++.
> > >
> > >
> > > To start with, I recommend using the cmake cache in:
> > > $clang_src/cmake/caches/BaremetalARM.cmake. You'll want the stuff in it that
> > > references the armv7em-none-eabi triple. To use it, do something like:
> > >
> > > $ cmake -G <build system>
> > > -DBAREMETAL_ARMV7EM_SYSROOT=path/to/your/v7em/sysroot -C
> >...
2014 Feb 25
3
[LLVMdev] configure with clang vs gcc
I'm trying to build a native hosted mips compiler on ubuntu x86.
When I run configure with clang/llvm as the compiler, configure thinks
that zlib is present and that valgrind is.
But later on the make it cannot find zlib.h. If I tell it to not do
compression, then it does not look for
zlib.h but dies looking for valgrind, even if I tell it to disable-valgrind.
If I configure using