Displaying 20 results from an estimated 2000 matches similar to: "[LLVMdev] How to solve missing srand48/lrand48/drand48?"
2004 Oct 19
0
[LLVMdev] How to solve missing srand48/lrand48/drand48?
Morten,
have a look at the
http://mail.cs.uiuc.edu/pipermail/llvmdev/2004-September/002235.html
thread...
On Oct 19, 2004, at 2:40 PM, Morten Ofstad wrote:
> These calls are in ExternalCalls.cpp, they are platform dependent
> calls, so maybe llvm should consider including it's own implementation
> of a random number generator? For the time being I just replaced with
> calls
2004 Oct 19
3
[LLVMdev] How to solve missing srand48/lrand48/drand48?
These calls are in ExternalCalls.cpp, they are platform dependent calls,
so maybe llvm should consider including it's own implementation of a
random number generator? For the time being I just replaced with calls
to srand and rand like Paolo also did, but it needs to be fixed...
m.
2005 Jan 14
0
[LLVMdev] Building the CFE I get this error: there are no arguments to `lrand48'
On Fri, 14 Jan 2005, Henrik Bach wrote:
> when building the llvm cfe (3.4 derivative), for the mingw platform, I get
> this error: 'error: there are no arguments to `lrand48' that depend on a
> template parameter, so a declaration of `lrand48' must be available'.
Hi Henrik,
We haven't modified the GCC configure script or build system, so I don't
know what
2005 Jan 14
2
[LLVMdev] Building the CFE I get this error: there are no arguments to `lrand48'
Hi,
when building the llvm cfe (3.4 derivative), for the mingw platform, I get
this error: 'error: there are no arguments to `lrand48' that depend on a
template parameter, so a declaration of `lrand48' must be available'.
------------------------
make[3]: Entering directory
`/C/projects/build/MinGW/llvm-gcc-1-1/i686-pc-mingw32/libstdc++-v3/testsuite'
2005 Jan 14
1
[LLVMdev] Building the CFE I get this error: there are no arguments to `lrand48'
This sounds suspiciously like the problem I ran into with VC++, whose
std implementation also includes _Distance. Could mingw have copied VC++
too closely? The fix with VC++ was to add a "using std::_Distance" line
(or just "using namespace std".
Chris Lattner wrote:
> On Fri, 14 Jan 2005, Henrik Bach wrote:
>
>> when building the llvm cfe (3.4 derivative), for
2004 Sep 28
3
[LLVMdev] patches and problem...
Here I am again...
I missed that in the previous diff, they are the usual missing
<algorithm> and the std:: namespace missing in sort, find, make_pair.
Alkis can you please give them an eye when you have time?
The next major problem is that VC has only
int rand(void)
void srand( int seed )
So I donno how to compile the
ExecutionEngine/Interpreter/ExternalFunctions.cpp that refers to the
2004 Sep 29
2
[LLVMdev] patches and problem...
Hmm,
I guess I need a sys::Math::getRandom() function that uses a "good" random
number generator on the given platform. I'll make a note of this and tuck it
away for future implementation.
Reid.
Chris Lattner wrote:
> On Tue, 28 Sep 2004, Paolo Invernizzi wrote:
>
>
>>The next major problem is that VC has only
>>
>>int rand(void)
>>void srand(
2004 Sep 28
0
[LLVMdev] patches and problem...
On Tue, 28 Sep 2004, Paolo Invernizzi wrote:
> The next major problem is that VC has only
>
> int rand(void)
> void srand( int seed )
>
> So I donno how to compile the
> ExecutionEngine/Interpreter/ExternalFunctions.cpp that refers to the
> drand48 srand48 lrand48 etc series...
> For now I hacked them, like
>
> double drand48(void) { return (float) rand() /
2004 Oct 27
0
[LLVMdev] Re: Patch for missing rand48 on win32
Morten Ofstad wrote:
>> Hi,
>>
>> There's no HAVE_RAND48 symbol provided by autoconf. You'll have to
>> add the appropriate check to autoconf/configure.ac before we can take
>> this patch.
I installed autoconf with cygwin now and I think I've managed to do this
right now -- there are some strange problems with running the
AutoRegen.sh script, so I
2004 Jul 07
1
[LLVMdev] AsmWriter.cpp:255: error: ambiguous overload for `std::basic_ostream<char,...
Yes, Chris you're right. It seems that my << operator for int64_t is missing
in my '/opt/gcc.3.3/include/c++/3.3/bits/ostream.tcc' file.
Which ordinary version of GCC are you working with and how do your
definition of the << operator for int64_t look like?
/Henrik
>
>Here is an excerpt from the config.log for LLVM:
>
>configure:19451: checking for int64_t
2004 Jul 07
0
[LLVMdev] AsmWriter.cpp:255: error: ambiguous overload for `std::basic_ostream<char,...
Here is an excerpt from the config.log:
configure:19451: checking for int64_t
configure:19476: gcc -c -g -O2 conftest.c >&5
configure:19479: $? = 0
configure:19482: test -s conftest.o
configure:19485: $? = 0
configure:19496: result: yes
configure:19511: checking for uint64_t
configure:19536: gcc -c -g -O2 conftest.c >&5
configure:19539: $? = 0
configure:19542: test -s conftest.o
2004 Sep 29
0
[LLVMdev] patches and problem...
On Wed, 29 Sep 2004, Reid Spencer wrote:
> > On Tue, 28 Sep 2004, Paolo Invernizzi wrote:
> >>The next major problem is that VC has only
> >>
> >>int rand(void)
> >>void srand( int seed )
> >>
> >>So I donno how to compile the
> >>ExecutionEngine/Interpreter/ExternalFunctions.cpp that refers to the
> >>drand48 srand48
2004 Jul 06
0
[LLVMdev] AsmWriter.cpp:255: error: ambiguous overload for `std::basic_ostream<char,...
On Wed, 7 Jul 2004, Henrik Bach wrote:
> This tweak seems to work.
>
> As far as I can see, correct me if I'm wrong, it is the compiler, that can't
> figure out which std::basic_ostream to use. Why?
What I'm saying is that it appears that your implementation of operator<<
is not functional or is missing. You said that you are using GCC on
internix. Is it possible
2004 Oct 26
2
[LLVMdev] Re: Patch for missing rand48 on win32
> Hi,
>
> There's no HAVE_RAND48 symbol provided by autoconf. You'll have to add
> the appropriate check to autoconf/configure.ac before we can take this
> patch.
Sorry I forgot to mention I didn't make any changes to the configure
script. The problem is that I can't test these things since I'm not on a
Unix platform, and I'm not even using the
2004 Jul 06
2
[LLVMdev] AsmWriter.cpp:255: error: ambiguous overload for `std::basic_ostream<char,...
No, Chris, I'm not buying that argument, due to I've tweaked
/usr/include/types.h a little bit, so the configuration and compilation of
the cfrontend would be correct:
/*
* 64bit type for BSD compatability
*/
#ifdef __GNUC__
typedef long long int quad_t;
typedef unsigned long long int u_quad_t;
typedef long long int int64_t;
typedef unsigned long long int u_int64_t;
2005 May 12
0
[LLVMdev] Cygwin binaries
Hi Aaron,
Sorry for the delay. Please be aware, that these instructions has not been
used lately. However, I'll try to follow up on your questions.
Here are my instructions to compile the cfe:
5. Configure, build, and install the C front-end:
a. Before configure: export CPPFLAGS="-D__MINGW32__ "
?export LDFLAGS=-Wl,-no-keep-memory"
2004 Sep 11
1
[LLVMdev] reloc refers to symbol ... which is not being output
Hi Brian,
do you know the status of your posted question/problem submitted to binutils
maintainers?:
http://cygwin.com/ml/cygwin/2003-08/msg00742.html
I'm having exactly the same problem on my mingw platform with g++3.3.1
Henrik
---
Got Freedom?
Software Freedom Day 2004 - 28th of August
http://www.softwarefreedomday.org/
---
2004 Sep 14
0
[LLVMdev] Files to lib/System/Win32
Uh... shouldn't a Win32 port use the Win32 API?
On Tue, 14 Sep 2004 02:11:51 +0200
"Henrik Bach" <henrik_bach_llvm at hotmail.com> wrote:
> Hi
>
> Here is my first patches to the Win32 platform.
>
> They compile on the mingw platform.
>
> I haven't test them yet, but I thought it will best to put them in the save,
> just in case...
>
>
2004 Sep 16
1
[LLVMdev] Legal matters using code etc from MS website
Hi Folks
Please review this link:
http://www.microsoft.com/info/cpyright.mspx#EKAA
As I see it, no one should use code copied from Microsoft directly, unless
you are explicitly sure it is for private or non-commercial use or a
permission is specifically granted for the purpose.
And for that matter, no one can be sure if you rewrite code, not to infringe
patents - as they adhere to
2004 Sep 16
1
[LLVMdev] Patch to lib/System/Interix
Hi
Interix does not know MAP_ANON or -NOCORE only MAP_SHARED, -PRIVATE and
-FIXED.
Henrik
_________________________________________________________________
F� alle de nye og sjove ikoner med MSN Messenger http://messenger.msn.dk/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Memory.cpp.zip
Type: application/x-zip-compressed
Size: 495 bytes
Desc: not