Re: Building SDC from source

2014-08-02 Thread Stefan Koch via Digitalmars-d-learn
On Sunday, 27 July 2014 at 15:15:05 UTC, Stefan Koch wrote: On Sunday, 27 July 2014 at 15:00:26 UTC, Dicebot wrote: On Sunday, 27 July 2014 at 14:44:29 UTC, Joseph Rushton Wakeling via Digitalmars-d-learn wrote: Adding a dlang.conf file in /etc/ld.so.conf.d/ which adds the /opt/dmd/lib64 path s

Re: Building SDC from source

2014-07-27 Thread Stefan Koch via Digitalmars-d-learn
On Sunday, 27 July 2014 at 15:00:26 UTC, Dicebot wrote: On Sunday, 27 July 2014 at 14:44:29 UTC, Joseph Rushton Wakeling via Digitalmars-d-learn wrote: Adding a dlang.conf file in /etc/ld.so.conf.d/ which adds the /opt/dmd/lib64 path solves things. One of many reasons why you don't usually wan

Re: Building SDC from source

2014-07-27 Thread Dicebot via Digitalmars-d-learn
On Sunday, 27 July 2014 at 14:44:29 UTC, Joseph Rushton Wakeling via Digitalmars-d-learn wrote: Adding a dlang.conf file in /etc/ld.so.conf.d/ which adds the /opt/dmd/lib64 path solves things. One of many reasons why you don't usually want to circumvent package management system ;)

Re: Building SDC from source

2014-07-27 Thread Joseph Rushton Wakeling via Digitalmars-d-learn
On 27/07/14 16:20, Stefan Koch via Digitalmars-d-learn wrote: if gcc knows where the lib is it can compile agianst it. But the library beeing _shared_ will not be linked with the executable but the library will be loaded form the path's supplied as LD_PATH or in ldconfig. The -L flag does not cha

Re: Building SDC from source

2014-07-27 Thread Stefan Koch via Digitalmars-d-learn
On Sunday, 27 July 2014 at 14:08:42 UTC, Joseph Rushton Wakeling via Digitalmars-d-learn wrote: On 27/07/14 15:10, Dicebot via Digitalmars-d-learn wrote: Is shared Phobos library in /opt/dmd known do ldconfig? No, but isn't that what the -L flag should be passing to gcc? if gcc knows where t

Re: Building SDC from source

2014-07-27 Thread Joseph Rushton Wakeling via Digitalmars-d-learn
On 27/07/14 15:10, Dicebot via Digitalmars-d-learn wrote: Is shared Phobos library in /opt/dmd known do ldconfig? No, but isn't that what the -L flag should be passing to gcc?

Re: Building SDC from source

2014-07-27 Thread Dicebot via Digitalmars-d-learn
Is shared Phobos library in /opt/dmd known do ldconfig? Can you build a sample hello world program with -defaultlib=libphobos.so ?

Re: Building SDC from source

2014-07-27 Thread Joseph Rushton Wakeling via Digitalmars-d-learn
On 27/07/14 14:16, Stefan Koch via Digitalmars-d-learn wrote: sdc itself should not use phobos at all as far as I can tell. libsdrt should be selfcontaint. Yes, it's obviously being used to build the compiler, and supplying the flag directly is clearly only necessary in this case for the gcc c

Re: Building SDC from source

2014-07-27 Thread Joseph Rushton Wakeling via Digitalmars-d-learn
On 27/07/14 14:22, Stefan Koch via Digitalmars-d-learn wrote: your LD_PATH seems to not have the lib in it From the Makefile, I'd understood that LD_PATH was meant to point to the _directory_ where the libraries are contained, not the actual library itself ... ? After all, it's just mapped t

Re: Building SDC from source

2014-07-27 Thread Stefan Koch via Digitalmars-d-learn
On Sunday, 27 July 2014 at 12:22:03 UTC, Stefan Koch wrote: On Sunday, 27 July 2014 at 12:16:05 UTC, Stefan Koch wrote: On Sunday, 27 July 2014 at 12:12:08 UTC, Stefan Koch wrote: do you use gdc ? then you have to use -lgphobos2 scratch that I wasn't looking :) sdc itself should not use phob

Re: Building SDC from source

2014-07-27 Thread Stefan Koch via Digitalmars-d-learn
On Sunday, 27 July 2014 at 12:16:05 UTC, Stefan Koch wrote: On Sunday, 27 July 2014 at 12:12:08 UTC, Stefan Koch wrote: do you use gdc ? then you have to use -lgphobos2 scratch that I wasn't looking :) sdc itself should not use phobos at all as far as I can tell. libsdrt should be selfcontain

Re: Building SDC from source

2014-07-27 Thread Stefan Koch via Digitalmars-d-learn
On Sunday, 27 July 2014 at 12:12:08 UTC, Stefan Koch wrote: do you use gdc ? then you have to use -lgphobos2 scratch that I wasn't looking :) sdc itself should not use phobos at all as far as I can tell. libsdrt should be selfcontaint.

Re: Building SDC from source

2014-07-27 Thread Stefan Koch via Digitalmars-d-learn
do you use gdc ? then you have to use -lgphobos2

Building SDC from source

2014-07-27 Thread Joseph Rushton Wakeling via Digitalmars-d-learn
Hi all, I'm running into a little trouble trying to build SDC. The first problem was that the makefile does not auto-detect the appropriate llvm-config, or the libphobos2 location, but that's simply enough fixed by doing (in my case): make LLVM_CONFIG=llvm-config-3.4 LD_PATH=/opt/dmd/lib