Displaying 20 results from an estimated 40 matches for "int64_c".
Did you mean:
int64_t
2012 Jul 10
0
[LLVMdev] Unable to do even basic Clang tutorial
...rom /home/ubuntu/bin/include/llvm/Support/Host.h:17:
In file included from /home/ubuntu/bin/include/llvm/ADT/StringMap.h:18:
In file included from /home/ubuntu/bin/include/llvm/Support/Allocator.h:18:
/home/ubuntu/bin/include/llvm/Support/MathExtras.h:38:24: error: use of undeclared identifier 'INT64_C'
return N >= 64 || (-(INT64_C(1)<<(N-1)) <= x && x < (INT64_C(1)<<(N-1)));
^
/home/ubuntu/bin/include/llvm/Support/MathExtras.h:38:56: error: use of undeclared identifier 'INT64_C'
return N >= 64 || (-(INT64_C(1)<<(N-1)) &...
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
2012 Jul 10
3
[LLVMdev] Unable to do even basic Clang tutorial
.../include/llvm/Support/Host.h:17:
> In file included from /home/ubuntu/bin/include/llvm/ADT/StringMap.h:18:
> In file included from /home/ubuntu/bin/include/llvm/Support/Allocator.h:18:
> /home/ubuntu/bin/include/llvm/Support/MathExtras.h:38:24: error: use of
> undeclared identifier 'INT64_C'
> return N >= 64 || (-(INT64_C(1)<<(N-1)) <= x && x < (INT64_C(1)<<(N-1)));
> ^
> /home/ubuntu/bin/include/llvm/Support/MathExtras.h:38:56: error: use of
> undeclared identifier 'INT64_C'
> return N >= 64 || (...
2020 Mar 06
1
Re: [PATCH nbdkit 2/4] server: Add nbdkit_shutdown() call.
...or i in 1 2 3; do
> + qemu-img info "nbd:unix:$sock"
qemu-img should support nbd+unix:///?socket=$sock URIs; any reason we
aren't using them here?
> +++ b/tests/test-shutdown-plugin.c
> +
> +static int64_t
> +shutdown_get_size (void *handle)
> +{
> + return INT64_C (1024*1024);
This looks fishy. POSIX says that:
https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/stdint.h.html#tag_13_48
"The argument in any instance of these macros shall be an unsuffixed
integer constant with a value that does not exceed the limits for the
corresponding type.
....
2008 Oct 23
0
[LLVMdev] Windows build broken?
...t apple.com> writes:
> Folks,
>
> 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.
Some googling around indicates that, on Windows, one should
#define INT64_C(val) val##i64
It is present on TableGen/DAGISelEmitter.cpp and TableGen/Record.cpp.
--
Oscar
2008 Oct 23
4
[LLVMdev] Windows build broken?
Folks,
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.
Thanks,
snaroff (a clang developer)
2012 Jul 10
0
[LLVMdev] Unable to do even basic Clang tutorial
.../include/llvm/Support/Host.h:17:
> In file included from /home/ubuntu/bin/include/llvm/ADT/StringMap.h:18:
> In file included from /home/ubuntu/bin/include/llvm/Support/Allocator.h:18:
> /home/ubuntu/bin/include/llvm/Support/MathExtras.h:38:24: error: use of
> undeclared identifier 'INT64_C'
> return N >= 64 || (-(INT64_C(1)<<(N-1)) <= x && x < (INT64_C(1)<<(N-1)));
> ^
> /home/ubuntu/bin/include/llvm/Support/MathExtras.h:38:56: error: use of
> undeclared identifier 'INT64_C'
> return N >= 64 || (...
2016 Feb 08
1
[PATCH] tests: reduce sizes of scratch disks to 2 GB
...b8680..eb45392 100644
--- a/generator/actions.ml
+++ b/generator/actions.ml
@@ -4780,7 +4780,7 @@ C<blocksize> option of C<guestfs_mkfs>." };
tests = [
InitEmpty, Always, TestResult (
[["blockdev_getsz"; "/dev/sda"]],
- "ret == INT64_C(10)*1024*1024*1024/512"), []
+ "ret == INT64_C(2)*1024*1024*1024/512"), []
];
shortdesc = "get total size of device in 512-byte sectors";
longdesc = "\
@@ -4800,7 +4800,7 @@ This uses the L<blockdev(8)> command." };
tests = [...
2012 Jul 10
2
[LLVMdev] Unable to do even basic Clang tutorial
...17:
> > In file included from /home/ubuntu/bin/include/llvm/ADT/StringMap.h:18:
> > In file included from
> /home/ubuntu/bin/include/llvm/Support/Allocator.h:18:
> > /home/ubuntu/bin/include/llvm/Support/MathExtras.h:38:24: error: use of
> > undeclared identifier 'INT64_C'
> > return N >= 64 || (-(INT64_C(1)<<(N-1)) <= x && x <
> (INT64_C(1)<<(N-1)));
> > ^
> > /home/ubuntu/bin/include/llvm/Support/MathExtras.h:38:56: error: use of
> > undeclared identifier 'INT64_C'
&g...
2016 Feb 03
5
[PATCH 0/3] tests: Various fixes for btrfs and aarch64.
These patches fix btrfs on aarch64. You still need btrfs-progs 4.4
which was only released a few days ago.
Rich.
2012 Jul 10
0
[LLVMdev] Unable to do even basic Clang tutorial
...17:
> > In file included from /home/ubuntu/bin/include/llvm/ADT/StringMap.h:18:
> > In file included from
> /home/ubuntu/bin/include/llvm/Support/Allocator.h:18:
> > /home/ubuntu/bin/include/llvm/Support/MathExtras.h:38:24: error: use of
> > undeclared identifier 'INT64_C'
> > return N >= 64 || (-(INT64_C(1)<<(N-1)) <= x && x <
> (INT64_C(1)<<(N-1)));
> > ^
> > /home/ubuntu/bin/include/llvm/Support/MathExtras.h:38:56: error: use of
> > undeclared identifier 'INT64_C'
&g...
2009 May 12
1
[LLVMdev] MSVC cstdint
...t-1_38\boost/cstdint.hpp(349) :
warning C4005: 'INT32_C' : macro redefinition
R:\SDKs\llvm\trunk_VC8_building\include\llvm/Support/DataTypes.h(120)
: see previous definition of 'INT32_C'
R:\SDKs\boost\built_head\include\boost-1_38\boost/cstdint.hpp(350) :
warning C4005: 'INT64_C' : macro redefinition
R:\SDKs\llvm\trunk_VC8_building\include\llvm/Support/DataTypes.h(122)
: see previous definition of 'INT64_C'
R:\SDKs\boost\built_head\include\boost-1_38\boost/cstdint.hpp(355) :
warning C4005: 'UINT8_C' : macro redefinition
R:\SDKs\llvm\trun...
2012 Jul 10
2
[LLVMdev] Unable to do even basic Clang tutorial
...om
> /home/ubuntu/bin/include/llvm/ADT/StringMap.h:18:
> > > In file included from
> > /home/ubuntu/bin/include/llvm/Support/Allocator.h:18:
> > > /home/ubuntu/bin/include/llvm/Support/MathExtras.h:38:24: error:
> use of
> > > undeclared identifier 'INT64_C'
> > > return N >= 64 || (-(INT64_C(1)<<(N-1)) <= x && x <
> > (INT64_C(1)<<(N-1)));
> > > ^
> > > /home/ubuntu/bin/include/llvm/Support/MathExtras.h:38:56: error:
> use of
> > > undecla...
2011 Jan 28
0
[LLVMdev] Clang compile error
...lvm/Support/DataTypes.h:49:3: error: #error "Must #define
__STDC_CONSTANT_MACROS before " "#including System/DataTypes.h"
llvm/include/llvm/Support/MathExtras.h: In function ‘bool
llvm::isInt(int64_t)’:
llvm/include/llvm/Support/MathExtras.h:38: error: there are no arguments to
‘INT64_C’ that depend on a template parameter, so a declaration of ‘INT64_C’
must be available
llvm/include/llvm/Support/MathExtras.h:38: error: (if you use
‘-fpermissive’, G++ will accept your code, but allowing the use of an
undeclared name is deprecated)
llvm/include/llvm/Support/MathExtras.h:38: error:...
2016 Feb 03
0
[PATCH 1/3] tests: Increase the size of the /dev/sda and /dev/sdb test devices.
...tion of C<guestfs_mkfs>." };
proc_nr = Some 62;
tests = [
InitEmpty, Always, TestResult (
- [["blockdev_getsz"; "/dev/sda"]], "ret == 1024000"), []
+ [["blockdev_getsz"; "/dev/sda"]],
+ "ret == INT64_C(10)*1024*1024*1024/512"), []
];
shortdesc = "get total size of device in 512-byte sectors";
longdesc = "\
@@ -4798,7 +4799,8 @@ This uses the L<blockdev(8)> command." };
proc_nr = Some 63;
tests = [
InitEmpty, Always, TestResult (
-...
2008 Oct 23
2
[LLVMdev] Windows build broken?
...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.
>
> Some googling around indicates that, on Windows, one should
r/Windows/MSVC++
This patch brings the build fordward:
Index: utils/TableGen/Record.cpp
===================================================================
--- utils/TableGen/Rec...
2010 May 08
1
[LLVMdev] Cannot Compile through an LLVM Pass
...ocal/include/llvm/Argument.h:18,
from /usr/local/include/llvm/Function.h:24,
from Hello.cpp:17:
/usr/local/include/llvm/Support/MathExtras.h: In function ‘bool
llvm::isInt(int64_t)’:
/usr/local/include/llvm/Support/MathExtras.h:57: error: there are no
arguments to ‘INT64_C’ that depend on a template parameter, so a declaration
of ‘INT64_C’ must be available
/usr/local/include/llvm/Support/MathExtras.h:57: error: (if you use
‘-fpermissive’, G++ will accept your code, but allowing the use of an
undeclared name is deprecated)
/usr/local/include/llvm/Support/MathExtras.h...
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 before along
with a patch, guess no one ever fixed it, hence consider this a poke.
The above lines should...
2010 Sep 07
2
[LLVMdev] llvm-config error
...32/../../../include/llvm/Module.h:18,
from main.cpp:12:
/mingw/lib/gcc/mingw32/../../../include/llvm/Support/MathExtras.h: In
function 'bool llvm::isInt(int64_t)':
/mingw/lib/gcc/mingw32/../../../include/llvm/Support/MathExtras.h:57: error:
there are no arguments to 'INT64_C' that depend on a template parameter, so
a declaration of 'INT64_C' must be available
/mingw/lib/gcc/mingw32/../../../include/llvm/Support/MathExtras.h:57: note:
(if you use '-fpermissive', G++ will accept your code, but allowing the use
of an undeclared name is deprecated)
/m...
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