Displaying 20 results from an estimated 3000 matches similar to: "[LLVMdev] including llvm data structures in eclipse"
2011 Jan 28
0
[LLVMdev] Clang compile error
I get compile errors for just including the "clang/Basic/Diagnostic.h"
header file. Is that expected? Should I include anything else? Here are the
errors:
$ g++ main.cpp -I llvm/tools/clang/include -I llvm/include
In file included from llvm/include/llvm/Support/PointerLikeTypeTraits.h:18,
from
llvm/tools/clang/include/clang/Basic/SourceLocation.h:17,
2010 May 08
1
[LLVMdev] Cannot Compile through an LLVM Pass
hey guys. Now I am following the "Writing an LLVM Pass", but can't work it
out. See what I have done.
After completing the exact Makefile and source code under
lib/Transforms/Hello, I typed the command "make" instead of "gmake" , then
it generated silently "Hello.o" in Debug. But, next, when I tried to
generate "hello.bc" by the command
2012 Jul 10
0
[LLVMdev] Unable to do even basic Clang tutorial
Hi Ashok,
I created a new Ubuntu 12.04 virtual machine and followed directions except that I know use your cmake command instead of configure, and I got the error below.
Any help is very much appreciated.
$ /home/ubuntu/bin/bin/clang++ -I /home/ubuntu/bin/include/ tutorial1.cpp
In file included from tutorial1.cpp:5:
In file included from /home/ubuntu/bin/include/llvm/Support/raw_ostream.h:17:
2010 Sep 07
2
[LLVMdev] llvm-config error
Hi
I’m having a few problems building the kaleidoscope example (chapter 3)
under MinGW. To build the example I use as recommended
g++ -g -O3 toy.cpp `llvm-config --cppflags --ldflags --libs core` -o toy
but get the following error
sh: llvm-config: command not found
Indeed in my “\llvm-2.7\tools\llvm-config\” build directory there is no
“Release” subdirectory as I would expect (only
2012 Jul 10
0
[LLVMdev] Unable to do even basic Clang tutorial
OK. Thanks. I now get the following error (which appears to be a problem w/ the tutorial itself?):
$ /home/ubuntu/bin/bin/clang++ -I /home/ubuntu/bin/include/ -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS tutorial1.cpp/tmp/tutorial1-LQ71fW.o: In function `main':
tutorial1.cpp:(.text+0x42): undefined reference to `llvm::outs()'
tutorial1.cpp:(.text+0x72): undefined reference to
2012 Jul 10
3
[LLVMdev] Unable to do even basic Clang tutorial
Add -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS to your compilation flag.
On 7/10/2012 11:23 AM, NY Knicks Fan wrote:
> Hi Ashok,
>
> I created a new Ubuntu 12.04 virtual machine and followed directions
> except that I know use your cmake command instead of configure, and I
> got the error below.
>
> Any help is very much appreciated.
>
>
> $
2012 Jul 10
0
[LLVMdev] Unable to do even basic Clang tutorial
Hi Ashok,
$ cd bin/bin
$ ./llvm-config --ldflags --libs
-L/home/ubuntu/bin/lib -ldl -lpthread
-lLLVMAsmParser -lLLVMTableGen -lLLVMDebugInfo -lLLVMX86Disassembler -lLLVMX86AsmParser -lLLVMX86CodeGen -lLLVMSelectionDAG -lLLVMAsmPrinter -lLLVMX86Desc -lLLVMX86Info -lLLVMX86AsmPrinter -lLLVMX86Utils -lLLVMJIT -lLLVMMCDisassembler -lLLVMMCParser -lLLVMInstrumentation -lLLVMInterpreter
2012 Jul 10
2
[LLVMdev] Unable to do even basic Clang tutorial
You will need to link to the LLVM/clang libraries. To get the correct
flags, you can run:
./llvm-config --ldflags --libs
and use the flags reported.
On 7/10/2012 11:35 AM, NY Knicks Fan wrote:
> OK. Thanks. I now get the following error (which appears to be a
> problem w/ the tutorial itself?):
>
> $ /home/ubuntu/bin/bin/clang++ -I /home/ubuntu/bin/include/
>
2012 Jul 10
2
[LLVMdev] Unable to do even basic Clang tutorial
You need to link in the libclang* as well.
On 7/10/2012 1:22 PM, NY Knicks Fan wrote:
> Hi Ashok,
>
> $ cd bin/bin
> $ ./llvm-config --ldflags --libs
> -L/home/ubuntu/bin/lib -ldl -lpthread
> -lLLVMAsmParser -lLLVMTableGen -lLLVMDebugInfo -lLLVMX86Disassembler
> -lLLVMX86AsmParser -lLLVMX86CodeGen -lLLVMSelectionDAG -lLLVMAsmPrinter
> -lLLVMX86Desc -lLLVMX86Info
2009 May 12
1
[LLVMdev] MSVC cstdint
In the llvm file include/llvm/Support/DataTypes.h (.in/.cmake), for
MSVCit defines some macros that are defined in the cstdint.hpp file in
boost (and boost does it better, detailed below):
The basic error is:
R:\SDKs\boost\built_head\include\boost-1_38\boost/cstdint.hpp(347) :
warning C4005: 'INT8_C' : macro redefinition
2009 Dec 07
2
[LLVMdev] Macro redefinitions
In DataTypes.h starting on line 121 are these lines:
#define INT8_C(C) C
#define UINT8_C(C) C
#define INT16_C(C) C
#define UINT16_C(C) C
#define INT32_C(C) C
#define UINT32_C(C) C ## U
#define INT64_C(C) ((int64_t) C ## LL)
#define UINT64_C(C) ((uint64_t) C ## ULL)
They are conflicting with the cstdint when we have updated headers in
our MSVC build. I could have sworn I talked about this
2020 Mar 06
1
Re: [PATCH nbdkit 2/4] server: Add nbdkit_shutdown() call.
On 3/4/20 9:17 AM, Richard W.M. Jones wrote:
> Plugins and filters may call this to initiate an asynchronous shutdown
> of the server. This would only be used in the connected phase —
> plugins should still call exit(3) directly for configuration failure.
>
> It is equivalent to sending a kill signal to self, but it's cleaner to
> have an API for this and better for
2012 Jul 10
2
[LLVMdev] Unable to do even basic Clang tutorial
Looks like your make/install is incomplete wrt clang. I follow the
instuctions for checking out the sources but build using cmake instead
of configure:
> cmake -G ""Unix Makefiles" -DLLVM_TARGETS_TO_BUILD="X86" -DCMAKE_BUILD_TYPE="Release" -DCMAKE_INSTALL_PREFIX="../bin" ../llvm
> make install
This builds and installs llvm+clang in the bin
2011 Feb 04
1
[LLVMdev] PareAssemblyFile returning "expected top-level entity" error message
Hello all,
I am trying to generate a module object using something like this: (to use for code analysis)
Module *topModule;
SMDiagnostic error;
topModule = ParseAssemblyFile("code.s", error, getGlobalContext());
displayErrorInfo(error);
void displayErrorInfo(SMDiagnostic& err)
{
std::string errFileName = err.getFilename();
std::string errMsg =
2016 Feb 03
0
[PATCH 1/3] tests: Increase the size of the /dev/sda and /dev/sdb test devices.
Previously these were rather small - just 500 MB. This is too small
to create a btrfs device on aarch64 (where page size may be 64K), and
barely enough even on x86-64. This change makes both these devices
10 GB, and adjusts a few tests so they continue to pass.
---
docs/guestfs-hacking.pod | 4 ++--
generator/actions.ml | 17 +++++++++++------
tests/c-api/tests-main.c | 6 +++---
3 files
2010 Apr 19
0
[LLVMdev] Problem with the installation of llvm gcc
You need to manually copy the llvm-gcc front-end binaries to somewhere
in your path. Alternatively, you can download the clang front-end and
start using that instead.
On Mon, Apr 19, 2010 at 10:58 AM, khaled hamidouche
<khaledhamidouche at gmail.com> wrote:
> Hello
>
> I'm trying to install LLVM and LLVM GCC
> so I check out the source of llvm and llvm-gcc-4.2 from the svn
2010 Apr 19
4
[LLVMdev] Problem with the installation of llvm gcc
Hello
I'm trying to install LLVM and LLVM GCC
so I check out the source of llvm and llvm-gcc-4.2 from the svn
I flow the instructions of this page
http://llvm.org/docs/GCCFEBuildInstrs.html
I did the installation of LLVM and LLVM GCC well but the problem is there is
no llvm-gcc at the end of instalation !!! ??
I mean in the /usr/local/bin/ there are all the commands of llvm (lli llc
llvmc
2008 Oct 23
2
[LLVMdev] Windows build broken?
Óscar Fuentes <ofv at wanadoo.es> writes:
>> It appears the Windows build has regressed over the past week.
>>
>> The build fails quite early (during the "Performing TableGenStep"
>> phase).
>>
>> Any help/pointers would be appreciated.
>
> It breaks for me because the usage of INT64_C, which was introduced on
> r57663 and 57668.
>
2008 Oct 23
0
[LLVMdev] Windows build broken?
I have updated "DataTypes.h.in", could you do a svn update and see if it
works ?
-Argiris
Óscar Fuentes wrote:
> Óscar Fuentes <ofv at wanadoo.es> writes:
>
>
>>> It appears the Windows build has regressed over the past week.
>>>
>>> The build fails quite early (during the "Performing TableGenStep"
>>> phase).
2010 Mar 06
0
[LLVMdev] [PATCH]: MSVC build enhancements
José Fonseca <jose.r.fonseca at gmail.com> writes:
> Attached are two patches with MSVC build enchancements.
>
> They are quite trivial, but were necessary to correctly link LLVM
> libraries with Mesa3D on Windows.
[snip]
> add_llvm_definitions( -D_SCL_SECURE_NO_DEPRECATE )
> + add_llvm_definitions( -D_SECURE_SCL=0 )
With this setting the default LLVM build becomes