Re: What could be the possible reason of linking errors on "_info" and "_closure"?

2015-02-02 Thread Magicloud Magiclouds
Sorry, my mistake. I had a misunderstanding of cabal file that I did not expose enough modules. On Mon, Feb 2, 2015 at 5:27 PM, Magicloud Magiclouds < magicloud.magiclo...@gmail.com> wrote: > Hi, > > I am making a cabal project including a library and a executable usin

What could be the possible reason of linking errors on "_info" and "_closure"?

2015-02-02 Thread Magicloud Magiclouds
Hi, I am making a cabal project including a library and a executable using the library. Building the library is fine. But when linking src/main, I got "undefined reference to someFunction1_info" and "someFunction1_closure". -- 竹密岂妨流水过 山高哪阻野云飞 And for G+, please use magiclouds#gmail.com. __

Re: [Haskell-cafe] Dependencies missing when building ghc.

2014-10-13 Thread Magicloud Magiclouds
That is something I did not know. Thank you. On Mon, Oct 13, 2014 at 4:14 PM, Daniel Trstenjak < daniel.trsten...@gmail.com> wrote: > > > I am with my new Ubuntu Trusty box. I have installed ghc by apt-get. > Then I > > wanted to build ghc from git to upgrade to 7.8.3. > > If you only want to ins

Re: Dependencies missing when building ghc.

2014-10-13 Thread Magicloud Magiclouds
was changed after 7.8 > > Thanks, > Yuras > 13 Окт 2014 г. 4:03 пользователь "Magicloud Magiclouds" < > magicloud.magiclo...@gmail.com> написал: > >> Hi, >> >> I am with my new Ubuntu Trusty box. I have installed ghc by apt-get. >> Then

Dependencies missing when building ghc.

2014-10-12 Thread Magicloud Magiclouds
Hi, I am with my new Ubuntu Trusty box. I have installed ghc by apt-get. Then I wanted to build ghc from git to upgrade to 7.8.3. I did following commands. I tried 'make clean', or reget the source. No luck yet. $ git clone --recursive git://git.haskell.org/ghc.git $ ./sync-all -r git://git.

Re: How to compile ghc 7.6.2 with llvm?

2013-02-12 Thread Magicloud Magiclouds
, libraries) are generated by llvm, instead of gcc? In other words, to see if llvm was used correct. On Wed, Feb 13, 2013 at 1:09 AM, Brandon Allbery wrote: > On Tue, Feb 12, 2013 at 11:41 AM, Magicloud Magiclouds < > magicloud.magiclo...@gmail.com> wrote: > >> Then I `mv bui

Re: How to compile ghc 7.6.2 with llvm?

2013-02-12 Thread Magicloud Magiclouds
On Wed, Feb 13, 2013 at 12:41 AM, Magicloud Magiclouds < magicloud.magiclo...@gmail.com> wrote: > ./configure --with-gcc=/usr/bin/llvm-gcc Sorry, I was wrong. with 'with-gcc' option, I got a ld error, which I will post later. Without this option, I got native code generator

Re: I cannot compile ghc-7.6.2

2013-02-12 Thread Magicloud Magiclouds
Thank you. I thought the "no such file" lines were the problem. In fact my global container was hidden some how. On Tue, Feb 12, 2013 at 5:29 AM, Ian Lynagh wrote: > On Sun, Feb 10, 2013 at 06:35:25PM +0800, Magicloud Magiclouds wrote: > > > > Linuxmint Nadia, ghc-7.

Re: Executables got bigger using dynamic link.

2012-10-28 Thread Magicloud Magiclouds
Sorry, I left the profiling option on, which seems to suppress the dynamic options. On Mon, Oct 29, 2012 at 1:29 PM, Magicloud Magiclouds wrote: > Hi, > I set "shared: True" in ~/.cabal/config, and using ghc 7.6.1. Then > clear user space hackages and reinstall them. >

Re: Re: Does ghc 7.6.1 support gold ld?

2012-10-10 Thread Magicloud Magiclouds
7;' '/usr/local' '/usr/local/lib/ghc-7.6.1' '/usr/local/share/doc/ghc/html/libraries' NO Installing library in /usr/local/lib/ghc-7.6.1/base-4.6.0.0 ghc-cabal: dist-install/build/HSbase-4.6.0.0.o: does not exist make[1]: *** [install_packages] Error 1 make: ***

Re: Re: Does ghc 7.6.1 support gold ld?

2012-10-10 Thread Magicloud Magiclouds
ll with a clean build. > > > Von Samsung Mobile gesendet > > Magicloud Magiclouds hat geschrieben: > Never mind. `make clean` helps. Though I have no idea why > > On Wed, Oct 10, 2012 at 1:40 PM, Magicloud Magiclouds > wrote: >> Hi, >> Since gold ld

Re: Does ghc 7.6.1 support gold ld?

2012-10-09 Thread Magicloud Magiclouds
Never mind. `make clean` helps. Though I have no idea why On Wed, Oct 10, 2012 at 1:40 PM, Magicloud Magiclouds wrote: > Hi, > Since gold ld (GNU gold (GNU Binutils for Debian 2.22) 1.11) somehow > better than ld, so I am using it in my debian box. > Now I want to compile gh

How to staticly build ghc?

2012-05-21 Thread Magicloud Magiclouds
Hi, I am with ghc 7.4.1. For some reason I need a totally static linked compilation to my code. But it failed when linking some packages came with ghc, like unix-2.5.1.0. Trying to rebuild ghc to make all staticly, but failed to find args like this when configuring ghc. What should I do? --

Re: How to use llvm with ghc7?

2010-12-09 Thread Magicloud Magiclouds
On Wed, Dec 8, 2010 at 7:14 PM, Max Bolingbroke wrote: > On 8 December 2010 08:28, Magicloud Magiclouds > wrote: >>  I am using debian 32bit system, llvm 2.6. > > I haven't seen your particular error before, but AFAIK -fllvm won't > work with LLVM < 2.7 bec

How to use llvm with ghc7?

2010-12-08 Thread Magicloud Magiclouds
Hi, I just got ghc7 and compiled with ghc6.12.1 and default configuration. ghc works fine. So I tried to use llvm. I got: ghc -fllvm badge.hs [1 of 1] Compiling Main ( badge.hs, /tmp/Main.o ) opt: Bitcode stream should be a multiple of 4 bytes in length I am using debian 32bit sys

How to optimize the memory usage of "linking"?

2010-11-18 Thread Magicloud Magiclouds
Hi, When I use ghc to make large project, the almost-final step of linking takes a lot of memory. This is horrible on host with little memory (i.e. 512MB). Is there any way I can optimize this? Thanks. -- 竹密岂妨流水过 山高哪阻野云飞 ___ Glasgow-haskell-users mai