Re: [pure-lang-users] 64-bit build-problems
Status: Beta
Brought to you by:
agraef
|
From: Eddie R. <er...@bm...> - 2008-04-30 22:36:05
|
I almost have it. I have the following make errors: g++ -g -Wall `llvm-config --cppflags` -c -o runtime.o runtime.cc runtime.cc: In function ‘pure_expr* pure_intval(pure_expr*)’: runtime.cc:678: error: cast from ‘void*’ to ‘uint32_t’ loses precision runtime.cc: In function ‘pure_expr* pointer_to_bigint(void*)’: runtime.cc:728: error: cast from ‘void*’ to ‘uint32_t’ loses precision runtime.cc:733: error: cast from ‘void*’ to ‘uint32_t’ loses precision make: *** [runtime.o] Error 1 I change uint32_t to uint64_t in each case and make compiled everything. However, when you run pure you get funny things: > fact 0 = 1; > fact n = n * fact (n-1); > fact 4; 1 > E.R. On Wed, 2008-04-30 at 21:47 +0200, Albert Graef wrote: > Libor Spacek wrote: > > Looking at the early posts here, it seems that the LLVM compilation might > > become a stumbling block to a wider adoption. > > Yes, if you take a look at the q-lang-users archive, you'll see that we > actually discussed the problem of having such a huge dependency quite a > while ago, when the idea to target LLVM first came up. But give it some > time, and LLVM should be readily available as a binary package on most > Linux distros. > > > In my case, the SVN LLVM actually compiled on my AMD64 Ubuntu 8.04 but it > > was the front end that failed and there are no binaries available for it :( > > I'm not sure whether the frontend is actually needed, Pure only links > against the LLVM libraries AFAICT. > > > I will get some more time on Thursday to pick up courage and look at it again. > > Great, maybe you can give it a try with the little guide I just posted. > If that doesn't work then Eddie Rucker should be able to help, he > already has it up and running on Ubuntu IIRC. > > Albert > |